/* ============================================================
   Vista Graphix — Black & White theme
   Zigzag sections: white / gray (Albano-inspired)
   ============================================================ */

:root {
  --black: #111111;
  --black-deep: #000000;
  --white: #ffffff;
  --gray: #f3f3f3;
  --gray-mid: #e8e8e8;
  --gray-line: #e0e0e0;
  --text: #111111;
  --muted: #666666;
  --muted-soft: #888888;
  --brand-orange: #f26224;
  --brand-orange-dark: #d9541c;
  --brand-purple: #64479d;
  --brand-purple-dark: #523a82;
  --radius: 0.35rem;
  --nav-h: 6.5rem;
  --topbar-h: 2.35rem;
  --container: 1140px;
  --font: "Montserrat", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zig: 48px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

body.has-topbar {
  padding-top: calc(var(--topbar-h) + var(--nav-h));
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
ul { list-style: none; margin: 0; padding: 0; }

.container-xl {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

/* ---- Section themes (white / gray zigzag) ---- */
.section {
  position: relative;
  padding: clamp(2.5rem, 5.5vw, 4rem) 0;
  z-index: 1;
}

.theme-dark,
.theme-light,
.theme-gray {
  --sec-text: var(--text);
  --sec-muted: var(--muted);
  --sec-line: var(--gray-line);
  --sec-card: var(--white);
  --sec-card-border: var(--gray-line);
  --sec-ghost-border: #ccc;
}

.theme-light {
  --sec-bg: var(--white);
  background: var(--white);
  color: var(--text);
}

.theme-gray {
  --sec-bg: var(--gray);
  --sec-card: var(--white);
  background: var(--gray);
  color: var(--text);
}

/* Dark sections become soft gray in B&W system */
.theme-dark {
  --sec-bg: var(--gray);
  --sec-card: var(--white);
  --sec-text: var(--text);
  --sec-muted: var(--muted);
  --sec-line: var(--gray-line);
  --sec-card-border: var(--gray-line);
  --sec-ghost-border: #ccc;
  background: var(--gray);
  color: var(--text);
}

.zigzag-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--zig) * -1 + 1px);
  height: var(--zig);
  z-index: 5;
  pointer-events: none;
  background: inherit;
  clip-path: polygon(
    0 0, 8% 100%, 16% 0, 24% 100%, 32% 0, 40% 100%, 48% 0,
    56% 100%, 64% 0, 72% 100%, 80% 0, 88% 100%, 100% 0, 100% 0, 0 0
  );
}

.zigzag-top {
  padding-top: calc(clamp(2.5rem, 5.5vw, 4rem) + var(--zig));
}

.site-footer.zigzag-top {
  padding-top: calc(clamp(3.5rem, 7vw, 5rem) + var(--zig));
}

@media (max-width: 767px) {
  :root { --zig: 32px; }
}

/* ---- Typography ---- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--brand-purple);
}

.section-lead {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 36rem;
}

p {
  color: var(--text);
}

.hero p,
.hero .hero-lead {
  color: #fff;
}

.theme-dark p,
.theme-light p,
.theme-gray p {
  color: var(--text);
}

/* ---- Buttons ---- */
.btn-vista {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--brand-orange);
  border-radius: 2px;
  background: var(--brand-orange);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.btn-vista:hover {
  background: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--brand-purple);
  background: transparent;
  color: var(--brand-purple);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.btn-ghost:hover {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #fff;
  transform: translateY(-1px);
}

/* ---- Brand logo (image) ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo img {
  width: auto;
  height: 5.75rem;
  display: block;
  object-fit: contain;
  transition: height 0.3s var(--ease);
}

.footer-brand .brand-logo {
  margin-bottom: 1rem;
}

.footer-brand .brand-logo img {
  height: 7.5rem;
}

.site-nav.scrolled .brand-logo img {
  height: 5.1rem;
}

/* ---- Topbar ---- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--topbar-h);
  background: var(--black-deep);
  border-bottom: 1px solid #222;
  color: #aaa;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}

.topbar-inner {
  width: min(var(--container), 92vw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.topbar a { color: #aaa; font-weight: 500; }
.topbar a:hover { color: var(--brand-orange); }

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-orange);
  flex-shrink: 0;
}

body.has-topbar .site-nav { top: var(--topbar-h); }

/* ---- Navbar (white header + slide-in purple menu) ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--gray-line);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.35s;
}

.site-nav.scrolled {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  width: min(1240px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-quote {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--brand-purple);
  border: 1px solid var(--brand-purple);
  color: #fff !important;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.nav-quote span {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.nav-quote:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.15rem 0.35rem 0.35rem;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}

.nav-menu-label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.nav-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.55rem;
}

.nav-menu-icon i {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
}

.nav-menu-btn:hover {
  color: var(--brand-purple);
}

.nav-menu-btn:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Purple menu — slides in from right */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(20, 10, 40, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  width: 100%;
  max-width: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(242, 98, 36, 0.12), transparent 50%),
    linear-gradient(160deg, #523a82 0%, var(--brand-purple) 42%, #3d2a66 100%);
  color: #fff;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: none;
}

