:root {
  /* HouseQuest brand: blue #0555AE, gold #c59d5f (softer on dark UI) — background is deep navy */
  --hq-blue: #0555ae;
  --hq-blue-bright: #3a8fd4;
  --hq-blue-hover: #1668c4;
  --hq-blue-rgb: 5, 85, 174;
  --hq-blue-bright-rgb: 58, 143, 212;
  --hq-gold: #c59d5f;
  --hq-gold-bright: #d4b078;
  --hq-gold-rgb: 197, 157, 95;
  --bg: #020a14;
  --bg-elevated: #041c33;
  --bg-mid: #062847;
  --text: #f2f6fa;
  --text-muted: rgba(210, 224, 240, 0.58);
  --warm: var(--hq-gold);
  --warm-bright: var(--hq-gold-bright);
  --amber: #a8844a;
  --glass: rgba(var(--hq-blue-rgb), 0.08);
  --glass-border: rgba(var(--hq-blue-bright-rgb), 0.18);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --font-display: "Syne", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
  --page-pad: clamp(1rem, 4vw, 4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(var(--hq-blue-rgb), 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #01060c 100%);
  color: var(--text);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

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

video:not(.hero-video) {
  display: block;
  max-width: 100%;
}

.split-copy,
.split-visual,
.spatial-copy,
.spatial-gallery {
  min-width: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  /* 512×512 noise tile, displayed at 256px — sharper on Retina / 4K (1:1 device pixels at 2×) */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border);
}

/* Navigation — solid bar above hero (video must not paint over this) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
  min-width: 0;
  background-color: #031f3a;
  background-image: linear-gradient(
    180deg,
    #042a4d 0%,
    #031f3a 42%,
    #020a14 100%
  );
  border-bottom: 1px solid rgba(var(--hq-blue-bright-rgb), 0.28);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
  isolation: isolate;
  transition: box-shadow 0.4s var(--ease-out), border-color 0.4s;
}

.nav.scrolled {
  background-color: #020a14;
  background-image: linear-gradient(180deg, #042a4d 0%, #020a14 100%);
  border-bottom-color: rgba(var(--hq-blue-bright-rgb), 0.35);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: clamp(20px, 2vw, 26px);
  width: auto;
  display: block;
}

/* Large external displays — larger logo */
@media (min-width: 1600px) {
  :root {
    --nav-h: 72px;
  }

  .nav-logo img {
    height: clamp(32px, 2.5vw, 44px);
  }
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 3.2vw, 2.5rem);
  min-width: 0;
  margin: 0 clamp(0.5rem, 2vw, 2rem);
}

.nav-links a {
  font-size: clamp(0.65rem, 1.1vw, 0.75rem);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--hq-blue-bright);
}

.nav-cta {
  flex-shrink: 0;
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
  border-radius: 10px;
  color: var(--text);
  background: rgba(var(--hq-blue-rgb), 0.28);
  border: 1px solid rgba(var(--hq-blue-bright-rgb), 0.42);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s,
    background-color 0.25s,
    border-color 0.25s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(var(--hq-blue-rgb), 0.42);
  border-color: rgba(var(--hq-blue-bright-rgb), 0.58);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

/* Hero — explicit layer order: media (back) → UI text → bottom CTAs */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--page-pad) 4rem;
  overflow: hidden;
  isolation: isolate;
}

/* Layer 1: video sits below nav so the top of the frame isn't hidden under the bar */
.hero-media {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--bg);
}

/* Always cover + top — never contain (contain caused Chrome side bars + horizontal scroll) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  opacity: 0.96;
  z-index: 1;
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(165deg, #062847 0%, #020a14 50%, #01060c 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(var(--hq-blue-rgb), 0.2), transparent),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(var(--hq-gold-rgb), 0.08), transparent);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* Subtle, tight darkening behind the top-left hero headline */
    radial-gradient(
      ellipse 55% 45% at 22% 18%,
      rgba(2, 10, 20, 0.48) 0%,
      rgba(2, 10, 20, 0.3) 34%,
      transparent 68%
    ),
    /* Strong bottom fade → page background (scroll cue + softer section handoff) */
    linear-gradient(
      to bottom,
      transparent 0%,
      transparent 50%,
      rgba(2, 10, 20, 0.3) 68%,
      rgba(2, 10, 20, 0.65) 82%,
      rgba(2, 10, 20, 0.9) 93%,
      var(--bg) 100%
    ),
    radial-gradient(
      ellipse 100% 100% at 50% 45%,
      transparent 0%,
      transparent 42%,
      rgba(2, 10, 20, 0.55) 68%,
      rgba(2, 10, 20, 0.78) 84%,
      rgba(2, 10, 20, 0.96) 100%
    );
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  bottom: 10%;
  left: 20%;
  width: 50%;
  height: 40%;
  z-index: 3;
  background: radial-gradient(ellipse, rgba(var(--hq-blue-rgb), 0.18), rgba(var(--hq-gold-rgb), 0.06) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Layer 2: headline + tagline (always above video) */
.hero-ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  top: calc(var(--nav-h) + 1rem);
  left: clamp(1rem, 3vw, 2.5rem);
  right: clamp(1rem, 3vw, 2.5rem);
  width: auto;
  max-width: min(28rem, calc(100% - 2rem));
  text-align: left;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.35vw, 2.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
  max-width: 100%;
  text-wrap: balance;
  text-shadow: 0 2px 32px rgba(2, 10, 20, 0.9), 0 0 2px rgba(2, 10, 20, 0.8);
}

