:root {
  --ink: #152027;
  --muted: #5f6b73;
  --paper: #f7f8f5;
  --white: #ffffff;
  --teal: #0b90bb;
  --teal-dark: #071f2a;
  --amber: #d8912b;
  --line: rgba(21, 32, 39, 0.14);
  --shadow: 0 22px 60px rgba(7, 31, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 64px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 248, 245, 0.95);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: clamp(190px, 20vw, 285px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--amber);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 170ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--teal-dark);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 18, 0.92) 0%, rgba(6, 23, 31, 0.74) 42%, rgba(6, 23, 31, 0.18) 82%),
    linear-gradient(0deg, rgba(3, 12, 18, 0.42), rgba(3, 12, 18, 0.05) 52%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  padding: 126px 0 96px clamp(20px, 6vw, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.section {
  display: flex;
  flex-direction: column;
  padding: clamp(126px, 12vw, 154px) clamp(20px, 5vw, 72px) clamp(70px, 8vw, 104px);
  background:
    linear-gradient(180deg, var(--paper) 0%, #ffffff 100%);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  scroll-margin-top: 112px;
  margin-bottom: 38px;
}

.section-intro > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading {
  max-width: 790px;
}

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

.service-carousel {
  position: relative;
  min-height: clamp(340px, 42svh, 410px);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
}

.carousel-stage {
  position: relative;
  min-height: clamp(300px, 36svh, 350px);
  overflow: hidden;
}

.service-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, 78%);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
  box-shadow: 0 20px 58px rgba(21, 32, 39, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
  transition: transform 360ms ease, opacity 360ms ease, box-shadow 360ms ease, background 360ms ease;
}

.service-card.is-active {
  z-index: 3;
  background: var(--teal-dark);
  color: var(--white);
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 28px 76px rgba(7, 31, 42, 0.24);
}

.service-card.is-active p {
  color: rgba(255, 255, 255, 0.74);
}

.service-card.is-active .service-icon {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--white);
}

.service-card.is-prev,
.service-card.is-next {
  z-index: 1;
  opacity: 0.42;
}

.service-card.is-prev {
  transform: translate(-112%, -50%) scale(0.82);
}

.service-card.is-next {
  transform: translate(12%, -50%) scale(0.82);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 144, 187, 0.28);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 28px 0 10px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.18;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.carousel-control {
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(21, 32, 39, 0.16);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(21, 32, 39, 0.1);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 170ms ease, border-color 170ms ease, color 170ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  border-color: rgba(11, 144, 187, 0.5);
  color: var(--teal);
  transform: translateY(-2px);
}

.carousel-dots {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.carousel-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 32, 39, 0.18);
  cursor: pointer;
  transition: background 170ms ease, width 170ms ease;
}

.carousel-dot.is-active {
  width: 48px;
  background: var(--teal);
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px clamp(20px, 5vw, 72px);
  background: #030608;
  color: var(--white);
}

.footer-brand img {
  width: clamp(180px, 20vw, 260px);
  height: 54px;
}

.site-footer p,
.site-footer span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 12, 18, 0.91) 0%, rgba(6, 23, 31, 0.76) 58%, rgba(6, 23, 31, 0.34) 100%),
      linear-gradient(0deg, rgba(3, 12, 18, 0.44), rgba(3, 12, 18, 0.06));
  }

  .hero-content {
    width: min(720px, calc(100% - 40px));
    padding: 120px 0 86px 20px;
  }

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

  .service-carousel {
    min-height: 410px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .carousel-stage {
    min-height: 360px;
  }

  .service-card {
    width: min(560px, 86%);
    min-height: 310px;
  }

  .service-card.is-prev {
    transform: translate(-108%, -50%) scale(0.78);
  }

  .service-card.is-next {
    transform: translate(8%, -50%) scale(0.78);
  }

  .carousel-control {
    width: 44px;
    height: 44px;
  }

  .site-footer {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand img {
    width: min(230px, 64vw);
    height: 48px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    width: 100%;
    padding: 104px 18px 72px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.35rem);
  }

  .service-carousel {
    min-height: 430px;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }

  .carousel-stage {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 340px;
  }

  .service-card {
    width: min(100%, 420px);
    min-height: 315px;
  }

  .service-card.is-prev,
  .service-card.is-next {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  .carousel-control {
    display: none;
  }

  .carousel-dots {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
  }

  .section {
    padding: 106px 18px 54px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .section {
    padding-top: 118px;
    padding-bottom: 54px;
  }

  .section-intro {
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 3.4vw, 2.85rem);
  }

  .service-carousel {
    min-height: 340px;
  }

  .carousel-stage {
    min-height: 300px;
  }

  .service-card {
    min-height: 260px;
  }
}
