:root {
  --ink: #050505;
  --muted: #75787d;
  --paper: #f4f7fb;
  --panel: #ffffff;
  --soft: #eef2f6;
  --line: #cfd4db;
  --accent: #cf4b4b;
  --accent-deep: #a91616;
  --brand-red: #cc1b1b;
  --display: "Space Grotesk", Arial, sans-serif;
  --script: "Libre Baskerville", Georgia, serif;
  --body: "Space Grotesk", Arial, sans-serif;
  /* Common transitions */
  --trans-fast: 180ms ease;
  --trans-mid: 220ms ease;
  --trans-slow: 250ms ease;
  --trans-slower: 700ms ease;
  /* Common shadows */
  --shadow-sm: 0 12px 24px rgba(5, 5, 5, 0.12);
  --shadow-md: 0 18px 40px rgba(5, 5, 5, 0.08);
  --shadow-lg: 0 20px 42px rgba(5, 5, 5, 0.09);
  --shadow-card: 0 14px 34px rgba(5, 5, 5, 0.04);
  /* Common borders and backgrounds */
  --border-accent: rgba(207, 75, 75, 0.36);
  --border-default: rgba(207, 212, 219, 0.82);
  --card-lift: translateY(-4px);
  --card-lift-lg: translateY(-6px);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(28px, 5vw, 86px);
  background: rgba(244, 247, 251, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: clamp(127px, 12vw, 175px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(30px, 5vw, 88px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--soft);
  border-color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: var(--panel);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(5, 5, 5, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px 32px;
}

.mobile-nav-drawer.is-active {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.mobile-nav-header .logo img {
  width: 125px;
}

.mobile-nav-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
  background: var(--soft);
  border-color: var(--ink);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--soft);
  color: var(--accent);
}

.mobile-nav-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
}

.mobile-nav-accordion-trigger:hover,
.mobile-nav-accordion-trigger:focus-visible {
  background: var(--soft);
}

.mobile-nav-accordion-trigger .accordion-arrow {
  transition: transform 0.25s ease;
}

.mobile-nav-accordion-trigger[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.mobile-nav-accordion-content {
  display: none;
  padding: 10px 14px 14px;
  background: var(--paper);
  border-radius: 8px;
  margin: 4px 0 8px;
}

.mobile-nav-accordion-content.is-open {
  display: block;
}

.mobile-subgroup {
  margin-bottom: 14px;
}

.mobile-subgroup:last-child {
  margin-bottom: 0;
}

.mobile-subgroup h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 8px 0 6px;
}

.mobile-subgroup a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.mobile-subgroup a:hover {
  color: var(--ink);
}

.mobile-nav-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav-footer .button {
  width: 100%;
  text-align: center;
  padding: 14px;
  box-sizing: border-box;
}

.nav-links a,
.button,
.client-strip span,
.client-strip h2,
.project-copy span,
.project-copy a,
.site-footer h2,
.footer-links a,
.footer-links span,
.footer-contact a,
.contact-form label,
.site-footer p,
.form-note {
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a,
.nav-dropdown-trigger {
  color: var(--ink);
  padding: 14px 2px;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: "▾";
  margin-left: 0.5em;
  font-size: 0.72em;
  opacity: 0.72;
}

.nav-dropdown-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  width: min(1200px, calc(100vw - 56px));
  background: var(--panel);
  border: 1px solid rgba(207, 212, 219, 0.45);
  border-radius: 22px;
  box-shadow: 0 24px 40px rgba(5, 5, 5, 0.08);
  padding: 28px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0ms linear 220ms;
  z-index: 15;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 24px 32px;
}

.nav-dropdown-column {
  display: grid;
  gap: 14px;
}

.nav-dropdown-column:nth-child(2) {
  min-width: 320px;
}

.nav-dropdown-column h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.nav-dropdown-column p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.nav-dropdown-item {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  color: var(--accent-deep);
  background: rgba(204, 27, 27, 0.08);
  outline: none;
}

.strategy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
  min-height: calc(92vh - 72px);
  background:
    radial-gradient(circle at 74% 28%, rgba(207, 75, 75, 0.1), transparent 0 28%, rgba(255, 255, 255, 0.74) 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.96));
}

