/* Proportion and rhythm refinements shared by every page. */
html { scroll-padding-top: 4.5rem; }
.site-header { gap: clamp(1rem, 2vw, 2rem); }
.site-header nav { gap: clamp(.8rem, 1.6vw, 1.7rem); min-width: 0; }
.site-header > .button, .company-page .site-header > .button {
  flex: none; width: auto; min-height: 0; padding: .48rem .8rem;
  font-size: .76rem; line-height: 1.2; white-space: nowrap;
}
.home-hero, .company-hero, .solutions-hero, .maintenance-hero,
.projects-hero { min-height: 0; }
.home-hero-copy, .company-hero-copy, .solutions-hero-copy,
.maintenance-hero-copy, .projects-hero-copy { padding-top: clamp(2rem, 3.5vw, 3.5rem); padding-bottom: clamp(2rem, 3.5vw, 3.5rem); }
.home-hero h1, .company-hero h1, .solutions-hero h1,
.maintenance-hero h1, .projects-hero h1 { font-size: clamp(2.8rem, 4vw, 4.7rem); line-height: 1.02; overflow-wrap: normal; }
.home-hero-visual, .solutions-gallery, .maintenance-gallery { min-height: 0; align-self: stretch; }
.home-hero-visual { grid-template-rows: minmax(0, 1.65fr) minmax(0, 1fr); }
.hero-panel-main { aspect-ratio: auto; }
.hero-panel img, .hero-panel video, .solutions-gallery img, .maintenance-gallery img { object-fit: cover; }
.home-hero { align-items: stretch; }
.home-hero-copy { justify-content: flex-start; }
.home-hero-visual { height: clamp(430px, 36vw, 530px); grid-template-rows: minmax(0, 1.8fr) minmax(0, 1fr); }
.hero-panel-video video { object-fit: cover; object-position: center; }
.hero-panel-video figcaption {
  left: .8rem; right: auto; bottom: .8rem;
  width: max-content; max-width: calc(100% - 1.6rem);
  padding: .55rem .7rem; overflow-wrap: normal;
}
.hero-panel-video figcaption strong { font-size: clamp(.9rem, 1.15vw, 1.1rem); line-height: 1.2; }
.hero-panel-video .hero-video-controls { top: .7rem; right: .7rem; }
.leader-card img { height: 390px; min-height: 0; }
.leadership { padding-top: 1rem; padding-bottom: 1rem; }
.projects-hero-visual { min-height: 390px; }
.hero { min-height: 0; }
.hero-copy { padding-top: 2.3rem; padding-bottom: 2.3rem; }
.hero h1 { font-size: clamp(2.9rem, 4.5vw, 4.7rem); line-height: 1.02; }
.hero-media { max-height: 490px; }
.hero-media video { width: 100%; height: 100%; object-fit: contain; background: var(--navy); }
.hero-media .thermal-mode figcaption { max-width: calc(100% - 2rem); left: 1rem; bottom: 1rem; }
/* Keep headline line lengths predictable even inside split layouts. */
main h1, main h2 { text-wrap: balance; }
.solutions-hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.solutions-hero h1 { font-size: clamp(2.65rem, 3.25vw, 3.55rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: initial; }
.company-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.company-hero h1 { font-size: clamp(2.6rem, 3.45vw, 4.25rem); }
.maintenance-hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.maintenance-hero h1 { font-size: clamp(2.7rem, 3.55vw, 4.35rem); }
.projects-hero h1 { font-size: clamp(2.7rem, 3.7vw, 4.45rem); }
.intro-row h2, .contact-promise h2, .definition-copy h2,
.credentials-heading h2, .company-principles h2, .solutions-intro h2,
.process-intro h2, .integrated-solution h2, .maintenance-intro h2,
.scope-copy h2, .maintenance-process h2, .drone-cleaning h2,
.project-category-intro h2, .projects-campaigns h2, .projects-cta h2,
.campaigns-copy h2 { font-size: clamp(2rem, 2.85vw, 3.35rem); line-height: 1.1; }
.continuity-copy h2 { text-wrap: initial; }
@media (min-width: 1101px) and (max-width: 1280px) {
  .solutions-hero h1 { font-size: 2.4rem; }
}
.vectors, .home-contact, .company-definition, .company-work, .company-contact,
.solutions-intro, .solutions-process, .solutions-contact, .maintenance-modes,
.maintenance-scope, .maintenance-process, .maintenance-contact,
.projects-category, .projects-campaigns, .projects-cta { padding-top: clamp(2.25rem, 3.2vw, 3.35rem); padding-bottom: clamp(2.25rem, 3.2vw, 3.35rem); }
.vector-card, .solution-area-card, .mode-card { min-height: 0; }
.solution-area-card, .mode-card { padding: 1.45rem; }
.drone-cleaning { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.drone-cleaning-visual { height: 220px; }
.continuity { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding: clamp(2rem, 3vw, 3rem); gap: 2rem; }
.continuity-copy { min-width: 0; }
.continuity-copy h2 { font-size: clamp(2.15rem, 3.15vw, 3.7rem); line-height: 1.04; overflow-wrap: anywhere; }
.continuity-flow div { min-height: 145px; }
.continuity-flow b { margin-bottom: .7rem; }
.project-card figure { aspect-ratio: 2 / 1; }
.project-card img { object-fit: cover; }
.maintenance-drone-visual { max-height: 270px; }
.solutions-intro h2, .maintenance-intro h2, .projects-category h2,
.company-section-intro h2 { font-size: clamp(2rem, 3vw, 3.4rem); line-height: 1.08; }

/* Remove legacy space reservations after the compact content has reflowed. */
.solution-areas, .credentials, .grouped-campaigns, .project-category,
.legal-main { padding-top: clamp(2.25rem, 3.2vw, 3.35rem); padding-bottom: clamp(2.25rem, 3.2vw, 3.35rem); }
.intro-row, .solutions-intro, .maintenance-intro, .company-section-intro,
.project-category-intro { margin-bottom: clamp(1.35rem, 2vw, 1.9rem); }
.solution-area-card:nth-last-child(-n + 2), .company-vector-grid article,
.solutions-steps article, .maintenance-steps article,
.campaigns-flow article, .projects-campaigns li { min-height: 0; }
.services, .process { grid-auto-rows: auto; }
.services .card, .process .card { height: auto; min-height: 0; }

/* The O&M drone photo keeps its source and becomes a true circular crop. */
.drone-cleaning { grid-template-columns: 210px minmax(220px, 1.15fr) minmax(220px, .85fr) auto; gap: clamp(1.5rem, 2.5vw, 2.5rem); }
.drone-cleaning-visual { width: 210px; height: auto; aspect-ratio: 1 / 1; flex: none; }
.drone-cleaning-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 44%; }
.drone-cleaning-visual figcaption { right: -.55rem; bottom: .1rem; }

@media (max-width: 1100px) {
  .home-hero, .company-hero, .solutions-hero, .maintenance-hero, .projects-hero { grid-template-columns: 1fr; }
  .home-hero-visual, .solutions-gallery, .maintenance-gallery { height: clamp(300px, 46vw, 470px); min-height: 0; }
  .home-hero-copy { justify-content: flex-start; }
  .solutions-hero h1, .company-hero h1, .maintenance-hero h1, .projects-hero h1 { font-size: clamp(2.7rem, 5vw, 4rem); }
  .leadership { max-width: none; padding: 0 1.25rem 1.25rem; }
  .leader-card img { height: clamp(290px, 40vw, 410px); }
  .projects-hero-visual { min-height: 0; height: clamp(280px, 43vw, 390px); }
  .continuity { grid-template-columns: 1fr; }
  .continuity-copy h2 { overflow-wrap: normal; }
  .hero-media { height: 370px; min-height: 0; }
  .drone-cleaning { grid-template-columns: 1fr; }
  .drone-cleaning-visual { width: 200px; margin-inline: auto; }
}
@media (max-width: 780px) {
  .site-header > .button, .company-page .site-header > .button { font-size: .68rem; padding: .48rem .56rem; max-width: 43vw; white-space: normal; text-align: center; }
  .home-hero-copy, .company-hero-copy, .solutions-hero-copy,
  .maintenance-hero-copy, .projects-hero-copy { padding: 2rem 1.25rem; }
  .home-hero h1, .company-hero h1, .solutions-hero h1,
  .maintenance-hero h1, .projects-hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.03; }
  .home-hero-visual { height: auto; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 230px 150px; gap: .4rem; }
  .hero-panel-video figcaption { left: .6rem; bottom: .6rem; max-width: calc(100% - 1.2rem); }
  .hero-panel-main { grid-column: 1 / -1; }
  .solutions-gallery, .maintenance-gallery { height: auto; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 145px); padding: .4rem; }
  .maintenance-gallery { grid-template-rows: 190px 145px; }
  .maintenance-photo-main { grid-column: 1 / -1; grid-row: auto; clip-path: none; }
  .solution-photo { min-height: 0; }
  .leader-card img { height: 300px; }
  .hero-media { height: auto; max-height: none; grid-template-columns: 1fr 1fr; }
  .hero-media figure { height: clamp(170px, 32vw, 260px); }
  .hero-media .thermal-mode figcaption { left: .5rem; bottom: .5rem; max-width: calc(100% - 1rem); padding: .4rem .55rem; font-size: .72rem; }
  .projects-hero-visual { height: 250px; }
  .vector-card { min-height: 0; padding: 1.4rem; }
  .continuity { padding: 2rem 1.25rem; gap: 1.4rem; }
  .continuity-copy h2 { font-size: clamp(2.1rem, 8vw, 3rem); }
  .continuity-flow div { min-height: 105px; }
  .project-card figure { aspect-ratio: 16 / 9; }
  .mode-card, .solution-area-card { min-height: 0; }
  .drone-cleaning-visual { width: 190px; height: auto; }
  .legal-main { padding: 1.25rem; }
}
@media (max-width: 520px) {
  .site-header { gap: .5rem; padding-inline: .8rem; }
  .brand img { width: 125px; }
  .site-header > .button, .company-page .site-header > .button { font-size: .61rem; padding: .4rem .42rem; max-width: 38vw; }
  .home-hero-visual { grid-template-rows: 190px 115px; }
  .solutions-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-panel-video figcaption { padding: .4rem .5rem; }
  .hero-panel-video figcaption small { font-size: .69rem; }
  .hero-panel-video figcaption strong { font-size: .82rem; }
  .hero-panel-video .hero-video-controls { top: .45rem; right: .45rem; }
  .solutions-gallery { grid-template-rows: repeat(2, 115px); }
  .maintenance-gallery { grid-template-rows: 170px 110px; }
  .leadership { gap: .5rem; }
  .leader-card img { height: 245px; }
  .hero-media figure { height: 180px; }
  .continuity-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .continuity-flow i { display: none; }
  .continuity-flow div { min-height: 115px; }
  .continuity-copy h2 { overflow-wrap: anywhere; }
  .drone-cleaning-visual { width: 184px; }
}

