:root {
  --bg: #07111f;
  --bg-soft: #0b1729;
  --panel: rgba(11, 23, 41, 0.72);
  --panel-strong: rgba(12, 24, 43, 0.92);
  --line: rgba(207, 186, 141, 0.18);
  --line-strong: rgba(207, 186, 141, 0.32);
  --text: #f3efe7;
  --muted: #aaafb8;
  --gold: #cfba8d;
  --gold-soft: rgba(207, 186, 141, 0.18);
  --blue: #6ca4ff;
  --blue-soft: rgba(108, 164, 255, 0.12);
  --success: #9dd0bc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1240px;
  --brand-bar-h: 74px;
  --nav-h: 50px;
  --transition: 220ms ease;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2rem;
  padding: 0.2rem 0.72rem;
  border: 1px solid rgba(207, 186, 141, 0.46);
  border-radius: 999px;
  color: var(--gold) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  background: rgba(207, 186, 141, 0.08);
}

.language-switch:hover,
.language-switch:focus-visible {
  border-color: rgba(207, 186, 141, 0.82);
  color: var(--text) !important;
  background: rgba(207, 186, 141, 0.16);
}

.nav-links .language-switch.is-active {
  color: var(--gold) !important;
}

.footer-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--gold);
}

@media (max-width: 860px) {
  .nav-links .language-switch {
    align-self: flex-start;
    margin-top: 0.35rem;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-footer .brand,
  .site-footer .brand-text {
    min-width: 0;
    max-width: 100%;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: linear-gradient(180deg, #07182f 0%, #081a33 52%, #0a1d38 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

body > *:not(.site-code-canvas) {
  position: relative;
  z-index: 1;
}

body > [data-site-header] {
  position: relative;
  z-index: 20000;
}

body > main {
  position: relative;
  z-index: 1;
}

body > *:not(.site-code-canvas):not(.intro-screen) {
  transition: opacity 1320ms ease;
}

.site-code-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

body.is-intro-active {
  overflow: hidden;
}

body.is-intro-active > *:not(.site-code-canvas):not(.intro-screen) {
  opacity: 0;
  pointer-events: none;
}

body.is-intro-active .site-code-canvas {
  opacity: 0;
}

.intro-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  background: #0b2854;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1320ms ease, visibility 1320ms ease;
  pointer-events: none;
}

body.is-intro-active .intro-screen,
.intro-screen.is-ready {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro-screen__streak {
  position: absolute;
  z-index: 0;
  width: 52px;
  height: 8px;
  opacity: 0;
  pointer-events: none;
  transform: rotate(32deg) translate3d(0, 0, 0) scaleX(0.92);
  animation: introMeteor 6.6s ease-out infinite;
}

.intro-screen__streak::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    106deg,
    transparent 0%,
    rgba(224, 194, 135, 0.02) 8%,
    rgba(224, 194, 135, 0.07) 18%,
    rgba(224, 194, 135, 0.16) 32%,
    rgba(224, 194, 135, 0.42) 48%,
    rgba(224, 194, 135, 0.96) 67%,
    rgba(224, 194, 135, 0.16) 82%,
    transparent 100%
  );
  filter:
    drop-shadow(0 0 4px rgba(224, 194, 135, 0.12))
    drop-shadow(0 0 8px rgba(224, 194, 135, 0.05));
}

.intro-screen__streak::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(240, 224, 186, 0.98);
  box-shadow:
    0 0 8px rgba(224, 194, 135, 0.24),
    0 0 16px rgba(224, 194, 135, 0.1),
    0 0 0 1px rgba(240, 224, 186, 0.18);
  transform: translateY(-50%);
}

.intro-screen__streak--1 { top: 8%; left: 8%; width: 60px; animation-duration: 5.4s; animation-delay: -0.6s; }
.intro-screen__streak--2 { top: 14%; right: 11%; width: 56px; animation-duration: 6.2s; animation-delay: -2.4s; }
.intro-screen__streak--3 { top: 20%; left: 22%; width: 44px; animation-duration: 5.8s; animation-delay: -4.1s; }
.intro-screen__streak--4 { top: 24%; right: 23%; width: 48px; animation-duration: 6.9s; animation-delay: -1.9s; }
.intro-screen__streak--5 { top: 33%; left: 7%; width: 62px; animation-duration: 5.1s; animation-delay: -3.7s; }
.intro-screen__streak--6 { top: 38%; right: 8%; width: 42px; animation-duration: 6.4s; animation-delay: -5.2s; }
.intro-screen__streak--7 { top: 48%; left: 15%; width: 54px; animation-duration: 5.9s; animation-delay: -1.1s; }
.intro-screen__streak--8 { top: 52%; right: 18%; width: 46px; animation-duration: 6.7s; animation-delay: -4.8s; }
.intro-screen__streak--9 { top: 62%; left: 24%; width: 50px; animation-duration: 5.6s; animation-delay: -2.7s; }
.intro-screen__streak--10 { top: 68%; right: 12%; width: 40px; animation-duration: 6.1s; animation-delay: -0.4s; }
.intro-screen__streak--11 { top: 12%; left: 38%; width: 34px; animation-duration: 6.5s; animation-delay: -5.8s; }
.intro-screen__streak--12 { top: 27%; right: 37%; width: 36px; animation-duration: 5.7s; animation-delay: -3.1s; }
.intro-screen__streak--13 { top: 58%; left: 37%; width: 32px; animation-duration: 6.8s; animation-delay: -1.6s; }
.intro-screen__streak--14 { top: 74%; right: 31%; width: 34px; animation-duration: 5.5s; animation-delay: -4.6s; }
.intro-screen__streak--15 { top: 84%; left: 43%; width: 30px; animation-duration: 6.3s; animation-delay: -6.1s; }

.intro-screen__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: scale(0.985);
  opacity: 0;
  transition: opacity 360ms ease, transform 520ms ease;
}

.intro-screen.is-ready .intro-screen__inner {
  opacity: 1;
  transform: scale(1);
}

.intro-screen__lion-wrap {
  width: min(34vw, 500px);
  max-width: 520px;
  min-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-screen__emblem {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

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

@keyframes introMeteor {
  0%, 100% {
    opacity: 0;
    transform: rotate(32deg) translate3d(0, 0, 0) scaleX(0.92);
  }
  5% {
    opacity: 0;
  }
  9% {
    opacity: 0.54;
  }
  14% {
    opacity: 0.16;
    transform: rotate(32deg) translate3d(22px, 46px, 0) scaleX(1);
  }
  18% {
    opacity: 0;
  }
}

.site-brand-bar {
  position: sticky;
  top: 0;
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--brand-bar-h);
  padding: 0.65rem 2rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(32, 58, 94, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(16, 33, 57, 0.96), rgba(13, 28, 49, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-brand-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(207, 186, 141, 0.08), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(108, 164, 255, 0.05), transparent 28%);
  pointer-events: none;
}

.site-brand-bar-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.site-brand-bar .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(207, 186, 141, 0.18);
  box-shadow: none;
}

.hero .container {
  position: relative;
}

.leo-host {
  position: absolute;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
  width: min(340px, 30vw);
  min-width: 288px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 520ms ease, visibility 420ms ease;
}

.leo-host.is-mounted {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.leo-greeting,
.leo-panel,
.leo-trigger {
  pointer-events: auto;
}

.leo-greeting {
  width: 100%;
  padding: 0.96rem 1.05rem 1rem;
  border-radius: 26px;
  border: 1px solid rgba(216, 191, 132, 0.2);
  background:
    linear-gradient(180deg, rgba(10, 25, 60, 0.78), rgba(8, 20, 46, 0.74)),
    radial-gradient(circle at 20% 20%, rgba(216, 191, 132, 0.1), transparent 48%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(216, 191, 132, 0.08),
    0 0 36px rgba(108, 164, 255, 0.08);
  backdrop-filter: blur(18px);
  cursor: pointer;
  overflow: hidden;
  max-height: 180px;
  transition:
    opacity 320ms ease,
    transform 360ms ease,
    max-height 360ms ease,
    margin 360ms ease,
    padding 360ms ease,
    border-color 320ms ease;
}

.leo-greeting__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(243, 239, 231, 0.4);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.leo-greeting__name {
  color: var(--gold);
}

.leo-greeting p {
  margin: 0;
  color: rgba(241, 236, 227, 0.92);
  font-size: 0.9rem;
  line-height: 1.62;
}

.leo-host.has-greeted .leo-greeting,
.leo-host.is-open .leo-greeting {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
}

.leo-panel {
  width: 100%;
  padding: 1rem 1rem 1.05rem;
  border-radius: 28px;
  border: 1px solid rgba(216, 191, 132, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 25, 60, 0.78), rgba(8, 20, 46, 0.74)),
    radial-gradient(circle at 18% 14%, rgba(216, 191, 132, 0.08), transparent 40%);
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(216, 191, 132, 0.08),
    0 0 36px rgba(216, 191, 132, 0.08);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transform-origin: top left;
  transition: opacity 420ms ease, transform 460ms ease, visibility 420ms ease;
}

.leo-host.is-open .leo-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.leo-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.leo-panel__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.leo-panel__avatar {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(216, 191, 132, 0.34), transparent 50%),
    linear-gradient(140deg, rgba(19, 46, 88, 1), rgba(13, 30, 56, 0.94));
  border: 1px solid rgba(216, 191, 132, 0.25);
  box-shadow:
    0 0 0 6px rgba(216, 191, 132, 0.05),
    0 0 22px rgba(216, 191, 132, 0.12);
}

.leo-panel__avatar img {
  position: absolute;
  inset: 0;
  width: 214%;
  height: 214%;
  object-fit: contain;
  transform: translate(-23%, -20%);
  animation: leoPulse 3.4s ease-in-out infinite;
}

.leo-panel__eyebrow {
  display: block;
  margin-bottom: 0.24rem;
  color: rgba(243, 239, 231, 0.42);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.leo-panel h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1rem;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(245, 240, 230, 0.96);
}

.leo-panel__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(216, 191, 132, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(241, 236, 227, 0.86);
  cursor: pointer;
}

.leo-thread {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.2rem;
  margin-bottom: 0.85rem;
}

.leo-thread::-webkit-scrollbar {
  width: 5px;
}

.leo-thread::-webkit-scrollbar-thumb {
  background: rgba(216, 191, 132, 0.2);
  border-radius: 999px;
}

.leo-message {
  display: flex;
}

.leo-message p {
  margin: 0;
  max-width: 86%;
  padding: 0.72rem 0.88rem;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.56;
}

.leo-message--leo p {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(241, 236, 227, 0.92);
  border-top-left-radius: 8px;
}

.leo-message--user {
  justify-content: flex-end;
}

.leo-message--user p {
  background: linear-gradient(135deg, rgba(216, 191, 132, 0.98), rgba(196, 163, 98, 0.92));
  color: #091731;
  border-top-right-radius: 8px;
}

.leo-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: fit-content;
  margin-bottom: 0.85rem;
  padding: 0.58rem 0.74rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.leo-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(216, 191, 132, 0.9);
  animation: leoTyping 1.1s ease-in-out infinite;
}

.leo-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.leo-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.leo-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.leo-chip,
.leo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.83rem;
  line-height: 1;
  text-decoration: none;
}

.leo-chip {
  border: 1px solid rgba(216, 191, 132, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(241, 236, 227, 0.88);
  cursor: pointer;
}

.leo-link {
  background: linear-gradient(135deg, rgba(216, 191, 132, 0.98), rgba(196, 163, 98, 0.92));
  color: #091731;
  font-weight: 700;
}

.leo-trigger {
  position: relative;
  width: 100%;
  opacity: 1;
  visibility: visible;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.34rem 0.38rem 0.34rem 0.34rem;
  border: 1px solid rgba(216, 191, 132, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(216, 191, 132, 0.98), rgba(196, 163, 98, 0.94)),
    linear-gradient(180deg, rgba(10, 25, 60, 0.1), rgba(8, 20, 46, 0.04));
  color: #0a1c35;
  box-shadow:
    0 18px 42px rgba(2, 9, 20, 0.28),
    0 0 24px rgba(216, 191, 132, 0.12);
  cursor: pointer;
  text-align: left;
  min-width: 284px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.leo-trigger:hover,
.leo-trigger:focus-visible {
  transform: translateY(-1px) scale(1.015);
  box-shadow:
    0 20px 46px rgba(2, 9, 20, 0.32),
    0 0 28px rgba(216, 191, 132, 0.08);
}

.leo-trigger__avatar {
  position: relative;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(216, 191, 132, 0.32), transparent 45%),
    linear-gradient(140deg, rgba(18, 47, 89, 1), rgba(9, 24, 45, 0.92));
  border: 1px solid rgba(216, 191, 132, 0.28);
  box-shadow:
    0 0 0 6px rgba(216, 191, 132, 0.04),
    0 0 24px rgba(108, 164, 255, 0.14);
}

.leo-trigger__avatar img {
  position: absolute;
  inset: 0;
  width: 214%;
  height: 214%;
  object-fit: contain;
  transform: translate(-23%, -20%);
  animation: leoPulse 3.2s ease-in-out infinite;
}

.leo-trigger__copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding-right: 0.82rem;
}

.leo-trigger__eyebrow {
  color: rgba(10, 28, 53, 0.54);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.leo-trigger__copy strong {
  font-size: 0.92rem;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0a1c35;
}

.leo-trigger__copy strong span {
  color: #6f4f14;
}

.leo-mini-launcher {
  position: fixed !important;
  right: max(1.05rem, env(safe-area-inset-right)) !important;
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  left: auto !important;
  top: auto !important;
  z-index: 8500 !important;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.96);
  transition:
    opacity 260ms ease,
    transform 300ms ease,
    visibility 260ms ease,
    filter 260ms ease;
  pointer-events: none;
}

.leo-mini-launcher.is-ready {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.leo-mini-launcher.is-contextual-active {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.92);
  pointer-events: none;
}

.leo-mini-launcher.is-chat-open:not(.is-hidden) {
  opacity: 0.84;
  visibility: visible;
  transform: translate3d(0, 4px, 0) scale(0.92);
  filter: saturate(0.96);
  pointer-events: auto;
}

.leo-mini-launcher.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.92);
  pointer-events: none;
}

body.leo-launcher-suppressed .leo-mini-launcher {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.92);
  pointer-events: none;
}

body.leo-launcher-dimmed:not(.leo-launcher-suppressed) .leo-mini-launcher {
  opacity: 0.82;
  visibility: visible;
  transform: translate3d(0, 5px, 0) scale(0.9);
  filter: saturate(0.96);
  pointer-events: auto;
}

.leo-mini-launcher__button {
  position: relative;
  width: 116px;
  height: 156px;
  display: grid;
  place-items: end center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.leo-mini-launcher__button:focus-visible {
  outline: 2px solid rgba(216, 191, 132, 0.76);
  outline-offset: 4px;
  border-radius: 28px;
}

.leo-mini-launcher__glow {
  position: absolute;
  left: 16px;
  right: 10px;
  bottom: 2px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(216, 191, 132, 0.24), rgba(216, 191, 132, 0.04) 54%, transparent 72%),
    radial-gradient(ellipse at 68% 42%, rgba(105, 165, 255, 0.16), transparent 68%);
  box-shadow:
    0 0 22px rgba(216, 191, 132, 0.12),
    0 0 24px rgba(105, 165, 255, 0.08);
  filter: blur(0.2px);
}

.leo-mini-launcher__stage {
  position: relative;
  width: 92px;
  height: 146px;
  display: block;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.28));
  transform-origin: center bottom;
  transition: transform 220ms ease, filter 220ms ease;
}

.leo-mini-launcher__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.leo-mini-launcher.is-hovering .leo-mini-launcher__stage,
.leo-mini-launcher.is-activating .leo-mini-launcher__stage {
  transform: translateY(-3px) scale(1.035);
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.3));
}

.leo-mini-launcher.is-activating .leo-mini-launcher__glow {
  box-shadow:
    0 0 28px rgba(216, 191, 132, 0.18),
    0 0 30px rgba(105, 165, 255, 0.12);
}

@keyframes leoPulse {
  0%, 100% {
    transform: translate(-23%, -20%) scale(1);
    filter: drop-shadow(0 0 0 rgba(216, 191, 132, 0.18));
  }
  50% {
    transform: translate(-23%, -20%) scale(1.028);
    filter: drop-shadow(0 0 10px rgba(216, 191, 132, 0.22));
  }
}

@keyframes leoTyping {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.38;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .leo-mini-launcher {
    right: max(0.55rem, env(safe-area-inset-right)) !important;
    bottom: max(0.62rem, env(safe-area-inset-bottom)) !important;
  }

  .leo-mini-launcher__button {
    width: 88px;
    height: 132px;
  }

  .leo-mini-launcher__stage {
    width: 74px;
    height: 118px;
  }

  .leo-mini-launcher__glow {
    left: 12px;
    right: 8px;
    bottom: 1px;
    height: 26px;
  }

  body.leo-launcher-dimmed .leo-mini-launcher {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 14px, 0) scale(0.92);
    pointer-events: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .leo-mini-launcher {
    right: max(0.8rem, env(safe-area-inset-right)) !important;
    bottom: max(0.82rem, env(safe-area-inset-bottom)) !important;
  }

  .leo-mini-launcher__button {
    width: 102px;
    height: 142px;
  }

  .leo-mini-launcher__stage {
    width: 84px;
    height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leo-mini-launcher,
  .leo-mini-launcher__stage,
  .leo-mini-launcher__glow {
    transition: none;
  }

  .leo-mini-launcher.is-hovering .leo-mini-launcher__stage,
  .leo-mini-launcher.is-activating .leo-mini-launcher__stage {
    transform: none;
  }
}

body.leo-home-guide-active .leo-mini-launcher {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.92);
  pointer-events: none;
}

body.leo-process-guide-active .leo-mini-launcher {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.92);
  pointer-events: none;
}

body.leo-ai-guide-active .leo-mini-launcher {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.92);
  pointer-events: none;
}

body.leo-contact-guide-active .leo-mini-launcher {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.92);
  pointer-events: none;
}

.leo-home-guide-section {
  position: relative;
}

.leo-home-guide-section [data-leo-home-target] {
  position: relative;
  min-height: 380px;
  padding-bottom: 14rem;
}

.leo-home-guide-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.leo-home-guide-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.leo-home-guide-layer.is-settled {
  opacity: 0.78;
}

.leo-home-guide-layer.is-fading {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.leo-home-guide-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 86px;
  height: 126px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate3d(0, 0, 0);
  transition: transform 1600ms linear, opacity 220ms ease, filter 220ms ease;
  opacity: 1;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.24));
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.leo-home-guide-stage:focus-visible {
  outline: 2px solid rgba(216, 191, 132, 0.75);
  outline-offset: 4px;
  border-radius: 24px;
}