.menu-overlay.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .float-actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.menu-close {
  position: absolute;
  top: max(1.15rem, env(safe-area-inset-top));
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-close:hover {
  opacity: 0.75;
  transform: rotate(90deg);
}

.menu-shell {
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(3.5rem, 7vh, 5.5rem) clamp(1.15rem, 3.5vw, 3rem);
}

.menu-panel {
  width: min(1360px, 100%);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(0.5rem, 2vw, 1.5rem);
}

.menu-nav {
  --menu-flyout-gap: clamp(2.75rem, 5.5vw, 4.75rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  position: relative;
  min-height: 12rem;
  /* Size to the longest label so every flyout clears Mobile Apps / Software / etc. */
  width: max-content;
  max-width: 100%;
  min-width: 0;
  /* Room for right-aligned flyout submenus */
  padding-right: min(52%, 28rem);
  box-sizing: content-box;
}

.menu-branch {
  display: block;
  position: relative;
  width: 100%;
}

.menu-branch-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: clamp(1.4rem, 2.85vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  text-transform: none;
  background: none;
  border: none;
  padding: 0.2rem 0;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  position: relative;
  z-index: 3;
  transition: color 0.25s;
}

.menu-branch-toggle:hover,
.menu-branch:is(:hover, :focus-within) > .menu-branch-toggle,
.menu-branch.is-open > .menu-branch-toggle {
  color: var(--brand-orange);
}

.menu-plus {
  font-weight: 500;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.menu-branch:is(:hover, :focus-within) > .menu-branch-toggle .menu-plus,
.menu-branch.is-open > .menu-branch-toggle .menu-plus {
  transform: rotate(45deg);
}

.menu-branch-panel {
  position: absolute;
  left: 100%;
  top: 0;
  display: grid;
  gap: 0.15rem;
  width: max-content;
  max-width: min(28rem, 42vw);
  max-height: none;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  margin: 0 0 0 var(--menu-flyout-gap);
  padding: 0;
  z-index: 1;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

/* Invisible bridge so hover stays active across the gap */
.menu-branch-panel::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: var(--menu-flyout-gap);
}

.menu-branch:is(:hover, :focus-within) > .menu-branch-panel,
.menu-branch.is-open > .menu-branch-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.menu-branch-panel > a {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.12rem, 1.95vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.28rem 0;
  transition: color 0.25s;
}

.menu-branch-panel > a:hover {
  color: var(--brand-orange);
}

.menu-info {
  text-align: right;
  padding-top: 0.35rem;
}

.menu-info-kicker {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #c9b6ef;
}

.menu-info-lead {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.menu-info-rule {
  width: 3.5rem;
  height: 2px;
  margin: 0 0 1.25rem auto;
  background: #c9b6ef;
  border: none;
}

.menu-info-pages {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
}

.menu-info-pages a {
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.25s;
}

.menu-info-pages a:hover {
  color: var(--brand-orange);
}

.menu-info-list {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  justify-items: end;
}

.menu-info-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  transition: color 0.25s;
}

a.menu-info-row:hover {
  color: var(--brand-orange);
}

.menu-info-ico {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #c9b6ef;
}

.menu-info-ico svg {
  width: 1.05rem;
  height: 1.05rem;
}

.menu-social {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.menu-social a {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.25s, color 0.25s;
}

.menu-social a svg {
  width: 0.95rem;
  height: 0.95rem;
}

.menu-social a:hover {
  background: #fff;
  color: var(--brand-purple);
}

@media (max-width: 1399px) {
  .menu-panel {
    width: min(1240px, 100%);
  }

  .menu-branch-toggle {
    font-size: clamp(1.3rem, 2.7vw, 2.05rem);
  }
}

@media (max-width: 1199px) {
  .menu-panel {
    width: min(1080px, 100%);
  }

  .menu-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
  }

  .menu-branch-toggle {
    font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  }

  .menu-info-pages a {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  }
}

@media (max-width: 991px) {
  .menu-shell {
    place-items: start stretch;
    padding: clamp(4.25rem, 8vh, 5.5rem) clamp(1rem, 4vw, 1.75rem) clamp(2rem, 5vh, 3rem);
  }

  .menu-panel {
    width: 100%;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-inline: 0.25rem;
  }

  .menu-info {
    text-align: left;
  }

  .menu-info-rule {
    margin-left: 0;
    margin-right: auto;
  }

  .menu-info-pages {
    align-items: flex-start;
  }

  .menu-info-list {
    justify-items: start;
  }

  .menu-social {
    justify-content: flex-start;
  }

  .menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-height: 0;
    width: 100%;
    padding-right: 0;
    box-sizing: border-box;
  }

  .menu-branch {
    display: block;
    width: 100%;
    max-width: none;
  }

  .menu-branch-toggle {
    font-size: clamp(1.55rem, 6.5vw, 2.2rem);
    white-space: nowrap;
  }

  .menu-info-pages a {
    font-size: clamp(1.25rem, 5vw, 1.55rem);
  }

  .menu-branch-panel {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    max-width: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    margin: 0;
    padding-left: 1.1rem;
    z-index: auto;
    transition: max-height 0.45s var(--ease), opacity 0.3s, margin 0.3s;
  }

  .menu-branch-panel::before {
    display: none;
  }

  .menu-branch.is-open > .menu-branch-panel {
    max-height: 52rem;
    opacity: 1;
    pointer-events: auto;
    margin: 0.35rem 0 0.75rem;
  }
}

@media (max-width: 575px) {
  .menu-shell {
    padding-top: 4.75rem;
    padding-inline: 0.85rem;
  }

  .menu-panel {
    padding-block: 1.15rem;
  }

  .menu-branch-toggle {
    font-size: clamp(1.35rem, 7.2vw, 1.75rem);
  }

  .menu-branch-panel > a {
    font-size: 1.05rem;
    padding: 0.35rem 0;
  }

  .menu-info-row {
    font-size: 0.9rem;
  }

  .menu-close {
    top: max(0.85rem, env(safe-area-inset-top));
    right: max(0.85rem, env(safe-area-inset-right));
  }
}

@media (max-width: 575px) {
  :root { --nav-h: 5.75rem; }

  .brand-logo img { height: 4.85rem; }
  .site-nav.scrolled .brand-logo img { height: 4.35rem; }

  .nav-quote {
    padding: 0.55rem 0.95rem;
    font-size: 0.75rem;
  }

  .nav-menu-label {
    font-size: 0.82rem;
  }

  .nav-actions {
    gap: 0.55rem;
  }
}

/* Small / 14–15" laptops: keep header actions readable */
@media (max-width: 1366px) {
  .nav-inner {
    width: min(1180px, 94vw);
  }

  .contact-layout {
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

@media (max-width: 1280px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 1099px) {
  .hero {
    min-height: min(42rem, calc(100dvh - var(--topbar-h) - var(--nav-h)));
    padding: 2rem 0 2.75rem;
  }

  .nav-quote {
    padding: 0.58rem 1.05rem;
    font-size: 0.78rem;
  }
}

/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--black-deep);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(var(--container), 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 46rem;
}

.hero-lead {
  font-family: var(--font);
  font-size: clamp(2.35rem, 6.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.35rem;
  text-transform: lowercase;
}

.hero-rotator {
  position: relative;
  display: block;
  margin: 0 0 2rem;
  font-family: var(--font);
  font-size: clamp(1.55rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-orange);
}

/* Elementor-style "clip" rotator (same as TGDC) */
.hero-rotator-clip {
  position: relative;
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  transition: width 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-rotator-clip::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 0;
  width: 3px;
  height: 84%;
  background: currentColor;
  border-radius: 1px;
  pointer-events: none;
}

.hero-rotator-word {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.hero-rotator-word.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.hero-actions .btn-vista,
.hero-actions .btn-ghost {
  width: auto;
  max-width: none;
  white-space: nowrap;
}

.hero .btn-vista {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.hero .btn-vista:hover {
  background: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
  color: #fff;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.hero .btn-ghost:hover {
  background: #fff;
  color: var(--brand-purple);
  border-color: #fff;
}

@media (max-width: 991px) {
  .hero {
    min-height: calc(85vh - var(--topbar-h) - var(--nav-h));
    min-height: calc(85dvh - var(--topbar-h) - var(--nav-h));
    padding: 2rem 0 2.75rem;
    align-items: end;
  }

  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.72) 45%,
      rgba(0, 0, 0, 0.88) 100%
    );
  }

  .hero-copy {
    max-width: none;
  }

  .hero-rotator {
    margin-bottom: 1.65rem;
  }
}

@media (max-width: 575px) {
  .hero-actions .btn-vista,
  .hero-actions .btn-ghost {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-lead {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-rotator {
    font-size: clamp(1.25rem, 6.5vw, 1.7rem);
    min-height: 2.4em;
  }
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Marquee ---- */
.marquee-wrap {
  position: relative;
  background: var(--gray);
  overflow: hidden;
  padding: 0.9rem 0;
  z-index: 2;
  border-block: 1px solid var(--gray-line);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "·";
  margin-left: 2.5rem;
  color: var(--brand-orange);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
  transition: transform 1.1s var(--ease), filter 0.5s;
}

.about-media:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: 1.15rem;
  left: 1.15rem;
  right: 1.15rem;
  z-index: 1;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  color: var(--text);
}

.about-badge strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.about-badge span {
  font-size: 0.85rem;
  color: var(--muted);
}

.about-copy p,
.about-story-copy p {
  color: var(--sec-muted, var(--muted));
  margin-bottom: 1.1rem;
}

.about-points {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 1.75rem;
}

.about-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.about-points li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--brand-orange);
}

@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media {
    aspect-ratio: 16 / 10;
    max-height: 380px;
  }
}

/* ---- Services showcase (home) ---- */
.container-svc {
  width: min(1520px, 96vw);
  margin-inline: auto;
}

.services-showcase {
  --sec-bg: #1a0a52;
  background: #1a0a52;
  color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}

.services-showcase .section-eyebrow {
  color: var(--brand-orange);
}

.services-showcase .section-title {
  color: #fff;
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
}

.services-showcase .section-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
}

.svc-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 1.75rem;
  margin-top: 2.5rem;
  align-items: stretch;
  justify-items: stretch;
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f6f2fb 0%, #ebe4f5 100%);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  min-height: 520px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}

.svc-card:hover {
  transform: scale(1.035);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.32);
  z-index: 2;
}