.hero-title-gold {
  color: var(--hq-gold-bright);
}

.hero-copy .hero-sub {
  font-size: clamp(0.65rem, 0.95vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(210, 224, 240, 0.9);
  margin: 0.5rem 0 0;
  text-shadow: 0 2px 24px rgba(2, 10, 20, 0.85);
}

/* Large displays — room for bigger hero type */
@media (min-width: 1100px) {
  .hero-title {
    white-space: nowrap;
    font-size: clamp(1.35rem, 2vw, 2.5rem);
  }
}

@media (min-width: 1600px) {
  .hero-copy {
    left: clamp(1.5rem, 4vw, 4rem);
    right: auto;
    max-width: min(36rem, 42vw);
  }

  .hero-title {
    font-size: clamp(1.75rem, 2.5vw, 3.25rem);
  }

  .hero-copy .hero-sub {
    font-size: clamp(0.85rem, 1.2vw, 1.35rem);
    margin-top: 0.65rem;
  }
}

/* Layer 3: bottom CTAs */
.hero-content {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: min(52rem, 100%);
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s,
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}

/* Solid brand blue — no blue/gold gradient (reads cleaner on dark UI) */
.btn-primary {
  color: #f8fafc;
  background: var(--hq-blue);
  border: 1px solid rgba(var(--hq-blue-bright-rgb), 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 4px 20px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--hq-blue-hover);
  border-color: rgba(var(--hq-blue-bright-rgb), 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 12px 36px rgba(var(--hq-blue-rgb), 0.28);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(var(--hq-blue-bright-rgb), 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 246, 250, 0.85);
  text-shadow: 0 2px 16px rgba(2, 10, 20, 0.9);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--hq-blue-bright), var(--hq-gold), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Sections */
.section {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding: clamp(5rem, 12vh, 9rem) var(--page-pad);
}

.section-inner {
  width: 100%;
  max-width: min(1200px, 100%);
  margin: 0 auto;
  min-width: 0;
}

.section-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hq-gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  max-width: 100%;
  overflow-wrap: break-word;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 36rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 1.25rem 0 0;
  max-width: 32rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--hq-blue-bright-rgb), 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.step-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-elevated) 100%);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.step-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}

.step:hover .step-visual img {
  transform: scale(1.03);
}

.step-body {
  padding: 1.5rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hq-blue-bright);
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

/* Immersive explore */
.section-immersive {
  overflow: hidden;
}

.immersive-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(var(--hq-blue-rgb), 0.12), transparent);
  pointer-events: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  min-width: 0;
}

.split-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  background: var(--bg-elevated);
}

.split-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.orbit-scene {
  position: relative;
  width: 70%;
  aspect-ratio: 1;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--hq-blue-bright-rgb), 0.22);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}

.orbit-ring-2 {
  inset: 15%;
  animation-direction: reverse;
  animation-duration: 18s;
}

.orbit-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hq-blue-bright), var(--hq-gold));
  box-shadow: 0 0 60px rgba(var(--hq-blue-rgb), 0.45);
}

.orbit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.orbit-node-a {
  top: 5%;
  left: 50%;
  margin-left: -5px;
}

.orbit-node-b {
  bottom: 20%;
  right: 8%;
}

.orbit-node-c {
  bottom: 30%;
  left: 5%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Spatial */
.spatial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  min-width: 0;
}

.spatial-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.spatial-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 1.25rem;
  position: relative;
}

.spatial-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--hq-gold);
}

.spatial-gallery {
  display: block;
  min-width: 0;
}

.spatial-gallery--single {
  max-width: 100%;
}

.spatial-graphic {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-elevated) 100%);
  /* Landscape hero: keep the window shape so it fits beside the copy */
  aspect-ratio: 2804 / 2094;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.spatial-graphic:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--hq-blue-bright-rgb), 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.spatial-graphic img {
  width: 100%;
  height: 100%;
  display: block;
  /* Fill the window: no side bars */
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
}