.leo-home-guide-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.leo-home-guide-bubble {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(306px, calc(100vw - 48px));
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(207, 186, 141, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(244, 232, 209, 0.96)),
    rgba(255, 251, 242, 0.96);
  box-shadow: 0 16px 30px rgba(4, 10, 21, 0.18);
  color: #132640;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.42;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.leo-home-guide-bubble.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .leo-home-guide-section [data-leo-home-target] {
    min-height: unset;
    padding-bottom: var(--card-padding, 1.4rem);
  }

  .leo-home-guide-section [data-leo-home-target].is-leo-home-active {
    min-height: 330px;
    padding-bottom: 11.5rem;
  }

  .leo-home-guide-stage {
    width: 72px;
    height: 106px;
  }

  .leo-home-guide-bubble {
    max-width: min(238px, calc(100vw - 40px));
    padding: 0.68rem 0.76rem;
    font-size: 0.74rem;
  }
}

.leo-process-guide-section {
  position: relative;
}

.leo-process-guide-section [data-leo-process-target] {
  position: relative;
}

body[data-page="about"] .leo-process-guide-section .process-rail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.leo-process-guide-section [data-leo-process-target].is-leo-process-active {
  min-height: 348px;
  padding-bottom: 12.75rem;
  border-color: rgba(207, 186, 141, 0.42);
  box-shadow:
    0 18px 34px rgba(5, 10, 18, 0.18),
    0 0 0 1px rgba(207, 186, 141, 0.12);
}

.leo-process-guide-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.leo-process-guide-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.leo-process-guide-layer.is-fading {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.leo-process-guide-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 122px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 1500ms linear, opacity 220ms ease, filter 220ms ease;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.24));
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.leo-process-guide-stage:focus-visible {
  outline: 2px solid rgba(216, 191, 132, 0.75);
  outline-offset: 4px;
  border-radius: 24px;
}

.leo-process-guide-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.leo-process-guide-bubble {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(246px, calc(100vw - 40px));
  padding: 0.68rem 0.76rem;
  border: 1px solid rgba(207, 186, 141, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(244, 232, 209, 0.96)),
    rgba(255, 251, 242, 0.96);
  box-shadow: 0 16px 30px rgba(4, 10, 21, 0.18);
  color: #132640;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.42;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.leo-process-guide-bubble.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .leo-process-guide-section [data-leo-process-target].is-leo-process-active {
    min-height: 356px;
    padding-bottom: 13rem;
  }

  .leo-process-guide-stage {
    width: 72px;
    height: 106px;
  }

  .leo-process-guide-bubble {
    max-width: min(246px, calc(100vw - 40px));
    font-size: 0.74rem;
  }
}

.leo-ai-guide-section {
  position: relative;
}

.leo-ai-guide-section .section-header h2 {
  color: #f7f3ea;
}

.leo-ai-guide-section .section-header p {
  color: rgba(233, 238, 248, 0.82);
}

.leo-ai-guide-grid {
  align-items: stretch;
}