.svc-card-body {
  padding: 1.75rem 1.55rem 1rem;
  flex-shrink: 0;
}

.svc-card-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
}

.svc-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.svc-card-body .svc-more {
  color: var(--brand-orange);
  font-weight: 600;
  white-space: nowrap;
}

.svc-card-media {
  margin-top: auto;
  overflow: hidden;
  border-radius: 0 0 1.5rem 1.5rem;
  flex: 1 1 auto;
  min-height: 280px;
  background: #ddd6ec;
}

.svc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s var(--ease);
}

.svc-card:hover .svc-card-media img {
  transform: scale(1.1);
}

/* Services page: white bg, 4 cards per row, no 5th-card centering */
.services-page {
  background: var(--white);
}

.services-page .section-title {
  color: var(--brand-purple);
}

.svc-cards-page {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.75rem 1.85rem;
}

.svc-cards-page .svc-card:nth-child(5) {
  grid-column: auto;
  width: auto;
  justify-self: stretch;
}

@media (max-width: 1199px) {
  .svc-cards-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.35rem 1.5rem;
  }
}

@media (max-width: 991px) {
  .svc-cards-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.35rem;
  }

  .svc-cards-page .svc-card:nth-child(5) {
    grid-column: auto;
    width: auto;
  }
}

@media (max-width: 575px) {
  .svc-cards-page {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
    gap: 1.75rem;
  }

  .svc-cards-page .svc-card:nth-child(5) {
    width: 100%;
  }
}

/* Legacy service items (inner pages) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.75rem;
}

.service-item {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--sec-card-border, var(--gray-line));
  border-radius: var(--radius);
  background: var(--sec-card, var(--white));
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  height: 100%;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.service-item:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-purple);
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.service-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 1199px) {
  .container-svc { width: min(1100px, 95vw); }
  .svc-card { min-height: 480px; }
  .svc-card-body h3 { font-size: 1.2rem; }

  /* Home: 3-up on small laptop / tablet landscape */
  .svc-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
  }
}

@media (max-width: 991px) {
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.35rem; }
  .svc-card { min-height: 460px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .svc-cards {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }
  .svc-card { min-height: 440px; }
  .svc-card:hover { transform: scale(1.02); }
  .svc-card-body h3 { font-size: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ---- Simple Process ---- */
.process-section {
  background: var(--gray);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.process-title {
  font-family: var(--font);
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  color: var(--brand-purple);
  margin: 0 0 clamp(2.25rem, 5vw, 3.5rem);
}

.process-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  position: relative;
  width: 100%;
  max-width: none;
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
}

.process-steps::before {
  content: "";
  position: absolute;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  top: 1.75rem;
  height: 2px;
  background: #c5c5c5;
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}

.process-num {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #2a2a2a;
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 10px var(--gray);
}

.process-label {
  font-family: var(--font);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  color: #2a2a2a;
  max-width: 15rem;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .process-steps {
    padding: 0;
    column-gap: 1.5rem;
  }

  .process-steps::before {
    left: 12.5%;
    right: 12.5%;
  }

  .process-label {
    font-size: 1.05rem;
    max-width: 11rem;
  }
}

@media (max-width: 767px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 24rem;
    margin-inline: auto;
    column-gap: 0;
    padding: 0;
  }

  .process-steps::before {
    left: 1.75rem;
    right: auto;
    top: 1.75rem;
    bottom: 1.75rem;
    width: 2px;
    height: auto;
    background: #c5c5c5;
  }

  .process-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
    padding: 1.35rem 0;
  }

  .process-num {
    flex-shrink: 0;
    box-shadow: 0 0 0 10px var(--gray);
  }

  .process-label {
    max-width: none;
    font-size: 1.2rem;
  }
}

/* ---- Clients logos ---- */
.clients-section {
  background: var(--white);
  padding-block: clamp(2.5rem, 5.5vw, 4rem);
}

.clients-title {
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  color: var(--brand-purple);
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: center;
  justify-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 210px;
  height: 110px;
  padding: 0.25rem;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1);
  opacity: 0.85;
  transition: opacity 0.3s, filter 0.3s, transform 0.3s var(--ease);
}

.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .clients-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem 1.35rem;
  }
  .client-logo {
    max-width: 180px;
    height: 88px;
  }
}

@media (max-width: 767px) {
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.15rem;
  }
  .client-logo {
    max-width: 150px;
    height: 84px;
  }
}

@media (max-width: 575px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.1rem;
  }
  .client-logo {
    max-width: 160px;
    height: 88px;
  }
}

/* ---- Free Audit CTA ---- */
.audit-cta-section {
  background: var(--gray);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.audit-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3.5vw, 2.15rem) clamp(1.75rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.audit-cta-copy {
  min-width: 0;
}

.audit-cta-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.35;
}

.audit-cta-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1a1a2e;
  text-transform: uppercase;
}

.audit-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-purple) 0%, #4a3478 55%, #2a1f45 100%);
  color: #fff !important;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: none;
  box-shadow: 0 8px 22px rgba(100, 71, 157, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, filter 0.25s;
}

.audit-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(100, 71, 157, 0.42);
  color: #fff !important;
}

