/*
 * The home page chapters below the opening. The masthead is its own component
 * (components/Masthead); the worlds are components/Worlds.
 */

/* ---- 2 the worlds ------------------------------------------------------- */

.worldsMore {
  margin: var(--s6) 0 0;
}

/* ---- 3 at work ---------------------------------------------------------- */

.mediaMore {
  margin: var(--s6) 0 0;
}

/* ---- 4 the record ------------------------------------------------------- */

.record {
  display: grid;
  gap: var(--s7);
  align-items: start;
}

.recordLede {
  display: grid;
  gap: var(--s4);
  align-content: start;
}

.recordLabel {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The sentence the system is, at statement scale. */
.recordStatement {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.recordLead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ink-2);
  max-width: 44ch;
}

.recordPanel {
  min-width: 0;
}

/* Four facts as a strip, not a stack: a name, then one line under it. */
.factStrip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s5);
  border-top: var(--hairline) solid var(--rule);
  padding-top: var(--s5);
}

.fact {
  display: grid;
  gap: var(--s2);
  align-content: start;
}

.factHeading {
  font-family: var(--font-display);
  font-size: var(--step-body);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.factBody {
  font-size: var(--step-small);
  color: var(--ink-2);
}

/* ---- 5 Sulsys ----------------------------------------------------------- */

.company {
  display: grid;
  gap: var(--s7);
  align-items: start;
}

.companyLede {
  display: grid;
  gap: var(--s4);
}

.companyEyebrow {
  margin: 0;
  display: flex;
  gap: var(--s3);
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
}

.companyEyebrowSep {
  color: var(--green);
}

/* The company's sentence as a statement — the chapter's whole heading. */
.companyStatement {
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 22ch;
  color: #fff;
}

/* Three verbs, set large, each on its own drawn rule. */
.verbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.verb {
  display: grid;
  gap: var(--s3);
  padding-block: var(--s4) var(--s5);
}

.verbRule {
  display: block;
  height: 2px;
  background: var(--green);
  transform-origin: left center;
}

.verbWord {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}

.companyMeta {
  display: grid;
  gap: var(--s5);
  align-content: start;
}

/* The number, in the document voice, at the scale of a heading. */
.companyPhone {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: var(--s1);
}

.companyFacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
  font-size: var(--step-small);
  color: var(--mat);
}

.companyFact {
  display: grid;
  gap: var(--s1);
}

.companyFactLabel {
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-2);
}

.companyActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s6);
}

.channel {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: 0.04em;
  color: var(--mat);
  text-decoration: none;
  border-bottom: var(--hairline) solid var(--rule-navy);
  padding-bottom: 2px;
}

.channel:hover {
  color: #fff;
  border-bottom-color: var(--green);
}

/* ---- Wider -------------------------------------------------------------- */

@media (min-width: 768px) {
  .factStrip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .record {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s8) var(--s9);
  }

  .factStrip {
    grid-column: 1 / -1;
  }

  .company {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s8) var(--s9);
  }

  .companyLede {
    grid-column: 1 / -1;
  }
}

/* ---- Motion: the verbs post on their rules ------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  [data-enter="out"] .verbRule {
    transform: scaleX(0);
  }

  [data-enter="out"] .verbWord {
    visibility: hidden;
  }

  [data-enter="in"] .verbRule {
    animation: verb-rule 320ms var(--ease) calc(120ms + var(--i, 0) * 180ms) both;
  }

  [data-enter="in"] .verbWord {
    animation: verb-post 1ms linear calc(260ms + var(--i, 0) * 180ms) both;
  }

  @keyframes verb-rule {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }

  @keyframes verb-post {
    from {
      visibility: hidden;
    }
    to {
      visibility: visible;
    }
  }
}
