:root {
  --ink: #12212b;
  --muted: #5d6b73;
  --teal: #047195;
  --teal-2: #0a8dad;
  --red: #c42732;
  --amber: #e9a21b;
  --line: #dbe6ea;
  --surface: #f5f8f9;
  --surface-strong: #eaf2f4;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(18, 33, 43, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: 4.6rem;
}

h2 {
  font-size: 2.85rem;
}

h3 {
  font-size: 1.35rem;
}

h1,
h2,
h3,
.eyebrow,
.btn {
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 230, 234, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 170px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.72rem;
  color: #2b3a42;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
  background: var(--surface-strong);
}

.nav-cta,
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.nav-cta,
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(4, 113, 149, 0.24);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
}

.btn-outline {
  color: var(--teal);
  background: transparent;
  border: 1px solid rgba(4, 113, 149, 0.35);
}

.hero {
  position: relative;
  min-height: clamp(460px, 74svh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-color: #081a23;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero--slider {
  background: #081a23;
}

.hero--slider::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 26, 35, 0.88), rgba(8, 26, 35, 0.48) 48%, rgba(8, 26, 35, 0.08));
  content: "";
  pointer-events: none;
}

/* Some source photography already has its own baked-in title graphic
   (ribbon banner, logo mark) from the original site. For those images we
   keep a real <h1> in the markup for SEO/accessibility but hide it
   visually and skip the darkening scrim, so the photo shows exactly as
   designed instead of clashing with a second HTML caption on top of it. */
.hero--plain.hero--slider::after {
  content: none;
}

/* Match the source banners' native aspect ratio instead of an unrelated
   viewport-height min-height, so "cover" fit no longer crops the baked-in
   ribbon/logo graphics off the left and right edges. */
.hero--plain.hero--slider {
  aspect-ratio: 2.4;
  min-height: 0;
}

.hero--plain.hero--compact {
  aspect-ratio: 3.84;
  min-height: 0;
}

/* Every "plain" hero banner (home slider + the compact Nosotros/Servicios/
   Clientes/Productos/Contacto banners) keeps a real <h1> in the markup for
   SEO/accessibility, but it is visually hidden — the client asked for no
   text captions over these photos at all. */
.hero--plain .hero-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* At the desktop aspect ratio (2.4:1 / 3.84:1) these banners' baked-in
   captions shrink to unreadable sizes on phones. Switch to a taller box
   and bias the crop toward the bottom-left corner, where every banner in
   this set places its caption, trading the rightmost artwork for a
   legible message. */
@media (max-width: 640px) {
  .hero--plain.hero--slider {
    aspect-ratio: auto;
    min-height: clamp(230px, 62vw, 320px);
  }

  .hero--plain .hero-slide {
    background-position: 4% center;
  }

  .hero--plain.hero--compact {
    aspect-ratio: auto;
    min-height: clamp(170px, 46vw, 230px);
    background-position: 10% center;
  }
}

.hero-media,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.8s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero--compact {
  min-height: clamp(270px, 42svh, 430px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.hero-slider-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(16px, calc((100% - var(--max)) / 2));
  pointer-events: none;
}

.hero-slider-controls > button {
  pointer-events: auto;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  pointer-events: auto;
}

.hero-slider-controls > button,
.gallery-arrow,
.gallery-dialog-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--white);
  background: rgba(8, 26, 35, 0.62);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button[aria-current="true"] {
  width: 28px;
  border-radius: 999px;
  background: var(--amber);
}

.hero-content > * {
  max-width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero p {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--soft {
  background: var(--surface);
}

.section--teal {
  background: linear-gradient(135deg, #035d7b, #047195 58%, #106b72);
  color: var(--white);
}

.section-title {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-title p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--teal .section-title p,
.section--teal p {
  color: rgba(255, 255, 255, 0.86);
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  color: #33434c;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.logo-mark {
  width: 190px;
  margin: 0 auto 1.25rem;
}

.center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

.card,
.service-card,
.product-card,
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18, 33, 43, 0.07);
}

.card,
.service-card,
.contact-panel {
  padding: clamp(1.1rem, 2vw, 1.45rem);
}

.service-card h3,
.product-card h3,
.card h3 {
  margin-bottom: 0.7rem;
}

.service-card p,
.product-card p,
.card p {
  color: var(--muted);
}

.service-card-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 1rem;
  border-radius: 18px;
  object-fit: cover;
}

.access-card {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.access-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.access-card:hover {
  transform: translateY(-4px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.stat {
  padding: 0;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--teal);
  font-size: 2.5rem;
  line-height: 1;
}

.stat > span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-weight: 700;
}

.banner-img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  align-items: center;
}

.logo-tile {
  min-height: 108px;
  display: grid;
  place-items: center;
  padding: 0.5rem;
}

.logo-tile img {
  max-height: 84px;
  object-fit: contain;
}

.logo-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-carousel-track {
  width: max-content;
  display: flex;
  gap: 1rem;
  animation: logoTicker 38s linear infinite;
}

.logo-carousel:hover .logo-carousel-track {
  animation-play-state: paused;
}

.logo-carousel .logo-tile {
  width: 220px;
}

@keyframes logoTicker {
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

.product-card {
  overflow: hidden;
}

.product-card > a {
  display: block;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface);
}

.product-card div {
  padding: 1rem;
}

.check-list,
.number-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: #30414a;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--teal);
  content: "";
  box-shadow: inset 0 0 0 3px var(--white);
}

.number-list {
  counter-reset: step;
}