/* Editorial service hierarchy: diagnostic first, then solutions and O&M. */
.home-page .home-hero {
  min-height: 0;
  grid-template-columns: minmax(360px, .82fr) minmax(660px, 1.18fr);
  align-items: stretch;
}
.home-page .home-hero-copy {
  padding-top: clamp(2rem, 3vw, 3rem);
  padding-bottom: clamp(1.5rem, 2vw, 2rem);
  justify-content: flex-start;
}
.home-page .home-hero-visual {
  height: auto;
  min-height: 0;
  padding: .85rem .85rem .85rem 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: .65rem;
}
.home-page .hero-panel > img,
.home-page .hero-panel > video { position: absolute; inset: 0; }
.home-page .hero-panel,
.home-page .hero-panel-main {
  min-width: 0;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: auto;
}
.home-page .hero-panel-diagnostic { grid-column: 1 / -1; }
.home-page .hero-panel-solutions { grid-column: 1; }
.home-page .hero-panel-maintenance { grid-column: 2; }
.home-page .hero-panel img,
.home-page .hero-panel video,
.home-page .hero-panel-video video {
  object-fit: cover;
  object-position: center;
}
.home-page .hero-panel-solutions > img {
  right: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.home-page .hero-panel figcaption,
.home-page .hero-panel-video figcaption {
  right: .7rem;
  bottom: .7rem;
  left: .7rem;
  width: auto;
  max-width: none;
  padding: .62rem .68rem;
  border-left: 3px solid var(--blue);
  background: rgba(7, 23, 53, .82);
  backdrop-filter: blur(4px);
}
.home-page .hero-panel-solutions figcaption {
  border-left-color: var(--orange);
}
.home-page .hero-panel figcaption strong,
.home-page .hero-panel-video figcaption strong {
  font-size: clamp(.88rem, 1vw, 1.05rem);
  line-height: 1.2;
}
.home-page .vectors {
  padding-top: clamp(1.5rem, 2vw, 2.25rem);
}
.home-page .intro-row {
  margin-bottom: clamp(1.1rem, 1.6vw, 1.5rem);
}

/* Compact value statement between diagnostic imagery and service detail. */
.diagnostic-decision {
  padding: clamp(1.1rem, 1.5vw, 1.5rem) 3.5vw;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #f7faff, #fff 62%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.diagnostic-decision::after {
  content: "V";
  position: absolute;
  z-index: 0;
  right: 6%;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(33, 100, 232, .055);
  font: 900 clamp(8rem, 18vw, 19rem)/.8 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.12em;
  pointer-events: none;
  user-select: none;
}
.diagnostic-decision > div { max-width: 54rem; position: relative; z-index: 1; }
.diagnostic-decision-mark {
  width: 4px;
  height: 100%;
  min-height: 58px;
  background: var(--orange);
}
.diagnostic-decision p,
.diagnostic-decision small {
  margin: 0;
}
.diagnostic-decision-kicker {
  color: var(--blue);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.diagnostic-decision div > p:not(.diagnostic-decision-kicker) {
  margin-top: .2rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.25vw, 2.35rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.diagnostic-decision div > p strong {
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
}
.diagnostic-decision small {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 1100px) {
  .home-page .home-hero {
    grid-template-columns: 1fr;
  }
  .home-page .home-hero-copy {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }
  .home-page .home-hero-visual {
    height: clamp(380px, 46vw, 450px);
    padding: 0 1.2rem 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1.55fr) minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .home-page .home-hero-visual {
    height: auto;
    padding: 0 1.25rem 1.25rem;
    grid-template-columns: 1fr;
    grid-template-rows: 205px 155px 155px;
    gap: .45rem;
  }
  .home-page .hero-panel-diagnostic,
  .home-page .hero-panel-solutions,
  .home-page .hero-panel-maintenance { grid-column: 1; }
  .home-page .hero-panel figcaption,
  .home-page .hero-panel-video figcaption {
    right: .55rem;
    bottom: .55rem;
    left: .55rem;
    max-width: calc(100% - 1.1rem);
  }
  .diagnostic-decision {
    padding: 1.15rem 1.25rem;
    gap: .85rem;
  }
  .diagnostic-decision div > p:not(.diagnostic-decision-kicker) {
    font-size: clamp(1.25rem, 5.4vw, 1.75rem);
  }
  .diagnostic-decision::after { right: -1.5rem; font-size: 9rem; opacity: .6; }
}

@media (max-width: 520px) {
  .home-page .home-hero-visual {
    grid-template-rows: 185px 140px 140px;
  }
}

/* Preserve the circular photo while allowing the full O&M action to fit. */
.drone-cleaning {
  grid-template-columns: 210px minmax(0, 1.15fr) minmax(0, .85fr) max-content;
  gap: clamp(1.15rem, 2vw, 2rem);
}
.drone-cleaning > .button { min-width: 0; max-width: 100%; justify-self: end; }
@media (max-width: 1100px) {
  .drone-cleaning { grid-template-columns: 1fr; }
  .drone-cleaning > .button { justify-self: start; }
}
@media (max-width: 700px) {
  .drone-cleaning > .button { width: 100%; white-space: normal; text-align: center; }
}

/* The desktop hero row follows the copy, without inheriting image intrinsic height. */
@media (min-width: 1101px) {
  .solutions-page .solutions-hero { grid-template-rows: min-content; }
  .solutions-page .solutions-gallery { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .solutions-page .solution-photo > img { position: absolute; inset: 0; }
}

/* Solutions: keep the section introduction compact without altering its hero or gallery. */
.solutions-page .solution-areas {
  padding-top: clamp(3rem, 4.5vw, 4rem);
}

.solutions-page .solutions-intro {
  padding-top: 0;
  row-gap: .8rem;
  column-gap: 4rem;
}

/* Shared VEKTOR transition language, applied only to existing equivalent blocks. */
p.vektor-transition-message,
.company-page .company-section-intro > p.vektor-transition-message {
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 0;
  isolation: isolate;
  color: var(--navy);
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  font-weight: 650;
  line-height: 1.38;
}

p.vektor-transition-message::after {
  content: "V";
  position: absolute;
  z-index: -1;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(33, 100, 232, .055);
  font: 900 clamp(7rem, 12vw, 11rem)/.8 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.12em;
  pointer-events: none;
  user-select: none;
}

.vektor-transition-accent {
  color: var(--orange);
  font-weight: 850;
}

.company-page .company-section-intro {
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1fr .7fr;
  column-gap: 4rem;
  row-gap: .8rem;
  align-items: end;
}

.company-page .company-section-intro .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.company-page .company-section-intro h2 {
  margin: 0;
}

.diagnostic-decision > div {
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1fr .7fr;
  column-gap: 4rem;
  row-gap: .8rem;
  align-items: end;
}

.diagnostic-decision-kicker {
  grid-column: 1 / -1;
}

.diagnostic-decision div > p:not(.diagnostic-decision-kicker) {
  margin: 0;
  font-size: clamp(1.7rem, 2.85vw, 3.2rem);
}

.diagnostic-decision small.diagnostic-decision-note {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  font-weight: 650;
  line-height: 1.38;
}

@media (max-width: 780px) {
  .company-page .company-section-intro,
  .diagnostic-decision > div {
    grid-template-columns: 1fr;
    column-gap: 1rem;
    row-gap: 1rem;
  }
}

/* Keep the four continuity-stage titles aligned and intact. */
.home-page .continuity-flow span {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(.78rem, .9vw, 1rem);
}

/* Mobile-only: prioritise imagery in the three home service modules. */
@media (max-width: 640px) {
  .home-page .home-hero-visual {
    grid-template-rows: 220px 185px 185px;
    gap: .4rem;
  }

  .home-page .hero-panel figcaption,
  .home-page .hero-panel-video figcaption {
    right: auto;
    bottom: .45rem;
    left: .45rem;
    width: max-content;
    max-width: calc(100% - .9rem);
    padding: .36rem .48rem;
    background: rgba(7, 23, 53, .78);
  }

  .home-page .hero-panel figcaption small,
  .home-page .hero-panel-video figcaption small {
    margin-bottom: .08rem;
    font-size: .62rem;
    line-height: 1.05;
    letter-spacing: .06em;
  }

  .home-page .hero-panel figcaption strong,
  .home-page .hero-panel-video figcaption strong {
    font-size: .78rem;
    line-height: 1.12;
  }

  .home-page .hero-panel-video .hero-video-controls {
    top: .5rem;
    right: .5rem;
  }
}