.strategy-hero-copy {
  max-width: 840px;
}

.strategy-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.94;
}

.strategy-hero-copy p {
  max-width: 720px;
  color: #4f5358;
  font-size: clamp(1.04rem, 1.25vw, 1.24rem);
  font-weight: 500;
  line-height: 1.72;
}

.strategy-hero-copy p + p {
  margin-top: 18px;
}

.strategy-hero-panel {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(207, 212, 219, 0.82);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 54px rgba(5, 5, 5, 0.07);
}

.strategy-hero-panel span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.strategy-hero-panel p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.22rem, 1.8vw, 1.72rem);
  font-weight: 700;
  line-height: 1.22;
}

.strategy-narrative {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: start;
  background: var(--panel);
}

.strategy-narrative-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.strategy-narrative-copy p,
.strategy-card p,
.strategy-process-card p,
.strategy-deliverables-intro p,
.strategy-faq-item p,
.strategy-final p {
  color: var(--muted);
  font-size: clamp(1rem, 1.12vw, 1.1rem);
  font-weight: 500;
  line-height: 1.7;
}

.strategy-narrative-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-narrative-list li {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(244, 247, 251, 0.78);
  color: var(--ink);
  font-weight: 700;
}

.strategy-services {
  background: #f7f5f2;
}

.strategy-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
  max-width: 1180px;
  margin: clamp(42px, 6vw, 78px) auto 0;
}

.strategy-card {
  scroll-margin-top: 96px;
  display: grid;
  gap: 24px;
  min-height: 420px;
  padding: clamp(28px, 3.3vw, 44px);
  border: 1px solid rgba(207, 212, 219, 0.82);
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(5, 5, 5, 0.04);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.strategy-card:hover {
  transform: translateY(-5px);
  border-color: rgba(207, 75, 75, 0.42);
  box-shadow: 0 20px 42px rgba(5, 5, 5, 0.08);
}

.strategy-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.25rem);
}

.strategy-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-includes li,
.strategy-deliverables-grid li {
  border: 1px solid rgba(207, 75, 75, 0.24);
  background: rgba(204, 27, 27, 0.055);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.strategy-includes li {
  padding: 10px 12px;
}

.strategy-process {
  background: var(--panel);
}

.strategy-process-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(42px, 6vw, 74px);
  border: 1px solid rgba(207, 212, 219, 0.82);
  background: var(--panel);
}

.strategy-process-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 250px;
  padding: clamp(24px, 2.6vw, 34px);
  border-right: 1px solid rgba(207, 212, 219, 0.82);
}

.strategy-process-card:last-child {
  border-right: 0;
}

.strategy-process-card::after {
  content: ">";
  position: absolute;
  right: -12px;
  top: 36px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--panel);
  font-size: 0.9rem;
  line-height: 1;
  z-index: 1;
}

.strategy-process-card:last-child::after {
  display: none;
}

.strategy-process-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.strategy-process-card h3,
.strategy-process-card p {
  margin: 0;
}

.strategy-deliverables {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
  background: #f7f5f2;
}

.strategy-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-deliverables-grid li {
  padding: 16px 18px;
  background: var(--panel);
}

.strategy-faq {
  background: var(--panel);
}

.strategy-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: clamp(40px, 5vw, 68px);
}

.strategy-faq-item {
  padding: clamp(24px, 3vw, 34px);
  border-top: 3px solid var(--accent);
  background: rgba(244, 247, 251, 0.78);
}

.strategy-faq-item h3 {
  margin: 0 0 14px;
  font-size: clamp(1.16rem, 1.35vw, 1.36rem);
}

.strategy-faq-item p {
  margin: 0;
}

.strategy-final {
  display: grid;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.88), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.strategy-final h2,
.strategy-final p {
  max-width: 760px;
}

.strategy-final .button {
  margin-top: 20px;
}

