:root {
  --bg: #071426;
  --bg-soft: #0b1f39;
  --surface: #0f2a4a;
  --surface-2: #143a66;
  --text: #eaf4ff;
  --muted: #9fc1e3;
  --primary: #3eb5ff;
  --accent: #6ee7ff;
  --line: rgba(159, 193, 227, 0.24);
  --max: 1240px;
  --body-bg:
    radial-gradient(1200px 500px at 85% -10%, rgba(62, 181, 255, 0.2), transparent 55%),
    radial-gradient(900px 400px at -5% 40%, rgba(110, 231, 255, 0.16), transparent 55%),
    linear-gradient(160deg, #061121, #0a1d36 40%, #08192f);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--body-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(6, 16, 31, 0.68);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(5, 14, 28, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(159, 193, 227, 0.34);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  min-width: 0;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 0.8rem;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.brand-text {
  letter-spacing: 0.02em;
  font-size: 0.94rem;
  white-space: nowrap;
}

.brand-mode-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 24, 44, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.brand-mode-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.brand-mode-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.light-mode {
  --text: #10253f;
  --muted: #486887;
  --line: rgba(16, 37, 63, 0.18);
  --accent: #007dcb;
  --primary: #2daeea;
  --body-bg:
    radial-gradient(1200px 520px at 88% -10%, rgba(45, 174, 234, 0.16), transparent 58%),
    radial-gradient(900px 420px at -8% 40%, rgba(0, 125, 203, 0.11), transparent 58%),
    linear-gradient(160deg, #edf6ff, #e4f0fb 45%, #eaf4ff);
}

html.light-mode {
  --text: #10253f;
  --muted: #486887;
  --line: rgba(16, 37, 63, 0.18);
  --accent: #007dcb;
  --primary: #2daeea;
  --body-bg:
    radial-gradient(1200px 520px at 88% -10%, rgba(45, 174, 234, 0.16), transparent 58%),
    radial-gradient(900px 420px at -8% 40%, rgba(0, 125, 203, 0.11), transparent 58%),
    linear-gradient(160deg, #edf6ff, #e4f0fb 45%, #eaf4ff);
}

body.light-mode a {
  color: #0d5f99;
}

body.light-mode .site-header,
html.light-mode .site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(16, 37, 63, 0.14);
}

body.light-mode .site-header.scrolled,
html.light-mode .site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

body.light-mode .nav-links a,
html.light-mode .nav-links a {
  color: #355777;
}

body.light-mode .nav-links a[aria-current="page"],
html.light-mode .nav-links a[aria-current="page"] {
  color: #10253f;
}

body.light-mode .nav-links a:hover,
html.light-mode .nav-links a:hover {
  color: #2f67f6;
  text-decoration: none;
}

body.light-mode .kicker {
  color: #0a7bbb;
}

body.light-mode .hero-copy,
body.light-mode .section-grid p,
body.light-mode .card p,
body.light-mode .service-item p,
body.light-mode .process-step p,
body.light-mode .metric-label,
body.light-mode .footer-tagline,
body.light-mode .footer-col p,
body.light-mode .copyright {
  color: #486887;
}

body.light-mode .hero-card,
body.light-mode .hero-slider,
body.light-mode .card,
body.light-mode .service-item,
body.light-mode .metric-card,
body.light-mode .process-step,
body.light-mode .home-cta-wrap,
body.light-mode .footer-brand-block,
body.light-mode .footer-col {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(16, 37, 63, 0.16);
  box-shadow: 0 10px 26px rgba(13, 65, 112, 0.07);
}

body.light-mode .hero-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.88), rgba(236, 246, 255, 0.94));
}

body.light-mode .hero-slider {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(236, 246, 255, 0.95));
}

body.light-mode .btn-ghost {
  color: #10253f;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 37, 63, 0.18);
}

