/* ============================================================
   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;
  --radius: 0.35rem;
  --nav-h: 4.5rem;
  --topbar-h: 2.35rem;
  --container: 1140px;
  --font: "Outfit", 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;
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

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(4rem, 9vw, 6.5rem) 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(4rem, 9vw, 6.5rem) + var(--zig));
}

@media (max-width: 767px) {
  :root { --zig: 32px; }
}

/* ---- Typography ---- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--sec-text, var(--text));
}

.section-lead {
  color: var(--sec-muted, var(--muted));
  font-size: 1.05rem;
  max-width: 36rem;
}

/* ---- Buttons (sharp, B&W) ---- */
.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(--black);
  border-radius: 2px;
  background: var(--black);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.btn-vista:hover {
  background: #333;
  border-color: #333;
  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(--black);
  background: transparent;
  color: var(--black);
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.btn-ghost:hover {
  background: var(--black);
  color: #fff;
  transform: translateY(-1px);
}

/* ---- Text logo (VISTA + GRAPHIX same width) ---- */
.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;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  width: 7.25rem;
  flex-shrink: 0;
  color: var(--black);
  line-height: 1;
}

.brand-logo .logo-vista,
.brand-logo .logo-graphix {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin: 0;
}

.brand-logo .logo-vista i,
.brand-logo .logo-graphix i {
  font-style: normal;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1;
}

.brand-logo .logo-vista i {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-logo .logo-graphix i {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-brand .brand-logo {
  width: 8.5rem;
  margin-bottom: 1rem;
}

.footer-brand .logo-vista i,
.footer-brand .logo-graphix i {
  color: #fff;
}

.footer-brand .logo-vista i { font-size: 1.05rem; }
.footer-brand .logo-graphix i { font-size: 0.82rem; }

.site-nav:not(.scrolled) .brand-logo .logo-vista i,
.site-nav:not(.scrolled) .brand-logo .logo-graphix i {
  color: #fff;
}

.site-nav.scrolled .brand-logo .logo-vista i,
.site-nav.scrolled .brand-logo .logo-graphix i {
  color: var(--black);
}

body.has-topbar .site-nav:not(.scrolled) .brand-logo .logo-vista i,
body.has-topbar .site-nav:not(.scrolled) .brand-logo .logo-graphix i {
  color: #fff;
}

/* ---- 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: #fff; }

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

body.has-topbar .site-nav { top: var(--topbar-h); }

body.has-topbar .nav-links {
  top: calc(var(--topbar-h) + var(--nav-h));
}

/* ---- Navbar ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--gray-line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  width: min(var(--container), 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links a {
  padding: 0.4rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.site-nav.scrolled .nav-links a {
  color: var(--muted);
}

.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links a.active {
  color: var(--black);
}

.nav-cta {
  padding: 0.55rem 1rem !important;
  background: #fff !important;
  color: var(--black) !important;
  border: 1px solid #fff !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

.nav-cta:hover {
  background: transparent !important;
  color: #fff !important;
}

.site-nav.scrolled .nav-cta {
  background: var(--black) !important;
  color: #fff !important;
  border-color: var(--black) !important;
}

.site-nav.scrolled .nav-cta:hover {
  background: #333 !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-nav.scrolled .nav-toggle {
  color: var(--black);
  border-color: var(--gray-line);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

@media (max-width: 1099px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: #111;
    border-bottom: 1px solid #222;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }

  body.has-topbar .nav-links {
    top: calc(var(--topbar-h) + var(--nav-h));
    max-height: calc(100dvh - var(--topbar-h) - var(--nav-h));
  }

  .site-nav.scrolled .nav-links {
    background: #fff;
    border-bottom-color: var(--gray-line);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { padding: 0.85rem 1rem; }
  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
    background: #fff !important;
    color: #111 !important;
  }
  .site-nav.scrolled .nav-cta {
    background: #111 !important;
    color: #fff !important;
  }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 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: 34rem;
}

.hero-brand {
  margin: 0 0 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: min(100%, 18rem);
}

.hero-brand .logo-vista,
.hero-brand .logo-graphix {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0;
}

.hero-brand .logo-vista i,
.hero-brand .logo-graphix i {
  font-style: normal;
  font-family: var(--font);
  color: #fff;
  line-height: 1;
}

.hero-brand .logo-vista i {
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  font-weight: 500;
}

.hero-brand .logo-graphix i {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 700;
}

.hero-headline {
  font-family: var(--font);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.75rem;
  max-width: 28rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 2rem;
}

.hero-actions .btn-vista,
.hero-actions .btn-ghost {
  width: auto;
  max-width: none;
  white-space: nowrap;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.hero .btn-ghost:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-meta strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.hero-meta span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

@media (max-width: 991px) {
  .hero {
    min-height: 85vh;
    min-height: 85dvh;
    padding: calc(var(--nav-h) + 1.5rem) 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-brand {
    width: min(100%, 16rem);
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 575px) {
  .hero-actions .btn-vista,
  .hero-actions .btn-ghost {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-meta {
    gap: 1.25rem 1.5rem;
  }
}

/* ---- 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(--muted);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "·";
  margin-left: 2.5rem;
  color: #bbb;
}

@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(--black);
}

@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media {
    aspect-ratio: 16 / 10;
    max-height: 380px;
  }
}

/* ---- Services ---- */
.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: #bbb;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  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: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---- 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: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  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: #111;
  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: #111;
  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: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  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;
}

.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;
  }

  .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 ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 2.75rem;
}

