/* Helm Studio | 4 December: surgical responsive polish.
   Preserve the original identity, motion and brief builder. */

/* The film-style hero gets a height-aware type scale on shallow browser windows.
   Keep a safe lane above the anchored progress/navigation HUD. */
@media (min-width: 831px) and (max-height: 850px) {
  .portal-copy { top: 47%; }
  .portal-copy h1,
  .portal-copy h2 {
    font-size: clamp(60px, min(8.9vw, 14.5svh), 155px);
    margin-top: clamp(17px, 3.4svh, 29px);
  }
  .portal-mid h2 { font-size: clamp(60px, min(9.9vw, 14.5svh), 165px); }
  .portal-outro h2 { font-size: clamp(60px, min(10vw, 14.5svh), 170px); }
  .portal-intro-bottom { margin-top: clamp(16px, 2.7svh, 28px); }
  .portal-mid > p,
  .portal-outro > p { margin-top: clamp(17px, 2.7svh, 27px); }
  .portal-hud { bottom: 20px; }
}
@media (min-width: 831px) and (max-height: 610px) {
  .portal-copy { top: 43%; }
  .portal-copy h1,
  .portal-copy h2,
  .portal-mid h2,
  .portal-outro h2 { font-size: clamp(51px, min(8.2vw, 13.6svh), 105px); }
  .portal-intro-bottom { margin-top: 14px; }
  .portal-intro-bottom p,
  .portal-copy > p { font-size: 15px; line-height: 1.4; }
  .portal-hud-place { display: none; }
  .portal-hud { bottom: 13px; }
}
@media (max-width: 830px) and (max-height: 590px) {
  .portal-copy { top: 45%; }
  .portal-copy h1,
  .portal-copy h2,
  .portal-mid h2,
  .portal-outro h2 { font-size: clamp(41px, min(12.8vw, 10svh), 76px); margin-top: 14px; }
  .portal-intro-bottom { margin-top: 15px; }
  .portal-intro-bottom p,
  .portal-copy > p { font-size: 13px; line-height: 1.4; }
  .portal-hud-place { display: none; }
  .portal-hud { bottom: 14px; }
}
/* Prevent decorative third-column information fighting the actual intro copy. */
@media (min-width: 831px) and (max-width: 1150px) {
  .portal-intro-bottom { max-width: min(600px, 70vw); }
  .intro-coordinate { display: none; }
}

/* More authoritative type, with intentional negative tracking and compact leading.
   The accompanying editorial paragraph has its own row rather than sharing the
   headline's letter-space and risking collisions at intermediate widths. */
.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 19px 32px;
  align-items: end;
  margin-bottom: clamp(43px, 5vw, 70px);
}
.work-heading .section-title {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 1000 !important;
  font-size: clamp(64px, 9.1vw, 167px);
  line-height: .865 !important;
  letter-spacing: -.014em !important;
  -webkit-text-stroke: .009em #12151a;
  paint-order: stroke fill;
  overflow-wrap: normal;
}
.work-heading .section-title em {
  font: inherit !important;
  font-weight: 1000 !important;
  font-style: normal !important;
  letter-spacing: -.014em !important;
  color: #12151a !important;
}
.work-heading > p {
  grid-column: 2;
  justify-self: end;
  width: 100%;
  max-width: 300px;
  margin: 5px 0 0;
}
@media (max-width: 830px) {
  .work-heading .section-title { font-size: clamp(54px, 10vw, 92px); }
}
@media (max-width: 610px) {
  .work-heading { display: block; }
  .work-heading .section-title { font-size: clamp(42px, 10.9vw, 66px); line-height: .85 !important; }
  .work-heading > p { max-width: 330px; margin: 25px 0 0; }
}
@media (max-width: 370px) {
  .work-heading .section-title { font-size: clamp(39px, 10.8vw, 48px); }
}

/* ECS: genuine royal blue, slate and terracotta rather than washed-out white.
   Retains the existing cinematic layout and existing photography. */
.ecs-stage {
  background: linear-gradient(125deg, #e0ebef 0%, #89b2d0 45%, #22598a 100%) !important;
}
.ecs-atmosphere {
  opacity: .96 !important;
  mix-blend-mode: normal !important;
  filter: saturate(1.18) contrast(1.07) brightness(1.08) !important;
}
.featured-project:hover .ecs-atmosphere {
  filter: saturate(1.26) contrast(1.08) brightness(1.12) !important;
}
.ecs-darkness {
  background:
    linear-gradient(90deg, rgba(214,232,242,.95) 0%, rgba(204,226,240,.90) 27%, rgba(190,216,232,.64) 46%, rgba(50,103,151,.20) 73%, rgba(19,63,104,.11) 100%),
    linear-gradient(0deg, rgba(22,73,112,.27), transparent 30%, transparent 72%, rgba(22,67,108,.14)) !important;
}
.ecs-stage-copy p { color: #103c64 !important; }
.ecs-stage-copy p em { color: #1760a6 !important; }
.ecs-stage-copy .ecs-mini-identity,
.ecs-stage-copy .ecs-local-signature { color: #224f73 !important; }
.ecs-device {
  box-shadow: 0 42px 86px rgba(8,38,76,.34), 0 15px 30px rgba(14,48,79,.23), 0 0 0 6px rgba(242,250,252,.33) !important;
}
.ecs-stage-top,.ecs-stage-bottom { color: #163e61 !important; }
@media (max-width: 610px) {
  .ecs-darkness {
    background: linear-gradient(180deg, rgba(219,233,243,.96) 0%, rgba(218,235,246,.78) 36%, rgba(118,169,203,.40) 66%, rgba(31,93,142,.30) 100%) !important;
  }
  .ecs-atmosphere { opacity: .93 !important; }
}

/* The lime concept slot is typographic art, not an empty placeholder. */
.upcoming-two .upcoming-lines > span {
  font-size: clamp(145px, 15vw, 255px);
  font-weight: 950;
  line-height: .69;
  letter-spacing: -.13em;
  opacity: .18;
  transform: translateY(-26%) rotate(-13deg);
}
@media (min-width: 831px) and (max-width: 1100px) {
  .upcoming-two .upcoming-lines > span { font-size: clamp(115px, 14.5vw, 160px); }
}
@media (max-width: 830px) {
  .upcoming-two .upcoming-lines > span { font-size: clamp(118px, 16.5vw, 185px); }
}
@media (max-width: 610px) {
  .upcoming-two .upcoming-lines > span {
    font-size: clamp(120px, 28vw, 185px);
    transform: translateY(-22%) rotate(-12deg);
  }
}

/* Pricing and Questions should feel like successive chapters, not two
   separated blocks of whitespace. Leave the pricing card itself untouched. */
.pricing-section { padding-bottom: clamp(34px, 3.7vw, 55px) !important; }
.pricing-grid { row-gap: clamp(25px, 3.3vw, 45px); }
.faq-section { padding-top: clamp(48px, 5.2vw, 80px) !important; }
@media (max-width: 610px) {
  .pricing-section { padding-bottom: 34px !important; }
  .pricing-grid { row-gap: 25px; }
  .faq-section { padding-top: 53px !important; }
}
