/* ======================================================================
   Nihul Consulting - PAGES.CSS
   ----------------------------------------------------------------------
   Loaded AFTER /site.css on the inner pages only (service pillars,
   capabilities, thanks, 404). site.css owns the design system: tokens,
   fonts, the hero shell, the service nav, the hairlines, the buttons and
   the footer. This file adds nothing new to that language - it only
   composes it into the section-page layouts the inner pages need:

     .hero--page   the tall homepage hero, cut down to a band
     .hero--mini   the same band, used as the whole page (thanks / 404)
     .band         one ground-coloured section (ivory / paper / night /
                   forest), the rhythm the spec alternates between
     .covers       the hairline-ruled h3 + p grid ("What this covers")
     .runs         the engagement-terms statement band
     .faq          the two-column hairline-ruled question grid
     .cta          the closing call-to-action band

   No new colours, no new fonts, no new easing: every value below is a
   site.css token or a value already used by a site.css component.
   ====================================================================== */

/* ======================================================================
   HERO AS A BAND
   The inner pages reuse the homepage hero markup verbatim (field, grain,
   scrim, header, headrule, service nav) and then stop being full-height:
   the headline block sits directly under the nav instead of at the foot
   of a 90vh frame.
   ====================================================================== */
.hero--page {
  min-height: 0;
}

.hero--page .hero__inner {
  min-height: 0;
}

/* the open middle band is the part of the frame the photograph is for.
   A section page keeps a slice of it rather than the whole thing. */
.hero--page .hero__mid {
  flex: 0 0 auto;
  min-height: clamp(52px, 8vh, 104px);
}

.hero--page .hero__bottom {
  padding-bottom: 34px;
}

.hero--page .hero__title {
  max-width: 17ch;
  font-size: clamp(36px, 5.2vw, 76px);
}

.hero--page .hero__lede {
  width: 460px;
}

/* The homepage scrim is calibrated for a 90vh frame: its percentage
   stops land in the wrong places once the band is a third of that.
   Same two-pad idea, stops re-seated for the shorter frame. */
.hero--page .hero__scrim {
  background:
    linear-gradient(
      to bottom,
      rgba(8, 18, 15, 0.72) 0px,
      rgba(8, 18, 15, 0.6) 148px,
      rgba(8, 18, 15, 0.32) 46%,
      rgba(8, 18, 15, 0.58) 78%,
      rgba(14, 31, 26, 0.9) 94%,
      var(--night) 100%
    ),
    linear-gradient(
      to right,
      rgba(8, 18, 15, 0.48) 0%,
      rgba(8, 18, 15, 0.28) 22%,
      rgba(8, 18, 15, 0) 54%
    );
}

/* the meta strip carries the page's place in the site rather than the
   homepage's single service line */
.hero__meta a:hover {
  color: var(--ivory);
}

/* ---------- thanks / 404: the hero IS the page ---------- */
.hero--mini {
  min-height: 76vh;
  min-height: 76svh;
}

.hero--mini .hero__inner {
  min-height: 76vh;
  min-height: 76svh;
}

.hero--mini .hero__mid {
  flex: 1 1 auto;
  min-height: 6vh;
}

.hero--mini .hero__bottom {
  align-items: flex-start;
}

.mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 780px;
}

.mini .hero__title {
  max-width: 16ch;
}

.mini .hero__lede {
  width: 100%;
  max-width: 54ch;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

/* ======================================================================
   BANDS
   One section, one ground. The page alternates them the way the spec
   alternates hero / ivory / statement / ivory.
   ====================================================================== */
.band {
  position: relative;
  z-index: 4;
  padding: 112px var(--pad) 104px;
}

.band--ivory {
  color: var(--ink);
  background: var(--ivory);
}

.band--paper {
  color: var(--ink);
  background: var(--paper);
}

.band--night {
  color: var(--ivory);
  background: var(--night);
}

.band--forest {
  color: var(--ivory);
  background: var(--forest-deep);
}

/* the signal green all but vanishes on the light grounds */
.band--ivory :focus-visible,
.band--paper :focus-visible {
  outline-color: var(--forest-deep);
}

.band--ivory a:not(.btn),
.band--paper a:not(.btn) {
  color: var(--forest-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(28, 33, 31, 0.32);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease;
}

.band--ivory a:not(.btn):hover,
.band--paper a:not(.btn):hover {
  text-decoration-color: var(--forest-deep);
}

.band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.band__title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--forest-deep);
}

.band--night .band__title,
.band--forest .band__title {
  color: var(--ivory);
}

.band__intro {
  margin: 0 0 8px;
  width: 430px;
  max-width: 100%;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted-ink);
}

.band--night .band__intro,
.band--forest .band__intro {
  color: rgba(245, 241, 232, 0.78);
}

/* the drawn rule sits above the grid; the grid's own cell hairlines
   carry on from it, so nothing is doubled */
.band__rule {
  margin-bottom: 0;
}

.band__note {
  margin: 34px 0 0;
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted-ink);
}

/* ======================================================================
   COVERS GRID - "What this covers"
   ====================================================================== */
.covers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 34px;
}

.cover {
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--hair-ink);
}

.band--night .cover,
.band--forest .cover {
  border-bottom-color: var(--hair);
}

.cover h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 1.45vw, 23px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
}

.cover p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted-ink);
}

/* ======================================================================
   RUNS - how engagements are priced, as a statement band
   ====================================================================== */
.runs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px 64px;
}

.runs__copy {
  margin: 0;
  max-width: 60ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 1.75vw, 27px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ivory);
}

.runs__cta {
  align-self: end;
  white-space: nowrap;
}

/* ======================================================================
   FAQ
   ====================================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
}

.faq-item {
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--hair-ink);
}

.faq-item h3 {
  margin: 0 0 10px;
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
}

.faq-item p {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.66;
  color: var(--muted-ink);
}

/* ======================================================================
   CLOSING CTA
   ====================================================================== */
.cta {
  display: grid;
  justify-items: start;
  gap: 34px;
}

.cta__title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(31px, 3.9vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ivory);
}

/* ======================================================================
   CAPABILITIES - the same band, six times, alternating grounds
   ====================================================================== */
.band--group {
  padding-top: 92px;
  padding-bottom: 84px;
}

.band--group + .band--group {
  padding-top: 84px;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1180px) {
  .runs {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .runs__cta {
    justify-self: start;
  }
}

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

  .hero--page .hero__lede {
    width: 380px;
  }
}

@media (max-width: 820px) {
  .band {
    padding: 80px var(--pad) 76px;
  }

  .band--group,
  .band--group + .band--group {
    padding-top: 66px;
    padding-bottom: 62px;
  }

  .band__intro {
    width: 100%;
  }

  .band__title {
    max-width: none;
  }

  .hero--page .hero__title {
    max-width: none;
    font-size: clamp(32px, 8.4vw, 56px);
  }

  .hero--page .hero__lede {
    width: 100%;
    max-width: 520px;
  }

  /* the sideways pad eats a narrow viewport whole - vertical only */
  .hero--page .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(8, 18, 15, 0.68) 0px,
      rgba(8, 18, 15, 0.58) 186px,
      rgba(8, 18, 15, 0.3) 48%,
      rgba(8, 18, 15, 0.6) 80%,
      rgba(14, 31, 26, 0.9) 94%,
      var(--night) 100%
    );
  }

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

  .cta__title {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .covers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero--page .hero__mid {
    min-height: 40px;
  }

  .cover,
  .faq-item {
    padding: 22px 0 24px;
  }
}
