:root {
  --color-navy: #061433;
  --color-navy-soft: #13213f;
  --color-gold: #b8892a;
  --color-text: #101a34;
  --color-muted: #5f697a;
  --color-border: #edf0f4;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f9fc;
  --shadow-soft: 0 18px 60px rgba(6, 20, 51, 0.08);
  --shadow-strong: 0 24px 70px rgba(6, 20, 51, 0.18);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 50% 26%, rgba(184, 137, 42, 0.06), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #fff 62%, var(--color-bg-soft) 100%);
  min-height: 100svh;
}

img,
svg {
  display: block;
}

button,
a {
  font: inherit;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.86);
}

.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 3vw, 2rem) clamp(1.25rem, 7vw, 6rem);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.92);
}

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

.brand img {
  width: clamp(11rem, 28vw, 17.5rem);
  height: auto;
}

.menu-button {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-navy);
  cursor: pointer;
  text-decoration: none;
}

.menu-button:hover,
.menu-button:focus-visible {
  background: #f1f3f7;
  outline: none;
}

.menu-button span {
  width: 2rem;
  height: 0.2rem;
  border-radius: 999px;
  background: currentColor;
}

.main-content {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 3.5rem) 0;
  flex: 1;
}

.hero {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-navy);
  font-size: clamp(3rem, 11vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 850;
}

.decorative-line {
  width: clamp(4rem, 12vw, 6.6rem);
  height: 0.25rem;
  display: block;
  margin: clamp(1.7rem, 4vw, 2.7rem) auto clamp(1.5rem, 4vw, 2.3rem);
  border-radius: 999px;
  background: var(--color-gold);
}

.subtitle {
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-navy-soft);
  font-size: clamp(1.12rem, 3.6vw, 1.65rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.hero-image-wrap {
  width: min(100%, 760px);
  margin: clamp(1.7rem, 5vw, 2.8rem) auto 0;
  position: relative;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 9% 8% 5%;
  z-index: -1;
  border-radius: 45% 55% 48% 52% / 42% 44% 56% 58%;
  background: rgba(235, 241, 248, 0.75);
  filter: blur(0.5px);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(6, 20, 51, 0.08));
}

.portfolio {
  margin-top: clamp(3.2rem, 9vw, 6.5rem);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 830;
}

.section-heading p:last-child {
  margin: 1rem auto 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  line-height: 1.6;
}

.carousel {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(0.5rem, 1.5vw, 0.8rem);
  border: 1px solid rgba(6, 20, 51, 0.08);
  border-radius: clamp(1.4rem, 4vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 252, 0.78)),
    radial-gradient(circle at 15% 20%, rgba(184, 137, 42, 0.16), transparent 20rem);
  box-shadow: var(--shadow-strong);
  outline: none;
}

.carousel:focus-visible {
  box-shadow: 0 0 0 4px rgba(184, 137, 42, 0.2), var(--shadow-strong);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: calc(clamp(1.4rem, 4vw, 2.4rem) - 0.45rem);
  background: var(--color-navy);
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-navy);
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 20, 51, 0.74) 0%, rgba(6, 20, 51, 0.34) 42%, rgba(6, 20, 51, 0.08) 100%),
    linear-gradient(0deg, rgba(6, 20, 51, 0.55) 0%, transparent 45%);
}

.carousel-slide picture,
.carousel-slide img {
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.018);
  transition: transform 1.4s ease, filter 0.8s ease;
}

.carousel-slide[data-active] img {
  transform: scale(1);
}

.carousel-caption {
  position: absolute;
  z-index: 2;
  left: clamp(1.2rem, 5vw, 4rem);
  right: clamp(1.2rem, 5vw, 4rem);
  bottom: clamp(1.2rem, 5vw, 3.2rem);
  max-width: 620px;
  color: #fff;
}

.carousel-caption span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #f3d59a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.carousel-caption span::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.carousel-caption h3 {
  margin: 0;
  max-width: 13em;
  font-size: clamp(1.55rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: clamp(2.7rem, 6vw, 3.5rem);
  height: clamp(2.7rem, 6vw, 3.5rem);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 20, 51, 0.38);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(6, 20, 51, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: rgba(6, 20, 51, 0.68);
  outline: none;
}

.carousel-control svg {
  width: 1.3rem;
  height: 1.3rem;
}

.carousel-control--prev {
  left: clamp(0.95rem, 3vw, 1.45rem);
}

.carousel-control--next {
  right: clamp(0.95rem, 3vw, 1.45rem);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: clamp(0.8rem, 2vw, 1.05rem) 0 0.15rem;
}

.carousel-dot {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 20, 51, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot[aria-current="true"] {
  width: 2rem;
  background: var(--color-gold);
}

.carousel-dot:focus-visible {
  outline: 3px solid rgba(184, 137, 42, 0.35);
  outline-offset: 3px;
}

.features {
  margin: clamp(2.8rem, 8vw, 5.4rem) auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1rem;
  text-align: center;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 3.8rem;
  height: 3.8rem;
  color: var(--color-navy);
}

.feature-card h2 {
  max-width: 14rem;
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-footer {
  margin-top: clamp(2.5rem, 7vw, 4rem);
  padding: 1.8rem 1.25rem 2rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-radius: 1.5rem;
    overflow: hidden;
  }

  .feature-card {
    border-radius: 0;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: none;
    background: transparent;
  }

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

@media (min-width: 980px) {
  .main-content {
    padding-top: 5.5rem;
  }
}

@media (max-width: 650px) {
  .carousel-slide {
    aspect-ratio: 4 / 5;
  }

  .carousel-slide::after {
    background:
      linear-gradient(0deg, rgba(6, 20, 51, 0.76) 0%, rgba(6, 20, 51, 0.28) 54%, rgba(6, 20, 51, 0.12) 100%);
  }

  .carousel-caption {
    bottom: 1.25rem;
  }

  .carousel-caption h3 {
    max-width: 12em;
  }

  .carousel-control {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .carousel-control--prev {
    left: auto;
    right: 4.65rem;
  }

  .carousel-control--next {
    right: 1.2rem;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 1rem;
  }

  .brand img {
    width: 10.5rem;
  }

  .menu-button {
    width: 2.9rem;
    height: 2.9rem;
  }

  .menu-button span {
    width: 1.75rem;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 3.8rem);
  }

  .subtitle {
    max-width: 19rem;
  }

  .carousel-caption span {
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
  }

  .carousel-caption h3 {
    padding-right: 4.6rem;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
}

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

  .carousel-track,
  .carousel-slide img,
  .carousel-dot {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text,
  .hero-image-wrap,
  .portfolio,
  .feature-card {
    animation: fade-up 0.7s ease both;
  }

  .hero-image-wrap {
    animation-delay: 0.08s;
  }

  .portfolio { animation-delay: 0.12s; }
  .feature-card:nth-child(1) { animation-delay: 0.18s; }
  .feature-card:nth-child(2) { animation-delay: 0.24s; }
  .feature-card:nth-child(3) { animation-delay: 0.3s; }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
