/* ============================================================
   sections.css — page composition, top to bottom
   hero · momentum band · vision · mission · values ·
   leadership · news · footer
   ============================================================ */

/* ---------- Hero ----------------------------------------- */

.hero {
  background: var(--bg-surface);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 72px;
  align-items: stretch;
}

/* Bottom-aligns the last paragraph with the base of the right rail. */
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 6px;
}

.hero__title {
  font-size: var(--fs-display-1);
  line-height: 1.06;
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}

.hero__title span {
  color: var(--fg-muted);
}

.hero__lead {
  margin-top: 32px;
  max-width: 720px;
  font-size: var(--fs-lead-hero);
  line-height: 1.45;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.hero__lead + .hero__lead {
  margin-top: 20px;
}

.hero__rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -56px; /* desktop-only optical offset */
}

.hero__art {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-left: -24px; /* desktop-only optical alignment */
}

.hero__facts {
  border-left: 1px solid var(--bd-primary);
  padding-left: 28px;
  display: grid;
  gap: 20px;
}

.hero__facts dl {
  display: grid;
  gap: 20px;
}

.hero__facts dd {
  margin-top: 6px;
  font-size: 16px;
  color: var(--fg-strong);
}

.hero__follow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ---------- Momentum band -------------------------------- */

/* Full-bleed: spans edge to edge and deliberately interrupts the rails.
   Only a top border — whatever follows owns its own section break. */
.band {
  background: var(--bg-inverse);
  border-top: 1px solid var(--bd-primary);
}

.band__img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 45%;
}

/* ---------- Vision / Mission ----------------------------- */
/* Paired spread: Vision pads 72/36, Mission 36/72, so the two
   sections read as one unit. */

.spread {
  background: var(--bg-surface);
}

/* Section break above the paired spread. Mission deliberately has no
   top border — Vision and Mission read as one unit. */
.spread--vision {
  border-top: 1px solid var(--bd-primary);
}

.spread--mission {
  /* no border-top: paired with Vision above */
}

.spread__layout {
  display: grid;
  gap: 64px;
  align-items: center;
}

.spread--vision .spread__layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.spread--mission .spread__layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.spread__title {
  font-size: var(--fs-display-2);
  line-height: 1.04;
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}

.spread__lead {
  margin-top: 28px;
  font-size: var(--fs-lead-xl);
  line-height: 1.4;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.spread--vision .spread__lead {
  max-width: 40ch;
}

.spread--mission .spread__lead {
  max-width: 44ch;
}

.spread__art {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Vision art sits right, Mission art sits left. */
.spread--vision .spread__art {
  margin-left: auto;
}

.spread--mission .spread__art {
  margin-right: auto;
}

/* ---------- Values --------------------------------------- */

.values {
  background: var(--bg-page);
  border-top: 1px solid var(--bd-primary);
}

.value-card {
  background: var(--navy-700);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.value-card__inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgb(255 255 255 / 0.6);
}

.value-card__title {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: var(--ls-heading);
  font-weight: 500;
  color: #fff;
}

.value-card__body {
  font-size: 16px;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.78);
}

/* ---------- Leadership ----------------------------------- */

.leadership {
  background: var(--bg-surface);
  border-top: 1px solid var(--bd-primary);
}

.leader {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Capped at the desktop grid-column width. A no-op at desktop, but it
   stops the plate stretching to full container width once .leader
   collapses to one column — which would upscale a 400px portrait past
   2x and visibly soften it. */
.leader__portrait {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-subtle);
}

.leader__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader__bio {
  padding-top: 8px;
}

.leader__name {
  margin-top: 16px;
  font-size: var(--fs-name);
  line-height: 1.1;
  letter-spacing: var(--ls-name);
}

.leader__lead {
  margin-top: 24px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--fg-base);
  max-width: 60ch;
  text-wrap: pretty;
}

