:root {
  color-scheme: dark;
  --skyarc-blue: #0a426b;
  --skyarc-navy: #031827;
  --skyarc-orange: #f68b1f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--skyarc-navy);
  font-family: "Inter", system-ui, sans-serif;
}

#sequenceCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100dvh;
  background: #05131f;
}

.background-scrim {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(3 32 53 / 0.82), rgb(3 32 53 / 0.34) 42%, rgb(255 255 255 / 0.08)),
    linear-gradient(180deg, rgb(3 24 39 / 0.28), rgb(3 24 39 / 0.06) 45%, rgb(3 24 39 / 0.55));
}

.loader-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #031827;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-shell.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-card {
  width: min(100%, 28rem);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.08);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.35);
  backdrop-filter: blur(18px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
}

.site-header nav a {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header nav a:hover {
  background: rgb(255 255 255 / 0.12);
  color: white;
}

.nav-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-cta,
.primary-btn {
  background: var(--skyarc-orange);
  color: #111827;
  box-shadow: 0 16px 42px rgb(246 139 31 / 0.28);
}

.secondary-btn {
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.08);
  color: white;
  backdrop-filter: blur(14px);
}

.section {
  display: flex;
  min-height: 112vh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 12vw, 9rem) clamp(1rem, 5vw, 5rem);
}

#home {
  min-height: 96vh;
}

.content-panel {
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  padding: clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgb(3 24 39 / 0.76), rgb(3 24 39 / 0.38));
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.26);
  backdrop-filter: blur(18px);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #ffb562;
}

.section-title {
  margin-top: 1rem;
  max-width: 58rem;
  color: white;
  font-size: clamp(2rem, 5vw, 4.7rem);
  font-weight: 900;
  line-height: 1;
}

.section-copy {
  margin-top: 1.25rem;
  max-width: 48rem;
  color: rgb(255 255 255 / 0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.stats-grid,
.service-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid div,
.service-grid article,
.project-grid article,
.timeline div {
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.09);
  backdrop-filter: blur(16px);
}

.stats-grid div {
  padding: 1.2rem;
}

.stats-grid strong {
  display: block;
  color: white;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.stats-grid span {
  margin-top: 0.65rem;
  display: block;
  color: rgb(255 255 255 / 0.68);
  font-weight: 700;
}

.service-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid article,
.project-grid article {
  min-height: 14rem;
  padding: 1.2rem;
}

.service-grid span {
  color: var(--skyarc-orange);
  font-weight: 900;
}

.service-grid h3,
.project-grid h3 {
  margin-top: 1rem;
  color: white;
  font-size: 1.2rem;
  font-weight: 900;
}

.service-grid p,
.project-grid p {
  margin-top: 0.75rem;
  color: rgb(255 255 255 / 0.66);
  line-height: 1.7;
}

.project-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-visual {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  opacity: 0.92;
}

.timeline {
  position: relative;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline div {
  padding: 1.2rem;
}

.timeline b,
.timeline span {
  display: block;
}

.timeline b {
  color: white;
  font-size: 1.1rem;
}

.timeline span {
  margin-top: 0.7rem;
  color: rgb(255 255 255 / 0.65);
  line-height: 1.6;
}

.booking-form {
  display: grid;
  gap: 1rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgb(255 255 255 / 0.06);
}

.booking-form label {
  display: grid;
  gap: 0.5rem;
  color: rgb(255 255 255 / 0.75);
  font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  padding: 0.95rem 1rem;
  color: white;
  outline: none;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--skyarc-orange);
  box-shadow: 0 0 0 3px rgb(246 139 31 / 0.18);
}

.booking-form select option {
  color: #111827;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgb(2 6 23 / 0.72);
  backdrop-filter: blur(14px);
}

.modal-shell.is-open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(100%, 34rem);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(145deg, rgb(3 24 39 / 0.98), rgb(12 42 65 / 0.96));
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.42);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: white;
  font-weight: 900;
}

.modal-details {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.7rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.07);
  padding: 1rem;
}

.modal-details div {
  display: grid;
  gap: 0.2rem;
}

.modal-details dt {
  color: rgb(255 255 255 / 0.52);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: white;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .service-grid,
  .project-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    min-height: 108vh;
  }

  .stats-grid,
  .service-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .content-panel {
    padding: 1rem;
  }

  .nav-cta {
    min-height: 2.75rem;
    padding-inline: 1rem;
  }
}