body.light-mode .btn-primary,
body.light-mode .cta-button {
  color: #ffffff;
  background: linear-gradient(120deg, #0482cf, #2daeea);
}

body.light-mode .btn-primary:hover,
body.light-mode .cta-button:hover {
  filter: brightness(1.04);
}

body.light-mode .footer-badges span {
  background: rgba(236, 246, 255, 0.95);
  color: #1d3d5b;
  border-color: rgba(16, 37, 63, 0.2);
}

body.light-mode .site-footer {
  background:
    radial-gradient(900px 300px at 50% 0%, rgba(45, 174, 234, 0.12), transparent 60%),
    rgba(241, 248, 255, 0.96);
}

body.light-mode .footer-col a,
body.light-mode .footer-brand {
  color: #10253f;
}

body.light-mode .brand-mode-badge,
html.light-mode .brand-mode-badge {
  background: #ffffff;
  border-color: rgba(16, 37, 63, 0.22);
}

body.light-mode .brand-mode-badge svg,
html.light-mode .brand-mode-badge svg {
  fill: #0d5f99;
}

body.light-mode .float-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #10253f;
  border-color: rgba(16, 37, 63, 0.2);
}

body.light-mode .float-btn.whatsapp {
  background: linear-gradient(120deg, #19b864, #1dcc72);
  color: #ffffff;
  border: 0;
}

body.light-mode .float-btn.call {
  background: linear-gradient(120deg, #0e78d8, #2f96ed);
  color: #ffffff;
  border: 0;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.cta-button {
  display: inline-block;
  font-weight: 700;
  color: #02284a;
  background: linear-gradient(120deg, var(--accent), var(--primary));
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
}

.cta-button:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.hero {
  padding: 5rem 0 3.2rem;
}

.hero-small {
  padding: 4rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr 1.15fr;
  grid-template-areas:
    "intro slider"
    "details slider";
  align-items: center;
}

.hero-intro {
  grid-area: intro;
}

.hero-details {
  grid-area: details;
}

.hero-slider {
  grid-area: slider;
}

.kicker {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.35rem, 3.8vw, 2rem);
}

.hero-copy {
  font-size: clamp(1rem, 2vw, 1.16rem);
  max-width: 62ch;
  color: var(--muted);
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
}

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

.btn {
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.btn-primary {
  color: #03233d;
  background: linear-gradient(120deg, var(--accent), var(--primary));
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(8, 24, 44, 0.42);
}

.btn:hover {
  text-decoration: none;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.4rem;
  background: linear-gradient(170deg, rgba(20, 58, 102, 0.88), rgba(10, 28, 51, 0.88));
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
  transform: translateY(0);
  animation: rise 0.7s ease-out both;
}

.hero-slider {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(170deg, rgba(20, 58, 102, 0.88), rgba(10, 28, 51, 0.88));
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.hero-slides {
  position: relative;
  min-height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.hero-video-wrap {
  position: relative;
  height: 100%;
}

.hero-video-controls {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 2.7rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.55rem;
  background: rgba(3, 13, 25, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.hero-video-wrap.controls-hidden .hero-video-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}

.video-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 34px;
}

.video-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.video-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.video-btn.rotate-toggle {
  display: none;
}

@media (max-width: 720px) {
  .hero-video-wrap:fullscreen .video-btn.rotate-toggle {
    display: inline-flex;
  }

  .hero-video-wrap:-webkit-full-screen .video-btn.rotate-toggle {
    display: inline-flex;
  }
}

.video-progress {
  flex: 1;
  min-width: 90px;
}

.video-time {
  color: #ffffff;
  font-size: 0.76rem;
  min-width: 78px;
  text-align: center;
}

.hero-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(to top, rgba(3, 12, 23, 0.88), rgba(3, 12, 23, 0.1));
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(2, 13, 25, 0.62);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.hero-slider-btn.prev {
  left: 0.65rem;
}

.hero-slider-btn.next {
  right: 0.65rem;
}

.hero-slider-btn:hover {
  background: rgba(2, 13, 25, 0.82);
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-slider-dot.is-active {
  background: #ffffff;
}

.hero-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 0.5rem;
}

.about,
.highlights,
.services,
.metrics,
.process,
.home-cta {
  padding: 2.8rem 0 3.2rem;
}

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

.section-grid p {
  margin: 0;
  color: var(--muted);
}

.section-cta {
  margin-top: 1.2rem;
}

.about-page .hero-small {
  padding-top: 3.2rem;
}

.about-page .hero-small h1 {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.about-page .hero-small .hero-copy {
  white-space: normal;
  max-width: 100%;
  font-size: clamp(1rem, 1.05vw, 1.22rem);
  line-height: 1.6;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.about-page .about-intro .section-grid {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1rem;
}

.about-page .about-intro .kicker {
  margin-bottom: 0.55rem;
}

.about-page .about-intro h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
}

.about-page .about-values {
  padding-top: 1.4rem;
}

.about-page .about-values .section-grid {
  gap: 1.2rem;
  align-items: stretch;
}

.about-page .about-panel {
  height: 100%;
  min-height: 0;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: visible;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.about-page .about-panel h2 {
  margin: 0;
  padding: 0;
  min-height: auto;
  max-width: none;
  display: block;
  overflow: visible;
}

.about-page .about-panel p {
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.about-page .about-director {
  padding-top: 0.8rem;
}

.about-page .director-profile {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(170deg, rgba(18, 50, 88, 0.74), rgba(9, 26, 47, 0.9));
  box-shadow: 0 14px 34px rgba(2, 10, 20, 0.32);
  padding: 1.15rem;
}

.about-page .director-photo-wrap {
  position: relative;
  margin: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(159, 193, 227, 0.24);
  background: rgba(7, 20, 36, 0.78);
}

.about-page .director-photo {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

.about-page .director-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(120deg, #0d6fd3, #2ea9ef);
  border-radius: 999px;
  padding: 0.36rem 0.62rem;
  box-shadow: 0 8px 16px rgba(3, 12, 23, 0.42);
}

.about-page .director-content {
  display: grid;
  align-content: center;
  gap: 0.65rem;
}

.about-page .director-content h2 {
  margin: 0;
}

.about-page .director-role {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-page .director-content p {
  margin: 0;
  color: var(--muted);
}

.about-page .director-highlights {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-page .director-highlights span {
  display: inline-flex;
  border: 1px solid rgba(110, 231, 255, 0.32);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.82rem;
  background: rgba(12, 35, 62, 0.66);
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .about-page .director-profile:hover,
  .about-page .director-profile:focus-within {
    transform: translateY(-8px);
    border-color: rgba(110, 231, 255, 0.45);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  }
}

body.light-mode .about-page .director-profile,
html.light-mode .about-page .director-profile {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.88), rgba(236, 246, 255, 0.94));
  border-color: rgba(16, 37, 63, 0.16);
  box-shadow: 0 10px 26px rgba(13, 65, 112, 0.08);
}

body.light-mode .about-page .director-photo-wrap,
html.light-mode .about-page .director-photo-wrap {
  border-color: rgba(16, 37, 63, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

body.light-mode .about-page .director-role,
html.light-mode .about-page .director-role {
  color: #0f70ae;
}

body.light-mode .about-page .director-highlights span,
html.light-mode .about-page .director-highlights span {
  border-color: rgba(16, 37, 63, 0.2);
  background: rgba(236, 246, 255, 0.95);
  color: #1d3d5b;
}

@media (hover: hover) and (pointer: fine) {
  .about-page .about-panel:hover,
  .about-page .about-panel:focus-within {
    transform: translateY(-10px);
    border-color: rgba(110, 231, 255, 0.45);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
  }
}

.about-page .about-panel.is-open {
  transform: translateY(-10px);
  border-color: rgba(110, 231, 255, 0.45);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

@media (hover: none), (pointer: coarse) {
  .about-page .about-panel:active {
    transform: translateY(-10px);
    border-color: rgba(110, 231, 255, 0.45);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
  }
}

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

.card {
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  padding: 1.2rem;
  background: rgba(9, 25, 46, 0.78);
}

.card p {
  color: var(--muted);
  margin: 0.4rem 0 0;
  overflow-wrap: anywhere;
}

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

.metric-card,
.process-step {
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  padding: 1.2rem;
  background: rgba(9, 25, 46, 0.78);
}

.metric-value {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.metric-label {
  margin: 0.35rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.step-no {
  display: inline-block;
  font-family: "Chakra Petch", sans-serif;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.process-step p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.home-cta-wrap {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(20, 58, 102, 0.58), rgba(8, 24, 44, 0.85));
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  align-items: center;
}

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

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

.contact-grid .contact-item {
  min-height: 220px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
}

.contact-grid .contact-item h2 {
  min-height: 0;
  max-width: none;
  padding: 0;
  margin: 0 0 0.45rem;
  display: block;
  overflow: visible;
}

.contact-grid .contact-item p {
  margin: 0;
}

.service-item {
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(20, 58, 102, 0.5), rgba(10, 28, 51, 0.8));
  padding: 0;
  position: relative;
  cursor: default;
  min-height: 320px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.services-grid {
  gap: 1.2rem;
  align-items: stretch;
}

.services-grid .service-item {
  border-radius: 1rem;
  min-height: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(16, 44, 78, 0.9), rgba(7, 24, 45, 0.96));
  box-shadow: 0 10px 24px rgba(2, 10, 20, 0.26);
  border-color: rgba(159, 193, 227, 0.24);
}

.services-grid .service-popup-panel {
  position: static;
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  border-top: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.45;
}

.services-grid .service-media {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  border-bottom: 1px solid rgba(159, 193, 227, 0.26);
  transform: scale(1);
  transition: transform 0.35s ease;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 10, 18, 0.84);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox-media {
  max-width: min(96vw, 1300px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.45rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.46);
}

.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(2, 13, 25, 0.78);
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-close:hover {
  background: rgba(2, 13, 25, 0.92);
}

body.lightbox-open {
  overflow: hidden;
}

.services-grid .service-item h2 {
  margin: 0;
  padding: 1.05rem 1.15rem 0.62rem;
  font-size: clamp(1.32rem, 1.6vw, 1.55rem);
  max-width: none;
  line-height: 1.25;
  min-height: 4.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: hover) and (pointer: fine) {
  .services-grid .service-item:hover,
  .services-grid .service-item:focus-within,
  .services-grid .service-item.reveal.is-visible:hover,
  .services-grid .service-item.reveal.is-visible:focus-within {
    transform: translateY(-10px);
    border-color: rgba(110, 231, 255, 0.42);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  }

  .services-grid .service-item:hover .service-media,
  .services-grid .service-item:focus-within .service-media {
    transform: scale(1.03);
  }
}

body.light-mode .services-grid .service-popup-panel,
html.light-mode .services-grid .service-popup-panel {
  color: #355777;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.8rem 0 1.2rem;
  background:
    radial-gradient(900px 300px at 50% 0%, rgba(62, 181, 255, 0.1), transparent 60%),
    rgba(5, 14, 28, 0.92);
}

.footer-top {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.footer-brand-block,
.footer-col {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(8, 24, 44, 0.62);
  padding: 1.1rem;
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.footer-tagline {
  margin: 0.85rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer-badges {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.footer-badges::-webkit-scrollbar {
  display: none;
}

.footer-badges span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.58rem;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(20, 58, 102, 0.48);
  flex: 0 0 auto;
}

.footer-col h2 {
  font-size: 0.96rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col p {
  margin: 0.3rem 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer-col a {
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.person {
  color: var(--text) !important;
  font-weight: 700;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.float-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.55rem;
  z-index: 40;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 24, 44, 0.92);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.float-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.float-btn.whatsapp {
  background: linear-gradient(120deg, #1fbf6a, #20d377);
  color: #ffffff;
  border: 0;
}

.float-btn.call {
  background: linear-gradient(120deg, #0d6fd3, #329af0);
  color: #ffffff;
  border: 0;
}

.float-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.float-btn.back-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.float-btn.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

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

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .cards,
  .metrics-grid,
  .process-grid,
  .services-grid,
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .about-page .director-profile {
    grid-template-columns: 1fr;
  }

  .about-page .director-photo {
    min-height: 280px;
    max-height: 420px;
  }

  .site-header {
    position: sticky;
  }

  .nav-wrap {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    align-items: center;
    row-gap: 0.8rem;
    padding: 0.75rem 0 0.6rem;
  }

  .brand-wrap {
    grid-area: brand;
    min-width: 0;
  }

  .brand-text {
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 145px);
  }

  .brand-mode-badge {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    grid-area: nav;
    width: 100%;
    margin-left: 0;
    overflow-x: visible;
    padding-bottom: 0.15rem;
    gap: 1rem;
    white-space: normal;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .brand-mode-badge {
    grid-area: cta;
    justify-self: end;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 1.05rem;
  }

  .cta-button {
    grid-area: cta;
    justify-self: end;
    font-size: 0.95rem;
    padding: 0.58rem 0.82rem;
    border-radius: 0.55rem;
  }

  .hero-grid,
  .section-grid,
  .cards,
  .metrics-grid,
  .process-grid,
  .services-grid,
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.4rem 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "intro slider"
      "details details";
    gap: 1rem;
    align-items: start;
  }

  .hero-slider,
  .hero-slides,
  .hero-slide img,
  .hero-slide video {
    min-height: 240px;
  }

  .hero-slide figcaption {
    font-size: 0.92rem;
    padding: 0.75rem 0.85rem 0.95rem;
  }

  .hero-video-controls {
    bottom: 2.5rem;
    gap: 0.3rem;
    padding: 0.3rem 0.35rem;
  }

  .hero-slider-dots {
    top: 0.55rem;
    bottom: auto;
  }

  .video-btn {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .video-time {
    font-size: 0.7rem;
    min-width: 64px;
  }

  .hero-slider-btn {
    display: none;
  }

  .hero-small {
    padding: 2.1rem 0 1.4rem;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  h2 {
    font-size: clamp(1.2rem, 6.5vw, 1.6rem);
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1.02rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .btn {
    text-align: center;
  }

  .about,
  .highlights,
  .services,
  .metrics,
  .process,
  .home-cta {
    padding: 2.1rem 0 2.4rem;
  }

  .card,
  .service-item,
  .metric-card,
  .process-step {
    padding: 1.05rem;
  }

  .site-footer {
    padding: 2.3rem 0 1.2rem;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .copyright {
    white-space: normal;
    font-size: 0.82rem;
  }

  .float-actions {
    right: 0.7rem;
    bottom: 0.7rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .brand-wrap {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text {
    font-size: 0.8rem;
    max-width: calc(100vw - 130px);
  }

  .brand-mode-badge {
    width: 26px;
    height: 26px;
  }

  .brand-mode-badge svg {
    width: 15px;
    height: 15px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "slider"
      "details";
  }

  .hero-slider,
  .hero-slides,
  .hero-slide img,
  .hero-slide video {
    min-height: 220px;
  }

  .hero-video-controls {
    left: 0.45rem;
    right: 0.45rem;
    bottom: 2.2rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.2rem;
  }

  .video-btn {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .video-btn svg {
    width: 14px;
    height: 14px;
  }

  .hero-slider-dots {
    top: 0.45rem;
    bottom: auto;
  }

  .video-progress {
    flex: 1 1 auto;
    min-width: 46px;
    width: auto;
  }

  .video-time {
    min-width: 54px;
    width: auto;
    font-size: 0.62rem;
  }

  .hero-slider-btn {
    width: 34px;
    height: 34px;
  }

  .footer-top {
    gap: 0.85rem;
  }

  .footer-brand-block,
  .footer-col {
    padding: 0.9rem;
  }

  .footer-badges {
    gap: 0.4rem;
  }
}
