/* Page intro */

.pg-intro {
  display: grid;
  gap: 32px;
  padding-top: calc(var(--nav-height) + clamp(48px, 6vw, 112px));
}

.pg-intro__photo {
  margin: 24px 0 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--card);
}

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

.pg-intro__wall {
  margin-top: 24px;
}

@media (min-width: 901px) {
  .pg-intro__wall {
    height: clamp(280px, 32vw, 520px);
  }
}

.pg-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-decoration-color 200ms var(--ease);
}

.pg-index a:hover {
  text-decoration-color: var(--accent);
}

.pg-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 16px 0 0;
}

.pg-facts dt {
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.pg-facts dd {
  margin: 10px 0 0;
}

/* Photo and text split */

.pg-split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: var(--section-gap);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.pg-split__photo {
  grid-column: 1 / 6;
  grid-row: 1;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--card);
}

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

.pg-split__text {
  grid-column: 7 / 13;
  grid-row: 1;
  display: grid;
  gap: 20px;
  justify-items: start;
}

.pg-split__text .lp-head {
  margin-bottom: 8px;
}

.pg-split--flip .pg-split__photo {
  grid-column: 8 / 13;
}

.pg-split--flip .pg-split__text {
  grid-column: 1 / 7;
}

.pg-split__subhead {
  margin-top: 16px;
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pg-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-list li {
  position: relative;
  padding-left: 24px;
}

.pg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7em;
  height: 0.7em;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
}

.pg-list strong {
  font-weight: 600;
}

/* Steps on a colour field */

.pg-steps {
  margin-top: var(--section-gap);
  padding-block: clamp(80px, 9vw, 140px);
  background: var(--card);
  scroll-margin-top: var(--nav-height);
}

.pg-steps .lp-lead {
  margin-top: 24px;
}

.pg-steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  margin: clamp(48px, 5vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.pg-steps__list h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Project ledger */

.pg-ledger {
  margin-top: var(--section-gap);
}

.pg-ledger ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-ledger__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 44px);
  background: var(--card);
}

.pg-ledger__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: var(--step-small);
  font-weight: 600;
}

.pg-ledger__meta::before {
  content: "";
  flex: none;
  width: 0.7em;
  height: 0.7em;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
}

.pg-ledger__item h2 {
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pg-ledger__value {
  margin-top: auto;
  padding-top: 20px;
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.pg-note {
  color: var(--ink-soft);
  font-size: var(--step-small);
}

/* Metres of network */

.pg-metres {
  margin-top: var(--section-gap);
  padding-block: clamp(80px, 9vw, 140px);
  background: var(--ink);
  color: var(--paper);
}

.pg-metres .lp-head {
  color: var(--paper);
}

.pg-metres .lp-lead {
  margin-top: 24px;
}

.pg-metres__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 24px;
  margin: clamp(48px, 5vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.pg-metres__list li {
  display: grid;
  align-content: start;
  gap: 10px;
}

.pg-metres__value {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: var(--step-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.pg-metres .pg-note {
  color: var(--mid);
}

/* Clients and registry */

.pg-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.pg-registry-section {
  margin-top: var(--section-gap);
}

.pg-registry {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: start;
  gap: 24px 56px;
  margin: 32px 0 0;
}

.pg-registry dt {
  color: var(--ink-soft);
  font-size: var(--step-small);
}

.pg-registry dd {
  margin: 4px 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Contact page */

.pg-contact {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 16px;
  align-items: start;
}

.pg-contact__direct {
  grid-column: 1 / 7;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.pg-contact__direct a {
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.pg-contact__direct a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.pg-contact__direct p {
  color: var(--ink-soft);
}

.pg-contact__details {
  grid-column: 8 / 13;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.pg-contact__details address {
  font-style: normal;
}

.pg-contact__details strong {
  font-weight: 600;
}

/* Phone and tablet */

@media (max-width: 900px) {
  .pg-intro {
    gap: 24px;
  }

  .pg-intro__photo {
    aspect-ratio: 4 / 3;
  }

  .pg-facts {
    grid-template-columns: 1fr;
  }

  .pg-split {
    gap: 24px;
  }

  .pg-split__photo,
  .pg-split__text,
  .pg-split--flip .pg-split__photo,
  .pg-split--flip .pg-split__text {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .pg-split__photo {
    aspect-ratio: 4 / 3;
  }

  .pg-steps__list,
  .pg-metres__list,
  .pg-registry {
    grid-template-columns: 1fr;
  }

  .pg-ledger ol {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pg-contact__direct,
  .pg-contact__details {
    grid-column: 1 / -1;
  }
}