.number-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.number-list li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--teal);
  font-weight: 900;
  font-size: 1.15rem;
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.service-strip span {
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 800;
  font-size: 0.9rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.project-gallery {
  display: grid;
  gap: 0.9rem;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.gallery-stage > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.22s ease, transform 0.45s ease;
}

.gallery-stage.is-changing > img {
  opacity: 0.2;
  transform: scale(1.015);
}

.gallery-stage p {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 2.4rem 1rem 0.85rem;
  color: var(--white);
  background: linear-gradient(transparent, rgba(8, 26, 35, 0.86));
  font-weight: 800;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.gallery-arrow--prev { left: 1rem; }
.gallery-arrow--next { right: 1rem; }

.gallery-expand {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: var(--white);
  background: rgba(8, 26, 35, 0.7);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gallery-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0.15rem 0.5rem;
  scrollbar-width: thin;
}

.gallery-thumbs button {
  flex: 0 0 112px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbs button[aria-current="true"] {
  border-color: var(--teal);
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  object-fit: cover;
}

.gallery-dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: #07141a;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.gallery-dialog::backdrop {
  background: rgba(4, 13, 18, 0.82);
  backdrop-filter: blur(5px);
}

.gallery-dialog img {
  width: 100%;
  max-height: calc(100svh - 110px);
  object-fit: contain;
}

.gallery-dialog p {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
}

.gallery-dialog-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
}

.service-tabs {
  border-top: 8px solid var(--teal);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-tab-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.service-tab-list button {
  min-height: 86px;
  padding: 0.9rem;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--teal);
  background: var(--surface);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.3;
  cursor: pointer;
}

.service-tab-list button:last-child { border-right: 0; }

.service-tab-list button[aria-selected="true"] {
  color: var(--ink);
  background: var(--white);
}

.service-tab-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  animation: panelIn 0.45s ease both;
}

.service-tab-panel[hidden] { display: none; }

.service-tab-panel > img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.service-tab-panel h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.service-feature > img {
  height: 480px;
  object-fit: cover;
}

.strength {
  text-align: center;
}

.strength img {
  width: 74px;
  margin: 0 auto 0.8rem;
}

.strength h3 {
  font-size: 1.1rem;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.social-links img { width: 22px; }

.conversion-strip {
  padding: 1.2rem 0;
  color: var(--white);
  background: var(--teal);
}

.conversion-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.conversion-strip p {
  margin: 0;
  font-weight: 900;
}

.split--top { align-items: start; }

.decision-list,
.content-cards,
.technical-note,
.formula-band {
  margin-top: 1.5rem;
}

.evidence-chain {
  display: grid;
  gap: 0.65rem;
}

.evidence-chain span {
  position: relative;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--teal);
  background: var(--surface);
  font-weight: 800;
}

.chip-list,
.system-chain,
.formula-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-list span,
.system-chain span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 800;
}

.system-chain {
  align-items: center;
  justify-content: center;
}

.system-chain span:not(:last-child)::after {
  margin-left: 1rem;
  color: var(--amber);
  content: "→";
}

.section--teal .system-chain span,
.chip-list--dark span {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.technical-note {
  padding: 1.2rem;
  border-left: 5px solid var(--amber);
  background: var(--white);
}

.technical-caveat {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(8, 26, 35, 0.22);
}

.formula-band {
  justify-content: center;
  padding: 1rem;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
  text-align: center;
}

.formula-band span { color: var(--amber); }

.contact-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
}

.contact-assistant-toggle {
  min-height: 50px;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: #168c4b;
  box-shadow: 0 15px 40px rgba(8, 26, 35, 0.3);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.contact-assistant-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 32px));
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-assistant-panel[hidden] { display: none; }

.contact-assistant-panel h3 { margin-bottom: 1rem; }

.contact-assistant-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.contact-assistant-options {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-assistant-options button {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.contact-assistant-options button[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

.form-grid textarea {
  min-height: 150px;
  resize: vertical;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  background: #000000;
  color: var(--white);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-logo {
  width: 210px;
  margin-bottom: 1rem;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-nav {
  display: grid;
  gap: 0.45rem;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

:focus-visible {
  outline: 3px solid rgba(233, 162, 27, 0.65);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

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

  .grid-3,
  .split,
  .contact-grid,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .service-tab-list {
    display: flex;
    overflow-x: auto;
  }

  .service-tab-list button {
    flex: 0 0 min(260px, 72vw);
  }

  .service-tab-panel {
    grid-template-columns: 180px 1fr;
  }

  .conversion-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  h3 {
    font-size: 1.08rem;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand img {
    width: 146px;
  }

  .site-nav {
    top: 74px;
  }

  .hero {
    min-height: clamp(430px, 78svh, 560px);
  }

  .hero-content {
    padding: 3rem 0;
  }

  .hero p {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .stat strong {
    font-size: 2.1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .gallery,
  .stats {
    grid-template-columns: 1fr;
  }

  .nav-cta {
    display: none;
  }

  .hero-slider-controls {
    right: 16px;
    bottom: 0.8rem;
  }

  .hero-slider-controls > button {
    width: 38px;
    height: 38px;
  }

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

  .service-tab-panel > img {
    width: min(190px, 70%);
    margin: 0 auto;
  }

  .gallery-stage > img {
    aspect-ratio: 4 / 3;
  }

  .gallery-expand {
    top: 0.65rem;
    right: 0.65rem;
  }

  .gallery-arrow--prev { left: 0.5rem; }
  .gallery-arrow--next { right: 0.5rem; }

  .system-chain {
    align-items: stretch;
    flex-direction: column;
  }

  .system-chain span:not(:last-child)::after {
    display: block;
    margin: 0.3rem 0 -0.35rem;
    text-align: center;
    transform: rotate(90deg);
  }

  .contact-assistant {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal].reveal-ready {
    opacity: 1;
    transform: none;
  }
}