@media (max-width: 991px) {
  .audit-cta {
    border-radius: 1.75rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.75rem 1.5rem;
  }

  .audit-cta-btn {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .audit-cta {
    border-radius: 1.35rem;
  }

  .audit-cta-title {
    font-size: 1.75rem;
  }

  .audit-cta-kicker {
    font-size: 1.05rem;
  }
}

/* ---- Mastery map (product × brand) ---- */
.mastery-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.mastery-title {
  font-family: var(--font);
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--brand-purple);
  margin: 0;
}

.mastery-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 30rem;
  justify-self: end;
}

.mastery-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 480px;
  margin: 0 auto;
  max-width: 1040px;
}

.mastery-rings {
  position: absolute;
  inset: 6% 10%;
  pointer-events: none;
}

.mastery-rings .ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed #d5d5d5;
  border-radius: 50%;
}

.mastery-rings .ring-1 {
  width: 48%;
  aspect-ratio: 1;
}

.mastery-rings .ring-2 {
  width: 78%;
  aspect-ratio: 1;
}

.mastery-rings .axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  border-top: 1.5px dashed #d0d0d0;
  transform: translateY(-50%);
}

.mastery-label {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 600;
  color: #777;
  letter-spacing: 0.02em;
}

.axis-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
}

.axis-brand {
  left: 0.5%;
}

.axis-brand::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-purple);
  margin-left: 0.45rem;
  vertical-align: middle;
}

.axis-product {
  right: 0.5%;
}

.axis-product::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-orange);
  margin-right: 0.45rem;
  vertical-align: middle;
}

.map-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: default;
  z-index: 2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
}

.map-tag.ghost {
  background: #fff;
  border-color: #d8d8d8;
  color: #8a8a8a;
  font-size: 0.92rem;
  padding: 0.55rem 0.95rem;
  pointer-events: none;
}

.map-tag.active {
  background: var(--brand-purple);
  color: #fff;
  border-color: var(--brand-purple);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(100, 71, 157, 0.28);
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}

.map-tag.active:hover,
.map-tag.active:focus-visible,
.map-tag.active.is-open {
  transform: translate(-50%, -50%) scale(1.04);
  z-index: 20;
  outline: none;
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  box-shadow: 0 8px 22px rgba(242, 98, 36, 0.3);
}

.tag-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
}

.tag-heart {
  border-radius: 50%;
  background: #ff5c8a;
}

.tag-dot {
  border-radius: 50%;
  background: #4ea0ff;
}

.tag-pentagon {
  width: 15px;
  height: 15px;
  background: #f0c14a;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.tag-play {
  width: 13px;
  height: 13px;
  background: #5ecf7a;
  clip-path: polygon(15% 0%, 100% 50%, 15% 100%);
}

.tag-sq-green {
  border-radius: 2px;
  background: #5ecf7a;
}

.tag-sq-pink {
  border-radius: 2px;
  background: #ff6b9d;
}

.tag-sq-purple {
  border-radius: 2px;
  background: #9b7bff;
}

.map-preview {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px) scale(0.96);
  width: 210px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1f5;
  border: 1px solid #dde2ea;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18),
    8px 12px 0 rgba(30, 30, 30, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 30;
}

.map-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 48%;
  display: block;
  transform: scale(2.4);
  transform-origin: 52% 48%;
}

.map-preview--systems img {
  object-position: 48% 46%;
  transform: scale(2.55);
  transform-origin: 48% 46%;
}

.map-tag.active:hover .map-preview,
.map-tag.active:focus-visible .map-preview,
.map-tag.active.is-open .map-preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Keep preview on screen near edges */
.map-tag.active[data-side="left"] .map-preview {
  left: 0;
  transform: translateX(0) translateY(8px) scale(0.96);
}

.map-tag.active[data-side="left"]:hover .map-preview,
.map-tag.active[data-side="left"]:focus-visible .map-preview,
.map-tag.active[data-side="left"].is-open .map-preview {
  transform: translateX(0) translateY(0) scale(1);
}

.map-tag.active[data-side="right"] .map-preview {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px) scale(0.96);
}

.map-tag.active[data-side="right"]:hover .map-preview,
.map-tag.active[data-side="right"]:focus-visible .map-preview,
.map-tag.active[data-side="right"].is-open .map-preview {
  transform: translateX(0) translateY(0) scale(1);
}

.mastery-mobile { display: none; }

.mastery-desktop {
  position: absolute;
  inset: 0;
}

@media (max-width: 1199px) {
  .mastery-map {
    min-height: 440px;
    aspect-ratio: 15 / 11;
  }

  .map-tag {
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
  }

  .map-tag.ghost {
    font-size: 0.84rem;
    padding: 0.48rem 0.85rem;
  }

  .map-tag.active {
    font-size: 0.92rem;
  }
}

/* Tablet: keep circular orbits, tighten map */
@media (max-width: 991px) {
  .mastery-head {
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
    gap: 1rem;
  }

  .mastery-title {
    font-size: clamp(1.85rem, 5vw, 2.4rem);
  }

  .mastery-title br {
    display: none;
  }

  .mastery-lead {
    justify-self: start;
    max-width: 40rem;
    font-size: 1rem;
  }

  .mastery-map {
    aspect-ratio: 1 / 1.05;
    min-height: 520px;
    max-width: 640px;
    margin-inline: auto;
  }

  .mastery-rings {
    inset: 10% 6%;
  }

  .mastery-rings .ring-1 {
    width: 52%;
  }

  .mastery-rings .ring-2 {
    width: 86%;
  }

  .mastery-mobile {
    display: none !important;
  }

  .mastery-desktop {
    display: block;
    position: absolute;
    inset: 0;
  }

  .mastery-label {
    top: 12%;
    font-size: 0.85rem;
  }

  .axis-label {
    font-size: 0.85rem;
  }

  .map-tag {
    font-size: 0.72rem;
    padding: 0.38rem 0.62rem;
    gap: 0.3rem;
  }

  .map-tag.ghost {
    font-size: 0.68rem;
    padding: 0.34rem 0.58rem;
  }

  .map-tag.active {
    font-size: 0.72rem;
    padding: 0.38rem 0.62rem;
  }

  .tag-icon {
    width: 10px;
    height: 10px;
  }

  .map-preview {
    width: 170px;
    height: 120px;
  }
}

