:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-surface: rgba(255, 255, 255, 0.78);
  --color-surface-strong: #ffffff;
  --color-text: #0d1117;
  --color-text-soft: #6b7280;
  --color-text-muted: #9ca3af;
  --color-line: #e5e7eb;
  --color-line-soft: rgba(255, 255, 255, 0.16);
  --color-primary: #003d7c;
  --color-primary-strong: #002d5e;
  --color-primary-soft: #0061a5;
  --color-primary-tint: rgba(0, 61, 124, 0.08);
  --color-dark: #0d1117;
  --color-dark-soft: rgba(13, 17, 23, 0.72);
  --color-white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 0.6rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.3rem;
  --shell: min(1280px, calc(100vw - 3rem));
  --edge-space: clamp(1.5rem, 4vw, 3rem);
  --font-sans: "Work Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Work Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

iframe {
  border: 0;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--color-dark);
}

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

.hero-slide {
  background-position: center 40%;
  background-size: cover;
  transform: scale(1.03);
  opacity: 0;
  transition: opacity 1.8s ease;
}

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

.hero-overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35), transparent);
}

.hero-overlay-soft {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), transparent 65%);
}

.nav {
  position: relative;
  z-index: 3;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.02) 34%, rgba(255, 255, 255, 0.56) 72%, rgba(255, 255, 255, 0.96) 100%);
  pointer-events: none;
}

.nav-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem var(--edge-space);
}

.brand img {
  width: 140px;
  height: auto;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-soft);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 5rem);
  padding: 5rem 0 6rem var(--edge-space);
  max-width: 52rem;
  margin-left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(0, 61, 124, 0.1);
  color: var(--color-primary);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: none;
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-primary);
}

.hero-title {
  margin: 1.75rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero-title span {
  display: block;
}

.accent,
.accent-text {
  color: var(--color-primary-soft);
}

.hero-text,
.lead,
.lead-dark {
  max-width: 40rem;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-actions .button {
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.hero-actions .button-primary {
  box-shadow: 0 24px 50px rgba(0, 45, 94, 0.24);
}

.hero-actions .button-secondary {
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

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

.button-primary:hover {
  background: var(--color-primary-strong);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.65);
  color: #374151;
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.82);
}

.button-block {
  width: 100%;
}

.hero-points {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #4b5563;
  font-size: 0.88rem;
}

.hero-points li::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  flex: 0 0 1rem;
  background: radial-gradient(circle at center, var(--color-primary-soft) 0 35%, rgba(0, 61, 124, 0.12) 36% 100%);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  padding: 5rem 0;
}

.stats-grid,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.stat strong,
.badge-row strong,
.section h2,
.feature h3,
.team-card h3,
.value h3,
.footer h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.stat {
  display: grid;
  gap: 0.6rem;
}

.stat strong {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
}

.stat span,
.badge-row span {
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.badge-row div {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.5rem;
}

.badge-row strong {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.section {
  padding: 7rem 0;
}

.section-muted {
  background: #f9fafb;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
}

.kicker,
.service-kicker,
.role {
  margin: 0 0 1rem;
  color: var(--color-primary-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.lead {
  max-width: 22rem;
  color: var(--color-text-muted);
}

.service-list {
  border-top: 1px solid var(--color-line);
}

.service {
  display: grid;
  grid-template-columns: 4rem 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-line);
}

.service-index,
.value span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #d1d5db;
  line-height: 1;
}

.service h3,
.feature h3,
.team-card h3,
.value h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.service p:last-child,
.team-card p:last-child,
.value p,
.feature p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.92rem;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tags span {
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  background: var(--color-primary-tint);
  color: var(--color-primary-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-white);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.8;
}

.dark-layout,
.contact {
  position: relative;
  z-index: 1;
}

.section-head-dark {
  color: var(--color-white);
}

.section-head-dark h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  text-transform: uppercase;
}

.lead-dark {
  color: rgba(255, 255, 255, 0.65);
  max-width: 24rem;
  font-size: 0.98rem;
}

.quality-card {
  padding: 1.8rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: right;
}

.quality-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.quality-card span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.feature {
  padding: 2.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.feature:last-child {
  border-right: 0;
}

.feature p {
  color: rgba(255, 255, 255, 0.6);
}

.team-grid,
.values-grid,
.footer-grid,
.footer-links {
  display: grid;
  gap: 1px;
}

.team-grid {
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-line);
}

.team-card {
  padding: 2.5rem 2rem;
  background: var(--color-white);
}

.avatar {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: rgba(0, 61, 124, 0.08);
  color: var(--color-primary);
  font-weight: 800;
}

.avatar-alt {
  background: rgba(0, 97, 165, 0.08);
  color: var(--color-primary-soft);
}

.role-alt {
  color: var(--color-primary-soft);
}

.values-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  background: var(--color-line);
}

.value {
  display: flex;
  gap: 1.5rem;
  padding: 2.2rem 2rem;
  background: var(--color-white);
}

.contact {
  min-height: 34rem;
}

.contact iframe {
  width: 100%;
  height: 34rem;
  filter: grayscale(1) contrast(1.05);
}

.contact-card {
  position: absolute;
  left: max(1.5rem, calc((100vw - min(1280px, calc(100vw - 3rem))) / 2 + 1rem));
  bottom: 2rem;
  width: min(22rem, calc(100vw - 3rem));
  padding: 2rem;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.contact-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.contact-brand strong {
  display: block;
  margin-bottom: 0.2rem;
}

.contact-brand span,
.contact-info p,
.contact-info a {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  line-height: 1.65;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-soft));
}