.folio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-line);
  min-height: 230px;
  background: #f0f0f0;
}

.folio-item:nth-child(1) { grid-column: span 7; min-height: 320px; }
.folio-item:nth-child(2) { grid-column: span 5; min-height: 320px; }
.folio-item:nth-child(3),
.folio-item:nth-child(4),
.folio-item:nth-child(5) { grid-column: span 4; }

.folio-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #f7f7f7, #eaeaea),
    repeating-linear-gradient(-12deg, transparent, transparent 12px, rgba(0,0,0,0.02) 12px, rgba(0,0,0,0.02) 24px);
}

.folio-placeholder span {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
}

.folio-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
}

.folio-meta small {
  display: block;
  color: #ccc;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.folio-meta strong {
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 991px) {
  .folio-item:nth-child(n) {
    grid-column: span 6;
    min-height: 210px;
  }
}

@media (max-width: 767px) {
  .folio-item:nth-child(n) {
    grid-column: span 12;
  }
}

/* ---- 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);
}

.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: 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: #111;
  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 / Quote ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  margin-top: 2.25rem;
  align-items: start;
}

.contact-side { display: grid; gap: 1rem; }

.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;
}

.info-block p,
.info-block a {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.info-block a:hover { color: var(--black); }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.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);
}

.social-row a:hover {
  border-color: #111;
  color: #111;
}

.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: #111;
  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: #f0f0f0;
  border: 1px solid #ddd;
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success.show { display: block; }

@media (max-width: 991px) {
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---- CTA band ---- */
.cta-band {
  margin: 0 auto;
  width: min(var(--container), 92vw);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--black);
  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: #aaa;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.cta-band .btn-vista {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.cta-band .btn-vista:hover {
  background: transparent;
  color: #fff;
}

/* ---- Page header (inner pages) ---- */
.page-header {
  position: relative;
  min-height: 42vh;
  min-height: 42dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--topbar-h, 0px) + var(--nav-h) + 2.5rem) 0 3rem;
  overflow: hidden;
  background: var(--black-deep);
  color: #fff;
}

.page-header-grid {
  position: relative;
  z-index: 1;
  width: min(var(--container), 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 40rem;
}

.page-header-copy .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}

.page-header-copy .breadcrumb a:hover { color: #fff; }
.page-header-copy .breadcrumb span { opacity: 0.5; }

.page-header-copy h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: #fff;
}

.page-header-copy h1 em {
  font-style: italic;
  font-weight: 500;
  color: #ccc;
}

.page-header-copy p {
  color: #999;
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0;
}

.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);
  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;
}

.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: #bbb;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-list-num {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  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: calc(var(--topbar-h, 0px) + var(--nav-h) + 1.75rem) 0 2.5rem;
  }

  .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; }
}

/* ---- Footer ---- */
.site-footer {
  padding: 3.25rem 0 1.75rem;
  background: var(--black-deep);
  color: #fff;
  border-top: 1px solid #1a1a1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
  align-items: start;
}

.footer-brand p {
  color: #888;
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col a {
  display: block;
  color: #888;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid #222;
  font-size: 0.8rem;
  color: #777;
}

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- 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; }
}

@media (min-width: 1100px) and (max-width: 1280px) {
  .nav-links a {
    padding: 0.35rem 0.5rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 991px) {
  :root { --nav-h: 4.25rem; }

  .section { padding: clamp(3rem, 8vw, 4.5rem) 0; }
  .zigzag-top {
    padding-top: calc(clamp(3rem, 8vw, 4.5rem) + var(--zig));
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 1.25rem) 0 2rem;
  }

  .hero-actions .btn-vista,
  .hero-actions .btn-ghost {
    width: auto;
  }
}

@media (max-width: 767px) {
  :root { --nav-h: 4rem; }

  .brand-logo { width: 6.25rem; }
  .brand-logo .logo-vista i { font-size: 0.8rem; }
  .brand-logo .logo-graphix i { font-size: 0.62rem; }

  .marquee-track span { font-size: 0.72rem; }
}

@media (max-width: 575px) {
  body.has-topbar { --topbar-h: 3.25rem; }

  .topbar {
    height: auto;
    min-height: 2.35rem;
    padding: 0.4rem 0;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
  }

  .topbar-left span:nth-child(2) { display: none; }

  .hero-brand {
    width: min(100%, 14rem);
  }

  .hero-brand .logo-vista i { font-size: 1.45rem; }
  .hero-brand .logo-graphix i { font-size: 1.05rem; }

  .cursor-glow { display: none; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 1rem) 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html { scroll-behavior: auto; }
}