/* Mobile: keep both orbits, square map, smaller pills */
@media (max-width: 575px) {
  .mastery-map {
    aspect-ratio: 1 / 1.15;
    min-height: 460px;
    max-width: 100%;
    overflow: visible;
  }

  .mastery-rings {
    inset: 12% 2%;
  }

  .mastery-rings .ring-1 {
    width: 54%;
  }

  .mastery-rings .ring-2 {
    width: 92%;
  }

  .mastery-label {
    top: 11%;
    font-size: 0.72rem;
  }

  .axis-brand {
    left: 0;
  }

  .axis-product {
    right: 0;
  }

  .axis-label {
    font-size: 0.72rem;
  }

  .map-tag {
    font-size: 0.62rem;
    padding: 0.28rem 0.48rem;
    gap: 0.22rem;
    max-width: 44vw;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.25;
  }

  .map-tag.ghost {
    font-size: 0.58rem;
    padding: 0.24rem 0.42rem;
    color: #7a7a7a;
    border-color: #d0d0d0;
  }

  .map-tag.active {
    font-size: 0.62rem;
    padding: 0.28rem 0.48rem;
    gap: 0.22rem;
  }

  .tag-icon {
    width: 8px;
    height: 8px;
  }

  .tag-pentagon {
    width: 9px;
    height: 9px;
  }

  .tag-play {
    width: 8px;
    height: 8px;
  }

  .map-preview {
    width: min(140px, 52vw);
    height: 96px;
  }

  /* Nudge edge tags inward so they stay on screen */
  .mastery-desktop .map-tag.ghost[style*="--x:12%"],
  .mastery-desktop .map-tag.ghost[style*="--x:10%"],
  .mastery-desktop .map-tag.ghost[style*="--x:11%"],
  .mastery-desktop .map-tag.ghost[style*="--x:14%"] {
    --x: 18% !important;
  }

  .mastery-desktop .map-tag.ghost[style*="--x:88%"],
  .mastery-desktop .map-tag.ghost[style*="--x:90%"],
  .mastery-desktop .map-tag.ghost[style*="--x:89%"],
  .mastery-desktop .map-tag.ghost[style*="--x:86%"],
  .mastery-desktop .map-tag.ghost[style*="--x:84%"] {
    --x: 82% !important;
  }
}

/* ---- Mid craft (legacy class kept safe) ---- */
.mid-3d,
.craft-band {
  max-width: 40rem;
}

.mid-3d-copy h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.mid-3d-copy p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

/* ---- Products ---- */
.products-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2.75rem;
}

.product-panel {
  position: relative;
  min-height: 280px;
  padding: 1.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #222;
  color: #fff;
  background: #111;
}

.product-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #2a2a2a, #111 55%, #000);
  z-index: 0;
}

.product-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.75));
  z-index: 1;
}

.product-panel > * { position: relative; z-index: 2; }

.product-panel h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.product-panel p {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-link {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.product-link:hover { opacity: 0.7; }

@media (max-width: 991px) {
  .products-row { grid-template-columns: 1fr; }
}

/* ---- Portfolio gallery ---- */
.portfolio-section {
  background: var(--white);
}

/* Tighten gap between marquee strip and Portfolio heading */
.marquee-wrap + .portfolio-section {
  padding-top: calc(clamp(1.15rem, 2.8vw, 1.85rem) + var(--zig));
}

.portfolio-section .container-svc {
  width: min(1760px, 96vw);
}

.portfolio-head {
  max-width: 40rem;
  margin-bottom: 0;
}

.portfolio-head .section-title {
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  margin-bottom: 0;
}

#contact .section-eyebrow,
.contact-kicker {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-weight: 800;
  color: var(--brand-orange);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: clamp(1rem, 1.6vw, 1.75rem);
  margin-top: 1.35rem;
}

.gallery-card {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  flex-shrink: 0;
}

.gallery-media {
  position: relative;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 550 / 450;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #ececec;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.gallery-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(100, 71, 157, 0.72);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery-hover span {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  transform: translateY(8px);
  transition: transform 0.35s var(--ease);
}

.gallery-card:hover .gallery-hover,
.gallery-card:focus-visible .gallery-hover {
  opacity: 1;
}

.gallery-card:hover .gallery-hover span,
.gallery-card:focus-visible .gallery-hover span {
  transform: translateY(0);
}

.gallery-card:hover .gallery-media img,
.gallery-card:focus-visible .gallery-media img {
  transform: scale(1.06);
}

.gallery-name {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--brand-purple);
  color: var(--brand-purple);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.btn-view-all span {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-view-all:hover {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #fff;
  transform: translateY(-1px);
}

button.btn-view-all {
  cursor: pointer;
  font: inherit;
}

button.btn-view-all:disabled,
button.btn-view-all.is-hidden {
  display: none;
}

/* Portfolio page filters */
.portfolio-page {
  background: var(--white);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 2.5rem;
}

.portfolio-filter {
  appearance: none;
  border: 1px solid var(--gray-line);
  background: #fff;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.portfolio-filter:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.portfolio-filter.is-active {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #fff;
}

.portfolio-page .gallery-grid {
  margin-top: 0;
}

@media (max-width: 575px) {
  .portfolio-filters {
    gap: 0.4rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    padding-inline: 0.15rem 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .portfolio-filter {
    flex: 0 0 auto;
    font-size: 0.72rem;
    padding: 0.5rem 0.85rem;
  }
}

/* ---- Products page showcase ---- */
.products-page {
  background: var(--white);
}

.products-intro {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.product-showcase {
  display: grid;
  gap: clamp(3rem, 8vw, 5.5rem);
}

.product-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

.product-row-reverse {
  direction: rtl;
}

.product-row-reverse > * {
  direction: ltr;
}

.product-visual {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.product-visual-frame {
  position: relative;
  z-index: 2;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #ece8f5;
  box-shadow: 0 22px 50px rgba(100, 71, 157, 0.18);
  transform: translateY(0) rotate(-0.6deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.product-row-reverse .product-visual-frame {
  transform: translateY(0) rotate(0.6deg);
}

.product-row:hover .product-visual-frame {
  transform: translateY(-8px) rotate(0deg) scale(1.02);
  box-shadow: 0 28px 60px rgba(100, 71, 157, 0.28);
}

.product-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.product-row:hover .product-visual-frame img {
  transform: scale(1.08);
}

.product-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: product-float 5.5s ease-in-out infinite;
}

.product-orb-1 {
  width: 7.5rem;
  height: 7.5rem;
  background: rgba(242, 98, 36, 0.22);
  top: -1.25rem;
  right: -1rem;
}

.product-orb-2 {
  width: 5rem;
  height: 5rem;
  background: rgba(100, 71, 157, 0.2);
  bottom: -0.75rem;
  left: -0.75rem;
  animation-delay: -2.2s;
}

@keyframes product-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}

.product-copy h3 {
  font-family: var(--font);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--brand-purple);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.product-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1.15rem;
  max-width: 34rem;
}

.product-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.product-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand-purple);
}

@media (max-width: 991px) {
  .product-row,
  .product-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }

  .product-visual-frame,
  .product-row-reverse .product-visual-frame {
    transform: none;
  }

  .product-row:hover .product-visual-frame {
    transform: translateY(-6px) scale(1.015);
  }
}

@media (max-width: 575px) {
  .product-orb-1 {
    width: 4.5rem;
    height: 4.5rem;
    right: -0.35rem;
    top: -0.65rem;
  }

  .product-orb-2 {
    width: 3.25rem;
    height: 3.25rem;
    left: -0.35rem;
    bottom: -0.35rem;
  }

  .product-copy > p {
    font-size: 0.95rem;
  }

  .product-points li {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-orb {
    animation: none;
  }

  .product-visual-frame,
  .product-visual-frame img {
    transition: none;
  }
}

@media (max-width: 1199px) {
  .portfolio-section .container-svc {
    width: min(1160px, 96vw);
  }
}

/* Tablet + mobile: 2 portfolio cards per row */
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .gallery-media {
    border-radius: 1.15rem;
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    gap: 0.75rem;
  }

  .gallery-media {
    border-radius: 1rem;
  }

  .gallery-name {
    font-size: 0.88rem;
    margin-top: 0.65rem;
  }
}

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2.75rem;
}

.blog-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(242, 98, 36, 0.45);
}

