/* Architectural cover. Copy stays in document flow and separate from the image planes. */
.hero {
  --hero-ground: #0e151b;
  --hero-paper: #f4f6f4;
  --hero-line: #3d4f5d;
  --hero-accent: #78c8f3;
  height: auto;
  min-height: 0;
  max-height: none;
  padding-top: clamp(38px, 5vw, 78px);
  padding-bottom: clamp(24px, 3vw, 46px);
  background: var(--hero-ground);
  color: var(--hero-paper);
}

.hero-layout {
  display: grid;
  max-width: 1560px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  grid-template-areas: "copy scene" "actions actions";
  align-items: center;
  column-gap: clamp(25px, 4.5vw, 82px);
}

.hero-copy { grid-area: copy; padding-bottom: 28px; }
.hero .eyebrow {
  font-size: 11px;
  letter-spacing: .145em;
  color: var(--hero-accent);
  margin-bottom: 22px;
}
.hero .tiny-line { width: 23px; flex: none; background: currentColor; }

.hero h1 {
  font-size: clamp(47px, 5.55vw, 95px);
  line-height: .99;
  letter-spacing: -.06em;
  text-wrap: initial;
}

.hero-description {
  max-width: 33ch;
  margin-top: 24px;
  color: #c4cfd6;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  grid-area: actions;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--hero-line);
}

.hero-consult {
  min-height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--hero-accent);
  color: #11232f;
  padding: 8px 13px;
  font-size: 13px;
}
.hero-consult:hover { background: #b3e4ff; }
.hero-consult span:last-child { font-size: 18px; line-height: 1; }
.hero :is(button,a):focus-visible { outline-color: #f4f6f4; }

@media (max-width: 760px) {
  .hero { padding-top: 26px; padding-bottom: 22px; }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "scene" "actions";
  }
  .hero-copy { padding-bottom: 15px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(37px, 9.8vw, 66px); }
  .hero-description { font-size: 14px; line-height: 1.55; margin-top: 13px; max-width: 37ch; }
  .hero-consult { margin-left: auto; font-size: 12px; }
}

/* Full-width drone cover in the normal page flow. */
.hero.has-drone {
  --cover-header: 104px;
  overflow: clip;
  padding: 0;
}
.has-drone .hero-layout {
  position: relative;
  max-width: none;
  min-height: 490px;
  height: calc(100svh - var(--cover-header));
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 0 var(--gutter) 100px;
}
.has-drone .hero-copy {
  position: relative;
  z-index: 2;
  width: min(34%, 460px);
  padding: 0;
}
.hero.has-drone h1 { font-size: clamp(43px, 5.4vw, 96px); }
.has-drone .hero-description { max-width: 31ch; }
.has-drone .hero-actions {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 20px;
  margin: 0;
  padding: 0;
  border: 0;
}
@media (max-width: 1050px) {
  .hero.has-drone { --cover-header: 90px; }
}
.hero-scene { position: absolute; inset: 0; isolation: isolate; }
.drone-view, .drone-media, .drone-media > *, .drone-view::after {
  position: absolute;
  inset: 0;
}
.drone-view { background: var(--hero-ground); }
.drone-media { overflow: hidden; pointer-events: none; }
.drone-media > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
.drone-day img {
  width: 100%;
  height: 100%;
  object-fit: inherit;
  object-position: inherit;
}
.drone-media video { opacity: 0; }
.drone-view.has-video-frame video { opacity: 1; }
.drone-view::after {
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #0e151bef 0%, #0e151bb3 22%, transparent 57%),
              linear-gradient(0deg, #0e151b 0%, #0e151bce 8%, transparent 29%);
}
.drone-track {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 77px;
  padding-bottom: 10px;
  border-bottom: 1px solid #a8c0d080;
  color: #e0eef6;
  font-size: 10px;
  letter-spacing: .15em;
}

.drone-track {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
}
.drone-playback {
  margin-left: auto;
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid #a8c0d080;
  background: #0e151bc9;
  color: #edf7fb;
  font-size: 12px;
  letter-spacing: normal;
}
.drone-playback:hover { background: #283e4b; }
@media (prefers-reduced-motion: reduce) {
  .drone-track { display: flex; border: 0; }
  .drone-track .drone-cue { display: none; }
}

/* Portrait footage and copy share a full-width mobile cover. */
@media (max-width: 760px) {
  .has-drone .hero-layout {
    display: flex;
    align-items: flex-start;
    height: calc(100svh - 80px);
    min-height: 610px;
    padding: 27px var(--gutter) 145px;
  }
  .has-drone .hero-copy { position: static; width: 100%; padding: 0; }
  .hero.has-drone h1 {
    max-width: 15ch;
    font-size: clamp(36px, 9.3vw, 58px);
    line-height: 1.02;
    letter-spacing: -.055em;
  }
  .has-drone .hero-description {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 150px;
    max-width: 40ch;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #e1e9ee;
  }
  .drone-media > * {
    object-fit: cover;
    object-position: center;
  }
  .drone-view::after {
    background: linear-gradient(180deg, #0e151bf5 0%, #0e151b75 24%, transparent 40%),
                linear-gradient(0deg, #0e151bf5 0%, #0e151bd1 23%, transparent 47%);
  }
  .drone-track {
    bottom: 75px;
    min-height: 48px;
    gap: 10px;
    font-size: 8px;
    letter-spacing: .12em;
  }
  .drone-playback { min-height: 44px; padding-inline: 10px; font-size: 11px; }
  .has-drone .hero-actions { bottom: 20px; justify-content: flex-end; }
  .hero-consult { min-height: 46px; font-size: 12px; }
}
