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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  background: var(--skyarc-navy);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.page-ready {
  opacity: 1;
}

/* Background video (replaces #sequenceCanvas) */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* dvh corrects for mobile browser chrome (Android Chrome / iOS Safari) */
  object-fit: cover;
  object-position: center;
  background: #05131f;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.bg-video.is-switching {
  opacity: 0;
}

.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.35s ease, visibility 0.35s 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);
  -webkit-backdrop-filter: blur(18px); /* Android WebView / older Safari need the prefix */
  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);
  /* Respect notches / gesture bars on Android + iOS */
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-left: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-right));
}

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

.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;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* removes 300ms tap delay on Android */
}

.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;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-title {
  max-width: min(100%, 10ch);
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
  line-height: 0.95;
}

/* Mobile hamburger toggle (hidden on md+ where the inline nav shows) */
.menu-toggle {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  gap: 0.3rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-toggle-bar {
  display: block;
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: white;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Off-canvas mobile nav panel + backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgb(2 6 23 / 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: min(80vw, 20rem);
  padding: 6.5rem 1.5rem 2rem;
  padding-top: max(6.5rem, calc(env(safe-area-inset-top) + 5.5rem));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  background: linear-gradient(160deg, rgb(3 24 39 / 0.98), rgb(10 42 65 / 0.98));
  border-left: 1px solid rgb(255 255 255 / 0.14);
  box-shadow: -24px 0 60px rgb(0 0 0 / 0.4);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  color: rgb(255 255 255 / 0.85);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav a:active,
.mobile-nav a:hover {
  background: rgb(255 255 255 / 0.1);
  color: white;
}

.mobile-nav-cta {
  margin-top: 0.75rem;
  background: var(--skyarc-orange);
  color: #111827 !important;
  text-align: center;
  font-weight: 900 !important;
}

@media (min-width: 768px) {
  .menu-toggle,
  .mobile-nav,
  .mobile-nav-backdrop {
    display: none;
  }
}

/* Consistent contact buttons (phone / WhatsApp) that stack cleanly on
   any width instead of a mismatched button + plain link */
.contact-btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contact-btn--call {
  background: var(--skyarc-orange);
  color: #111827;
}

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

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

/* Keep content readable on ultra-wide monitors instead of letting grids
   (services, stats, timeline, forms) stretch edge-to-edge on huge screens. */
.section > * {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

#home {
  min-height: 96vh;
  min-height: 96dvh;
}

.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);
  -webkit-backdrop-filter: blur(18px);
  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);
  -webkit-backdrop-filter: blur(16px);
  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 {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.92;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-visual--video::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-visual--video.is-playing::after {
  opacity: 1;
}

.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;
}

.application-form-shell {
  display: none;
  gap: 1rem;
}

.application-form-shell.is-visible {
  display: grid;
}

.application-progress-card {
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.4rem);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.06));
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.2);
}

.application-progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.application-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: rgb(246 139 31 / 0.18);
  color: #ffd6a5;
  font-size: 0.95rem;
  font-weight: 800;
}

.progress-track {
  margin-top: 1rem;
  width: 100%;
  height: 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f68b1f, #ffd166);
  transition: width 0.8s ease;
  animation: progressPulse 1.6s ease-in-out infinite;
}

.application-progress-text {
  margin-top: 0.75rem;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.95rem;
  font-weight: 700;
}

@keyframes progressPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

.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;
  /* iOS Safari zooms in on inputs with font-size below 16px; Android Chrome
     doesn't need this but it's harmless there. */
  font-size: max(16px, 1rem);
  -webkit-appearance: none;
  appearance: none;
}

.booking-form input[type="file"] {
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.booking-form input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: var(--skyarc-orange);
  color: #111827;
  font-weight: 800;
  cursor: pointer;
}

.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;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: white;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.12);
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: rgb(246 139 31 / 0.18);
  box-shadow: 0 12px 30px rgb(246 139 31 / 0.2);
}

.social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

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

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

.modal-card {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(90vh, 90dvh);
  overflow-y: auto;
  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;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.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;
}

/* Fallback for browsers without backdrop-filter support (some Android WebViews) */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .loader-card,
  .secondary-btn,
  .content-panel,
  .stats-grid div,
  .service-grid article,
  .project-grid article,
  .timeline div,
  .modal-shell,
  .modal-card {
    background: rgb(3 24 39 / 0.92);
  }
}