.blog-thumb {
  aspect-ratio: 16 / 10;
  background: #ececec;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--gray-line);
}

.blog-thumb span {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}

.blog-body { padding: 1.25rem 1.3rem 1.4rem; }

.blog-body time {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.45rem 0 0.55rem;
  letter-spacing: -0.01em;
}

.blog-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 991px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.75rem;
}

.review-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-line);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.stars {
  color: #111;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.review-card p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.review-author strong {
  display: block;
  font-size: 0.9rem;
}

.review-author span {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 991px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ---- Contact page ---- */
.contact-map-band {
  position: relative;
  background: #ece8f5;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(100, 71, 157, 0.12);
}

.contact-map-frame {
  width: min(var(--container), 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(100, 71, 157, 0.14);
  box-shadow: 0 18px 48px rgba(100, 71, 157, 0.16);
  background: #ddd;
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  border: 0;
}

.contact-page {
  background: var(--white);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
}

.contact-page-info {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-page-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.contact-detail-list {
  display: grid;
  gap: 0.85rem;
}

.contact-page-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.85rem, 3.5vw, 2.5rem);
  box-sizing: border-box;
  border: 1px solid rgba(100, 71, 157, 0.14);
  box-shadow: 0 16px 42px rgba(100, 71, 157, 0.1);
}

.contact-page-form h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  color: var(--brand-purple);
}

.contact-page-form > p {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.contact-page-form form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-page-form .form-group {
  margin-bottom: 1.05rem;
}

.contact-page-form .form-group input,
.contact-page-form .form-group select,
.contact-page-form .form-group textarea {
  padding: 0.95rem 1.05rem;
  font-size: 1rem;
}

.contact-page-form .form-group textarea {
  flex: 1;
  min-height: 160px;
}

.contact-page-form .form-actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

.contact-detail-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: 0.85rem;
  border: 1px solid var(--gray-line);
  background: linear-gradient(180deg, #fff 0%, #faf8fc 100%);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.contact-detail-card:hover {
  border-color: rgba(100, 71, 157, 0.35);
  box-shadow: 0 10px 28px rgba(100, 71, 157, 0.1);
  transform: translateY(-2px);
}

.contact-detail-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: rgba(100, 71, 157, 0.1);
  color: var(--brand-purple);
  flex-shrink: 0;
}

.contact-detail-icon--wa {
  background: rgba(37, 211, 102, 0.14);
  color: #1fa855;
}

.contact-detail-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-detail-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-purple);
}

.contact-detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-detail-card a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.contact-detail-card a:hover {
  color: var(--brand-orange);
}

.contact-page-social {
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid var(--gray-line);
}

.contact-page-social > span {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

@media (max-width: 991px) {
  .contact-map-frame {
    width: min(100%, 92vw);
  }

  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 575px) {
  .contact-map-frame {
    border-radius: 0.9rem;
  }

  .contact-map-frame iframe {
    height: 240px;
  }

  .contact-detail-card {
    padding: 1rem;
  }
}

/* ---- Contact / Quote (home) ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  margin-top: 2.25rem;
  align-items: stretch;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.contact-side .contact-page-social {
  margin-top: auto;
}

.contact-layout > .quote-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.85rem, 3.5vw, 2.5rem);
  box-sizing: border-box;
}

.contact-layout > .quote-form h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
}

.contact-layout > .quote-form > p {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.contact-layout > .quote-form form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-layout .form-group {
  margin-bottom: 1.05rem;
}

.contact-layout .form-group input,
.contact-layout .form-group select,
.contact-layout .form-group textarea {
  padding: 0.95rem 1.05rem;
  font-size: 1rem;
}

.contact-layout .form-group textarea {
  flex: 1;
  min-height: 160px;
}

.contact-layout .form-actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-line);
  background: #e8e8e8;
  min-height: 260px;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.info-block {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: var(--white);
}

.info-block h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--brand-purple);
}

.info-block p,
.info-block a {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.info-block a:hover { color: var(--brand-orange); }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.social-row a {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--gray-line);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 575px) {
  .social-row a {
    font-size: 0.7rem;
    padding: 0.38rem 0.7rem;
  }
}

.social-row a:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.quote-form {
  padding: clamp(1.4rem, 3vw, 1.85rem);
  border-radius: var(--radius);
  border: 1px solid var(--gray-line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-form h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.quote-form > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-group { margin-bottom: 0.9rem; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 2px;
  border: 1px solid var(--gray-line);
  background: #fafafa;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-orange);
  background: #fff;
}

.form-group select { cursor: pointer; }
.form-group select option { background: #fff; color: #111; }
.form-group textarea { min-height: 110px; resize: vertical; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-success {
  display: none;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  background: rgba(242, 98, 36, 0.08);
  border: 1px solid rgba(242, 98, 36, 0.35);
  color: var(--brand-orange-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success.show { display: block; }

@media (max-width: 991px) {
  .contact-layout { grid-template-columns: 1fr; }

  .contact-map iframe {
    height: clamp(260px, 42vw, 330px);
  }
}

@media (max-width: 767px) {
  .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .form-row { grid-template-columns: 1fr; }

  .contact-map iframe {
    height: 240px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem; /* prevent iOS Safari focus zoom */
  }
}

/* ---- CTA band ---- */
.cta-band {
  margin: 0 auto;
  width: min(var(--container), 92vw);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-purple) 0%, #4a3478 55%, var(--black-deep) 100%);
  color: #fff;
  border: none;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.cta-band .btn-vista {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}

.cta-band .btn-vista:hover {
  background: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
  color: #fff;
}

/* ---- Page header (inner pages) ---- */
.page-header {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(242, 98, 36, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(100, 71, 157, 0.14), transparent 50%),
    linear-gradient(135deg, #fbfafc 0%, #f3eef9 48%, #faf8f6 100%);
  color: var(--text);
  border-bottom: 1px solid rgba(100, 71, 157, 0.12);
}

.page-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-orange), var(--brand-purple));
}