.leader__text {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.leader__socials {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Newsroom ------------------------------------
   Press releases and Coverage & mentions, both generated by
   newsroom.py from opus.com/news. The components are ports of
   opus.com's .newsroom-row and .newsroom-cov onto this site's tokens,
   so the two newsrooms read as one system.

   Both decks are rail-to-rail: the wrapper pulls out through the
   container gutter so the hairlines span the full rail width while the
   row content stays aligned with the rest of the page. */

.news {
  background: var(--bg-page);
  border-top: 1px solid var(--bd-primary);
}

/* Block, not flex: the headline gets the full container width so it reads
   as one sentence instead of being squeezed into a column beside the CTA.
   The lead and the CTA share the row underneath it. */
.news__head {
  padding-bottom: 24px;
}

/* Both newsroom headlines are meant to read as a single sentence on one
   line at desktop. `balance` would split them into two even lines, which
   is the opposite of what we want here. */
.news__head .section-head__title {
  font-size: var(--fs-news-title);
  text-wrap: pretty;
}

.news__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* `margin-left: auto` rather than the row's space-between, so the CTA
   still sits right in the Press releases head, which has no lead beside
   it. */
.news__head-row > .chip {
  flex: none;
  margin-left: auto;
}

.news__lead {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.news__count {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}

/* ---------- Press release rows ---------- */

.releases {
  margin-inline: calc(-1 * var(--gutter));
  border-top: 1px solid var(--bd-primary);
}

.release {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px var(--gutter);
  border-bottom: 1px solid var(--bd-primary);
  color: inherit;
  transition: background-color var(--t-fast) var(--ease-standard);
}

.release:hover {
  background: var(--bg-subtle);
  color: inherit;
}

.release__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.release__date {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--fg-base);
}

.release__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.release__main {
  min-width: 0;
}

.release__title {
  font-size: 20px;
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  transition: color var(--t-fast) var(--ease-standard);
}

.release:hover .release__title {
  color: var(--blue-500);
}

.release__summary {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 64ch;
  text-wrap: pretty;
}

.release__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--fg-strong);
  background: var(--bg-surface);
  transition:
    background-color var(--t-fast) var(--ease-standard),
    border-color var(--t-fast) var(--ease-standard),
    color var(--t-fast) var(--ease-standard),
    transform var(--t-fast) var(--ease-standard);
}

.release__arrow svg {
  width: 14px;
  height: 14px;
}

.release:hover .release__arrow {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
  transform: translateX(2px);
}

/* ---------- Coverage rows ---------- */

.cov-deck {
  margin-inline: calc(-1 * var(--gutter));
  border-top: 1px solid var(--bd-primary);
}

.cov {
  border-bottom: 1px solid var(--bd-primary);
}

.cov__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px var(--gutter);
  color: inherit;
  transition: background-color var(--t-fast) var(--ease-standard);
}

.cov__link:hover {
  background: var(--bg-subtle);
  color: inherit;
}

.cov__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 8px;
  background: rgb(17 94 228 / 0.08);
  color: var(--blue-500);
}

.cov__badge svg {
  width: 20px;
  height: 20px;
}

.cov__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cov__outlet {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.cov__watch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgb(17 94 228 / 0.1);
  color: var(--blue-500);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.cov__watch svg {
  width: 9px;
  height: 9px;
}

.cov__title {
  font-size: 17px;
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-strong);
  text-wrap: pretty;
}

.cov__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--fg-strong);
  background: var(--bg-surface);
  transition:
    background-color var(--t-fast) var(--ease-standard),
    border-color var(--t-fast) var(--ease-standard),
    color var(--t-fast) var(--ease-standard),
    transform var(--t-fast) var(--ease-standard);
}

.cov__arrow svg {
  width: 14px;
  height: 14px;
}

.cov__link:hover .cov__arrow {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
  transform: translate(2px, -2px);
}

.icon-arrow {
  width: 13px;
  height: 13px;
  flex: none;
  stroke: currentColor;
  fill: none;
}

/* ---------- Outro CTA ------------------------------------
   Was part of the footer; split out into its own light section when the
   footer became opus.com's dark one, mirroring opus.com's outro + footer
   pairing. The animated gradient blobs opus.com layers behind its outro
   are deliberately not ported — decorative, and not what was asked for. */

.outro {
  background: var(--bg-page);
  border-top: 1px solid var(--bd-primary);
}

.outro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.outro__title {
  font-size: var(--fs-display-3);
  line-height: 1.06;
  letter-spacing: var(--ls-display);
  max-width: 20ch;
  text-wrap: balance;
}

.outro__title span {
  color: var(--fg-muted);
}

.outro__actions {
  display: flex;
  gap: 12px;
}

/* ---------- Dark footer ----------------------------------
   Ported from opus.com so both sites close identically: white wordmark,
   four social marks, a three-column sitemap, and the cube + zipline
   copyright zone. Values are opus.com's own.

   The rails do not run through this section — see grid.css. On a dark
   surface they would be invisible and would clash with the inset content. */

.footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  /* No padding-bottom — .footer__copyright owns the 24px gap below this
     row via its own padding-top. Both would double it to 48px. */
}