@media (max-width: 1040px) {
  .strategy-hero,
  .strategy-narrative,
  .strategy-deliverables {
    grid-template-columns: 1fr;
  }

  .strategy-hero {
    min-height: auto;
  }

  .strategy-card-grid,
  .strategy-faq-grid {
    grid-template-columns: 1fr;
  }

  .strategy-card {
    min-height: 0;
  }

  .strategy-process-track {
    grid-template-columns: 1fr;
  }

  .strategy-process-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(207, 212, 219, 0.82);
  }

  .strategy-process-card:last-child {
    border-bottom: 0;
  }

  .strategy-process-card::after {
    content: "v";
    right: auto;
    left: 34px;
    top: auto;
    bottom: -12px;
  }
}

@media (max-width: 680px) {
  .strategy-hero-panel {
    padding: 24px;
  }

  .strategy-deliverables-grid {
    grid-template-columns: 1fr;
  }

  .strategy-includes li,
  .strategy-deliverables-grid li {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .nav-dropdown-menu {
    width: min(100vw, 100%);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 22px 18px;
  }

  .nav-dropdown-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-dropdown-menu {
    top: calc(100% + 10px);
    padding: 18px 16px;
  }

  .nav-dropdown-item {
    padding: 12px 14px;
  }
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  color: var(--accent-deep);
  background: rgba(204, 27, 27, 0.08);
  outline: none;
}

.whatsapp-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(5, 5, 5, 0.12);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease;
  z-index: 8;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 32px rgba(5, 5, 5, 0.16);
  outline: none;
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.section {
  padding: clamp(74px, 9vw, 132px) clamp(28px, 7vw, 132px);
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 7vw, 104px) clamp(28px, 7vw, 132px) clamp(58px, 6vw, 88px);
  background:
    radial-gradient(circle at 50% 48%, rgba(204, 27, 27, 0.06), transparent 0 34%, rgba(255, 255, 255, 0.86) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96)),
    var(--panel);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% 6% auto;
  height: min(58vw, 720px);
  border: 1px solid rgba(204, 27, 27, 0.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(204, 27, 27, 0.08), transparent 0 16%, rgba(204, 27, 27, 0.028) 17%, transparent 52%),
    linear-gradient(130deg, rgba(204, 27, 27, 0.04), rgba(255, 255, 255, 0));
  /* filter: blur(0.2px); -- removed for performance */
  opacity: 0.64;
  transform: rotate(-3deg);
  pointer-events: none;
  z-index: -1;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(100%, 1180px);
  min-height: clamp(470px, 54vw, 680px);
  align-content: center;
  padding: clamp(54px, 7vw, 96px) 0 clamp(38px, 5vw, 72px);
  text-align: center;
  transform: translateY(-80px);
  position: relative;
}

.hero-visual {
  position: absolute;
  left: 50%;
  top: 85%;
  width: min(132vw, 1428px);
  min-width: 0;
  aspect-ratio: 1.5;
  pointer-events: auto;
  transform: translate3d(calc(-50% + var(--hero-x, 0px)), calc(-50% + var(--hero-y, 0px)), 0);
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: auto;
  contain: layout style paint;
  z-index: 1;
}

.hero-visual.reveal,
.hero-visual.reveal.is-visible {
  transform: translate3d(calc(-50% + var(--hero-x, 0px)), calc(-50% + var(--hero-y, 0px)), 0);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual::before {
  inset: 6% 9% 4%;
  border: 1px solid rgba(204, 27, 27, 0.11);
  background:
    radial-gradient(circle at 50% 50%, rgba(204, 27, 27, 0.078), transparent 0 18%, rgba(204, 27, 27, 0.03) 19%, transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72) 67%);
  /* animation: heroFieldBreathe 14s ease-in-out infinite; -- removed for performance */
}

.hero-visual::after {
  inset: 20% 25% 17%;
  border: 1px solid rgba(204, 27, 27, 0.14);
  box-shadow:
    0 0 42px rgba(204, 27, 27, 0.07),
    inset 0 0 38px rgba(204, 27, 27, 0.04);
  /* animation: heroCoreBreathe 11s ease-in-out infinite 0.8s; -- removed for performance */
}