.page-header-grid {
  position: relative;
  z-index: 1;
  width: min(var(--container), 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: start;
  max-width: none;
  text-align: left;
}

.page-header-copy {
  width: 100%;
  max-width: none;
  text-align: left;
}

.page-header-copy .page-breadcrumb,
.page-header-copy .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(100, 71, 157, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  list-style: none;
  box-shadow: 0 4px 16px rgba(100, 71, 157, 0.06);
  justify-content: flex-start;
}

.page-header-copy .page-breadcrumb a,
.page-header-copy .breadcrumb a {
  color: var(--brand-purple);
  text-decoration: none;
}

.page-header-copy .page-breadcrumb a:hover,
.page-header-copy .breadcrumb a:hover {
  color: var(--brand-orange);
}

.page-header-copy .page-breadcrumb span,
.page-header-copy .breadcrumb span {
  color: var(--muted-soft);
  opacity: 1;
}

.page-header-copy h1 {
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: var(--brand-purple);
  text-align: left;
}

.page-header-copy h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand-orange);
}

.page-header-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: none;
  width: 100%;
  margin: 0;
  line-height: 1.65;
  text-align: left;
}

.craft-band .btn-vista {
  margin-top: 0.5rem;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.about-story-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.about-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.value-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-line);
  border-top: 3px solid var(--brand-orange);
  background: var(--white);
}

.value-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.offices-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.office-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-line);
  background: var(--white);
}

.office-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.office-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- About team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.75rem, 5vw, 4.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-right: 2.25rem;
}

.team-card {
  position: relative;
  isolation: isolate;
  transition: transform 0.35s var(--ease);
}

.team-card:hover,
.team-card:focus-within {
  transform: translateY(-4px);
  z-index: 3;
}

.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ece8f5;
  border-radius: 0.55rem;
  box-shadow: 0 14px 36px rgba(100, 71, 157, 0.1);
  position: relative;
  z-index: 2;
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.team-card:hover .team-photo img,
.team-card:focus-within .team-photo img {
  transform: scale(1.04);
}

.team-meta {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
  padding: 0.8rem 1rem;
  border-radius: 0.45rem;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(100, 71, 157, 0.94), rgba(242, 98, 36, 0.92));
  box-shadow: 0 10px 28px rgba(27, 19, 44, 0.22);
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.team-card:hover .team-meta,
.team-card:focus-within .team-meta {
  opacity: 1;
  transform: translateY(0);
}

.team-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.team-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.team-social {
  position: absolute;
  top: 1.25rem;
  right: -2.25rem;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.45rem;
  border-radius: 0 0.65rem 0.65rem 0;
  background: #fff;
  box-shadow: 12px 12px 30px rgba(45, 34, 66, 0.14);
  opacity: 0;
  transform: translateX(-2.25rem);
  transition: opacity 0.28s ease, transform 0.38s var(--ease);
}

.team-card:hover .team-social,
.team-card:focus-within .team-social {
  opacity: 1;
  transform: translateX(0);
}

.team-social a {
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgba(100, 71, 157, 0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand-purple);
  background: #fff;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.team-social a:hover,
.team-social a:focus-visible {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
  transform: scale(1.08);
}

.team-social svg {
  width: 0.8rem;
  height: 0.8rem;
}

@media (max-width: 991px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
    padding-right: 1.75rem;
  }
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.service-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-line);
  background: var(--white);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  height: 100%;
}

.service-list-item:hover {
  border-color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-list-num {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--brand-purple);
  padding-top: 0.15rem;
}

.service-list-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--text);
}

.service-list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-cta { margin-top: 1rem; }

@media (max-width: 991px) {
  .page-header {
    min-height: auto;
    padding: 2rem 0 2.25rem;
  }

  .about-story { grid-template-columns: 1fr; }
  .about-story-media {
    aspect-ratio: 16 / 10;
    max-height: 340px;
  }
  .values-grid,
  .offices-row,
  .services-list { grid-template-columns: 1fr; }
}

/* ---- FAQ accordion ---- */
.faq-section {
  background: var(--white);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: start;
}

.faq-intro .section-title {
  margin-bottom: 0.85rem;
}

.faq-intro .section-lead {
  margin-bottom: 1.5rem;
}

.faq-intro-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-intro-note a {
  color: var(--brand-purple);
  font-weight: 600;
  text-decoration: none;
}

.faq-intro-note a:hover {
  color: var(--brand-orange);
}

.faq-intro-media {
  margin: 1.75rem 0 0;
  width: 100%;
  max-width: none;
  aspect-ratio: 5 / 4;
  min-height: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #ece8f5;
  border: 1px solid rgba(100, 71, 157, 0.12);
  box-shadow: 0 12px 32px rgba(100, 71, 157, 0.1);
}

.faq-intro-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(100, 71, 157, 0.14);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #fff 0%, #faf8fc 100%);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item[open],
.faq-item.is-open {
  border-color: rgba(100, 71, 157, 0.35);
  box-shadow: 0 12px 32px rgba(100, 71, 157, 0.1);
}

.faq-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-purple);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(100, 71, 157, 0.1);
  color: var(--brand-purple);
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}

.faq-icon svg {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.3s var(--ease);
}

.faq-item summary:hover .faq-icon {
  background: rgba(242, 98, 36, 0.14);
  color: var(--brand-orange);
}

.faq-item[open] .faq-icon,
.faq-item.is-open .faq-icon {
  background: var(--brand-orange);
  color: #fff;
}

.faq-item[open] .faq-icon svg,
.faq-item.is-open .faq-icon svg {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--brand-purple);
  font-weight: 600;
  text-decoration: none;
}

.faq-answer a:hover {
  color: var(--brand-orange);
}

@media (max-width: 991px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .faq-intro-media {
    max-width: none;
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 575px) {
  .faq-item summary {
    padding: 1rem 1.05rem;
    gap: 0.75rem;
  }

  .faq-answer {
    padding: 0 1.05rem 1.05rem;
  }

  .faq-intro-media {
    margin-top: 1.35rem;
    max-width: 100%;
  }
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 2;
  padding: calc(clamp(3.5rem, 7vw, 5rem) + var(--zig)) 0 1.75rem;
  background: var(--brand-purple);
  color: #fff;
  border-top: none;
}

/* Purple zigzag edge into the section above (teeth point upward) */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--zig) * -1 + 1px);
  height: var(--zig);
  z-index: 5;
  pointer-events: none;
  background: var(--brand-purple);
  clip-path: polygon(
    0 100%, 8% 0, 16% 100%, 24% 0, 32% 100%, 40% 0, 48% 100%,
    56% 0, 64% 100%, 72% 0, 80% 100%, 88% 0, 100% 100%, 100% 100%, 0 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
  align-items: start;
}

.footer-col {
  padding: 0 clamp(1.15rem, 2vw, 1.75rem);
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  min-height: 100%;
}