/* Testimonials */
.section-testimonials {
  background: linear-gradient(180deg, transparent 0%, rgba(var(--hq-blue-rgb), 0.04) 50%, transparent 100%);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial {
  margin: 0;
  padding: 0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--hq-blue-bright-rgb), 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.testimonial-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-elevated) 55%, #01060c 100%);
  border: none;
  border-bottom: 1px solid var(--glass-border);
}

.testimonial-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(2, 10, 20, 0.45) 100%);
  pointer-events: none;
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.testimonial-photo img.testimonial-photo-offset-down {
  object-position: center 20%;
}

.testimonial:hover .testimonial-photo img {
  transform: scale(1.03);
}

.testimonial-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 1.25rem;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Awards */
.section-awards {
  padding-top: clamp(3rem, 8vh, 5rem);
}

.section-head--center {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead--center {
  margin-left: auto;
  margin-right: auto;
}

.awards-groups {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: min(1100px, 100%);
  margin: 0 auto;
}

.awards-group {
  min-width: 0;
}

.awards-group-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hq-gold-bright);
  text-align: center;
  margin: 0 0 1rem;
}

.awards-showcase {
  margin: 0;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.awards-showcase-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  line-height: 0;
  box-sizing: border-box;
  /* ~half the visual gap between logos on each end */
  padding-block: clamp(0.5rem, 1.25vw, 0.85rem);
  padding-inline: clamp(1.5rem, 5.5vw, 3.25rem);
}

.awards-showcase img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.awards-showcase-frame--startup {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(92px, 11vw, 152px);
}

.awards-showcase-img--startup {
  transform: translateY(clamp(8px, 1.4vw, 16px));
}

/* Partners */
.partners-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 28px;
  align-items: end;
}

.partners-copy .btn {
  margin-top: 1.35rem; /* ~half button height below sub-text */
}

.partners-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hq-gold-bright);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* CTA */
.section-cta {
  text-align: center;
  padding-bottom: 6rem;
  overflow: hidden;
}

/* Contact */
.section-contact {
  padding-top: clamp(3rem, 8vh, 5rem);
}

.contact-form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 24px;
  max-width: 52rem;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--hq-blue-bright-rgb), 0.22);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(var(--hq-blue-bright-rgb), 0.45);
  box-shadow: 0 0 0 4px rgba(var(--hq-blue-bright-rgb), 0.12);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-status {
  min-height: 1.25rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact-status[data-type="success"] {
  color: var(--hq-gold-bright);
}

.contact-status[data-type="error"] {
  color: #f0a8a8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(var(--hq-blue-rgb), 0.2), rgba(var(--hq-gold-rgb), 0.08) 45%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-app-icon {
  width: clamp(88px, 14vw, 120px);
  height: clamp(88px, 14vw, 120px);
  margin: 0 auto 1.5rem;
  border-radius: 22%;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.cta-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.store-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  min-width: 180px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--hq-blue-bright-rgb), 0.4);
}

.store-badge-soon {
  opacity: 0.65;
}

.store-small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.store-large {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Footer */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem 1.5rem;
  width: 100%;
  max-width: 100%;
  padding: 1rem clamp(1rem, 2.5vw, 2.5rem);
  border-top: 1px solid var(--glass-border);
  border-radius: 0;
}

.footer-copy {
  justify-self: start;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-tag {
  justify-self: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-tag a {
  color: var(--hq-gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s var(--ease-out);
}

.footer-tag a:hover {
  color: var(--text);
}

.footer-links {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.65rem;
    padding-bottom: 1.5rem;
  }

  .footer-copy,
  .footer-tag,
  .footer-links {
    justify-self: center;
    white-space: normal;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .steps,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .split,
  .spatial-grid,
  .partners-card {
    grid-template-columns: 1fr;
  }

  .spatial-gallery.spatial-gallery--single {
    max-width: none;
    margin-inline: 0;
  }

  .partners-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Nav collapses before links overflow the viewport */
@media (max-width: 1100px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: none;
    justify-content: flex-start;
    position: absolute;
    top: var(--nav-h);
    left: 1rem;
    right: 1rem;
    margin: 0;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: rgba(2, 10, 20, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    z-index: 1001;
  }

  .nav.open .nav-links a {
    padding: 0.65rem 0;
  }

  .nav.open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: calc(var(--nav-h) + 12rem);
    right: 1.5rem;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 56px;
  }

  .nav-logo img {
    height: clamp(18px, 4.5vw, 22px);
  }

  .hero-copy {
    top: calc(var(--nav-h) + 0.75rem);
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .hero-title {
    font-size: clamp(1rem, 3.6vw, 1.65rem);
    white-space: normal;
  }

  .hero-copy .hero-sub {
    font-size: clamp(0.6rem, 2.2vw, 0.75rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