.footer__brand-group {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__brand {
  display: inline-flex;
  align-items: flex-start;
}

.footer__brand-mark {
  display: block;
  height: 24px;
  width: auto;
  -webkit-user-drag: none;
}

.footer__socials {
  display: flex;
  gap: 32px;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--footer-fg);
  transition: opacity var(--t-fast) ease;
}

.footer__social:hover {
  opacity: 0.7;
}

.footer__social img {
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
}

.footer__nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.footer__col-heading {
  font-size: 14px;
  font-weight: 500;
  color: var(--footer-fg);
}

.footer__col-link {
  color: inherit;
}

.footer__col-link:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__sublinks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__sublink {
  font-size: 14px;
  color: var(--footer-fg-muted);
  transition: color var(--t-fast) ease;
}

.footer__sublink:hover {
  color: var(--footer-fg);
}

.footer__copyright {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 24px;
}

/* The cube is oversized and cropped by the overflow, so only its upper
   portion shows above the copyright row. */
.footer__copyright-art {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -192px;
  pointer-events: none;
  width: auto;
}

.footer__copyright-art img {
  height: 600px;
  width: auto;
  object-fit: contain;
  -webkit-user-drag: none;
}

.footer__copyright-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 40px;
}

.footer__legal {
  font-size: 14px;
  color: var(--footer-fg-muted);
}

.footer__zipline {
  height: 17px;
  width: auto;
  -webkit-user-drag: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  /* Every two-column split collapses. */
  .hero__layout,
  .spread--vision .spread__layout,
  .spread--mission .spread__layout,
  .leader,
  .outro__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__copy {
    justify-content: flex-start;
  }

  /* These negative offsets are desktop-only — they overlap once
     the grid is single-column. */
  .hero__rail {
    margin-top: 0;
  }

  .hero__art {
    margin-left: 0;
  }

  .outro__layout {
    align-items: start;
  }

  /* Three-up decks step down to two. */
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* On one column each illustration must follow the copy it belongs to,
     so the reading order is: Vision text → Vision art → Mission text →
     Mission art. Mission's art precedes its copy in the DOM (it sits in
     the left column at desktop), so it has to be reordered here —
     otherwise the two illustrations stack back to back and read as an
     unrelated pair. */
  .spread--mission .spread__art {
    order: 1;
  }

  /* The desktop auto-margins pull each illustration toward its outer
     rail. On one column that reads as arbitrary left/right drift, so
     centre both. */
  .spread--vision .spread__art,
  .spread--mission .spread__art {
    margin-inline: auto;
  }
}

/* opus.com switches its footer at 767px, not 640px — match it so the two
   footers reflow at the same width. 767 is also where --gutter tightens
   and the page rails drop. */
@media (max-width: 767px) {
  /* Dark footer, from opus.com: brand group stacks above the sitemap,
     which becomes a 3-column grid separated by a hairline. */
  .footer__top {
    flex-direction: column;
    gap: 48px;
  }

  .footer__brand-group {
    gap: 32px;
  }

  .footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 8px;
    width: 100%;
    border-top: 1px solid var(--footer-border);
    padding-top: 24px;
    justify-content: flex-start;
  }

  .footer__col {
    gap: 12px;
  }

  .footer__col-heading {
    font-size: 12px;
  }

  .footer__sublinks {
    gap: 10px;
  }

  .footer__sublink {
    display: inline-block;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  /* Cube scales down with the shorter copyright zone. */
  .footer__copyright {
    min-height: 300px;
  }

  .footer__copyright-art {
    bottom: -80px;
  }

  .footer__copyright-art img {
    height: 280px;
  }

  .footer__zipline {
    margin-left: auto;
  }
}

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

  .band__img {
    height: 200px;
  }

  /* Lead above CTA, both left-aligned. `flex: 0 0 auto` on the lead is
     required: the row is a column here, so the base `flex-basis: 420px`
     would size its *height* and open a tall gap above the CTA. */
  .news__head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .news__lead {
    flex: 0 0 auto;
  }

  .news__head-row > .chip {
    margin-left: 0;
  }

  /* Drop the rail-to-rail pull-out and stack each row. The circular
     arrow is decorative — the whole row is the link — so it goes rather
     than squeezing the title. */
  .releases,
  .cov-deck {
    margin-inline: 0;
  }

  .release {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding-inline: 0;
  }

  .release__meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .release__arrow {
    display: none;
  }

  .cov__link {
    padding-inline: 0;
    gap: 16px;
  }

  .cov__arrow {
    display: none;
  }

  .outro__actions {
    flex-wrap: wrap;
  }

}