.footer-col:first-child {
  padding-left: 0;
}

.footer-col:last-child {
  border-right: none;
  padding-right: 0;
}

.footer-brand .brand-logo {
  margin-bottom: 1.35rem;
  display: inline-flex;
}

.footer-brand .brand-logo img {
  height: 11.75rem;
  width: auto;
  filter: none;
}

.footer-contact {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-ico {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  color: #fff;
  opacity: 0.95;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-social-item {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.footer-social-item svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.footer-social-item:hover {
  background: #fff;
  border-color: #fff;
  color: var(--brand-purple);
  transform: translateY(-2px);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 1rem;
  color: #fff;
}

.footer-subhead {
  margin-top: 1.75rem !important;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  padding: 0.28rem 0;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-menu a:hover {
  color: #fff;
}

.footer-menu-strong {
  margin-top: 1.75rem;
}

.footer-menu-strong a {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-legal a:hover {
  color: #fff;
}

@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 0;
  }

  .footer-col {
    border-right: none;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 1.75rem;
  }

  .footer-col:nth-child(odd) { padding-left: 0; }
  .footer-col:nth-child(even) { padding-right: 0; }
  .footer-col:nth-last-child(-n + 2) {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-col {
    padding: 0 0 1.65rem;
    margin-bottom: 1.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .footer-col:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .footer-brand .brand-logo img {
    height: 8.25rem;
  }
}

/* ---- Quote popup ---- */
.quote-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}

.quote-popup.is-open {
  visibility: visible;
  pointer-events: auto;
}

.quote-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.quote-popup.is-open .quote-popup-backdrop {
  opacity: 1;
}

.quote-popup-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  color: var(--text);
  padding: 1.75rem 1.5rem 2rem;
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.quote-popup.is-open .quote-popup-panel {
  transform: translateX(0);
}

.quote-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--gray-line);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quote-popup-close:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.quote-popup-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin: 0 0 0.65rem;
}

.quote-popup-title {
  font-family: var(--font);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-purple);
  margin: 0 0 0.65rem;
  padding-right: 2rem;
}

.quote-popup-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.35rem;
}

.quote-popup .form-group {
  margin-bottom: 0.8rem;
}

.quote-popup .btn-vista {
  width: 100%;
  margin-top: 0.35rem;
}

.quote-popup .form-success {
  margin-top: 0.85rem;
}

/* ---- Floating actions (Top + WhatsApp) ---- */
.float-actions {
  position: fixed;
  right: max(1.15rem, env(safe-area-inset-right));
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.back-to-top {
  min-width: 3.5rem;
  height: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 2px;
  border: 1px solid #333;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.back-to-top .top-caret {
  display: none;
}

.back-to-top .top-label {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
}

.whatsapp-float {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, filter 0.25s;
}

.whatsapp-float svg {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
  color: #fff;
  filter: brightness(1.05);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #128c7e;
  outline-offset: 3px;
}

@media (max-width: 575px) {
  .float-actions {
    right: max(0.9rem, env(safe-area-inset-right));
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    gap: 0.55rem;
  }

  .back-to-top {
    min-width: 3.15rem;
    padding: 0.55rem 0.65rem;
  }

  .back-to-top .top-label {
    font-size: 0.68rem;
  }

  .whatsapp-float {
    width: 3.25rem;
    height: 3.25rem;
  }

  .whatsapp-float svg {
    width: 1.65rem;
    height: 1.65rem;
  }
}

/* ---- Cursor ---- */
.cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
  mix-blend-mode: multiply;
}

@media (pointer: fine) {
  .cursor-glow.active { opacity: 1; }
}

/* ---- Responsive extras ---- */
@media (min-width: 1400px) {
  :root { --container: 1240px; }
}

@media (min-width: 1800px) {
  :root { --container: 1360px; }
}

/* Small laptop */
@media (min-width: 1100px) and (max-width: 1280px) {
  .container-svc {
    width: min(1280px, 94vw);
  }
}

@media (max-width: 991px) {
  .section { padding: clamp(2.15rem, 5.5vw, 3.25rem) 0; }
  .zigzag-top {
    padding-top: calc(clamp(2.15rem, 5.5vw, 3.25rem) + var(--zig));
  }

  .hero-actions .btn-vista,
  .hero-actions .btn-ghost {
    width: auto;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-header-copy h1 {
    font-size: clamp(1.85rem, 5.5vw, 2.55rem);
  }
}

@media (max-width: 767px) {
  .footer-brand .brand-logo img { height: 6.85rem; }

  .marquee-track span { font-size: 0.72rem; }

  .section-title {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem);
  }

  .hero-lead {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .mastery-head {
    grid-template-columns: 1fr;
  }

  .mastery-lead {
    justify-self: start;
  }

  .products-row {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 1.75rem;
  }

  .hero {
    min-height: auto;
    padding: 1.5rem 0 2rem;
    align-items: end;
  }
}

@media (max-width: 575px) {
  body.has-topbar { --topbar-h: 2.75rem; }

  .topbar {
    height: var(--topbar-h);
    min-height: 0;
    padding: 0;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
    flex-wrap: nowrap;
  }

  .topbar-left { display: none; }

  .topbar-right {
    gap: 0.85rem;
    justify-content: center;
    width: 100%;
  }

  .cursor-glow { display: none; }

  .container-xl,
  .container-svc {
    width: min(100%, 92vw);
  }

  .portfolio-head,
  .text-center.mx-auto {
    padding-inline: 0.15rem;
  }

  .audit-cta {
    gap: 1.15rem;
  }

  .quote-form {
    padding: 1.25rem 1.1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn-vista,
  .hero-actions .btn-ghost {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
    white-space: normal;
    text-align: center;
    padding-inline: 0.85rem;
  }

  .quote-popup-panel {
    width: 100%;
    height: 100dvh;
    padding: 1.25rem 1rem max(1.5rem, env(safe-area-inset-bottom));
  }

  .quote-popup .form-group input,
  .quote-popup .form-group select,
  .quote-popup .form-group textarea {
    font-size: 1rem;
  }

  .page-header {
    padding: 1.65rem 0 1.85rem;
  }

  .page-header-copy .page-breadcrumb,
  .page-header-copy .breadcrumb {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
  }

  .page-header-copy p {
    font-size: 0.95rem;
  }
}

/* iPhone / iPad safe areas */
@supports (padding: max(0px)) {
  .topbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .nav-inner {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .quote-popup-panel {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: 1rem 1.5rem; }

  .topbar { display: none; }

  body.has-topbar {
    --topbar-h: 0px;
    padding-top: var(--nav-h);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-rotator-word {
    transition: none;
  }

  .hero-rotator-word:not(.is-active) {
    display: none;
  }

  .hero-rotator-clip {
    width: auto !important;
    overflow: visible;
    transition: none;
  }

  .hero-rotator-clip::after {
    display: none;
  }

  html { scroll-behavior: auto; }
}
