.page-home {
  margin: 0;
  font-family: var(--site-font);
  color: var(--site-ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(0, 85, 164, 0.12), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, var(--site-bg) 40%, #eef3f9 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--site-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

.home-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.home-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #132338;
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.55) 48%, rgba(8, 16, 28, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 16, 28, 0.35) 0%, transparent 35%, rgba(8, 16, 28, 0.55) 100%);
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.home-brand-mark {
  margin: 0 0 0.35rem;
  font-family: var(--site-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.home-kicker {
  margin: 0 0 0.85rem;
  color: rgba(180, 210, 255, 0.95);
  font-size: 0.86rem;
  font-weight: 600;
}

.home-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  max-width: 16ch;
  color: #fff;
}

.home-lead {
  margin: 0.95rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 38ch;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.home-hero-actions .btn-primary,
.home-hero-actions .btn-ghost {
  font-size: 1.425rem;
  padding: 1.05rem 1.725rem;
  line-height: 1.2;
}

.home-hero-actions .btn-ghost,
.home-hero-actions .btn-ghost--on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.home-hero-actions .btn-ghost:hover,
.home-hero-actions .btn-ghost--on-dark:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-visual img { animation: none; }
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--site-accent);
  color: #fff;
}

.btn-primary:hover { background: var(--site-accent-hover); }
.btn-primary:active,
.btn-ghost:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--site-ink);
  border: 1px solid var(--site-line);
}

.btn-ghost:hover {
  border-color: var(--site-accent);
  color: var(--site-accent);
}

.home-stats {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--site-line);
  padding-top: 1.5rem;
}

.home-stats-grid strong {
  display: block;
  font-family: var(--site-display);
  font-size: 1.7rem;
  color: var(--site-accent);
  line-height: 1.1;
}

.home-stats-grid span {
  display: block;
  margin-top: 0.25rem;
  color: var(--site-muted);
  font-size: 0.88rem;
}

.home-about {
  padding: 3.5rem 1.25rem;
  background: #0f1c2e;
  color: rgba(255, 255, 255, 0.86);
}

.home-about-inner {
  max-width: 720px;
  margin: 0 auto;
}

.home-about h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
}

.home-about p {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  max-width: 58ch;
  line-height: 1.65;
}

.home-services {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.home-services h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.home-services-layout {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--site-line);
}

.home-service {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--site-line);
  background: transparent;
}

.home-service h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.home-service p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.98rem;
  max-width: 52ch;
}

.home-service--lead {
  background: transparent;
  border-color: var(--site-line);
  color: inherit;
  min-height: 0;
  padding-top: 1.5rem;
}

.home-service--lead h3 {
  color: var(--site-accent);
  font-size: 1.35rem;
}

.home-service--lead p { color: var(--site-muted); }

.home-service-photo {
  margin: 1rem 0 0;
  max-width: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--site-bg-deep);
}

.home-service-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
}

.home-why {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3.5rem;
}

.home-why h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}

.home-why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.home-why-list li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--site-muted);
  max-width: 52ch;
}

.home-why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--site-accent);
}

.home-contact {
  padding: 3.5rem 1.25rem 4rem;
  background:
    linear-gradient(180deg, transparent, rgba(0, 85, 164, 0.06)),
    var(--site-bg-deep);
}

.home-contact-inner {
  max-width: 800px;
  margin: 0 auto;
}

.home-contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.home-contact p {
  margin: 0.75rem 0 0;
  color: var(--site-muted);
  max-width: 48ch;
}

.home-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.home-contact-note {
  margin-top: 1.25rem !important;
  font-size: 0.88rem;
}

.home-contact-note a {
  color: var(--site-accent);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 900px) {
  .home-hero-copy {
    padding: 3.5rem 1.25rem 4.5rem;
  }

  .home-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-services-layout {
    grid-template-columns: 1.25fr 1fr;
    column-gap: 3rem;
  }

  .home-service--lead {
    grid-row: 1 / span 3;
    border-right: 1px solid var(--site-line);
    padding-right: 2rem;
    margin-right: 0.5rem;
  }

  .home-service-photo {
    max-width: 320px;
    margin-top: 1.25rem;
  }
}