@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;
    min-height: 108dvh;
  }

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

  .content-panel {
    padding: 1rem;
  }

  .hero-panel {
    padding: 0.95rem;
    border-radius: 10px;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    line-height: 1.5;
  }

  .hero-title {
    margin-top: 0.65rem;
    max-width: 100%;
    font-size: clamp(1.9rem, 7.2vw, 2.6rem);
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 0.8rem;
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 0.9rem;
    gap: 0.7rem;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

/* Landscape phones (common on Android): shrink oversized min-heights so
   content doesn't get clipped when viewport height is small */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .section {
    min-height: auto;
    padding-block: clamp(3rem, 8vh, 5rem);
  }

  #home {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* ---------------------------------------------------------------- */
/* Our Portfolio: two auto-scrolling rows (top row -> left,          */
/* bottom row -> right), pause on hover/touch, seamless infinite loop */
/* ---------------------------------------------------------------- */

.portfolio-marquee {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

.marquee-row {
  position: relative;
  overflow: hidden;
  /* fade edges so cards don't hard-cut at the viewport boundary */
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

/* One continuous flex strip per row. It holds the item set TWICE
   (see the HTML comment) so translateX(-50%) loops seamlessly —
   there is only ever one .marquee-track element per row, so this
   renders as exactly one line, not a stack of tracks. */
.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  will-change: transform;
}

.marquee-row--left .marquee-track {
  animation: marquee-left 42s linear infinite;
}

.marquee-row--right .marquee-track {
  animation: marquee-right 42s linear infinite;
}

/* Pause on hover (desktop) and on touch/focus (mobile + keyboard nav) */
.marquee-row:hover .marquee-track,
.marquee-row:focus-within .marquee-track,
.marquee-row.is-touching .marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row--left .marquee-track,
  .marquee-row--right .marquee-track {
    animation: none;
  }

  .marquee-row {
    overflow-x: auto;
  }
}

.marquee-track article {
  flex: none;
  width: clamp(24rem, 46vw, 40rem);
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 14px;
  /* Glass panel: brighter + more opaque than before so the blur reads
     clearly against the moving background video instead of washing out. */
  background: linear-gradient(160deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.06));
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.32);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.marquee-track .project-visual {
  width: 100%;
  margin-bottom: 1.25rem;
}

.marquee-track h3 {
  font-size: 1.4rem;
}

.marquee-track p {
  font-size: 1.02rem;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .marquee-track article {
    width: 19rem;
    padding: 1rem;
  }
}
/* ============================================================
   Dedicated Projects page (projects.html)
   Reuses the same design tokens as the rest of the site
   (--skyarc-blue/navy/orange, .eyebrow, .section-title, glass
   card treatment, .modal-shell) so it reads as one system.
   ============================================================ */

.page-shell {
  position: relative;
  z-index: 2;
  padding: clamp(6.5rem, 10vw, 8.5rem) clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 6rem);
}

.page-shell > * {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

.projects-hero-stats {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-hero-stats div {
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  padding: 1.1rem;
  background: rgb(255 255 255 / 0.09);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.projects-hero-stats strong {
  display: block;
  color: white;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.projects-hero-stats span {
  margin-top: 0.5rem;
  display: block;
  color: rgb(255 255 255 / 0.68);
  font-weight: 700;
  font-size: 0.92rem;
}

.filter-group-label {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: rgb(255 255 255 / 0.55);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-group-label:first-of-type {
  margin-top: 2.5rem;
}

.filter-tabs {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-tab {
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  background: rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.78);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-tab:hover {
  background: rgb(255 255 255 / 0.12);
  color: white;
}

.filter-tab.is-active {
  border-color: transparent;
  background: var(--skyarc-orange);
  color: #111827;
}

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

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

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.project-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 14px;
  padding: 1.1rem;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.05));
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  text-align: left;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:focus-visible {
  outline: 2px solid var(--skyarc-orange);
  outline-offset: 3px;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgb(246 139 31 / 0.5);
}

.project-card .project-visual {
  margin-bottom: 1rem;
}

.project-card-tag {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.6rem;
  background: rgb(246 139 31 / 0.16);
  color: var(--skyarc-orange);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
}

.project-card p {
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.96rem;
  line-height: 1.6;
}

.project-card[hidden] {
  display: none;
}

.project-modal-media {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-modal-media video,
.project-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Build-progress stage viewer (inside the project detail modal)
   Lets a visitor step or scrub through a sequence of construction
   photos to watch a build rise from start to finish.
   ============================================================ */

.stage-viewer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stage-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 60vh;
  border-radius: 8px;
  overflow: hidden;
  background: #0a1622;
}

.stage-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.stage-frame img.is-visible {
  opacity: 1;
}

.stage-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgb(3 24 39 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.2);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.stage-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stage-btn {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.08);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.stage-btn:hover {
  background: rgb(255 255 255 / 0.16);
}

.stage-btn.is-active {
  background: var(--skyarc-orange);
  border-color: transparent;
  color: #111827;
}

.stage-slider {
  flex: 1;
  height: 2.6rem;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.stage-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
}

.stage-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
}

.stage-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -9px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--skyarc-orange);
  border: 3px solid #111827;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.4);
}

.stage-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #111827;
  border-radius: 999px;
  background: var(--skyarc-orange);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.4);
}

.stage-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.stage-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: none;
  background: rgb(255 255 255 / 0.25);
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.2s ease, transform 0.2s ease;
}

.stage-dot.is-active {
  background: var(--skyarc-orange);
  transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .stage-frame img {
    transition: none;
  }
}

/* ============================================================
   Careers page (careers.html)
   ============================================================ */

.value-prop-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .value-prop-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.value-prop-grid article {
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.09);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.value-prop-grid span {
  color: var(--skyarc-orange);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.value-prop-grid h3 {
  margin-top: 0.5rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}

.value-prop-grid p {
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.94rem;
  line-height: 1.6;
}

.jobs-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 10px;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.04));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-tag {
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  background: rgb(246 139 31 / 0.16);
  color: var(--skyarc-orange);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.job-card h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
}

.job-card p {
  color: rgb(255 255 255 / 0.72);
  line-height: 1.6;
}

.jobs-empty-state {
  margin-top: 1.5rem;
  border: 1px dashed rgb(255 255 255 / 0.24);
  border-radius: 10px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  background: rgb(255 255 255 / 0.05);
}

.jobs-empty-state p {
  color: rgb(255 255 255 / 0.72);
  line-height: 1.6;
}

.eeo-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.5);
  font-size: 0.85rem;
  line-height: 1.6;
}