.contact-info {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.footer {
  padding: 4rem 0 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.footer p,
.footer small,
.footer-links a,
.footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer small,
.footer-bottom p,
.footer-links h3 {
  font-size: 0.8rem;
}

.footer-links {
  grid-template-columns: repeat(2, 1fr);
  background: transparent;
}

.footer-links div {
  display: grid;
  gap: 0.65rem;
}

.footer-links h3 {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-bottom {
  padding-top: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 1024px) {
  .gallery-grid,
  .team-grid,
  .feature-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-stage {
    width: min(100%, 70rem);
  }

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

  .service > :last-child {
    grid-column: 2;
  }
}

@media (max-width: 800px) {
  .nav-inner {
    padding: 0.7rem var(--edge-space);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hero-content,
  .stats,
  .section,
  .footer {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-content {
    margin-left: 0;
    padding-left: var(--edge-space);
  }

  .section-head,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .gallery-grid,
  .team-grid,
  .feature-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 18rem;
  }

  .gallery-modal {
    padding: 1rem;
  }

  .gallery-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .gallery-nav {
    width: 2.8rem;
    height: 2.8rem;
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .gallery-nav-prev {
    left: 1rem;
  }

  .gallery-nav-next {
    right: 1rem;
  }

  .gallery-stage {
    height: min(74vh, 40rem);
  }

  .gallery-card-left,
  .gallery-card-right {
    width: 30%;
    height: 48%;
  }

  .gallery-card-top,
  .gallery-card-bottom {
    width: 56%;
    height: 19%;
  }

  .gallery-card-center {
    width: 66%;
    height: 62%;
  }

  .gallery-nav-up {
    right: 4.4rem;
    left: auto;
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .gallery-nav-down {
    right: 7.8rem;
    left: auto;
    bottom: 1rem;
    transform: none;
  }

  .gallery-caption {
    right: 17%;
    bottom: 18%;
    left: 17%;
    padding: 1.35rem 1.25rem 1.5rem;
  }

  .gallery-caption h3 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

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

  .service > :last-child,
  .service-index {
    grid-column: auto;
  }

  .contact-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -5rem auto 0;
  }
}