.hero-system {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translate3d(calc(var(--hero-x, 0px) * var(--depth, 0.5)), calc(var(--hero-y, 0px) * var(--depth, 0.5)), 0);
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: auto;
  contain: layout style paint;
}

.hero-system img {
  display: block;
  width: 120%;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
  transform-origin: center;
  user-select: none;
}

.hero-system-back {
  --depth: 0.18;
  opacity: 0.08;
  filter: none;
  transform: translate3d(calc(var(--hero-x, 0px) * var(--depth)), calc(var(--hero-y, 0px) * var(--depth)), 0);
}

.hero-system-front {
  --depth: 0.48;
  opacity: 0.72;
  filter:
    drop-shadow(0 30px 58px rgba(5, 5, 5, 0.05))
    drop-shadow(0 12px 24px rgba(204, 27, 27, 0.07));
  animation: heroSystemBreathe 18s ease-in-out infinite;
}

.hero-system-back img {
  width: 118%;
}

.hero-system-front img {
  width: 160%;
}

.hero-kicker {
  margin: 0 0 clamp(12px, 1.8vw, 20px);
  color: var(--brand-red);
  font-family: var(--body);
  font-size: clamp(0.82rem, 1.2vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-kicker span {
  color: var(--brand-red);
}

.hero-build {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.2rem, 11vw, 10.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-rotator {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 1180px);
  min-height: clamp(94px, 12vw, 170px);
  margin-top: clamp(4px, 0.8vw, 12px);
  color: var(--brand-red);
  font-family: var(--display);
  font-size: clamp(3.4rem, 10vw, 10rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: uppercase;
  overflow: hidden;
}

.hero-rotator span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translate3d(0, 32%, 0);
  will-change: opacity, transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  animation: heroWordCycle 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: calc(var(--word-index) * 3s);
}

.hero-rotator span small {
  display: block;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.hero-actions {
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
  position: relative;
  z-index: 4;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--accent);
  font-family: var(--script);
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  font-style: italic;
  line-height: 1.2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 790px;
  margin-bottom: 30px;
  font-size: clamp(2.65rem, 4.7vw, 4.7rem);
  line-height: 1;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4.2vw, 4.35rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--body);
  font-size: clamp(1.16rem, 1.45vw, 1.42rem);
  font-weight: 700;
  line-height: 1.05;
}

.hero-lead,
.section-intro > p:not(.eyebrow),
.why-copy p,
.line-item p,
.testimonial blockquote {
  color: var(--muted);
  font-family: var(--body);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 500;
  line-height: 1.62;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border: 2px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button.primary {
  background: var(--accent);
  color: var(--ink);
}

.button.primary:hover,
.button.secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--panel);
}

.client-strip span,
.client-strip h2,
.site-footer p {
  color: var(--accent);
}.client-strip {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: center;
  min-height: 0;
  padding: clamp(38px, 4vw, 56px) clamp(28px, 7vw, 132px);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  overflow: hidden;
}

.client-strip h2 {
  max-width: none;
  margin: 0;
  text-align: center;
  font-size: clamp(1.1rem, 1.4vw, 1.6rem);
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.client-list {
  min-width: 0;
  overflow: hidden;
}

.client-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: clientMarquee 28s linear infinite;
}

.client-list:hover .client-track {
  animation-play-state: paused;
}

.client-group {
  display: flex;
  gap: clamp(60px, 7vw, 120px);
  align-items: center;
  padding-right: clamp(60px, 7vw, 120px);
}

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: clamp(160px, 15vw, 240px);
  min-height: 70px;
  opacity: 0.75;
  filter: grayscale(0.2) contrast(0.98);
  transition: opacity 300ms ease, transform 300ms ease, filter 300ms ease;
}

.client-logo--mitraa {
  width: clamp(210px, 19vw, 310px);
  min-height: 95px;
}

.client-logo--panoverse {
  width: clamp(170px, 15vw, 230px);
}

.client-logo--reloura {
  width: clamp(150px, 14vw, 210px);
}

.client-logo:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.06);
  filter: grayscale(0) contrast(1) drop-shadow(0 8px 16px rgba(5, 5, 5, 0.08));
  z-index: 2;
}