.leo-ai-guide-card {
  position: relative;
  min-height: 238px;
  padding: 1.45rem;
  border: 1px solid rgba(216, 191, 132, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(96, 154, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(12, 31, 64, 0.62), rgba(7, 18, 40, 0.56)),
    rgba(8, 23, 48, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 18px 38px rgba(3, 8, 18, 0.22);
  backdrop-filter: blur(14px);
  color: #f7f3ea;
  overflow: hidden;
  transition:
    min-height 260ms ease,
    padding-bottom 260ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.leo-ai-guide-card .step-index {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 191, 132, 0.34);
  background:
    linear-gradient(135deg, rgba(216, 191, 132, 0.92), rgba(184, 145, 79, 0.88)),
    rgba(216, 191, 132, 0.18);
  color: #14233c;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 233, 0.24),
    0 10px 22px rgba(3, 8, 18, 0.22);
  font-weight: 800;
}

.leo-ai-guide-card h3 {
  margin-bottom: 0.7rem;
  color: #f7f3ea;
}

.leo-ai-guide-card p {
  color: rgba(233, 238, 248, 0.86);
}

.leo-ai-guide-section [data-leo-ai-target].is-leo-ai-active {
  min-height: 348px;
  padding-bottom: 12.75rem;
  border-color: rgba(216, 191, 132, 0.46);
  background:
    radial-gradient(circle at 78% 20%, rgba(105, 165, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 37, 76, 0.7), rgba(8, 22, 48, 0.62)),
    rgba(8, 23, 48, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 22px 44px rgba(3, 8, 18, 0.32),
    0 0 0 1px rgba(216, 191, 132, 0.12),
    0 0 34px rgba(216, 191, 132, 0.08);
}

.leo-ai-guide-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.leo-ai-guide-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.leo-ai-guide-layer.is-fading {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.leo-ai-guide-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 122px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 1500ms linear, opacity 220ms ease, filter 220ms ease;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.24));
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.leo-ai-guide-stage:focus-visible {
  outline: 2px solid rgba(216, 191, 132, 0.75);
  outline-offset: 4px;
  border-radius: 24px;
}

.leo-ai-guide-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.leo-ai-guide-bubble {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(246px, calc(100vw - 40px));
  padding: 0.68rem 0.76rem;
  border: 1px solid rgba(207, 186, 141, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(244, 232, 209, 0.96)),
    rgba(255, 251, 242, 0.96);
  box-shadow: 0 16px 30px rgba(4, 10, 21, 0.18);
  color: #132640;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.42;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.leo-ai-guide-bubble.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .leo-ai-guide-card {
    min-height: 276px;
  }

  .leo-ai-guide-section [data-leo-ai-target].is-leo-ai-active {
    min-height: 356px;
    padding-bottom: 13rem;
  }

  .leo-ai-guide-stage {
    width: 72px;
    height: 106px;
  }

  .leo-ai-guide-bubble {
    max-width: min(246px, calc(100vw - 40px));
    font-size: 0.74rem;
  }
}

.leo-service-detail-guide-section {
  position: relative;
}

.leo-service-detail-guide-section .section-header {
  max-width: 820px;
}

.leo-service-detail-guide-grid {
  align-items: stretch;
}

.leo-service-detail-guide-card {
  position: relative;
  min-height: 250px;
  padding: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(216, 191, 132, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 16%, rgba(92, 151, 244, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(12, 31, 64, 0.62), rgba(7, 18, 40, 0.56)),
    rgba(8, 23, 48, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 18px 38px rgba(3, 8, 18, 0.22);
  color: #f7f3ea;
  backdrop-filter: blur(14px);
  transition:
    min-height 260ms ease,
    padding-bottom 260ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.leo-service-detail-guide-card .step-index {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(216, 191, 132, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(216, 191, 132, 0.92), rgba(184, 145, 79, 0.88));
  color: #14233c;
  font-weight: 800;
}

.leo-service-detail-guide-card h3 {
  margin-bottom: 0.7rem;
  color: #f7f3ea;
}

.leo-service-detail-guide-card p {
  color: rgba(233, 238, 248, 0.86);
}

.leo-service-detail-guide-card.is-leo-service-detail-active {
  min-height: 390px;
  padding-bottom: 13rem;
  border-color: rgba(216, 191, 132, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 22px 44px rgba(3, 8, 18, 0.3),
    0 0 0 1px rgba(216, 191, 132, 0.12);
}

.leo-service-detail-guide-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.leo-service-detail-guide-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.leo-service-detail-guide-layer.is-fading {
  opacity: 0;
  visibility: visible;
}

.leo-service-detail-guide-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 122px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 1500ms linear, opacity 220ms ease, filter 220ms ease;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.24));
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.leo-service-detail-guide-stage:focus-visible {
  outline: 2px solid rgba(216, 191, 132, 0.75);
  outline-offset: 4px;
  border-radius: 24px;
}

.leo-service-detail-guide-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.leo-service-detail-guide-bubble {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(246px, calc(100vw - 40px));
  padding: 0.68rem 0.76rem;
  border: 1px solid rgba(207, 186, 141, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(244, 232, 209, 0.96));
  box-shadow: 0 16px 30px rgba(4, 10, 21, 0.18);
  color: #132640;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.42;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.leo-service-detail-guide-bubble.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .leo-service-detail-guide-card {
    min-height: 270px;
  }

  .leo-service-detail-guide-card.is-leo-service-detail-active {
    min-height: 370px;
    padding-bottom: 13rem;
  }

  .leo-service-detail-guide-stage {
    width: 72px;
    height: 106px;
  }
}

.leo-contact-guide-section {
  position: relative;
}

.leo-contact-guide-section [data-leo-contact-target] {
  position: relative;
}

.leo-contact-guide-section [data-leo-contact-target="direction-card"].is-leo-contact-active,
.leo-contact-guide-section [data-leo-contact-target="intro"].is-leo-contact-active {
  min-height: 470px;
  padding-bottom: 13rem;
  border-color: rgba(216, 191, 132, 0.36);
  box-shadow:
    0 18px 34px rgba(5, 10, 18, 0.18),
    0 0 0 1px rgba(216, 191, 132, 0.1);
}

.leo-contact-guide-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.leo-contact-guide-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.leo-contact-guide-layer.is-fading {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.leo-contact-guide-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 122px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 980ms cubic-bezier(0.2, 0.72, 0.28, 1), opacity 220ms ease, filter 220ms ease;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.24));
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.leo-contact-guide-stage:focus-visible {
  outline: 2px solid rgba(216, 191, 132, 0.75);
  outline-offset: 4px;
  border-radius: 24px;
}

.leo-contact-guide-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.leo-contact-guide-bubble {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(300px, calc(100vw - 40px));
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(207, 186, 141, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(244, 232, 209, 0.96)),
    rgba(255, 251, 242, 0.96);
  box-shadow: 0 16px 30px rgba(4, 10, 21, 0.2);
  color: #132640;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.42;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.leo-contact-guide-bubble.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .leo-contact-guide-section [data-leo-contact-target="direction-card"].is-leo-contact-active,
  .leo-contact-guide-section [data-leo-contact-target="intro"].is-leo-contact-active {
    min-height: 464px;
    padding-bottom: 12.75rem;
  }

  .leo-contact-guide-stage {
    width: 72px;
    height: 106px;
    transition: transform 420ms ease, opacity 220ms ease, filter 220ms ease;
  }

  .leo-contact-guide-bubble {
    max-width: min(252px, calc(100vw - 40px));
    font-size: 0.74rem;
  }
}

.site-brand-bar .brand-mark::before,
.site-brand-bar .brand-mark::after {
  display: none;
}

.site-brand-bar .brand-mark::after {
  display: none;
}

.site-brand-bar .brand-mark__image {
  position: absolute;
  z-index: 1;
  top: 53%;
  left: 50%;
  width: 235%;
  height: 235%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.site-brand-bar .brand-text {
  min-width: 0;
}

.site-brand-bar .brand-text strong {
  font-size: clamp(1.35rem, 1.6vw, 1.7rem);
}

.site-brand-bar .brand-text > span {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(228, 232, 238, 0.72);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 2.25rem;
}

.section-header-centered {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header-centered .eyebrow {
  justify-content: center;
}

.section-header-centered p {
  margin-left: auto;
  margin-right: auto;
}

.section-header h1,
.section-header h2,
.section-header h3,
.hero-copy h1,
.page-hero-copy h1 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.section-header h2,
.section-header h3 {
  font-size: clamp(1.8rem, 2.4vw, 3rem);
}

.section-header p,
.hero-copy p,
.page-hero-copy p,
.lead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 62ch;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.btn-row.center-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #d4c39f, #b59a65);
  color: #07111f;
  box-shadow: 0 12px 30px rgba(181, 154, 101, 0.26);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(207, 186, 141, 0.22);
  color: rgba(244, 240, 232, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-ai-solutions {
  background: #0f2039;
  border-color: rgba(207, 186, 141, 0.22);
  color: rgba(244, 240, 232, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-ai-solutions:hover,
.btn-ai-solutions:focus-visible {
  background: #122744;
  border-color: rgba(207, 186, 141, 0.22);
  color: rgba(244, 240, 232, 0.94);
}

.btn-portfolio-solid {
  background: #0f2039;
  border-color: rgba(207, 186, 141, 0.22);
  color: rgba(244, 240, 232, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-portfolio-solid:hover,
.btn-portfolio-solid:focus-visible {
  background: #122744;
  border-color: rgba(207, 186, 141, 0.22);
  color: rgba(244, 240, 232, 0.94);
}

.btn-tertiary {
  padding: 0;
  min-height: auto;
  border-radius: 0;
  color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(22px);
  background:
    radial-gradient(circle at 50% -18%, rgba(30, 55, 90, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(16, 33, 57, 0.9), rgba(13, 28, 49, 0.84));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(3, 8, 16, 0.18);
}

.site-header {
  top: var(--brand-bar-h);
}

.site-header.is-scrolled {
  background:
    radial-gradient(circle at 50% -18%, rgba(32, 58, 94, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(17, 35, 60, 0.95), rgba(14, 29, 50, 0.9));
}

.nav-shell {
  position: relative;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-shell-brandless {
  gap: 1.6rem;
}

.nav-shell-brandless .nav-links {
  flex: 1 1 auto;
  justify-content: center;
  gap: 0.65rem;
}

.nav-shell-brandless .nav-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(207, 186, 141, 0.16), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(207, 186, 141, 0.32);
  border-radius: 10px 10px 10px 22px;
}

.brand-mark::after {
  inset: 16px 12px 12px 16px;
  border-color: rgba(108, 164, 255, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 0 0 auto;
  min-width: 290px;
}

.brand-text > strong,
.brand-text > span {
  display: block;
}

.brand-text strong {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0;
  align-self: flex-start;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}

.brand-text > span {
  color: rgba(228, 232, 238, 0.78);
  font-size: 0.72rem;
  white-space: nowrap;
  align-self: flex-start;
}

.brand-lion,
.brand-x {
  color: var(--text);
  display: inline;
}

.brand-code {
  color: #d4c39f;
  font-weight: 600;
  display: inline;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.site-header .nav-links a {
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.91rem;
  white-space: nowrap;
  color: #cfba8d;
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.is-active {
  color: #e2d1ab;
  background: rgba(207, 186, 141, 0.08);
  border-color: rgba(207, 186, 141, 0.18);
}

.site-header .nav-links a.is-active {
  background: linear-gradient(180deg, rgba(207, 186, 141, 0.16), rgba(207, 186, 141, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .nav-actions .btn {
  min-height: 34px;
  padding-inline: 0.84rem;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero {
  position: relative;
  padding: 4.6rem 0 5.2rem;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(8, 22, 45, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(4, 10, 21, 0.28), rgba(4, 11, 23, 0.44));
  pointer-events: none;
  z-index: 0;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-frame,
.page-hero-frame,
.panel,
.service-card,
.metric-card,
.trust-strip,
.process-card,
.case-card,
.testimonial-card,
.industry-card,
.contact-card,
.faq-item,
.detail-section,
.visual-card,
.stat-band,
.service-detail-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-frame {
  padding: 1.25rem;
  min-height: 620px;
}

.hero-copy {
  position: relative;
  z-index: 12;
  padding: 0;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 2.8vw, 3.6rem);
  line-height: 1.08;
  max-width: 21.2ch;
  text-wrap: pretty;
  white-space: nowrap;
}

.hero-line {
  display: block;
}

@media (min-width: 1081px) {
  .hero-line {
    transform: translateX(28px);
  }
}

.hero-copy .lead-accent {
  color: #e2d1ab;
  text-shadow: 0 0 28px rgba(207, 186, 141, 0.12);
}

.hero-annotation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  margin-top: 2.1rem;
}

body[data-page="home"] .hero {
  padding: 4.15rem 0 5.35rem;
  overflow: hidden;
}

body[data-page="home"] .hero .container {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(620px, 1.12fr);
  grid-template-areas: "copy leo";
  align-items: center;
  justify-items: stretch;
  align-content: center;
  column-gap: clamp(56px, 6vw, 96px);
  row-gap: 0;
  min-height: calc(100vh - var(--nav-h) - 7.2rem);
}

body[data-page="home"] .hero-main {
  grid-area: copy;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

body[data-page="home"] .hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: left;
  padding: 0;
  margin-top: -56px;
}

body[data-page="home"] .hero .hero-copy .eyebrow {
  justify-content: flex-start;
  margin-bottom: 1.2rem;
}

body[data-page="home"] .hero .hero-copy .eyebrow::before {
  width: 52px;
  background: linear-gradient(90deg, transparent, rgba(207, 186, 141, 0.9));
}

body[data-page="home"] .hero .hero-copy h1 {
  font-size: clamp(2.3rem, 3vw, 4.05rem);
  line-height: 1.06;
  max-width: none;
  margin-inline: 0;
  white-space: normal;
}

body[data-page="home"] .hero .hero-copy .lead-accent {
  color: #e2d1ab;
  text-shadow: 0 0 28px rgba(207, 186, 141, 0.12);
}

body[data-page="home"] .hero .hero-copy p {
  max-width: 56ch;
  margin: 1.1rem 0 0;
  font-size: 1.02rem;
  color: rgba(236, 239, 243, 0.86);
}

body[data-page="home"] .hero .hero-copy .btn-row {
  justify-content: flex-start;
  margin-top: 1.55rem;
}

body[data-page="home"] .hero-value-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem 1.25rem;
  margin-top: 1.45rem;
}

body[data-page="home"] .hero-value-point {
  display: inline-flex;
  align-items: center;
  color: rgba(225, 229, 236, 0.8);
  font-size: 0.98rem;
  line-height: 1.4;
}

body[data-page="home"] .hero-value-point strong {
  color: rgba(245, 240, 230, 0.94);
  margin-right: 0.42rem;
}

body[data-page="home"] .hero-leo-3d {
  grid-area: leo;
  align-self: center;
  justify-self: end;
  position: relative;
  width: min(100%, 760px);
  min-height: 560px;
  z-index: 1;
  margin-top: clamp(20px, 4vh, 56px);
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
  transform: none;
}

body[data-page="home"] .hero-leo-assistant {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
  gap: clamp(16px, 1.8vw, 26px);
  min-height: 560px;
  width: 100%;
}

body[data-page="home"] .hero-leo-3d__stage {
  position: relative;
  order: 2;
  flex: 0 1 clamp(360px, 28vw, 480px);
  min-width: 340px;
  min-height: 520px;
  transform: translateY(clamp(18px, 3vh, 36px));
  cursor: default;
  isolation: isolate;
  touch-action: manipulation;
  pointer-events: none;
}

body[data-page="home"] .hero-leo-3d__stage canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  display: block;
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

body[data-page="home"] .hero-leo-3d__loader {
  position: absolute;
  left: 50%;
  bottom: 18%;
  z-index: 2;
  padding: 0.58rem 0.86rem;
  border: 1px solid rgba(216, 191, 132, 0.22);
  border-radius: 999px;
  background: rgba(7, 18, 38, 0.72);
  color: rgba(245, 240, 230, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 220ms ease, visibility 220ms ease;
}

body[data-page="home"] .hero-leo-3d.is-loaded .hero-leo-3d__loader {
  opacity: 0;
  visibility: hidden;
}

body[data-page="home"] .hero-leo-3d.is-error .hero-leo-3d__loader {
  opacity: 0;
  visibility: hidden;
}

body:not([data-page="home"]) .page-hero .hero-leo-3d {
  position: relative;
  width: min(100%, 420px);
  min-height: 420px;
  justify-self: end;
  align-self: center;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
}

body:not([data-page="home"]) .page-hero .hero-leo-assistant {
  min-height: 420px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not([data-page="home"]) .page-hero .hero-leo-3d__stage {
  position: relative;
  width: min(100%, 360px);
  min-height: 390px;
  pointer-events: none;
}

body:not([data-page="home"]) .page-hero .hero-leo-3d__stage canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
}

body:not([data-page="home"]) .page-hero .hero-leo-3d__loader {
  position: absolute;
  left: 50%;
  bottom: 18%;
  z-index: 2;
  padding: 0.58rem 0.86rem;
  border: 1px solid rgba(216, 191, 132, 0.22);
  border-radius: 999px;
  background: rgba(7, 18, 38, 0.72);
  color: rgba(245, 240, 230, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 220ms ease, visibility 220ms ease;
}

body:not([data-page="home"]) .page-hero .hero-leo-3d.is-loaded .hero-leo-3d__loader,
body:not([data-page="home"]) .page-hero .hero-leo-3d.is-error .hero-leo-3d__loader {
  opacity: 0;
  visibility: hidden;
}

body:not([data-page="home"]) .page-hero .leo-response-bubble {
  display: none;
}

body:not([data-page="home"]) .page-hero .hero-leo-assistant--page {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body:not([data-page="home"]) .page-hero .leo-page-guide__bubble--over-3d {
position: absolute;
top: -10px;
left: 40%;
right: auto;
width: min(300px, 82vw);
max-width: 300px;
max-height: min(390px, calc(100vh - 260px));
transform: translateX(-50%);
z-index: 5;
margin: 0;
pointer-events: auto;
overflow: visible;
}

body:not([data-page="home"]) .page-hero .leo-page-guide__bubble--over-3d::after {
  left: 50%;
  right: auto;
  bottom: -10px;
  transform: translateX(-50%) rotate(45deg);
}

body:not([data-page="home"]) .page-hero .hero-leo-assistant--page .hero-leo-3d__stage {
  margin-top: 88px;
}

body[data-page="services"] .page-hero .leo-page-guide__bubble--over-3d {
  display: flex;
  flex-direction: column;
  top: -28px;
  left: 26%;
  width: min(360px, 80vw);
  max-width: 360px;
  height: min(520px, calc(100vh - 250px));
  max-height: min(520px, calc(100vh - 250px));
  overflow: hidden;
  transform: translateX(-108%);
}

body[data-page="services"] .page-hero .leo-page-guide__bubble--over-3d::after {
  left: auto;
  right: -9px;
  bottom: 42px;
  transform: rotate(45deg);
}

body[data-page="services"] .page-hero .hero-leo-assistant--page .hero-leo-3d__stage {
  margin-top: 132px;
}

@media (min-width: 769px) {
  body:not([data-page="home"]):not([data-page="services"]) .page-hero .hero-leo-assistant--page {
    min-height: 500px;
    align-items: flex-end;
  }

  body:not([data-page="home"]):not([data-page="services"]) .page-hero .leo-page-guide__bubble--over-3d {
    display: flex;
    flex-direction: column;
    top: -28px;
    left: 26%;
    width: min(360px, 80vw);
    max-width: 360px;
    height: min(520px, calc(100vh - 250px));
    max-height: min(520px, calc(100vh - 250px));
    overflow: hidden;
    transform: translateX(-108%);
  }

  body:not([data-page="home"]):not([data-page="services"]) .page-hero .leo-page-guide__bubble--over-3d::after {
    left: auto;
    right: -9px;
    bottom: 42px;
    transform: rotate(45deg);
  }

  body:not([data-page="home"]):not([data-page="services"]) .page-hero .hero-leo-assistant--page .hero-leo-3d__stage {
    position: relative;
    z-index: 1;
    margin-top: 132px;
  }
}

body[data-page="home"] .leo-response-bubble {
  position: relative;
  order: 1;
  flex: 0 0 clamp(250px, 18vw, 300px);
  align-self: center;
  z-index: 4;
  width: clamp(250px, 18vw, 300px);
  padding: 18px;
  border: 1px solid rgba(216, 191, 132, 0.36);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(10, 22, 43, 0.94), rgba(7, 16, 32, 0.88)),
    rgba(7, 18, 38, 0.9);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0) scale(0.98);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 260ms ease;
  pointer-events: none;
}

body[data-page="home"] .leo-response-bubble.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.leo-chat-bubble {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="home"] .leo-response-bubble--chat {
  max-height: min(560px, calc(100vh - 180px));
}

body:not([data-page="home"]) .page-hero .leo-chat-bubble {
  height: min(520px, calc(100vh - 250px));
  max-height: min(520px, calc(100vh - 250px));
}

body[data-page="home"] .leo-response-bubble::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -1px;
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 191, 132, 0.72), transparent);
  box-shadow: 0 0 18px rgba(216, 191, 132, 0.24);
}

body[data-page="home"] .leo-response-bubble p {
  margin: 0 0 0.9rem;
  color: rgba(245, 240, 230, 0.94);
  font-size: 0.94rem;
  line-height: 1.55;
}

body[data-page="home"] .leo-response-bubble__message {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

body[data-page="home"] .leo-response-bubble__message p:last-child {
  margin-bottom: 0.9rem;
}

body[data-page="home"] .leo-response-bubble__actions {
  display: grid;
  gap: 0.5rem;
}

body[data-page="home"] .leo-response-bubble__cta {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0.62rem 0.82rem;
  border: 1px solid rgba(216, 191, 132, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 240, 230, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  opacity: 0.72;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

body[data-page="home"] .leo-response-bubble__cta::after {
  content: ">";
  margin-left: 0.75rem;
  color: rgba(216, 191, 132, 0.7);
  font-weight: 800;
}

body[data-page="home"] .leo-response-bubble__cta.is-highlighted {
  border-color: rgba(216, 191, 132, 0.58);
  background: rgba(216, 191, 132, 0.12);
  color: rgba(255, 250, 240, 0.98);
  opacity: 1;
  transform: translateX(-3px);
  box-shadow:
    0 0 0 1px rgba(216, 191, 132, 0.08),
    0 0 28px rgba(216, 191, 132, 0.22);
}

body[data-page="home"] .leo-response-bubble__cta.is-revealed {
  opacity: 1;
}

body[data-page="home"] .leo-response-bubble.is-sequencing .leo-response-bubble__cta {
  pointer-events: none;
}

body[data-page="home"] .leo-response-bubble__cta.is-disabled {
  color: rgba(241, 236, 227, 0.36);
  cursor: not-allowed;
}

body[data-page="home"] .leo-response-bubble__cta.is-disabled::after {
  content: "Soon";
  color: rgba(241, 236, 227, 0.32);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  body[data-page="home"] .hero {
    padding: 4rem 0 5rem;
  }

  body[data-page="home"] .hero-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "leo";
    justify-items: center;
    gap: 2.4rem;
    min-height: auto;
  }

  body[data-page="home"] .hero-main {
    justify-content: center;
  }

  body[data-page="home"] .hero .hero-copy {
    max-width: 100%;
    text-align: center;
    margin-top: 0;
  }

  body[data-page="home"] .hero .hero-copy .eyebrow {
    justify-content: center;
  }

  body[data-page="home"] .hero .hero-copy h1 {
    max-width: 14ch;
    width: auto;
    font-size: clamp(2rem, 7.2vw, 3rem);
    white-space: normal;
  }

  body[data-page="home"] .hero .hero-copy p {
    max-width: 100%;
    margin-inline: auto;
  }

  body[data-page="home"] .hero .hero-copy .btn-row,
  body[data-page="home"] .hero-value-points {
    justify-content: center;
  }

  body[data-page="home"] .hero-leo-3d {
    justify-self: center;
    width: min(100%, 420px);
    min-width: min(100%, 420px);
    min-height: 0;
    margin-top: 0;
    transform: none;
  }

  body[data-page="home"] .hero-leo-assistant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: 0;
    width: 100%;
  }

  body[data-page="home"] .hero-leo-3d__stage {
    order: 1;
    flex: 0 0 auto;
    width: min(100%, 420px);
    min-width: min(100%, 420px);
    min-height: 420px;
    transform: none;
  }

  body[data-page="home"] .leo-response-bubble {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    order: 2;
    flex: 0 1 auto;
    width: min(100%, 390px);
    margin-top: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
  }

  body[data-page="home"] .leo-response-bubble.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

}

@media (max-width: 640px) {
  body[data-page="home"] .hero {
    padding-top: 3.1rem;
  }

  body[data-page="home"] .hero .hero-copy h1 {
    max-width: min(100%, 13.5ch);
    font-size: clamp(1.72rem, 8.4vw, 2.35rem);
    line-height: 1.09;
    white-space: normal;
  }

  body[data-page="home"] .hero .hero-copy p {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  body[data-page="home"] .hero .hero-copy .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="home"] .hero .hero-copy .btn-row .btn {
    width: 100%;
  }

  body[data-page="home"] .hero-value-points {
    gap: 0.7rem;
  }

  body[data-page="home"] .hero-leo-3d {
    width: min(100%, 320px);
    min-width: 280px;
    min-height: 280px;
  }

  body[data-page="home"] .hero-leo-3d__stage {
    min-width: 280px;
  }
}

.hero-shell .mini-chip {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  position: relative;
  color: rgba(225, 229, 236, 0.8);
}

.hero-shell .mini-chip::after {
  content: "";
  width: 30px;
  height: 1px;
  margin-left: 0.8rem;
  background: linear-gradient(90deg, rgba(207, 186, 141, 0.45), transparent);
}

.hero-shell .mini-chip:last-child::after {
  display: none;
}

.mini-chip,
.trust-chip,
.tag,
.case-tag,
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
}

.mini-chip strong,
.stat-pill strong {
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  align-content: end;
}

.hero-orbit {
  position: absolute;
  inset: 4% 5% auto auto;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(108, 164, 255, 0.2);
  opacity: 0.7;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 12%;
  border: 1px solid rgba(207, 186, 141, 0.18);
}

.hero-orbit::after {
  inset: 30%;
}

.visual-card {
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(10, 24, 42, 0.88), rgba(8, 18, 31, 0.85));
}

.visual-card h3,
.service-card h3,
.case-card h3,
.testimonial-card h3,
.contact-card h3,
.detail-section h3,
.faq-item h3,
.service-detail-card h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
}

.interface-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.interface-panel {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.interface-panel strong {
  display: block;
  margin-bottom: 0.5rem;
}

.interface-list,
.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.interface-list li,
.simple-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
}

.interface-list li span:last-child,
.simple-list li span:last-child {
  color: var(--text);
}

.trust-strip {
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.15rem;
}

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

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

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

.service-card,
.metric-card,
.industry-card,
.process-card,
.service-detail-card {
  padding: 1.4rem;
}

.service-group-grid {
  gap: 1.35rem;
}

.service-group-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 100%;
  padding: 1.55rem 1.55rem 10.6rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.service-group-card > :not(.leo-walk-track) {
  position: relative;
  z-index: 3;
}

.service-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.service-group-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: start;
  color: var(--muted);
}

.service-group-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.42rem;
  background: linear-gradient(135deg, rgba(214, 181, 111, 0.95), rgba(108, 164, 255, 0.85));
  box-shadow: 0 0 16px rgba(214, 181, 111, 0.22);
}

.service-group-card .btn {
  margin-top: 0.25rem;
  justify-self: start;
}

.leo-walk-track {
  position: absolute;
  right: 0.9rem;
  bottom: 0.65rem;
  width: clamp(132px, 12vw, 168px);
  display: flex;
  justify-content: flex-end;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

.leo-walk-bubble {
  position: absolute;
  left: -42px;
  top: -154px;
  width: 214px;
  max-width: 214px;
  padding: 0.88rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(214, 181, 111, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.96), rgba(247, 237, 215, 0.94)),
    rgba(255, 251, 242, 0.96);
  box-shadow: 0 16px 32px rgba(8, 16, 28, 0.14);
  color: #132640;
  font-size: 0.82rem;
  line-height: 1.58;
  letter-spacing: 0.002em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transform-origin: right bottom;
  transition: opacity 220ms ease, transform 240ms ease, visibility 220ms ease;
  pointer-events: none;
  z-index: 4;
}

.leo-walk-bubble::before {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(247, 237, 215, 0.96);
  box-shadow:
    -12px 12px 0 -2px rgba(247, 237, 215, 0.92),
    -22px 22px 0 -4px rgba(247, 237, 215, 0.88);
  opacity: 0.96;
}

.leo-walk-bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(214, 181, 111, 0.22);
  box-shadow:
    -12px 12px 0 -2px rgba(214, 181, 111, 0.16),
    -22px 22px 0 -4px rgba(214, 181, 111, 0.12);
  opacity: 0.9;
}

.leo-walk-bubble.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body[data-page="services"][data-base="."] .service-group-card.is-highlighted .leo-walk-bubble.is-visible,
body[data-page="services"][data-base="."] .service-group-card.is-active .leo-walk-bubble.is-visible,
body[data-page="services"][data-base="."] .service-group-card.is-open .leo-walk-bubble.is-visible {
  animation: leoBubblePartialFollow 3.2s linear both;
}

@keyframes leoBubblePartialFollow {
  0%,
  38% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(142px, 0);
  }
}

.leo-walk-avatar {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.24));
  transform: translateY(0);
}

body[data-page="services"][data-base="."] .service-group-card.is-highlighted,
body[data-page="services"][data-base="."] .service-group-card.is-active,
body[data-page="services"][data-base="."] .service-group-card.is-open {
  min-height: 35rem;
  padding-bottom: 17rem;
  border-color: rgba(214, 181, 111, 0.42);
  box-shadow:
    0 18px 34px rgba(5, 10, 18, 0.22),
    0 0 0 1px rgba(214, 181, 111, 0.18),
    0 0 28px rgba(214, 181, 111, 0.16);
}

body[data-page="services"][data-base="."] .service-group-card.is-highlighted .leo-walk-track,
body[data-page="services"][data-base="."] .service-group-card.is-active .leo-walk-track,
body[data-page="services"][data-base="."] .service-group-card.is-open .leo-walk-track {
  opacity: 1;
  visibility: visible;
  animation: leoCardWalk 3.2s linear both;
}

@keyframes leoCardWalk {
  0% {
    transform: translate3d(42px, 0, 0);
  }

  100% {
    transform: translate3d(-236px, 0, 0);
  }
}

.leo-guide-layer {
  display: none;
}

@media (min-width: 1024px) {
  body[data-page="services"][data-leo-guide="true"] .leo-guide-layer {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-layer.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .leo-guide-stage {
    position: absolute;
    left: 0;
    top: 0;
    width: 118px;
    height: 168px;
    opacity: 0;
    transform: translate3d(calc(100vw - 150px), 58vh, 0);
    transform-origin: center bottom;
    transition: transform 1800ms linear, opacity 220ms ease;
    will-change: transform;
  }

  .leo-guide-layer.is-visible .leo-guide-stage {
    opacity: 1;
  }

  .leo-guide-stage canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.3));
    pointer-events: none;
  }

  .leo-guide-bubble {
    position: absolute;
    left: 0;
    top: 0;
    width: min(280px, calc(100vw - 48px));
    max-height: 168px;
    overflow: auto;
    padding: 0.82rem 0.92rem;
    border: 1px solid rgba(207, 186, 141, 0.34);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 251, 242, 0.97), rgba(244, 232, 209, 0.95)),
      rgba(255, 251, 242, 0.96);
    box-shadow: 0 18px 38px rgba(4, 10, 21, 0.18);
    color: #132640;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.44;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
  }

  .leo-guide-bubble[hidden] {
    display: none;
  }

  .leo-guide-bubble.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .leo-guide-bubble::after {
    content: "";
    position: absolute;
    right: 32px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    border-right: 1px solid rgba(207, 186, 141, 0.34);
    border-bottom: 1px solid rgba(207, 186, 141, 0.34);
    border-bottom-right-radius: 5px;
    background: rgba(244, 232, 209, 0.96);
    transform: rotate(45deg);
  }

  body[data-page="services"][data-base="."][data-leo-guide="true"] .service-group-card.leo-guide-highlight {
    min-height: 35rem;
    padding-bottom: 17rem;
    border-color: rgba(207, 186, 141, 0.46);
    box-shadow:
      0 18px 34px rgba(5, 10, 18, 0.2),
      0 0 0 1px rgba(207, 186, 141, 0.18),
      0 0 28px rgba(108, 164, 255, 0.12);
  }
}

@media (max-width: 1023px) {
  body[data-page="services"] .leo-guide-layer {
    display: none !important;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-layer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-layer.is-visible {
    opacity: 1;
    visibility: visible;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-stage {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(86px, 23vw, 104px);
    height: clamp(124px, 34vw, 148px);
    opacity: 0;
    transform: translate3d(calc(100vw - 128px), 62vh, 0);
    transform-origin: center bottom;
    transition: transform 980ms linear, opacity 220ms ease;
    will-change: transform;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-layer.is-visible .leo-guide-stage {
    opacity: 1;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-stage canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.28));
    pointer-events: none;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-bubble {
    position: absolute;
    left: 0;
    top: 0;
    width: min(260px, calc(100vw - 48px));
    max-height: 136px;
    overflow: auto;
    padding: 0.78rem 0.86rem;
    border: 1px solid rgba(207, 186, 141, 0.34);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(244, 232, 209, 0.96)),
      rgba(255, 251, 242, 0.96);
    box-shadow: 0 16px 30px rgba(4, 10, 21, 0.2);
    color: #132640;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.42;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-bubble[hidden] {
    display: none;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-bubble.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-bubble::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-right: 1px solid rgba(207, 186, 141, 0.34);
    border-bottom: 1px solid rgba(207, 186, 141, 0.34);
    border-bottom-right-radius: 4px;
    background: rgba(244, 232, 209, 0.96);
    transform: rotate(45deg);
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-portal {
    position: absolute;
    left: 0;
    top: 0;
    width: 128px;
    height: 64px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.94);
    transition: opacity 220ms ease, transform 260ms ease, visibility 220ms ease;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-portal::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 2px;
    height: 34px;
    border: 1px solid rgba(207, 186, 141, 0.36);
    border-radius: 50%;
    background:
      radial-gradient(ellipse at center, rgba(97, 156, 255, 0.18), rgba(97, 156, 255, 0.02) 62%, transparent 70%),
      linear-gradient(90deg, rgba(207, 186, 141, 0.18), rgba(116, 174, 255, 0.18));
    box-shadow:
      0 0 22px rgba(100, 160, 255, 0.16),
      0 0 18px rgba(207, 186, 141, 0.12);
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-trail {
    position: absolute;
    left: 0;
    top: 0;
    width: 142px;
    height: 42px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(5px) scaleX(0.82);
    transform-origin: left center;
    transition: opacity 180ms ease, transform 260ms ease, visibility 180ms ease;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-trail::before {
    content: "";
    position: absolute;
    inset: 12px 8px 6px 0;
    border-radius: 999px;
    background:
      linear-gradient(90deg, rgba(207, 186, 141, 0), rgba(207, 186, 141, 0.22) 34%, rgba(105, 165, 255, 0.15) 72%, rgba(105, 165, 255, 0)),
      radial-gradient(ellipse at 72% 50%, rgba(105, 165, 255, 0.13), transparent 66%);
    filter: blur(5px);
    box-shadow:
      0 0 16px rgba(105, 165, 255, 0.08),
      0 0 12px rgba(207, 186, 141, 0.08);
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-portal.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-trail.is-active {
    opacity: 0.64;
    visibility: visible;
    transform: translateY(0) scaleX(1);
    animation: leoGuideTrailFade 980ms ease-out both;
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-portal.is-fading {
    opacity: 0.26;
    visibility: visible;
    transform: translateY(3px) scale(0.98);
  }

  body[data-page="services"][data-leo-guide="true"] .leo-guide-trail.is-fading {
    opacity: 0;
    visibility: visible;
    transform: translateY(2px) scaleX(0.92);
  }

  body[data-page="services"][data-base="."][data-leo-guide="true"] .service-group-card.leo-guide-highlight {
    min-height: 32rem;
    padding-bottom: 16.5rem;
    border-color: rgba(207, 186, 141, 0.46);
    box-shadow:
      0 16px 28px rgba(5, 10, 18, 0.2),
      0 0 0 1px rgba(207, 186, 141, 0.16),
      0 0 24px rgba(108, 164, 255, 0.1);
  }

  @keyframes leoGuideTrailFade {
    0% {
      opacity: 0;
      transform: translateY(5px) scaleX(0.72);
    }

    28% {
      opacity: 0.62;
      transform: translateY(0) scaleX(1);
    }

    100% {
      opacity: 0.18;
      transform: translateY(1px) scaleX(0.92);
    }
  }

}

.service-card p,
.metric-card p,
.industry-card p,
.process-card p,
.case-card p,
.testimonial-card p,
.contact-card p,
.faq-item p,
.detail-section p,
.service-detail-card p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.card-topline {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.2rem;
}

.dark-panel {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(108, 164, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(108, 164, 255, 0.08), transparent 50%),
    rgba(6, 12, 23, 0.92);
}

.stat-band {
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-value {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  line-height: 1.04;
  margin-bottom: 0.4rem;
}

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

.step-index {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 193, 144, 0.28);
  background: linear-gradient(135deg, #d4c39f, #b59a65);
  color: #17263d;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 233, 0.16),
    0 10px 22px rgba(6, 16, 34, 0.18);
  margin-bottom: 1rem;
}

.case-card,
.testimonial-card,
.contact-card,
.faq-item,
.detail-section {
  padding: 1.5rem;
}

body[data-page="portfolio"] .case-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.case-visual {
  position: relative;
  display: grid;
  height: 230px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(135deg, rgba(108, 164, 255, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    #0a1627;
  margin-bottom: 1.1rem;
}

.case-visual::before,
.case-visual::after {
  position: absolute;
  content: "";
}

.case-visual::before {
  width: 150%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(-35deg);
}

.case-visual__mark {
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(5, 15, 29, 0.68);
  color: #f4f0e8;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.case-visual__phone {
  position: absolute;
  right: 16%;
  bottom: -18px;
  width: 82px;
  height: 172px;
  border: 6px solid rgba(244, 240, 232, 0.86);
  border-radius: 18px 18px 0 0;
  background: linear-gradient(160deg, rgba(115, 190, 255, 0.72), rgba(12, 38, 66, 0.94));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.case-visual__phone::before,
.case-visual__phone::after {
  position: absolute;
  right: 13px;
  left: 13px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.58);
  content: "";
}

.case-visual__phone::before { top: 32px; }
.case-visual__phone::after { top: 48px; width: 42px; }

.case-visual--topothessia { background: linear-gradient(145deg, #0f2e53, #0a1627 70%); }
.case-visual--technicianfind { background: linear-gradient(145deg, #28344e, #0a1627 70%); }
.case-visual--vibe { background: linear-gradient(145deg, #3f2856, #0a1627 70%); }
.case-visual--verdon { background: linear-gradient(145deg, #1c493c, #0a1627 70%); }
.case-visual--ekep { background: linear-gradient(145deg, #1f3d64, #0a1627 70%); }

.case-visual__pin,
.case-visual__tools,
.case-visual__calendar,
.case-visual__document,
.case-visual__check,
.case-visual__leaf,
.case-visual__signal {
  position: absolute;
  z-index: 1;
}

.case-visual__pin { left: 18%; top: 28%; width: 38px; height: 38px; border: 6px solid #d8c190; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.case-visual__tools { left: 17%; top: 32%; width: 58px; height: 12px; border-radius: 99px; background: #d8c190; transform: rotate(-42deg); }
.case-visual__tools::after { position: absolute; top: -12px; left: 20px; width: 20px; height: 20px; border: 6px solid #d8c190; border-radius: 50%; content: ""; }
.case-visual__calendar { left: 16%; top: 27%; width: 70px; height: 68px; border: 2px solid rgba(244, 240, 232, 0.75); border-radius: 10px; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(244, 240, 232, 0.18) 14px 16px), repeating-linear-gradient(0deg, transparent 0 14px, rgba(244, 240, 232, 0.18) 14px 16px); }
.case-visual__calendar::before { position: absolute; top: 12px; right: 0; left: 0; height: 2px; background: rgba(244, 240, 232, 0.7); content: ""; }
.case-visual__document { left: 18%; top: 22%; width: 90px; height: 116px; border: 2px solid rgba(244, 240, 232, 0.78); border-radius: 8px; background: linear-gradient(rgba(255,255,255,.12) 0 0) 16px 32px / 55px 7px no-repeat, linear-gradient(rgba(255,255,255,.12) 0 0) 16px 51px / 42px 7px no-repeat, linear-gradient(rgba(255,255,255,.12) 0 0) 16px 70px / 55px 7px no-repeat; }
.case-visual__check { left: 38%; top: 54%; width: 30px; height: 16px; border-bottom: 5px solid #d8c190; border-left: 5px solid #d8c190; transform: rotate(-45deg); }
.case-visual__leaf { width: 64px; height: 28px; border: 2px solid rgba(206, 234, 191, 0.82); border-radius: 100% 0 100% 0; }
.case-visual__leaf--one { left: 18%; top: 33%; transform: rotate(-28deg); }
.case-visual__leaf--two { right: 17%; top: 25%; transform: rotate(132deg); }

.case-visual--leo { background: radial-gradient(circle at 62% 45%, rgba(207, 186, 141, 0.22), transparent 36%), #0a1627; }
.case-visual--leo::before { display: none; }
.case-visual--leo img { position: relative; z-index: 1; width: min(230px, 75%); height: 100%; object-fit: contain; object-position: center 63%; }
.case-visual__signal { width: 78px; height: 78px; border: 1px solid rgba(216, 193, 144, 0.54); border-radius: 50%; animation: case-signal 2.4s ease-out infinite; }

@keyframes case-signal { 0% { opacity: 0.7; transform: scale(0.45); } 100% { opacity: 0; transform: scale(1.6); } }

@media (prefers-reduced-motion: reduce) {
  .case-visual__signal { animation: none; }
}

.case-status,
.case-cta {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.case-cta {
  width: fit-content;
  border: 0;
  border-bottom: 1px solid rgba(216, 193, 144, 0.55);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.case-cta:hover,
.case-cta:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

.case-cta:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Portfolio project cards and gallery */
.portfolio-featured-grid,
.portfolio-project-grid {
  display: grid;
  align-items: stretch;
  gap: 1.25rem;
}

.portfolio-featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.portfolio-project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-featured-grid[hidden],
.portfolio-project-grid[hidden] {
  display: none !important;
}

body[data-page="portfolio"] .case-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.15rem;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(8, 19, 33, 0.76);
  box-shadow: 0 16px 38px rgba(1, 8, 18, 0.18);
}

body[data-page="portfolio"] .case-card--lead {
  padding: 1.25rem;
  border-color: rgba(216, 193, 144, 0.16);
}

.case-visual-shell {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 1.1rem;
}

body[data-page="portfolio"] .case-visual {
  width: 100%;
  height: 212px;
  margin: 0;
  padding: 0;
  border-color: rgba(216, 193, 144, 0.14);
  border-radius: 12px;
  background: #081321;
  color: inherit;
}

body[data-page="portfolio"] .case-card--lead .case-visual {
  height: 232px;
}

body[data-page="portfolio"] button.case-visual { cursor: zoom-in; }

body[data-page="portfolio"] .case-visual::before {
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 24px;
  background: rgba(8, 19, 33, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transform: none;
}

body[data-page="portfolio"] .case-visual--desktop::after {
  top: 9px;
  left: 12px;
  z-index: 3;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8c190;
  box-shadow: 11px 0 0 rgba(216, 193, 144, 0.5), 22px 0 0 rgba(216, 193, 144, 0.22);
}

body[data-page="portfolio"] .case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 280ms ease;
}

body[data-page="portfolio"] .case-visual--gallery:hover img,
body[data-page="portfolio"] .case-visual--gallery:focus-visible img {
  transform: scale(1.025);
}

body[data-page="portfolio"] .case-visual--mobile {
  background: #0b192a;
}

body[data-page="portfolio"] .case-visual--mobile::before,
body[data-page="portfolio"] .case-visual--mobile::after {
  display: none;
}

body[data-page="portfolio"] .case-visual--mobile img {
  position: relative;
  z-index: 1;
  width: min(116px, 52%);
  height: calc(100% - 12px);
  margin-top: 12px;
  border: 3px solid rgba(244, 240, 232, 0.76);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #05080d;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
}

.case-featured-badge {
  position: absolute;
  top: 6px;
  left: 46px;
  z-index: 4;
  display: inline-flex;
  padding: 0.34rem 0.52rem;
  border: 1px solid rgba(216, 193, 144, 0.28);
  border-radius: 6px;
  background: rgba(7, 17, 30, 0.88);
  color: #dbc798;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.case-visual-shell:has(.case-visual--mobile) .case-featured-badge {
  top: 12px;
  left: 12px;
}

.case-card__body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

body[data-page="portfolio"] .case-card h3 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: clamp(1.3rem, 1.55vw, 1.48rem);
  line-height: 1.15;
}

body[data-page="portfolio"] .case-card--lead h3 {
  font-size: clamp(1.42rem, 1.8vw, 1.62rem);
}

body[data-page="portfolio"] .case-meta {
  gap: 0.4rem;
  margin: 0 0 0.8rem;
}

body[data-page="portfolio"] .case-tag {
  padding: 0.34rem 0.58rem;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(222, 228, 237, 0.72);
  font-size: 0.77rem;
  line-height: 1.2;
}

body[data-page="portfolio"] .case-description {
  margin: 0 0 0.75rem;
  color: rgba(222, 228, 237, 0.72);
  font-size: 0.96rem;
  line-height: 1.58;
}

body[data-page="portfolio"] .case-stack {
  margin: 0 0 1.15rem !important;
  color: rgba(216, 193, 144, 0.68) !important;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.case-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.case-action--primary {
  border-color: rgba(216, 193, 144, 0.48);
  background: #cfb779;
  color: #091422;
}

.case-action--primary:hover,
.case-action--primary:focus-visible {
  background: #dec88f;
  color: #07111e;
  transform: translateY(-1px);
}

.case-action--secondary {
  border-color: rgba(216, 193, 144, 0.24);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(244, 240, 232, 0.9);
}

.case-action--secondary:hover,
.case-action--secondary:focus-visible {
  border-color: rgba(216, 193, 144, 0.52);
  background: rgba(216, 193, 144, 0.08);
  color: var(--text);
}

.case-action--tertiary {
  min-height: 42px;
  padding-right: 0.35rem;
  padding-left: 0.35rem;
  color: #d8c190;
}

.case-action--tertiary:hover,
.case-action--tertiary:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.case-action:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.case-status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.45rem 0.2rem;
  color: rgba(222, 228, 237, 0.58);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

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

@media (max-width: 700px) {
  .portfolio-featured-grid,
  .portfolio-project-grid { grid-template-columns: 1fr; }
  .portfolio-featured-grid { margin-bottom: 1rem; }
  .portfolio-filters {
    flex-wrap: nowrap;
    margin-right: calc(var(--container-pad) * -1);
    margin-left: calc(var(--container-pad) * -1);
    padding: 0 var(--container-pad) 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .portfolio-filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; }
  .case-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-actions .case-status,
  .case-actions .case-action--tertiary { grid-column: 1 / -1; }
  body[data-page="portfolio"] .case-card--lead .case-visual,
  body[data-page="portfolio"] .case-visual { height: 205px; }
}

@media (max-width: 430px) {
  .case-actions { grid-template-columns: 1fr; }
  .case-actions .case-status,
  .case-actions .case-action--tertiary { grid-column: auto; }
  .case-action { width: 100%; }
}

.portfolio-lightbox-open { overflow: hidden; }

body > .portfolio-lightbox {
  position: fixed;
  z-index: 50000;
  inset: 0;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  place-items: center;
  padding: clamp(12px, 2vw, 28px);
  overflow: hidden;
  background: rgba(2, 8, 20, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 180ms ease;
}

body > .portfolio-lightbox[hidden] { display: none !important; }
body > .portfolio-lightbox.is-open { opacity: 1; }

.portfolio-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.portfolio-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(96vw, 1600px);
  height: min(94dvh, 1000px);
  max-width: 1600px;
  max-height: 94dvh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(216, 193, 144, 0.28);
  border-radius: 20px;
  background: #081321;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
  transform: scale(0.985);
  transition: transform 180ms ease;
}

.portfolio-lightbox.is-open .portfolio-lightbox__dialog { transform: scale(1); }

.portfolio-lightbox__toolbar,
.portfolio-lightbox__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(9, 21, 36, 0.94);
}

.portfolio-lightbox__toolbar { min-height: 64px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.portfolio-lightbox__footer { min-height: 34px; justify-content: center; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--muted); font-size: 0.82rem; }
.portfolio-lightbox__eyebrow { margin: 0 0 0.1rem; color: var(--gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.portfolio-lightbox__toolbar h2 { margin: 0; color: var(--text); font-size: clamp(0.95rem, 1.4vw, 1.2rem); }

.portfolio-lightbox__stage {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  overflow: hidden;
  padding: 1rem 4.75rem;
}

.portfolio-lightbox__figure { display: grid; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; margin: 0; gap: 0.6rem; justify-items: center; }
.portfolio-lightbox__image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(94dvh - 150px); object-fit: contain; object-position: center; opacity: 1; transition: opacity 150ms ease; }
.portfolio-lightbox__image.is-loading { opacity: 0.25; }
.portfolio-lightbox__caption { color: var(--muted); font-size: 0.82rem; text-align: center; }

.portfolio-lightbox__close,
.portfolio-lightbox__nav {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(216, 193, 144, 0.34);
  border-radius: 50%;
  background: rgba(8, 19, 33, 0.9);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.portfolio-lightbox__close { flex: 0 0 auto; font-size: 1.6rem; line-height: 1; }
.portfolio-lightbox__nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); font-size: 1.15rem; }
.portfolio-lightbox__nav--prev { left: 1rem; }
.portfolio-lightbox__nav--next { right: 1rem; }
.portfolio-lightbox__close:hover,
.portfolio-lightbox__close:focus-visible,
.portfolio-lightbox__nav:hover,
.portfolio-lightbox__nav:focus-visible { border-color: var(--gold); color: var(--gold); }

@supports not (height: 100dvh) {
  body > .portfolio-lightbox { height: 100vh; }
  .portfolio-lightbox__dialog { height: min(94vh, 1000px); max-height: 94vh; }
  .portfolio-lightbox__image { max-height: calc(94vh - 150px); }
}

@media (prefers-reduced-motion: reduce) {
  body > .portfolio-lightbox,
  .portfolio-lightbox__dialog,
  .portfolio-lightbox__image { transition: none; }
}

@media (max-width: 640px) {
  body > .portfolio-lightbox { padding: 8px; }
  .portfolio-lightbox__dialog { width: 100%; height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .portfolio-lightbox__toolbar { min-height: 56px; padding: 0.55rem 0.75rem; }
  .portfolio-lightbox__footer { min-height: 30px; padding: 0.35rem 0.75rem; }
  .portfolio-lightbox__stage { padding: 0.75rem 3.5rem; }
  .portfolio-lightbox__nav--prev { left: 0.4rem; }
  .portfolio-lightbox__nav--next { right: 0.4rem; }
  .portfolio-lightbox__image { max-height: calc(100dvh - 128px); }
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.industries {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
}

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

.cta-banner {
  padding: 2.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid rgba(126, 160, 214, 0.16);
  background:
    linear-gradient(180deg, rgba(33, 64, 104, 0.18), transparent 40%),
    linear-gradient(180deg, #132744 0%, #10223c 56%, #0d1d34 100%);
  box-shadow: var(--shadow);
}

body[data-page="home"] .trust-strip,
body[data-page="home"] .process-card,
body[data-page="home"] .service-detail-card {
  background: linear-gradient(135deg, #d4c39f, #b59a65);
  border-color: rgba(255, 248, 233, 0.18);
  box-shadow:
    0 14px 34px rgba(1, 8, 18, 0.16),
    0 26px 48px rgba(1, 8, 18, 0.12),
    inset 0 1px 0 rgba(255, 248, 233, 0.16),
    inset 0 -1px 0 rgba(118, 91, 47, 0.12);
  backdrop-filter: none;
}

body[data-page="home"] .trust-strip *,
body[data-page="home"] .process-card *,
body[data-page="home"] .service-detail-card * {
  color: #17263d;
}

body[data-page="home"] .trust-strip .lead,
body[data-page="home"] .process-card p,
body[data-page="home"] .service-detail-card p {
  color: rgba(23, 38, 61, 0.84);
}

body[data-page="home"] .service-card .btn-tertiary,
body[data-page="home"] .testimonial-card .btn-tertiary {
  color: #fffaf0;
}

body[data-page="home"] .service-card {
  background: linear-gradient(180deg, #274568 0%, #213d5f 54%, #1a314f 100%);
  border-color: rgba(144, 177, 231, 0.2);
  box-shadow:
    0 12px 28px rgba(1, 8, 18, 0.16),
    0 22px 40px rgba(1, 8, 18, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
}

body[data-page="home"] .service-card * {
  color: #f7f3ea;
}

body[data-page="home"] .service-card p {
  color: rgba(241, 244, 248, 0.88);
}

body[data-page="home"] .service-card .card-topline,
body[data-page="home"] .service-card .btn-tertiary {
  color: #d8c190;
}

body[data-page="home"] .dark-panel {
  background:
    linear-gradient(180deg, rgba(58, 93, 140, 0.18), transparent 42%),
    linear-gradient(180deg, #274568 0%, #213d5f 56%, #1a314f 100%);
  border-color: rgba(144, 177, 231, 0.2);
  box-shadow:
    0 14px 34px rgba(1, 8, 18, 0.18),
    0 24px 46px rgba(1, 8, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .dark-panel .section-header h2,
body[data-page="home"] .dark-panel .section-header .eyebrow,
body[data-page="home"] .dark-panel .section-header p {
  color: #f7f3ea;
}

body[data-page="home"] .dark-panel .section-header .eyebrow::before {
  background: linear-gradient(90deg, transparent, rgba(216, 193, 144, 0.9));
}

body[data-page="home"] .dark-panel .section-header p {
  color: rgba(241, 244, 248, 0.88);
}

body[data-page="home"] .metric-card {
  background: linear-gradient(180deg, #294769 0%, #223e60 54%, #1a314f 100%);
  border-color: rgba(144, 177, 231, 0.2);
  box-shadow:
    0 12px 28px rgba(1, 8, 18, 0.16),
    0 22px 40px rgba(1, 8, 18, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
}

body[data-page="home"] .metric-card * {
  color: #f7f3ea;
}

body[data-page="home"] .metric-card p {
  color: rgba(241, 244, 248, 0.88);
}

body[data-page="home"] .testimonial-card {
  background: linear-gradient(180deg, #274568 0%, #213d5f 54%, #1a314f 100%);
  border-color: rgba(144, 177, 231, 0.2);
  box-shadow:
    0 12px 28px rgba(1, 8, 18, 0.16),
    0 22px 40px rgba(1, 8, 18, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .testimonial-card * {
  color: #f7f3ea;
}

body[data-page="home"] .testimonial-card p {
  color: rgba(241, 244, 248, 0.88);
}

body[data-page="home"] .testimonial-card .card-topline {
  color: #d8c190;
}

body[data-page="home"] .testimonial-card .tag {
  color: #e2d0a7;
  border-color: rgba(216, 193, 144, 0.24);
  background: rgba(93, 72, 36, 0.24);
}

body[data-page="home"] .case-card {
  background: linear-gradient(180deg, #294769 0%, #223e60 56%, #1a314f 100%);
  border-color: rgba(144, 177, 231, 0.2);
  box-shadow:
    0 14px 32px rgba(1, 8, 18, 0.16),
    0 24px 42px rgba(1, 8, 18, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
}

body[data-page="home"] .case-card * {
  color: #f7f3ea;
}

body[data-page="home"] .case-card p {
  color: rgba(241, 244, 248, 0.88);
}

body[data-page="home"] .case-card .case-tag {
  color: #e2d0a7;
  border-color: rgba(216, 193, 144, 0.24);
  background: rgba(93, 72, 36, 0.26);
}

body[data-page="home"] .case-card .case-visual {
  border-color: rgba(144, 177, 231, 0.18);
  background:
    linear-gradient(135deg, rgba(216, 193, 144, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #1d3555;
}

body[data-page="home"] .industry-card {
  background: linear-gradient(180deg, #274568 0%, #213d5f 54%, #1a314f 100%);
  border-color: rgba(144, 177, 231, 0.2);
  box-shadow:
    0 12px 28px rgba(1, 8, 18, 0.16),
    0 22px 40px rgba(1, 8, 18, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
}

body[data-page="home"] .industry-card * {
  color: #f7f3ea;
}

body[data-page="home"] .industry-card p {
  color: rgba(241, 244, 248, 0.88);
}

body[data-page="home"] .cta-banner {
  border-color: rgba(255, 248, 233, 0.18);
  background: linear-gradient(135deg, #d4c39f, #b59a65);
  box-shadow:
    0 14px 34px rgba(1, 8, 18, 0.16),
    0 26px 48px rgba(1, 8, 18, 0.12),
    inset 0 1px 0 rgba(255, 248, 233, 0.16),
    inset 0 -1px 0 rgba(118, 91, 47, 0.12);
}

body[data-page="home"] .cta-banner .eyebrow,
body[data-page="home"] .cta-banner h2 {
  color: #0e213a;
}

body[data-page="home"] .cta-banner .eyebrow::before {
  background: linear-gradient(90deg, transparent, rgba(14, 33, 58, 0.75));
}

body[data-page="home"] .cta-banner .lead {
  color: rgba(14, 33, 58, 0.8);
}

body[data-page="home"] .cta-banner .btn-primary {
  background: #0f2039;
  color: #f7f3ea;
  border-color: rgba(15, 32, 57, 0.36);
  box-shadow:
    0 10px 22px rgba(2, 8, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page="home"] .cta-banner .btn-primary:hover,
body[data-page="home"] .cta-banner .btn-primary:focus-visible {
  background: #122744;
  color: #f7f3ea;
}

body[data-page="home"] .trust-chip {
  color: #17263d;
}

body[data-page="home"] .trust-strip {
  padding: 0.9rem 1.2rem;
  gap: 0.8rem 1rem;
  align-items: center;
}

body[data-page="home"] .trust-strip .lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 60ch;
}

body[data-page="home"] .trust-group {
  gap: 0.6rem;
}

body[data-page="home"] .trust-chip {
  padding: 0.45rem 0.72rem;
  font-size: 0.78rem;
}

body[data-page="home"] .stat-band {
  background: linear-gradient(180deg, #264466 0%, #203c5d 52%, #1a314f 100%);
  border-color: rgba(144, 177, 231, 0.2);
  box-shadow:
    0 14px 30px rgba(2, 8, 18, 0.18),
    0 24px 44px rgba(2, 8, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  align-items: start;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="home"] .stat-band > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding-right: 0.4rem;
}

body[data-page="home"] .stat-band .metric-value {
  color: #f4efe6;
  font-size: clamp(1.4rem, 1.95vw, 1.9rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.03em;
}

body[data-page="home"] .stat-band p {
  color: rgba(239, 243, 248, 0.88);
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 18ch;
}

body[data-page="home"] .trust-chip {
  border-color: rgba(23, 38, 61, 0.18);
  background: rgba(23, 38, 61, 0.08);
}

body[data-page="home"] .case-visual {
  border-color: rgba(255, 248, 233, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 244, 219, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 244, 219, 0.06), transparent),
    #6f542b;
}

.page-hero {
  padding: 3rem 0 3.2rem;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.8fr);
}

.page-hero-frame {
  padding: 1.35rem;
}

.page-hero-copy {
  padding: 1rem;
}

.page-hero-copy h1 {
  font-size: clamp(2rem, 3vw, 3.6rem);
  max-width: 12ch;
}

.page-hero-side {
  display: grid;
  gap: 1rem;
}

.page-hero--with-leo {
  overflow: hidden;
}

.page-hero-grid--with-leo {
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.6rem);
}

.page-hero-side--leo {
  justify-items: end;
}

.leo-page-guide {
  position: relative;
  width: min(100%, 432px);
  min-height: clamp(278px, 31vw, 378px);
  margin-left: auto;
  padding: 1rem 0.2rem 0.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.leo-page-guide__bubble {
  position: absolute;
  top: 6px;
  right: clamp(68px, 6.8vw, 108px);
  max-width: min(278px, calc(100% - 86px));
  padding: 1rem 1.05rem 0.95rem;
  border-radius: 28px;
  border: 1px solid rgba(214, 181, 111, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.97), rgba(244, 232, 209, 0.95)),
    rgba(255, 247, 232, 0.96);
  box-shadow: 0 22px 46px rgba(2, 8, 18, 0.18);
}

.leo-page-guide__bubble::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -10px;
  width: 22px;
  height: 22px;
  background: rgba(244, 232, 209, 0.96);
  border-right: 1px solid rgba(214, 181, 111, 0.34);
  border-bottom: 1px solid rgba(214, 181, 111, 0.34);
  transform: rotate(45deg);
  border-bottom-right-radius: 8px;
}

.leo-page-guide__label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: rgba(21, 39, 66, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.leo-page-guide__bubble p {
  margin: 0;
  color: #132640;
  font-size: 0.96rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.leo-page-guide--interactive {
  width: min(100%, 404px);
  min-height: clamp(248px, 27vw, 342px);
}

.leo-page-guide--interactive .leo-page-guide__bubble {
  right: clamp(62px, 6vw, 92px);
  max-width: min(264px, calc(100% - 78px));
  padding: 0.95rem 1rem 0.9rem;
}

.leo-page-guide__dialogue {
  margin: 0 0 0.8rem;
}

.leo-page-guide__dialogue .leo-response-bubble__message {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

body[data-page="services"] .leo-page-guide__bubble--over-3d .leo-response-bubble__message {
  max-height: none;
  padding-right: 6px;
}

.leo-page-guide__dialogue p {
  margin: 0;
  color: #132640;
  font-size: 0.92rem;
  line-height: 1.56;
  text-wrap: pretty;
}

.leo-page-guide__dialogue p + p {
  margin-top: 0.58rem;
}

.leo-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(186, 151, 84, 0.34) transparent;
}

.leo-chat-thread::-webkit-scrollbar {
  width: 6px;
}

.leo-chat-thread::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(186, 151, 84, 0.32);
}

.leo-chat-message {
  max-width: 92%;
  padding: 0.62rem 0.72rem;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #132640;
  white-space: normal;
}

.leo-chat-message p {
  margin: 0;
  white-space: pre-line;
}

.leo-chat-message p + p {
  margin-top: 0.5rem;
}

.leo-chat-message--leo,
.leo-chat-message--thinking {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(21, 39, 66, 0.06);
}

.leo-chat-message--user {
  align-self: flex-end;
  border: 1px solid rgba(207, 186, 141, 0.34);
  background: rgba(207, 186, 141, 0.26);
  color: #102033;
}

.leo-chat-message--thinking {
  opacity: 0.78;
  font-style: italic;
}

.leo-chat-message--quick-actions {
  align-self: stretch;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.leo-chat-message--quick-actions .leo-page-guide__chips,
.leo-chat-message--quick-actions .leo-page-guide__actions {
  margin: 0;
}

.leo-chat-message--scan-result {
  align-self: stretch;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.leo-chat-message--lead-form {
  align-self: stretch;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.leo-scan-card {
  padding: 0.82rem;
  border: 1px solid rgba(186, 151, 84, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(243, 231, 207, 0.92)),
    rgba(255, 251, 243, 0.94);
  box-shadow: 0 14px 30px rgba(14, 25, 43, 0.1);
  color: #132640;
}

.leo-scan-card p {
  margin: 0.58rem 0 0;
  font-size: 0.84rem;
  line-height: 1.48;
}

.leo-scan-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 0.72rem;
}

.leo-scan-card strong {
  display: block;
  color: #132640;
  font-size: 0.75rem;
  font-weight: 800;
}

.leo-scan-score {
  display: grid;
  gap: 0.28rem;
}

.leo-scan-score__number {
  color: #10213a;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.25;
}

.leo-scan-score__label {
  width: fit-content;
  padding: 0.24rem 0.48rem;
  border: 1px solid rgba(186, 151, 84, 0.32);
  border-radius: 999px;
  background: rgba(216, 191, 132, 0.2);
  color: rgba(21, 39, 66, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.leo-scan-list {
  display: grid;
  gap: 0.34rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.leo-scan-list li {
  position: relative;
  padding-left: 0.8rem;
  color: rgba(19, 38, 64, 0.88);
  font-size: 0.8rem;
  line-height: 1.42;
}

.leo-scan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8914f;
}

.leo-lead-form {
  display: grid;
  gap: 0.64rem;
  padding: 0.82rem;
  border: 1px solid rgba(186, 151, 84, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(243, 231, 207, 0.92)),
    rgba(255, 251, 243, 0.94);
  box-shadow: 0 14px 30px rgba(14, 25, 43, 0.1);
}

.leo-lead-form label {
  display: grid;
  gap: 0.28rem;
  color: rgba(19, 38, 64, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
}

.leo-lead-form input[type="text"],
.leo-lead-form input[type="email"],
.leo-lead-form input[type="tel"],
.leo-lead-form select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 0.72rem;
  border: 1px solid rgba(186, 151, 84, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #132640;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.leo-lead-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(19, 38, 64, 0.72) 50%) calc(100% - 16px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(19, 38, 64, 0.72) 50%, transparent 50%) calc(100% - 11px) 50% / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.72);
  padding-right: 2rem;
}

.leo-lead-form input[type="text"]:focus,
.leo-lead-form input[type="email"]:focus,
.leo-lead-form input[type="tel"]:focus,
.leo-lead-form select:focus {
  border-color: rgba(186, 151, 84, 0.68);
  box-shadow: 0 0 0 3px rgba(216, 191, 132, 0.2);
}

.leo-lead-form__consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.46rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.38;
}

.leo-lead-form__consent input {
  margin-top: 0.15rem;
  accent-color: #b8914f;
}

.leo-lead-form__trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.leo-lead-form button {
  min-height: 38px;
  border: 1px solid rgba(159, 119, 49, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #d8bf84, #b8914f);
  color: #10213a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(94, 62, 16, 0.14);
}

.leo-lead-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 768px) {
  body[data-page="home"] .leo-response-bubble__message,
  .leo-page-guide__dialogue .leo-response-bubble__message {
    max-height: 180px;
  }
}

.leo-page-guide__reaction {
  position: absolute;
  right: clamp(12px, 2.4vw, 26px);
  bottom: clamp(142px, 14vw, 178px);
  max-width: min(220px, calc(100% - 150px));
  padding: 0.82rem 0.9rem;
  border-radius: 22px;
  border: 1px solid rgba(214, 181, 111, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.96), rgba(247, 237, 215, 0.94)),
    rgba(255, 251, 242, 0.96);
  box-shadow: 0 16px 32px rgba(9, 18, 30, 0.14);
  color: #132640;
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 220ms ease, transform 240ms ease, visibility 220ms ease;
  pointer-events: none;
  z-index: 4;
}

.leo-page-guide__reaction::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: rgba(247, 237, 215, 0.96);
  border-right: 1px solid rgba(214, 181, 111, 0.28);
  border-bottom: 1px solid rgba(214, 181, 111, 0.28);
  transform: rotate(45deg);
  border-bottom-right-radius: 5px;
}

.leo-page-guide__reaction.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.leo-page-guide__chips,
.leo-page-guide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.leo-page-guide__chips {
  margin-top: 0.1rem;
}

body[data-page="services"] .leo-page-guide__bubble--over-3d .leo-page-guide__chips {
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.leo-page-guide__actions {
  flex: 0 0 auto;
  margin-top: 0.7rem;
}

.leo-page-guide__chip,
.leo-page-guide__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.88rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
}

.leo-page-guide__chip {
  border: 1px solid rgba(21, 39, 66, 0.12);
  background: rgba(255, 255, 255, 0.42);
  color: #18304f;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.leo-page-guide__chip.is-active {
  border-color: rgba(186, 151, 84, 0.42);
  background: linear-gradient(135deg, rgba(216, 191, 132, 0.3), rgba(244, 232, 209, 0.76));
  color: #132640;
  box-shadow: inset 0 0 0 1px rgba(186, 151, 84, 0.14);
}

.leo-page-guide__action {
  border: 1px solid rgba(21, 39, 66, 0.1);
  background: linear-gradient(135deg, rgba(253, 249, 241, 0.98), rgba(241, 227, 198, 0.94));
  color: #132640;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 25, 43, 0.08);
}

.leo-page-guide__actions:empty {
  display: none;
}

.leo-chat-form {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(18, 32, 54, 0.12);
  background: transparent;
}

.leo-chat-input {
  min-width: 0;
  flex: 1 1 auto;
  height: 38px;
  padding: 0 0.78rem;
  border: 1px solid rgba(186, 151, 84, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #132640;
  font: inherit;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.leo-chat-input:focus {
  border-color: rgba(186, 151, 84, 0.68);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(216, 191, 132, 0.2);
}

.leo-chat-submit {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 0.82rem;
  border: 1px solid rgba(159, 119, 49, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #d8bf84, #b8914f);
  color: #10213a;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(94, 62, 16, 0.14);
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.leo-chat-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(94, 62, 16, 0.18);
}

.leo-page-guide__avatar-wrap {
  margin: 0;
  width: clamp(202px, 21vw, 278px);
  height: clamp(244px, 26vw, 332px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.leo-page-guide__avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.24));
  transform-origin: center bottom;
  animation: leoGuideBreathe 5.2s ease-in-out infinite;
  transition: opacity 180ms ease;
  will-change: opacity;
}

body[data-page="services"][data-base=".."] .page-hero-grid--with-leo {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  gap: clamp(1.8rem, 4.2vw, 3.9rem);
}

body[data-page="services"][data-base=".."] .page-hero-side--leo {
  justify-items: end;
}

body[data-page="services"][data-base=".."] .leo-page-guide {
  width: min(100%, 458px);
  min-height: clamp(316px, 33vw, 406px);
  padding: 0.85rem 0.15rem 0.25rem;
}

body[data-page="services"][data-base=".."] .leo-page-guide__bubble {
  right: clamp(92px, 8vw, 126px);
  max-width: min(314px, calc(100% - 108px));
  padding: 1.06rem 1.12rem 1rem;
}

body[data-page="services"][data-base=".."] .leo-page-guide__bubble::after {
  right: 22px;
}

body[data-page="services"][data-base=".."] .leo-page-guide__avatar-wrap {
  width: clamp(176px, 18vw, 198px);
  height: clamp(254px, 26vw, 332px);
}

body[data-page="services"][data-base="."] .page-hero-grid--with-leo {
  grid-template-columns: minmax(0, 1.14fr) minmax(330px, 0.86fr);
  gap: clamp(2.4rem, 4.8vw, 4.6rem);
}

body[data-page="services"][data-base="."] .page-hero {
  padding-bottom: 4.3rem;
}

body[data-page="services"][data-base="."] .page-hero--with-leo {
  overflow: hidden;
}

body[data-page="services"][data-base="."] .page-hero-side--leo {
  justify-items: stretch;
  align-self: start;
  min-height: 400px;
}

body[data-page="services"][data-base="."] .page-hero-copy {
  max-width: 40rem;
  padding-right: 0.25rem;
}

body[data-page="services"][data-base="."] .page-hero-copy h1 {
  font-size: clamp(2.15rem, 3.15vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 23ch;
  text-wrap: balance;
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive {
  width: min(100%, 500px);
  min-height: clamp(332px, 33vw, 424px);
  padding: 0.65rem 0.35rem 0.35rem;
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__bubble {
  top: 8px;
  right: clamp(118px, 9.8vw, 156px);
  max-width: min(344px, calc(100% - 132px));
  padding: 1.18rem 1.24rem 1.12rem;
  border-radius: 30px;
  box-shadow: 0 26px 52px rgba(2, 8, 18, 0.16);
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__bubble::after {
  right: -9px;
  bottom: 34px;
}

body[data-page="services"][data-base="."] .leo-page-guide__reaction {
  right: clamp(6px, 1.8vw, 20px);
  bottom: clamp(124px, 12vw, 164px);
  max-width: min(210px, calc(100% - 170px));
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__dialogue {
  margin: 0 0 1rem;
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__dialogue p {
  font-size: 0.95rem;
  line-height: 1.62;
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__chips {
  gap: 0.68rem;
  margin-top: 0.2rem;
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__actions {
  gap: 0.68rem;
  margin-top: 0.82rem;
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__chip,
body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__action {
  min-height: 42px;
  padding: 0.15rem 1rem;
  font-size: 0.84rem;
  line-height: 1.25;
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__avatar-wrap {
  width: clamp(164px, 17vw, 214px);
  height: clamp(212px, 22vw, 276px);
  margin-left: auto;
}

body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__actions {
  position: relative;
  z-index: 1;
}

body[data-service="website-development"] .page-hero--with-leo {
  overflow: hidden;
}

body[data-service="website-development"] .page-hero-grid--with-leo {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: start;
  gap: clamp(2rem, 4.5vw, 4.2rem);
}

body[data-service="website-development"] .page-hero-side--leo {
  justify-items: stretch;
  align-self: start;
  min-height: 0;
}

body[data-service="website-development"] .leo-page-guide--interactive {
  width: min(100%, 468px);
  min-height: 0;
  padding: 0.1rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(168px, 15vw, 214px);
  align-items: end;
  justify-items: stretch;
  gap: 0.35rem;
}

body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__bubble {
  position: relative;
  top: auto;
  right: auto;
  max-width: none;
  width: 100%;
  min-height: 0;
  padding: 1.12rem 1.18rem 1.04rem;
  border-radius: 30px;
  box-shadow: 0 24px 50px rgba(2, 8, 18, 0.15);
}

body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__bubble::after {
  right: -9px;
  bottom: 34px;
  width: 20px;
  height: 20px;
  border-right: 1px solid rgba(214, 181, 111, 0.34);
  border-bottom: 1px solid rgba(214, 181, 111, 0.34);
  border-bottom-right-radius: 8px;
}

body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__dialogue {
  margin: 0 0 0.9rem;
}

body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__dialogue p {
  font-size: 0.95rem;
  line-height: 1.62;
}

body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__chips,
body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__actions {
  gap: 0.62rem;
}

body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__chip,
body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__action {
  min-height: 40px;
  padding: 0.15rem 0.94rem;
  font-size: 0.82rem;
  line-height: 1.25;
}

body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__avatar-wrap {
  width: 100%;
  height: clamp(258px, 27vw, 340px);
  justify-self: end;
  align-self: end;
}

@keyframes leoGuideBreathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.018);
  }
}

.list-checks {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.list-checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  color: var(--muted);
}

.list-checks li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 0.45rem;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  box-shadow: 0 0 18px rgba(108, 164, 255, 0.35);
}

.details-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.contact-layout {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.9rem;
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(207, 186, 141, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.contact-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.contact-consent input {
  margin-top: 0.18rem;
  accent-color: var(--gold);
}

.form-note,
.contact-form__fallback,
.contact-form__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.form-note a,
.contact-form__fallback a {
  color: var(--gold);
}

.contact-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form__status {
  min-height: 1.35rem;
}

.contact-form__status.is-success {
  color: #95f2c7;
}

.contact-form__status.is-error {
  color: #ffb3a6;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% -18%, rgba(30, 55, 90, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(16, 33, 57, 0.94), rgba(13, 28, 49, 0.92));
}

.footer-grid {
  display: grid;
  gap: 1.8rem 2.1rem;
  grid-template-columns: 1.05fr 0.78fr 0.78fr 0.9fr;
}

.footer-title {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.88);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
  color: rgba(232, 236, 242, 0.78);
}

.site-footer .brand {
  margin-bottom: 0.85rem;
}

.site-footer .brand-mark {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(207, 186, 141, 0.2);
  box-shadow: none;
}

.site-footer .brand-mark::before,
.site-footer .brand-mark::after {
  display: none;
}

.site-footer .brand-mark__image {
  position: absolute;
  z-index: 1;
  top: 53%;
  left: 50%;
  width: 235%;
  height: 235%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.site-footer .lead {
  max-width: 34ch;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.68;
  text-wrap: pretty;
  color: rgba(232, 236, 242, 0.78);
}

.footer-list a {
  color: rgba(232, 236, 242, 0.78);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: space-between;
  color: rgba(232, 236, 242, 0.72);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-brand-bar {
    z-index: 20000;
  }

  .site-header {
    z-index: 20010;
  }

  .page-hero-grid,
  .split-feature,
  .industries,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .grid-3,
  .grid-2,
  .details-grid,
  .process-rail,
  .stat-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-hero-grid--with-leo {
    gap: 2rem;
  }

  .page-hero-side--leo {
    justify-items: center;
  }

  .leo-page-guide {
    margin-inline: auto;
  }

  body[data-page="services"][data-base="."] .service-group-card.is-highlighted,
  body[data-page="services"][data-base="."] .service-group-card.is-active,
  body[data-page="services"][data-base="."] .service-group-card.is-open {
    padding-bottom: 10rem;
  }

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

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20030;
    flex: 0 0 auto;
  }

  .site-header.is-open .nav-shell {
    align-items: center;
  }

  .site-header.is-open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    inset: 0 !important;
    z-index: 20020 !important;
    align-items: stretch;
    justify-content: flex-start;
    align-content: start;
    padding:
      calc(env(safe-area-inset-top) + 5.25rem)
      1.1rem
      calc(env(safe-area-inset-bottom) + 1.25rem)
      1.1rem;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 !important;
    background: #07111f !important;
    border: 0 !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(22px);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: none !important;
    gap: 0.55rem;
  }

  .site-header.is-open .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    color: rgba(243, 239, 231, 0.96);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(207, 186, 141, 0.18);
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
  }

  .site-header.is-open .nav-actions .btn {
    display: none;
  }
}

@media (max-width: 720px) {
.site-brand-bar-inner {
    flex-direction: column;
    text-align: center;
  }

  .site-header.is-open .nav-links {
    gap: 0.55rem;
    padding:
      calc(env(safe-area-inset-top) + 5.25rem)
      1.1rem
      calc(env(safe-area-inset-bottom) + 1.25rem)
      1.1rem;
  }

  .site-header.is-open .nav-links a {
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    font-size: 0.98rem;
  }

  .site-brand-bar .brand-text {
    min-width: 0;
    align-items: center;
  }

  .site-brand-bar .brand-text strong,
  .site-brand-bar .brand-text > span {
    align-self: center;
  }

  .site-brand-bar .brand-text > span {
    white-space: normal;
    max-width: 24ch;
  }

  .section {
    padding: 4.25rem 0;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-annotation,
  .interface-grid,
  .industry-list,
  .grid-4,
  .grid-3,
  .grid-2,
  .details-grid,
  .process-rail,
  .stat-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    grid-template-columns: 1fr;
  }

  .brand-text > span {
    display: block;
    font-size: 0.65rem;
    white-space: normal;
    max-width: 22ch;
  }

  .container {
    width: min(calc(100% - 1.2rem), var(--max));
  }

  .intro-screen {
    padding: 1.5rem;
  }

  .intro-screen__lion-wrap {
    width: min(74vw, 420px);
    min-width: 200px;
  }

  .section-header h2,
  .section-header h3,
  .page-hero-copy h1,
  .metric-value {
    font-size: 28px;
    line-height: 1.14;
  }

  .hero-shell {
    min-height: auto;
    max-width: 100%;
    transform: none;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    max-width: 18.5ch;
    line-height: 1.1;
    white-space: normal;
  }

  .hero-shell p {
    max-width: 32ch;
    font-size: 0.98rem;
  }

  .hero-shell .mini-chip::after {
    display: none;
  }

  .leo-page-guide {
    width: min(100%, 340px);
    min-height: 0;
    padding: 0.25rem 0 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
  }

  .leo-page-guide--interactive {
    width: min(100%, 340px);
    min-height: 0;
  }

  .leo-page-guide__bubble {
    position: relative;
    top: auto;
    right: auto;
    max-width: 100%;
  }

  .leo-page-guide--interactive .leo-page-guide__bubble {
    max-width: min(90vw, 340px);
    width: min(90vw, 340px);
  }

  .leo-page-guide__bubble::after {
    right: 48px;
    bottom: -10px;
  }

  .leo-page-guide__avatar {
    width: min(190px, 58vw);
    animation-duration: 5.8s;
  }
}

@media (max-width: 768px) {
  .site-brand-bar,
  .site-header,
  .site-header.is-open,
  .site-header.is-open .nav-shell,
  .site-header.is-open .nav-links {
    z-index: 20020;
  }

  .site-header.is-open .nav-links {
    z-index: 20020 !important;
  }

  body:not([data-page="home"]) .page-hero .hero-leo-3d {
    justify-self: center;
    width: min(100%, 320px);
    min-height: 300px;
  }

  body:not([data-page="home"]) .page-hero .hero-leo-assistant {
    min-height: 300px;
  }

  body:not([data-page="home"]) .page-hero .hero-leo-3d__stage {
    width: min(100%, 300px);
    min-height: 300px;
  }

  body:not([data-page="home"]) .page-hero .hero-leo-assistant--page {
    min-height: 390px;
  }

  body:not([data-page="home"]) .page-hero .leo-page-guide__bubble--over-3d {
    top: 0;
    width: min(92vw, 320px);
    max-width: 320px;
  }

  body:not([data-page="home"]) .page-hero .hero-leo-assistant--page .hero-leo-3d__stage {
    margin-top: 96px;
  }

  body[data-page="services"] .page-hero .leo-page-guide__bubble--over-3d {
    top: -8px;
    left: 50%;
    width: min(88vw, 300px);
    max-width: 300px;
    transform: translateX(-50%);
  }

  body[data-page="services"] .page-hero .leo-page-guide__bubble--over-3d::after {
    left: 50%;
    right: auto;
    bottom: -10px;
    transform: translateX(-50%) rotate(45deg);
  }

  body[data-page="services"] .page-hero .hero-leo-assistant--page .hero-leo-3d__stage {
    margin-top: 132px;
  }

  .page-hero::before,
  .hero::before,
  .site-code-canvas,
  .intro-screen__streak {
    pointer-events: none;
  }

  .page-hero-side--leo[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .page-hero-side--leo {
    width: 100%;
    justify-items: center;
    overflow: visible;
  }

  .leo-page-guide {
    width: 100%;
    max-width: 360px;
    min-height: 0;
    padding: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    overflow: visible;
  }

  .leo-page-guide__avatar {
    width: min(220px, 55vw);
    max-width: 220px;
    height: 100%;
  }

  .leo-page-guide__avatar-wrap {
    width: min(220px, 55vw);
    max-width: 220px;
    height: min(270px, 68vw);
  }

  body[data-page="services"][data-base=".."] .leo-page-guide__avatar {
    width: min(45vw, 170px);
    max-width: 170px;
  }

  body[data-page="services"][data-base=".."] .leo-page-guide__avatar-wrap {
    width: min(45vw, 170px);
    max-width: 170px;
    height: min(230px, 60vw);
  }

  .leo-page-guide__bubble {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .leo-page-guide__bubble::after {
    right: 42px;
    bottom: -10px;
  }

  body[data-page="services"][data-base="."] .leo-page-guide--interactive {
    max-width: 380px;
    gap: 1rem;
  }

  body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__bubble {
    max-width: min(90vw, 340px);
    padding: 1rem 1rem 0.96rem;
  }

  body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__bubble::after {
    right: -9px;
    bottom: 30px;
  }

  .leo-page-guide__reaction {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: min(88vw, 320px);
    margin: 0 auto 0.25rem;
    order: 3;
    transform-origin: center top;
  }

  .leo-page-guide__reaction::after {
    right: 42px;
    bottom: -8px;
  }

  body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__chips,
  body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__actions {
    gap: 0.72rem;
  }

  body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__chip,
  body[data-page="services"][data-base="."] .leo-page-guide--interactive .leo-page-guide__action {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }

  body[data-service="website-development"] .leo-page-guide--interactive {
    max-width: 360px;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    justify-items: center;
  }

  body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__bubble {
    max-width: min(90vw, 340px);
    width: min(90vw, 340px);
    padding: 1rem 1rem 0.96rem;
  }

  body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__bubble::after {
    right: 42px;
    bottom: -10px;
  }

  body[data-service="website-development"] .leo-page-guide--interactive .leo-page-guide__avatar-wrap {
    width: min(220px, 55vw);
    max-width: 220px;
    height: min(270px, 68vw);
  }

  .leo-walk-track {
    right: 0.7rem;
    bottom: 0.55rem;
    width: clamp(90px, 24vw, 110px);
  }

  .leo-walk-bubble {
    left: -26px;
    top: -134px;
    width: 188px;
    max-width: 188px;
    font-size: 0.78rem;
    line-height: 1.52;
  }

  .leo-walk-bubble::before,
  .leo-walk-bubble::after {
    right: 18px;
    bottom: -9px;
  }

  body[data-page="services"][data-base="."] .service-group-card.is-highlighted .leo-walk-bubble.is-visible,
  body[data-page="services"][data-base="."] .service-group-card.is-active .leo-walk-bubble.is-visible,
  body[data-page="services"][data-base="."] .service-group-card.is-open .leo-walk-bubble.is-visible {
    animation-name: leoBubblePartialFollowMobile;
    animation-duration: 2.6s;
  }

  body[data-page="services"][data-base="."] .service-group-card.is-highlighted,
  body[data-page="services"][data-base="."] .service-group-card.is-active,
  body[data-page="services"][data-base="."] .service-group-card.is-open {
    min-height: 31.5rem;
    padding-bottom: 14.75rem;
  }

  body[data-page="services"][data-base="."] .service-group-card.is-highlighted .leo-walk-track,
  body[data-page="services"][data-base="."] .service-group-card.is-active .leo-walk-track,
  body[data-page="services"][data-base="."] .service-group-card.is-open .leo-walk-track {
    animation-name: leoCardWalkMobile;
    animation-duration: 2.6s;
    animation-timing-function: linear;
  }
}

@keyframes leoBubblePartialFollowMobile {
  0%,
  38% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(70px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .leo-walk-track,
  .leo-walk-avatar {
    animation: none !important;
  }

  body[data-page="services"][data-base="."] .service-group-card.is-highlighted .leo-walk-track,
  body[data-page="services"][data-base="."] .service-group-card.is-active .leo-walk-track,
  body[data-page="services"][data-base="."] .service-group-card.is-open .leo-walk-track {
    opacity: 1;
    visibility: visible;
    transform: translate3d(-18px, 0, 0);
  }

  .leo-page-guide__avatar {
    animation: none;
  }

  .site-code-canvas {
    opacity: 0.55;
  }

  .intro-screen.is-ready {
    transition: none;
  }

  .intro-screen,
  .intro-screen__inner {
    transition: none;
    animation: none;
  }

  .intro-screen__inner {
    opacity: 1;
    transform: none;
  }
}

@keyframes leoCardWalkMobile {
  0% {
    transform: translate3d(24px, 0, 0);
  }

  100% {
    transform: translate3d(-116px, 0, 0);
  }
}

@media (max-width: 1080px) {
  body > [data-site-header] {
    position: relative;
    z-index: 30000 !important;
  }

  body > main {
    position: relative;
    z-index: 1 !important;
  }

  .site-header.is-open .nav-links {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 30020 !important;
    padding:
      calc(env(safe-area-inset-top) + 5.25rem)
      1.1rem
      calc(env(safe-area-inset-bottom) + 1.25rem)
      1.1rem !important;
    background: #07111f !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 0.55rem !important;
  }

  .site-header.is-open .nav-links a {
    min-height: 48px !important;
    padding: 0.7rem 0.9rem !important;
    font-size: 0.98rem !important;
    line-height: 1.2;
  }

  .site-header.is-open .nav-shell,
  .site-header.is-open .nav-toggle {
    position: relative;
    z-index: 30030 !important;
  }
}


/* Contact hero: allow title and paragraph to use more horizontal space */
body[data-page="contact"] .page-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

body[data-page="contact"] .page-hero-copy {
  max-width: 760px;
  padding: 1rem 0;
}

body[data-page="contact"] .page-hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  line-height: 1.04;
  white-space: normal;
  text-wrap: balance;
}

body[data-page="contact"] .page-hero-copy p {
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  body[data-page="contact"] .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  body[data-page="contact"] .page-hero-copy {
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

  body[data-page="contact"] .page-hero-copy .eyebrow {
    justify-content: center;
  }

  body[data-page="contact"] .page-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.08;
  }

  body[data-page="contact"] .page-hero-copy p {
    max-width: 100%;
    font-size: 1rem;
  }
}


/* About hero: allow title and paragraph to use more horizontal space */
body[data-page="about"] .page-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

body[data-page="about"] .page-hero-copy {
  max-width: 760px;
  padding: 1rem 0;
}

body[data-page="about"] .page-hero-copy h1 {
  max-width: 19ch;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  line-height: 1.04;
  white-space: normal;
  text-wrap: balance;
}

body[data-page="about"] .page-hero-copy p {
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  body[data-page="about"] .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  body[data-page="about"] .page-hero-copy {
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

  body[data-page="about"] .page-hero-copy .eyebrow {
    justify-content: center;
  }

  body[data-page="about"] .page-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.08;
  }

  body[data-page="about"] .page-hero-copy p {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* Portfolio hero: allow title and paragraph to use more horizontal space */
body[data-page="portfolio"] .page-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

body[data-page="portfolio"] .page-hero-copy {
  max-width: 760px;
  padding: 1rem 0;
}

body[data-page="portfolio"] .page-hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  line-height: 1.04;
  white-space: normal;
  text-wrap: balance;
}

body[data-page="portfolio"] .page-hero-copy p {
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  body[data-page="portfolio"] .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  body[data-page="portfolio"] .page-hero-copy {
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

  body[data-page="portfolio"] .page-hero-copy .eyebrow {
    justify-content: center;
  }

  body[data-page="portfolio"] .page-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.08;
  }

  body[data-page="portfolio"] .page-hero-copy p {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* AI Solutions hero: allow title and paragraph to use more horizontal space */
body[data-page="ai"] .page-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

body[data-page="ai"] .page-hero-copy {
  max-width: 760px;
  padding: 1rem 0;
}

body[data-page="ai"] .page-hero-copy h1 {
  max-width: 19ch;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  line-height: 1.04;
  white-space: normal;
  text-wrap: balance;
}

body[data-page="ai"] .page-hero-copy p {
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  body[data-page="ai"] .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  body[data-page="ai"] .page-hero-copy {
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

  body[data-page="ai"] .page-hero-copy .eyebrow {
    justify-content: center;
  }

  body[data-page="ai"] .page-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.08;
  }

  body[data-page="ai"] .page-hero-copy p {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* Services hero: allow title and paragraph to use more horizontal space */
body[data-page="services"] .page-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

body[data-page="services"] .page-hero-copy {
  max-width: 760px;
  padding: 1rem 0;
}

body[data-page="services"] .page-hero-copy h1 {
  max-width: 20ch;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  line-height: 1.04;
  white-space: normal;
  text-wrap: balance;
}

body[data-page="services"] .page-hero-copy p {
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  body[data-page="services"] .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  body[data-page="services"] .page-hero-copy {
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

  body[data-page="services"] .page-hero-copy .eyebrow {
    justify-content: center;
  }

  body[data-page="services"] .page-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.08;
  }

  body[data-page="services"] .page-hero-copy p {
    max-width: 100%;
    font-size: 1rem;
  }

body[data-page="services"] .page-hero-frame,
  body[data-page="services"] .page-hero-side,
  body[data-page="services"] .visual-card {
    width: 100%;
    max-width: 100%;
  }
}

.site-footer .brand .brand-mark {
  position: relative !important;
  width: 82px !important;
  height: 82px !important;
  min-width: 82px !important;
  flex: 0 0 82px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 1px solid rgba(207, 186, 141, 0.22) !important;
  box-shadow: none !important;
}

.site-footer .brand .brand-mark::before,
.site-footer .brand .brand-mark::after {
  display: none !important;
  content: none !important;
}


.site-footer .brand .brand-mark > img.brand-mark__image {
  position: absolute !important;
  top: 56% !important;
  left: 50% !important;
  width: 285% !important;
  height: 285% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  transform: translate(-50%, -50%) !important;
  display: block !important;
}

@media (max-width: 768px) {
  body:not([data-page="home"]) .page-hero {
    overflow: visible;
  }

  body:not([data-page="home"]) .page-hero-grid,
  body:not([data-page="home"]) .page-hero-grid--with-leo,
  body[data-page="services"] .page-hero-grid,
  body[data-page="services"] .page-hero-grid--with-leo {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  body:not([data-page="home"]) .page-hero-copy,
  body[data-page="services"] .page-hero-copy {
    position: relative;
    z-index: 1;
    order: 1;
    width: 100%;
  }

  body:not([data-page="home"]) .page-hero .hero-leo-3d {
    order: 2;
    position: relative;
    z-index: 1;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: visible;
  }

  body:not([data-page="home"]) .page-hero .hero-leo-assistant,
  body:not([data-page="home"]) .page-hero .hero-leo-assistant--page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  body:not([data-page="home"]) .page-hero .leo-page-guide__bubble,
  body:not([data-page="home"]) .page-hero .leo-page-guide__bubble--over-3d,
  body:not([data-page="home"]) .page-hero .leo-chat-bubble,
  body[data-page="services"] .page-hero .leo-page-guide__bubble--over-3d {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2;
    width: min(100%, 420px);
    max-width: calc(100vw - 32px);
    height: min(520px, 70vh);
    max-height: min(520px, 70vh);
    margin: 0 auto;
    transform: none !important;
    overflow: hidden;
  }

  body:not([data-page="home"]) .page-hero .leo-page-guide__bubble--over-3d::after,
  body[data-page="services"] .page-hero .leo-page-guide__bubble--over-3d::after {
    left: 50%;
    right: auto;
    bottom: -10px;
    transform: translateX(-50%) rotate(45deg);
  }

  body:not([data-page="home"]) .page-hero .hero-leo-3d__stage,
  body:not([data-page="home"]) .page-hero .hero-leo-assistant--page .hero-leo-3d__stage,
  body[data-page="services"] .page-hero .hero-leo-assistant--page .hero-leo-3d__stage {
    position: relative;
    width: min(100%, 320px);
    min-height: 260px;
    margin-top: 16px;
  }
}

/* Services overview mobile: align with the Portfolio stacked hero flow. */
@media (max-width: 991px) {
  body[data-page="services"][data-base="."] .page-hero,
  body[data-page="services"][data-base="."] .page-hero--with-leo {
    overflow: visible;
  }

  body[data-page="services"][data-base="."] .page-hero-grid,
  body[data-page="services"][data-base="."] .page-hero-grid--with-leo {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
    width: min(calc(100% - 1.2rem), var(--max));
    max-width: var(--max);
    min-width: 0;
    margin-inline: auto;
  }

  body[data-page="services"][data-base="."] .page-hero-copy {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    text-align: center;
  }

  body[data-page="services"][data-base="."] .page-hero-copy .eyebrow {
    justify-content: center;
  }

  body[data-page="services"][data-base="."] .page-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.08;
    white-space: normal;
  }

  body[data-page="services"][data-base="."] .page-hero-copy p {
    max-width: 100%;
    font-size: 1rem;
  }

  body[data-page="services"][data-base="."] .hero-leo-3d {
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin-top: 2rem;
    justify-self: center;
    overflow: visible;
  }

  body[data-page="services"][data-base="."] .hero-leo-assistant,
  body[data-page="services"][data-base="."] .hero-leo-assistant--page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: visible;
  }

  body[data-page="services"][data-base="."] .leo-page-guide__bubble--over-3d,
  body[data-page="services"][data-base="."] .leo-page-guide__bubble.leo-chat-bubble {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(100%, 420px);
    height: auto;
    max-height: min(62dvh, 520px);
    margin-inline: auto;
    transform: none;
    overflow: hidden;
  }

  body[data-page="services"][data-base="."] .leo-page-guide__bubble--over-3d::after {
    left: 50%;
    right: auto;
    bottom: -10px;
    transform: translateX(-50%) rotate(45deg);
  }

  body[data-page="services"][data-base="."] .leo-chat-thread,
  body[data-page="services"][data-base="."] .leo-chat-form,
  body[data-page="services"][data-base="."] .leo-chat-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-page="services"][data-base="."] .leo-chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="services"][data-base="."] .leo-page-guide__chips,
  body[data-page="services"][data-base="."] .leo-page-guide__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 0.6rem;
  }

  body[data-page="services"][data-base="."] .leo-page-guide__chip,
  body[data-page="services"][data-base="."] .leo-page-guide__action {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  body[data-page="services"][data-base="."] .leo-chat-form {
    overflow: visible;
  }

  body[data-page="services"][data-base="."] .hero-leo-3d__stage,
  body[data-page="services"][data-base="."] .hero-leo-assistant--page .hero-leo-3d__stage {
    position: relative;
    width: min(100%, 320px);
    min-height: 260px;
    margin-top: 0;
  }

  body[data-page="services"][data-base="."] .leo-walk-bubble {
    left: auto;
    right: 0;
    width: min(188px, calc(100vw - 2rem));
    max-width: min(188px, calc(100vw - 2rem));
  }

  body[data-page="services"][data-base="."] .site-footer .brand {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  body[data-page="services"][data-base="."] .site-footer .brand-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Services detail mobile: reuse the overview stacked hero flow. */
@media (max-width: 991px) {
  body[data-page="services"][data-base=".."] .page-hero,
  body[data-page="services"][data-base=".."] .page-hero--with-leo {
    overflow: visible;
  }

  body[data-page="services"][data-base=".."] .page-hero-grid,
  body[data-page="services"][data-base=".."] .page-hero-grid--with-leo {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
    width: min(calc(100% - 1.2rem), var(--max));
    max-width: var(--max);
    min-width: 0;
    margin-inline: auto;
  }

  body[data-page="services"][data-base=".."] .page-hero-copy {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    text-align: center;
  }

  body[data-page="services"][data-base=".."] .page-hero-copy .eyebrow {
    justify-content: center;
  }

  body[data-page="services"][data-base=".."] .page-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.08;
    white-space: normal;
  }

  body[data-page="services"][data-base=".."] .page-hero-copy p {
    max-width: 100%;
    font-size: 1rem;
  }

  body[data-page="services"][data-base=".."] .page-hero-side--leo,
  body[data-page="services"][data-base=".."] .hero-leo-3d {
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin-top: 2rem;
    justify-self: center;
    overflow: visible;
  }

  body[data-page="services"][data-base=".."] .hero-leo-assistant,
  body[data-page="services"][data-base=".."] .hero-leo-assistant--page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: visible;
  }

  body[data-page="services"][data-base=".."] .leo-page-guide__bubble--over-3d,
  body[data-page="services"][data-base=".."] .leo-page-guide__bubble.leo-chat-bubble,
  body[data-page="services"][data-base=".."] .leo-chat-bubble {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(100%, 420px);
    height: auto;
    max-height: min(62dvh, 520px);
    margin-inline: auto;
    transform: none;
    overflow: hidden;
  }

  body[data-page="services"][data-base=".."] .leo-page-guide__bubble--over-3d::after {
    left: 50%;
    right: auto;
    bottom: -10px;
    transform: translateX(-50%) rotate(45deg);
  }

  body[data-page="services"][data-base=".."] .leo-chat-thread,
  body[data-page="services"][data-base=".."] .leo-chat-form,
  body[data-page="services"][data-base=".."] .leo-chat-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-page="services"][data-base=".."] .leo-chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="services"][data-base=".."] .leo-page-guide__chips,
  body[data-page="services"][data-base=".."] .leo-page-guide__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 0.6rem;
  }

  body[data-page="services"][data-base=".."] .leo-page-guide__chip,
  body[data-page="services"][data-base=".."] .leo-page-guide__action {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  body[data-page="services"][data-base=".."] .leo-chat-form {
    overflow: visible;
  }

  body[data-page="services"][data-base=".."] .hero-leo-3d__stage,
  body[data-page="services"][data-base=".."] .hero-leo-assistant--page .hero-leo-3d__stage {
    position: relative;
    width: min(100%, 320px);
    min-height: 260px;
    margin-top: 0;
  }

  body[data-page="services"][data-base=".."] .site-footer .brand {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  body[data-page="services"][data-base=".."] .site-footer .brand-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  body[data-page="services"][data-base="."] .leo-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="services"][data-base="."] .leo-chat-submit {
    width: 100%;
    max-width: 100%;
  }

  body[data-page="services"][data-base=".."] .leo-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="services"][data-base=".."] .leo-chat-submit {
    width: 100%;
    max-width: 100%;
  }
}


/* Contact page: prevent Leo chat bubble from overlapping hero copy */
@media (min-width: 992px) {
  body[data-page="contact"] .page-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.75fr);
    column-gap: clamp(4rem, 7vw, 8rem);
    align-items: center;
  }

  body[data-page="contact"] .page-hero-copy {
    max-width: 620px;
    position: relative;
    z-index: 1;
  }

  body[data-page="contact"] .hero-leo-3d {
    justify-self: end;
    position: relative;
    z-index: 2;
  }

  body[data-page="contact"] .leo-page-guide__bubble,
  body[data-page="contact"] .leo-chat-bubble {
    max-width: 380px;
  }
}

@media (max-width: 991px) {
  body[data-page="contact"] .page-hero-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="contact"] .hero-leo-3d {
    margin-top: 2rem;
  }
}

@media (min-width: 992px) {
  body[data-page="contact"] .leo-page-guide__bubble--over-3d {
    left: auto;
    right: 0;
    transform: none;
  }
}

/* Contact page hard fix: keep Leo chat bubble inside the right hero column */
@media (min-width: 992px) {
  body[data-page="contact"] .page-hero {
    overflow: hidden;
  }

  body[data-page="contact"] .page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 520px);
    gap: clamp(3rem, 6vw, 7rem);
    align-items: center;
  }

  body[data-page="contact"] .page-hero-copy {
    max-width: 640px;
    position: relative;
    z-index: 1;
  }

  body[data-page="contact"] .hero-leo-3d {
    justify-self: end;
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 2;
  }

  body[data-page="contact"] .hero-leo-assistant {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    position: relative;
    display: flex;
    justify-content: flex-end;
  }

  body[data-page="contact"] .leo-page-guide__bubble--over-3d,
  body[data-page="contact"] .leo-page-guide__bubble.leo-chat-bubble {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(100%, 420px) !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}


/* About test: stack Leo below hero copy instead of right column */
@media (min-width: 992px) {
body[data-page="about"] .page-hero {
overflow: visible !important;
}

body[data-page="about"] .page-hero-grid {
display: grid !important;
grid-template-columns: 1fr !important;
gap: 2.5rem !important;
align-items: start !important;
}

body[data-page="about"] .page-hero-copy {
max-width: 820px !important;
margin-left: auto !important;
margin-right: auto !important;
text-align: center !important;
padding: 0 !important;
position: relative;
z-index: 1;
}

body[data-page="about"] .page-hero-copy .eyebrow {
justify-content: center !important;
}

body[data-page="about"] .page-hero-copy h1 {
max-width: 24ch !important;
margin-left: auto !important;
margin-right: auto !important;
text-align: center !important;
}

body[data-page="about"] .page-hero-copy p {
max-width: 62ch !important;
margin-left: auto !important;
margin-right: auto !important;
text-align: center !important;
}

body[data-page="about"] .hero-leo-3d {
width: 100% !important;
max-width: 760px !important;
justify-self: center !important;
position: relative !important;
z-index: 2;
min-height: 520px !important;
}

body[data-page="about"] .hero-leo-assistant {
width: 100% !important;
max-width: 760px !important;
min-height: 520px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
gap: 2rem !important;
}

body[data-page="about"] .leo-page-guide__bubble--over-3d,
body[data-page="about"] .leo-page-guide__bubble.leo-chat-bubble {
position: relative !important;
inset: auto !important;
left: auto !important;
right: auto !important;
top: auto !important;
bottom: auto !important;
transform: none !important;
width: 420px !important;
max-width: 420px !important;
margin: 0 !important;
flex: 0 0 420px !important;
}

body[data-page="about"] .hero-leo-3d__stage {
flex: 0 0 260px !important;
width: 260px !important;
min-height: 360px !important;
margin-top: 0 !important;
}
}


/* Portfolio page: prevent Leo chat bubble from overlapping hero copy */
@media (min-width: 992px) {
body[data-page="portfolio"] .page-hero-grid {
grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.75fr);
column-gap: clamp(4rem, 7vw, 8rem);
align-items: center;
}

body[data-page="portfolio"] .page-hero-copy {
max-width: 620px;
position: relative;
z-index: 1;
}

body[data-page="portfolio"] .hero-leo-3d {
justify-self: end;
position: relative;
z-index: 2;
}

body[data-page="portfolio"] .leo-page-guide__bubble,
body[data-page="portfolio"] .leo-chat-bubble {
max-width: 380px;
}
}

@media (max-width: 991px) {
body[data-page="portfolio"] .page-hero-grid {
grid-template-columns: 1fr;
}

body[data-page="portfolio"] .hero-leo-3d {
margin-top: 2rem;
}
}

@media (min-width: 992px) {
body[data-page="portfolio"] .leo-page-guide__bubble--over-3d {
left: auto;
right: 0;
transform: none;
}
}

/* Portfolio test: stack Leo below hero copy instead of right column */
@media (min-width: 992px) {
  body[data-page="portfolio"] .page-hero {
    overflow: visible !important;
  }

  body[data-page="portfolio"] .page-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    align-items: start !important;
  }

  body[data-page="portfolio"] .page-hero-copy {
    max-width: 760px !important;
    position: relative;
    z-index: 1;
  }

  body[data-page="portfolio"] .hero-leo-3d {
    width: 100% !important;
    max-width: 760px !important;
    justify-self: center !important;
    position: relative !important;
    z-index: 2;
    min-height: 520px !important;
  }

  body[data-page="portfolio"] .hero-leo-assistant {
    width: 100% !important;
    max-width: 760px !important;
    min-height: 520px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  body[data-page="portfolio"] .leo-page-guide__bubble--over-3d,
  body[data-page="portfolio"] .leo-page-guide__bubble.leo-chat-bubble {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 !important;
    flex: 0 0 420px !important;
  }

  body[data-page="portfolio"] .hero-leo-3d__stage {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-height: 360px !important;
    margin-top: 0 !important;
  }
}


/* Portfolio stacked hero: center hero copy */
@media (min-width: 992px) {
  body[data-page="portfolio"] .page-hero-copy {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    padding: 0 !important;
  }

  body[data-page="portfolio"] .page-hero-copy .eyebrow {
    justify-content: center !important;
  }

  body[data-page="portfolio"] .page-hero-copy h1 {
    max-width: 24ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="portfolio"] .page-hero-copy p {
    max-width: 62ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="portfolio"] .hero-leo-3d {
    justify-self: center !important;
  }

  body[data-page="portfolio"] .hero-leo-assistant {
    justify-content: center !important;
  }
}


/* AI Solutions test: stack Leo below hero copy instead of right column */
@media (min-width: 992px) {
  body[data-page="ai"] .page-hero {
    overflow: visible !important;
  }

  body[data-page="ai"] .page-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    align-items: start !important;
  }

  body[data-page="ai"] .page-hero-copy {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
  }

  body[data-page="ai"] .page-hero-copy .eyebrow {
    justify-content: center !important;
  }

  body[data-page="ai"] .page-hero-copy h1 {
    max-width: 24ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="ai"] .page-hero-copy p {
    max-width: 62ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="ai"] .hero-leo-3d {
    width: 100% !important;
    max-width: 760px !important;
    justify-self: center !important;
    position: relative !important;
    z-index: 2;
    min-height: 520px !important;
  }

  body[data-page="ai"] .hero-leo-assistant {
    width: 100% !important;
    max-width: 760px !important;
    min-height: 520px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  body[data-page="ai"] .leo-page-guide__bubble--over-3d,
  body[data-page="ai"] .leo-page-guide__bubble.leo-chat-bubble {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 !important;
    flex: 0 0 420px !important;
  }

  body[data-page="ai"] .hero-leo-3d__stage {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-height: 360px !important;
    margin-top: 0 !important;
  }
}


/* Services overview test: stack Leo below hero copy instead of right column */
@media (min-width: 992px) {
  body[data-page="services"][data-base="."] .page-hero {
    overflow: visible !important;
  }

  body[data-page="services"][data-base="."] .page-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    align-items: start !important;
  }

  body[data-page="services"][data-base="."] .page-hero-copy {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
  }

  body[data-page="services"][data-base="."] .page-hero-copy .eyebrow {
    justify-content: center !important;
  }

  body[data-page="services"][data-base="."] .page-hero-copy h1 {
    max-width: 24ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="services"][data-base="."] .page-hero-copy p {
    max-width: 62ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="services"][data-base="."] .hero-leo-3d {
    width: 100% !important;
    max-width: 760px !important;
    justify-self: center !important;
    position: relative !important;
    z-index: 2;
    min-height: 520px !important;
  }

  body[data-page="services"][data-base="."] .hero-leo-assistant {
    width: 100% !important;
    max-width: 760px !important;
    min-height: 520px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  body[data-page="services"][data-base="."] .leo-page-guide__bubble--over-3d,
  body[data-page="services"][data-base="."] .leo-page-guide__bubble.leo-chat-bubble {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 !important;
    flex: 0 0 420px !important;
  }

  body[data-page="services"][data-base="."] .hero-leo-3d__stage {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-height: 360px !important;
    margin-top: 0 !important;
  }
}

  /* Home hero: stack Leo below hero copy and center content */
@media (min-width: 992px) {
  body[data-page="home"] .hero {
    overflow: visible !important;
  }

  body[data-page="home"] .hero-shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "copy"
      "leo" !important;
    gap: 2.5rem !important;
    align-items: start !important;
    justify-items: center !important;
    min-height: auto !important;
  }

  body[data-page="home"] .hero-main {
    grid-area: copy !important;
    width: 100% !important;
    justify-content: center !important;
  }

  body[data-page="home"] .hero .hero-copy {
    max-width: 920px !important;
    margin: 0 auto !important;
    margin-top: 0 !important;
    text-align: center !important;
    padding: 0 !important;
    position: relative;
    z-index: 2;
  }

  body[data-page="home"] .hero .hero-copy .eyebrow {
    justify-content: center !important;
  }

  body[data-page="home"] .hero .hero-copy h1 {
    max-width: 24ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body[data-page="home"] .hero .hero-copy p {
    max-width: 68ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="home"] .hero .hero-copy .btn-row {
    justify-content: center !important;
  }

  body[data-page="home"] .hero-value-points {
    justify-content: center !important;
  }

  body[data-page="home"] .hero-leo-3d {
    grid-area: leo !important;
    width: 100% !important;
    max-width: 820px !important;
    justify-self: center !important;
    position: relative !important;
    z-index: 2;
    min-height: 520px !important;
    margin-top: 0 !important;
  }

  body[data-page="home"] .hero-leo-assistant {
    width: 100% !important;
    max-width: 820px !important;
    min-height: 520px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  body[data-page="home"] .leo-response-bubble {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    order: 1 !important;
    width: 420px !important;
    max-width: 420px !important;
    flex: 0 0 420px !important;
    margin: 0 !important;
  }

  body[data-page="home"] .leo-response-bubble.is-visible {
    transform: none !important;
  }

  body[data-page="home"] .hero-leo-3d__stage {
    order: 2 !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 260px !important;
    min-height: 420px !important;
    margin-top: 0 !important;
    transform: none !important;
  }
}


/* Home Leo bubble: match Services cream chat bubble design */
@media (min-width: 992px) {
  body[data-page="home"] .leo-response-bubble,
  body[data-page="home"] .leo-response-bubble.leo-chat-bubble {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;

    width: 420px !important;
    max-width: 420px !important;
    flex: 0 0 420px !important;

    padding: 1.18rem 1.24rem 1.12rem !important;
    border-radius: 30px !important;
    border: 1px solid rgba(214, 181, 111, 0.34) !important;

    background:
      linear-gradient(180deg, rgba(255, 247, 232, 0.97), rgba(244, 232, 209, 0.95)),
      rgba(255, 247, 232, 0.96) !important;

    box-shadow: 0 26px 52px rgba(2, 8, 18, 0.16) !important;
    backdrop-filter: none !important;
    color: #132640 !important;
  }

  body[data-page="home"] .leo-response-bubble::before {
    display: none !important;
    content: none !important;
  }

  body[data-page="home"] .leo-response-bubble::after {
    content: "";
    position: absolute;
    right: -9px;
    bottom: 42px;
    width: 22px;
    height: 22px;
    background: rgba(244, 232, 209, 0.96);
    border-right: 1px solid rgba(214, 181, 111, 0.34);
    border-bottom: 1px solid rgba(214, 181, 111, 0.34);
    transform: rotate(45deg);
    border-bottom-right-radius: 8px;
  }

  body[data-page="home"] .leo-page-guide__label {
    color: rgba(21, 39, 66, 0.72) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
  }

  body[data-page="home"] .leo-response-bubble p,
  body[data-page="home"] .leo-response-bubble__message,
  body[data-page="home"] .leo-chat-message,
  body[data-page="home"] .leo-chat-message p {
    color: #132640 !important;
  }

  body[data-page="home"] .leo-chat-message--leo,
  body[data-page="home"] .leo-chat-message--thinking {
    background: rgba(255, 255, 255, 0.62) !important;
    color: #132640 !important;
    box-shadow: inset 0 0 0 1px rgba(21, 39, 66, 0.06) !important;
  }

  body[data-page="home"] .leo-chat-message--user {
    border: 1px solid rgba(207, 186, 141, 0.34) !important;
    background: rgba(207, 186, 141, 0.26) !important;
    color: #102033 !important;
  }

  body[data-page="home"] .leo-response-bubble__actions,
  body[data-page="home"] .leo-page-guide__chips,
  body[data-page="home"] .leo-page-guide__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  body[data-page="home"] .leo-response-bubble__cta,
  body[data-page="home"] .leo-page-guide__chip,
  body[data-page="home"] .leo-page-guide__action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 0.88rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(21, 39, 66, 0.12) !important;
    background: rgba(255, 255, 255, 0.42) !important;
    color: #18304f !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
  }

  body[data-page="home"] .leo-response-bubble__cta::after {
    display: none !important;
    content: none !important;
  }

  body[data-page="home"] .leo-response-bubble__cta:hover,
  body[data-page="home"] .leo-page-guide__chip:hover,
  body[data-page="home"] .leo-page-guide__action:hover {
    border-color: rgba(186, 151, 84, 0.42) !important;
    background: linear-gradient(135deg, rgba(216, 191, 132, 0.3), rgba(244, 232, 209, 0.76)) !important;
    color: #132640 !important;
  }

  body[data-page="home"] .leo-chat-form {
    border-top: 1px solid rgba(18, 32, 54, 0.12) !important;
  }

  body[data-page="home"] .leo-chat-input {
    border: 1px solid rgba(186, 151, 84, 0.28) !important;
    background: rgba(255, 255, 255, 0.68) !important;
    color: #132640 !important;
  }

  body[data-page="home"] .leo-chat-submit {
    border: 1px solid rgba(159, 119, 49, 0.22) !important;
    background: linear-gradient(135deg, #d8bf84, #b8914f) !important;
    color: #10213a !important;
  }
}

/* Home mobile: center hero copy and keep Leo chat in the cream desktop palette */
@media (max-width: 991px) {
  body[data-page="home"] .hero .hero-copy {
    width: 100% !important;
    max-width: min(100%, 390px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    text-align: center !important;
  }

  body[data-page="home"] .hero .hero-copy h1 {
    max-width: min(100%, 14ch) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body[data-page="home"] .hero .hero-copy p {
    max-width: 34ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="home"] .hero .hero-copy .btn-row {
    justify-content: center !important;
  }

  body[data-page="home"] .leo-response-bubble,
  body[data-page="home"] .leo-response-bubble.leo-chat-bubble {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    max-width: min(390px, calc(100vw - 32px)) !important;
    border: 1px solid rgba(214, 181, 111, 0.34) !important;
    background:
      linear-gradient(180deg, rgba(255, 247, 232, 0.97), rgba(244, 232, 209, 0.95)),
      rgba(255, 247, 232, 0.96) !important;
    box-shadow: 0 22px 44px rgba(2, 8, 18, 0.16) !important;
    backdrop-filter: none !important;
    color: #132640 !important;
  }

  body[data-page="home"] .leo-response-bubble::before {
    display: none !important;
    content: none !important;
  }

  body[data-page="home"] .leo-page-guide__label {
    color: rgba(21, 39, 66, 0.72) !important;
  }

  body[data-page="home"] .leo-response-bubble p,
  body[data-page="home"] .leo-response-bubble__message,
  body[data-page="home"] .leo-chat-message,
  body[data-page="home"] .leo-chat-message p {
    color: #132640 !important;
  }

  body[data-page="home"] .leo-chat-thread {
    scrollbar-color: rgba(186, 151, 84, 0.38) transparent;
  }

  body[data-page="home"] .leo-chat-message--leo,
  body[data-page="home"] .leo-chat-message--thinking {
    background: rgba(255, 255, 255, 0.72) !important;
    color: #132640 !important;
    box-shadow: inset 0 0 0 1px rgba(21, 39, 66, 0.06) !important;
  }

  body[data-page="home"] .leo-chat-message--user {
    border: 1px solid rgba(207, 186, 141, 0.34) !important;
    background: rgba(207, 186, 141, 0.26) !important;
    color: #102033 !important;
  }

  body[data-page="home"] .leo-chat-message--quick-actions,
  body[data-page="home"] .leo-chat-message--scan-result,
  body[data-page="home"] .leo-chat-message--lead-form {
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-page="home"] .leo-response-bubble__actions,
  body[data-page="home"] .leo-page-guide__chips,
  body[data-page="home"] .leo-page-guide__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  body[data-page="home"] .leo-response-bubble__cta,
  body[data-page="home"] .leo-page-guide__chip,
  body[data-page="home"] .leo-page-guide__action {
    border: 1px solid rgba(21, 39, 66, 0.12) !important;
    background: rgba(255, 255, 255, 0.5) !important;
    color: #18304f !important;
    box-shadow: none !important;
  }

  body[data-page="home"] .leo-response-bubble__cta::after {
    display: none !important;
    content: none !important;
  }

  body[data-page="home"] .leo-page-guide__chip.is-active,
  body[data-page="home"] .leo-response-bubble__cta:hover,
  body[data-page="home"] .leo-page-guide__chip:hover,
  body[data-page="home"] .leo-page-guide__action:hover {
    border-color: rgba(186, 151, 84, 0.42) !important;
    background: linear-gradient(135deg, rgba(216, 191, 132, 0.3), rgba(244, 232, 209, 0.76)) !important;
    color: #132640 !important;
  }

  body[data-page="home"] .leo-chat-form {
    border-top: 1px solid rgba(18, 32, 54, 0.12) !important;
  }

  body[data-page="home"] .leo-chat-input {
    border: 1px solid rgba(186, 151, 84, 0.28) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #132640 !important;
  }

  body[data-page="home"] .leo-chat-input::placeholder {
    color: rgba(19, 38, 64, 0.58) !important;
  }

  body[data-page="home"] .leo-chat-input:focus {
    border-color: rgba(186, 151, 84, 0.68) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 0 0 3px rgba(216, 191, 132, 0.2) !important;
  }

  body[data-page="home"] .leo-chat-submit {
    border: 1px solid rgba(159, 119, 49, 0.22) !important;
    background: linear-gradient(135deg, #d8bf84, #b8914f) !important;
    color: #10213a !important;
  }
}


/* Home hero CTA: restore primary button colors */
body[data-page="home"] .hero .hero-copy .btn-row .btn.btn-primary {
  background: linear-gradient(135deg, #d4c39f, #b59a65) !important;
  color: #07111f !important;
  border-color: transparent !important;
  opacity: 1 !important;
  box-shadow: 0 12px 30px rgba(181, 154, 101, 0.26) !important;
}

body[data-page="home"] .hero .hero-copy .btn-row .btn.btn-primary:hover,
body[data-page="home"] .hero .hero-copy .btn-row .btn.btn-primary:focus-visible {
  background: linear-gradient(135deg, #e2d1ab, #c5a96f) !important;
  color: #07111f !important;
}


/* Contact hero: text first, Leo and bubble underneath */
@media (min-width: 992px) {
  body[data-page="contact"] .page-hero {
    overflow: visible !important;
  }

  body[data-page="contact"] .page-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    align-items: start !important;
  }

  /* Hero text */
  body[data-page="contact"] .page-hero-copy {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
    text-align: center !important;
  }

  body[data-page="contact"] .page-hero-copy .eyebrow {
    justify-content: center !important;
  }

  body[data-page="contact"] .page-hero-copy h1 {
    max-width: 24ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="contact"] .page-hero-copy p {
    max-width: 62ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  /* Complete Leo area underneath the text */
  body[data-page="contact"] .hero-leo-3d {
    width: 100% !important;
    max-width: 760px !important;
    min-height: 520px !important;
    justify-self: center !important;
    position: relative !important;
    z-index: 2;
  }

  body[data-page="contact"] .hero-leo-assistant {
    width: 100% !important;
    max-width: 760px !important;
    min-height: 520px !important;
    margin: 0 auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  /* Bubble on the left of Leo */
  body[data-page="contact"] .leo-page-guide__bubble--over-3d,
  body[data-page="contact"] .leo-page-guide__bubble.leo-chat-bubble {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 420px !important;
    max-width: 420px !important;
    flex: 0 0 420px !important;

    margin: 0 !important;
    transform: none !important;
  }

  /* 3D Leo on the right of the bubble */
  body[data-page="contact"] .hero-leo-3d__stage {
    flex: 0 0 430px !important;
    width: 430px !important;
    min-height: 540px !important;
    margin-top: 0 !important;
  }
}


/* Match desktop Leo sizing with Contact page */
@media (min-width: 992px) {
  body[data-page="home"] .hero-leo-3d,
  body[data-page="about"] .hero-leo-3d,
  body[data-page="services"][data-base="."] .hero-leo-3d,
  body[data-page="ai"] .hero-leo-3d,
  body[data-page="portfolio"] .hero-leo-3d {
    width: 100% !important;
    max-width: 940px !important;
    justify-self: center !important;
  }

  body[data-page="home"] .hero-leo-assistant,
  body[data-page="about"] .hero-leo-assistant,
  body[data-page="services"][data-base="."] .hero-leo-assistant,
  body[data-page="ai"] .hero-leo-assistant,
  body[data-page="portfolio"] .hero-leo-assistant {
    width: 100% !important;
    max-width: 940px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  body[data-page="home"] .leo-response-bubble {
    order: 1 !important;
  }

  body[data-page="home"] .hero-leo-3d__stage,
  body[data-page="about"] .hero-leo-3d__stage,
  body[data-page="services"][data-base="."] .hero-leo-3d__stage,
  body[data-page="ai"] .hero-leo-3d__stage,
  body[data-page="portfolio"] .hero-leo-3d__stage {
    flex: 0 0 430px !important;
    width: 430px !important;
    min-width: 430px !important;
    min-height: 540px !important;
    margin-top: 0 !important;
  }

  body[data-page="home"] .hero-leo-3d__stage {
    order: 2 !important;
  }
}


/* Service detail heroes: match About desktop Leo layout */
@media (min-width: 992px) {
  body[data-page="services"][data-base=".."] .page-hero {
    overflow: visible !important;
  }

  body[data-page="services"][data-base=".."] .page-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    align-items: start !important;
  }

  body[data-page="services"][data-base=".."] .page-hero-copy {
    width: 100% !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    text-align: center !important;
  }

  body[data-page="services"][data-base=".."] .page-hero-copy .eyebrow {
    justify-content: center !important;
  }

  body[data-page="services"][data-base=".."] .page-hero-copy h1 {
    max-width: 24ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="services"][data-base=".."] .page-hero-copy p {
    max-width: 62ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body[data-page="services"][data-base=".."] .hero-leo-3d {
    width: 100% !important;
    max-width: 940px !important;
    min-height: 540px !important;
    justify-self: center !important;
    position: relative !important;
    z-index: 2 !important;
  }

  body[data-page="services"][data-base=".."] .hero-leo-assistant,
  body[data-page="services"][data-base=".."] .hero-leo-assistant--page {
    width: 100% !important;
    max-width: 940px !important;
    min-height: 540px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  body[data-page="services"][data-base=".."] .leo-page-guide__bubble--over-3d,
  body[data-page="services"][data-base=".."] .leo-page-guide__bubble.leo-chat-bubble {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;

    width: 420px !important;
    max-width: 420px !important;
    flex: 0 0 420px !important;

    margin: 0 !important;
  }

  body[data-page="services"][data-base=".."] .hero-leo-3d__stage,
  body[data-page="services"][data-base=".."] .hero-leo-assistant--page .hero-leo-3d__stage {
    position: relative !important;
    flex: 0 0 430px !important;
    width: 430px !important;
    min-width: 430px !important;
    min-height: 540px !important;
    margin-top: 0 !important;
  }
}


/* Growth Lab */
.growth-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(circle at 18% 18%, rgba(207, 186, 141, 0.13), transparent 32%),
    radial-gradient(circle at 82% 4%, rgba(108, 164, 255, 0.12), transparent 36%);
}

.growth-hero::after,
.article-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 186, 141, 0.36), transparent);
}

.growth-hero__inner,
.article-hero__inner {
  max-width: 920px;
  text-align: center;
}

.growth-hero h1,
.article-hero h1 {
  margin: 0.75rem auto 1.1rem;
  max-width: 13ch;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.95;
}

.article-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 6vw, 5.15rem);
}

.growth-hero p,
.article-hero p {
  max-width: 74ch;
  margin: 0 auto;
  color: rgba(232, 236, 242, 0.8);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.growth-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.growth-chips button,
.growth-card__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207, 186, 141, 0.26);
  border-radius: 999px;
  background: rgba(207, 186, 141, 0.08);
  color: rgba(247, 243, 234, 0.86);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.growth-chips button {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.growth-chips button:hover,
.growth-chips button:focus-visible,
.growth-chips button.is-active {
  border-color: rgba(207, 186, 141, 0.72);
  background: rgba(207, 186, 141, 0.16);
  color: var(--text);
}

.growth-lab-section {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.growth-featured {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(1.4rem, 4vw, 2.5rem);
  align-items: stretch;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.growth-featured__copy,
.growth-card,
.growth-cta,
.article-side-card,
.article-cta,
.related-card {
  border: 1px solid rgba(207, 186, 141, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(16, 32, 56, 0.86), rgba(9, 20, 37, 0.84)),
    rgba(11, 23, 41, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.growth-featured__copy {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.growth-featured__copy h2,
.growth-cta h2,
.article-cta h2 {
  margin: 0.65rem 0 0.85rem;
}

.growth-featured__copy p,
.growth-card p,
.growth-cta p,
.article-side-card p,
.related-card p {
  color: rgba(232, 236, 242, 0.76);
}

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

.growth-card {
  min-height: 100%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.growth-card[hidden] {
  display: none;
}

.growth-card--featured {
  border-color: rgba(207, 186, 141, 0.28);
}

.growth-card__category {
  align-self: flex-start;
  padding: 0.42rem 0.7rem;
  color: var(--gold);
}

.growth-card h3,
.related-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.25;
}

.growth-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  color: rgba(232, 236, 242, 0.62);
  font-size: 0.82rem;
}

.growth-card__link,
.article-side-card a,
.related-card a,
.article-back-link a,
.blog-breadcrumbs a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.growth-card__link {
  margin-top: auto;
}

.growth-cta {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}

.growth-cta .btn-row,
.article-cta .btn-row {
  justify-content: center;
}

.blog-breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  color: rgba(232, 236, 242, 0.62);
  font-size: 0.86rem;
}

.article-meta {
  justify-content: center;
  margin-top: 1.2rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.33fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.article-body {
  max-width: 790px;
}

.article-body section + section {
  margin-top: 2.25rem;
}

.article-body h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}

.article-body p,
.article-tips {
  color: rgba(232, 236, 242, 0.8);
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-tips {
  margin: 0;
  padding-left: 1.2rem;
}

.article-tips li + li {
  margin-top: 0.55rem;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--brand-bar-h) + var(--nav-h) + 1.4rem);
}

.article-side-card,
.article-cta,
.related-card {
  padding: 1.25rem;
}

.article-cta {
  margin-top: 2.5rem;
}

.related-section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.related-card span {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-back-link {
  margin-top: 1.6rem;
  text-align: center;
}

@media (max-width: 980px) {
  .growth-featured,
  .growth-grid,
  .related-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .growth-hero,
  .article-hero {
    padding-top: 4.5rem;
  }

  .growth-hero h1,
  .article-hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 14vw, 3.5rem);
  }

  .growth-card,
  .growth-featured__copy,
  .growth-cta,
  .article-side-card,
  .article-cta,
  .related-card {
    border-radius: 18px;
  }

  .growth-chips {
    justify-content: flex-start;
  }

  .growth-chips button {
    max-width: 100%;
    white-space: normal;
  }
}

/* Website Development Leo bubble: remove decorative diamond that overlaps submit */
body[data-service="website-development"] .page-hero .leo-page-guide__bubble::after,
body[data-service="website-development"] .page-hero .leo-page-guide__bubble--over-3d::after,
body[data-service="website-development"] .page-hero .leo-chat-bubble::after {
  display: none !important;
  content: none !important;
}