.client-logo img {
  display: block;
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  backface-visibility: hidden;
}

.client-logo--mitraa img {
  max-height: 84px;
}

.client-logo--panoverse img {
  max-height: 50px;
  border-radius: 4px;
}

.client-logo--reloura img {
  max-height: 44px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(56px, 8vw, 132px);
  align-items: start;
}

.muted {
  background: var(--panel);
}

.about-covira {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 242, 0.88)),
    var(--panel);
  border-bottom: 1px solid rgba(207, 212, 219, 0.78);
  padding-top: clamp(44px, 4vw, 56px);
  padding-bottom: clamp(44px, 4vw, 56px);
}

.about-covira::before {
  content: "";
  position: absolute;
  inset: 0 clamp(28px, 7vw, 132px) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 75, 75, 0.42), transparent);
}

.about-covira-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(52px, 7vw, 96px);
  width: min(100%, 1200px);
  margin: 0 auto;
}

.about-label {
  margin: 0;
  color: var(--accent);
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.1;
}

.about-covira-copy {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.about-covira-copy h2 {
  max-width: 720px;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1;
}

.about-covira-copy p {
  margin: 0;
  color: #55595f;
  font-size: clamp(0.96rem, 1vw, 1.04rem);
  font-weight: 500;
  line-height: 1.58;
}

.about-principles {
  display: grid;
  gap: 12px;
}

.about-principle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-height: 0;
  padding: 16px 20px;
  border: 1px solid rgba(207, 212, 219, 0.84);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(5, 5, 5, 0.04);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

.about-principle-card:hover {
  transform: translateX(6px);
  border-color: rgba(207, 75, 75, 0.36);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(5, 5, 5, 0.075);
}

.about-principle-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(207, 75, 75, 0.32);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.about-principle-card h3,
.about-principle-card p {
  margin: 0;
}

.about-principle-card h3 {
  max-width: none;
  font-size: clamp(1.05rem, 1.25vw, 1.28rem);
  line-height: 1.1;
}

.about-principle-card p {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 6px;
}

.about-button {
  justify-self: start;
  min-width: min(100%, 224px);
  min-height: 48px;
  margin-top: 4px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--panel);
}

.about-button:hover,
.about-button:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--panel);
}

#why {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(48px, 6vw, 92px);
  align-items: center;
  padding-top: clamp(64px, 7vw, 104px);
  padding-bottom: clamp(132px, 14vw, 220px);
}

#why .section-intro h2 {
  max-width: 860px;
  font-size: clamp(2.35rem, 3.6vw, 4rem);
  line-height: 1.04;
}

#services {
  background: #f7f5f2;
  grid-template-columns: 1fr;
  justify-items: center;
  /* Reduce top padding and overall vertical gap so intro appears sooner */
  gap: clamp(28px, 4.5vw, 64px);
  padding-top: 7%;
  text-align: center;
}

#services .section-intro .eyebrow {
  margin-bottom: 24px;
  color: rgba(207, 75, 75, 0.78);
  font-size: clamp(1.18rem, 1.7vw, 1.8rem);
}

#services .section-intro h2 {
  max-width: 720px;
  font-size: clamp(2.8rem, 4.05vw, 4.25rem);
  line-height: 1.08;
}

#services .section-intro p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.75;
}

.service-intro-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.section-heading {
  margin-bottom: clamp(48px, 6vw, 90px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
  max-width: 1180px;
  margin: 80px auto 0;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 22px;
  min-height: 300px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(207, 212, 219, 0.82);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.service-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-card-content,
.service-cta {
  position: relative;
  z-index: 2;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(207, 75, 75, 0.48);
  box-shadow: 0 18px 40px rgba(5, 5, 5, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.service-card-content {
  display: grid;
  gap: 14px;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 1.5vw, 1.6rem);
  line-height: 1.1;
}

.service-card p {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.65;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: none;
}

.service-card:focus-visible {
  outline: 3px solid rgba(207, 75, 75, 0.25);
  outline-offset: 3px;
}

.work-showcase {
  position: relative;
  padding: clamp(46px, 5.5vw, 72px) clamp(28px, 7vw, 132px) clamp(58px, 6vw, 86px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 42px);
}

.case-study-card {
  display: grid;
  gap: clamp(20px, 2vw, 28px);
  padding: clamp(32px, 3vw, 42px);
  border: 1px solid rgba(207, 212, 219, 0.82);
  background: var(--panel);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.case-study-card:hover,
.case-study-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(5, 5, 5, 0.08);
  border-color: rgba(204, 27, 27, 0.18);
  outline: none;
}

.case-study-logo {
  width: min(180px, 100%);
}

.case-study-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.case-study-content {
  display: grid;
  gap: 18px;
}

.case-study-content h3 {
  margin: 0;
  font-size: clamp(1.55rem, 1.95vw, 2.2rem);
}

.case-study-content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.18vw, 1.14rem);
  line-height: 1.72;
}

.case-study-content span {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .case-study-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .case-study-card {
    padding: clamp(24px, 4vw, 32px);
  }
}

.work-sticky {
  display: grid;
  gap: clamp(28px, 3.5vw, 42px);
}

.work-heading {
  margin-bottom: 0;
}

.work-viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(5, 5, 5, 0.075);
}

.work-track {
  display: flex;
  transition: transform 650ms ease;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  flex: 0 0 100%;
  min-height: 0;
  border: 0;
  background: var(--panel);
  overflow: hidden;
}

.project-media {
  display: block;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--soft);
  overflow: hidden;
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 34vw, 520px);
  object-fit: cover;
  object-position: top center;
  transition: transform 350ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.025);
}

.project-copy {
  align-content: center;
  display: grid;
  gap: 16px;
  padding: clamp(28px, 4vw, 52px);
}

.work-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.work-dots button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(5, 5, 5, 0.24);
  cursor: pointer;
  transition: width 250ms ease, background 250ms ease, opacity 250ms ease;
}

.work-dots button.is-active {
  width: 42px;
  background: var(--accent);
}

.project-copy span,
.project-copy a {
  color: var(--accent);
}

.project-copy h3,
.project-copy p {
  margin: 0;
}

.project-copy h3 {
  font-size: clamp(1.65rem, 2vw, 2.25rem);
  line-height: 1.05;
}

.project-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.18rem, 1.35vw, 1.38rem);
  font-weight: 500;
  line-height: 1.62;
}

.project-copy a {
  width: fit-content;
  padding-top: 8px;
  font-size: 1.05rem;
  transition: color 180ms ease;
}

.project-copy a:hover {
  color: var(--ink);
}

.why-copy {
  max-width: 680px;
  padding-top: clamp(36px, 5vw, 76px);
}

.why-copy p {
  color: #4f5358;
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.75;
}

.testimonials {
  position: relative;
  padding-top: clamp(52px, 6vw, 88px);
  padding-bottom: clamp(52px, 6vw, 88px);
  overflow: hidden;
  isolation: isolate;

  /* Off-white base + right-side red ambient glow */
  background:
    radial-gradient(ellipse 60% 70% at 78% 55%, rgba(204, 27, 27, 0.055), transparent 68%),
    radial-gradient(ellipse 40% 50% at 80% 50%, rgba(204, 27, 27, 0.03), transparent 52%),
    #F7F8FA;
}

/* ── Arc circles: two oversized rings sitting behind everything ── */
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    /* Large arc — top-right corner, spills out of frame */
    radial-gradient(circle 680px at 96% -12%, transparent 580px, rgba(204, 27, 27, 0.055) 581px, rgba(204, 27, 27, 0.055) 584px, transparent 585px),
    /* Medium arc — bottom-left, partial ring */
    radial-gradient(circle 420px at -8% 108%, transparent 330px, rgba(204, 27, 27, 0.045) 331px, rgba(204, 27, 27, 0.045) 334px, transparent 335px);
}

/* ── Decorative quote mark ── */
.testimonials::after {
  content: "\201C";
  position: absolute;
  top: -2%;
  left: clamp(28px, 6vw, 100px);
  font-size: clamp(200px, 22vw, 320px);
  line-height: 1;
  color: rgba(204, 27, 27, 0.038);
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Network SVG overlay (sparse edge dots & lines) ── */
.testimonials-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Keep inner content above bg layers */
.testimonials-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.testimonials-label h2 {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ── Carousel ── */
.testimonial-carousel {
  position: relative;
}

.testimonial-slides {
  position: relative;
  width: 100%;
}

.testimonial-slide {
  display: none;
  animation: tSlideIn 400ms ease forwards;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(5, 5, 5, 0.10);
  user-select: none;
}

/* ── Dots ── */
.testimonial-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(204, 27, 27, 0.22);
  cursor: pointer;
  transition: background 250ms ease, transform 250ms ease;
  padding: 0;
}

.t-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

@keyframes tSlideIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Mobile: simplify decorative layers ── */
@media (max-width: 820px) {
  .testimonials::after {
    font-size: clamp(120px, 30vw, 180px);
    top: -1%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
  }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.82fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: start;
  padding-top: clamp(62px, 7vw, 96px);
  padding-bottom: clamp(66px, 7vw, 104px);
  background: var(--panel);
}

.contact .section-intro {
  max-width: 680px;
  padding-top: clamp(12px, 1.5vw, 24px);
}

.contact .section-intro h2 {
  margin-bottom: 28px;
}

.contact .section-intro > p:not(.eyebrow) {
  max-width: 620px;
  line-height: 1.72;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--ink);
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--accent);
  border-radius: 0;
  padding: 14px 18px;
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1.45 var(--body);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--ink);
}

textarea {
  resize: vertical;
}

.contact-form .button {
  width: fit-content;
}

.form-note {
  min-height: 1em;
  margin: 0;
  color: var(--accent);
  text-transform: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.65fr) minmax(180px, 0.65fr);
  align-items: start;
  gap: clamp(34px, 6vw, 90px);
  padding: clamp(44px, 6vw, 72px) clamp(28px, 7vw, 132px);
  background: var(--ink);
}

.site-footer .logo img {
  width: 150px;
}

.site-footer p {
  margin: 0;
}

.footer-brand,
.footer-links,
.footer-contact {
  display: grid;
  gap: 14px;
}

.footer-brand {
  gap: 22px;
}

.site-footer h2 {
  margin: 0 0 4px;
  color: var(--panel);
  font-size: 0.9rem;
}

.footer-links a,
.footer-links span,
.footer-contact a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.reveal-delay-1 {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

@keyframes clientMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes heroFieldBreathe {
  0%,
  100% {
    opacity: 0.66;
    transform: scale(0.985);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.025);
  }
}

@keyframes heroCoreBreathe {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.04);
  }
}

@keyframes heroWordCycle {
  0% {
    opacity: 0;
    transform: translateY(30%);
  }

  6%,
  22% {
    opacity: 1;
    transform: translateY(0);
  }

  28%,
  100% {
    opacity: 0;
    transform: translateY(-30%);
  }
}

@keyframes heroSystemBreathe {
  0%,
  100% {
    transform: translate3d(calc(var(--hero-x, 0px) * var(--depth)), calc(var(--hero-y, 0px) * var(--depth)), 0) scale(0.992);
  }

  50% {
    transform: translate3d(calc(var(--hero-x, 0px) * var(--depth)), calc(var(--hero-y, 0px) * var(--depth)), 0) scale(1.012);
  }
}

@keyframes heroLayerDrift {
  0%,
  100% {
    opacity: 0.14;
    transform: translate3d(calc(var(--hero-x, 0px) * var(--depth)), calc(var(--hero-y, 0px) * var(--depth)), 0) scale(1.06) rotate(-1.2deg);
  }

  50% {
    opacity: 0.22;
    transform: translate3d(calc(var(--hero-x, 0px) * var(--depth)), calc(var(--hero-y, 0px) * var(--depth)), 0) scale(1.1) rotate(1deg);
  }
}

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

  .hero-visual,
  .hero-system {
    transform: none !important;
  }

  .hero-rotator span {
    animation: none !important;
    opacity: 0;
    transform: none;
  }

  .hero-rotator span:first-child {
    opacity: 1;
  }
}

@media (max-height: 820px) and (min-width: 900px) {
  .hero {
    padding-top: 54px;
    padding-bottom: 36px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  h1 {
    margin-bottom: 26px;
    font-size: clamp(2.55rem, 4.45vw, 4.45rem);
    line-height: 0.99;
  }

  .hero-lead {
    margin-bottom: 26px;
  }
}

@media (max-width: 1180px) {
  #services {
    grid-template-columns: 1fr;
  }

  .service-grid {
    max-width: 860px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .about-covira-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-principles {
    grid-template-columns: 1fr;
  }

  .about-principle-card {
    min-height: 0;
  }

  .about-principle-card h3 {
    max-width: none;
  }

  #why {
    grid-template-columns: 1fr;
  }

  .why-copy {
    padding-top: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    width: min(150vw, 1120px);
    min-width: 0;
    top: 50%;
  }

  .service-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial {
    min-height: 0;
  }

  .testimonial:last-child {
    border-right: 1px solid rgba(207, 212, 219, 0.82);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .testimonials-inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
  }

  .testimonials-label {
    text-align: center;
  }

  .testimonials-label h2 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    height: clamp(280px, 56vw, 420px);
    aspect-ratio: 16 / 10;
  }

  .project-media img {
    min-height: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .project-media--logo {
    height: clamp(200px, 45vw, 280px);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 44px);
    background: #ffffff;
  }

  .project-media--logo img {
    height: auto;
    max-height: 80px;
    max-width: 65%;
    object-fit: contain;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 0 clamp(18px, 4vw, 32px);
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding-block: clamp(56px, 10vw, 76px);
    padding-inline: clamp(18px, 5vw, 32px);
  }

  .about-covira {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .about-covira-copy h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .about-button {
    width: 100%;
  }

  .hero {
    min-height: calc(100vh - 68px);
    padding-top: 48px;
    padding-bottom: 48px;
    padding-inline: clamp(18px, 5vw, 32px);
  }

  .hero::before {
    inset: 16% -32vw auto;
    height: 420px;
    opacity: 0.44;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .hero-visual {
    width: min(178vw, 780px);
    aspect-ratio: 1.28;
    top: 50%;
  }

  .hero-system-back {
    display: none;
  }

  .hero-system-front {
    opacity: 0.65;
    filter: blur(1.5px) drop-shadow(0 18px 26px rgba(5, 5, 5, 0.045));
    animation-duration: 20s;
  }

  .hero-copy {
    min-height: clamp(430px, 74vh, 620px);
    padding-block: 36px;
  }

  .hero-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .hero-build {
    font-size: clamp(3.5rem, 17vw, 5.8rem);
  }

  .hero-rotator {
    min-height: clamp(72px, 18vw, 108px);
    font-size: clamp(2.55rem, 13vw, 5rem);
  }

  .hero-actions {
    margin-top: 28px;
    gap: 12px;
  }

  .client-strip {
    min-height: 0;
    gap: 16px;
    padding-block: 28px;
    padding-inline: clamp(16px, 5vw, 28px);
  }

  .client-strip h2 {
    font-size: 0.95rem;
    margin: 0;
  }

  .client-logo {
    width: 140px;
    min-height: 52px;
    padding: 4px 12px;
  }

  .client-logo img {
    max-height: 44px;
    object-fit: contain;
  }

  .client-logo--mitraa img {
    max-height: 62px;
  }

  .line-item {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px clamp(18px, 5vw, 32px);
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button,
  .contact-form .button {
    width: 100%;
  }

  .project-media {
    height: clamp(260px, 75vw, 340px);
    aspect-ratio: 4 / 3;
  }

  .project-media--logo {
    height: 190px;
    padding: 24px;
  }

  .project-media--logo img {
    max-height: 65px;
  }

  .case-study-card {
    padding: 24px 20px;
  }

  .case-study-logo {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
  }

  .case-study-logo img {
    max-height: 44px;
    max-width: 160px;
  }

  .service-icon {
    width: 96px;
  }

  .whatsapp-button {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
}
