/* Performance Lab of California, the case page (cases/performance-lab.html).

   The portfolio's voice in PLC's colours and forms. What stays David's: the bold line with a cushion,
   Neue Haas for everything he says, Satoshi for reading, the orange close. What comes from PLC: the
   near-black and teal-wash grounds, one teal for marks and rules, square corners on every frame, Space
   Grotesk for labels and readouts, DM Sans on its buttons, and the timing gate (a hairline with end
   ticks and a readout) that measures things. The odd couple on purpose: a puffy cushion on a grid of
   square, measured lines. */

.case--performance-lab {
  --plc-ink: #181818;
  --plc-panel: #1f1f1f;
  --plc-teal: #33778a; /* the brand's #3c8599, a shade deeper so text on white and white on it reach 4.5:1 */
  --plc-teal-hover: #2b6474;
  --plc-teal-on-dark: #4a97ab;
  --plc-wash: #eef4f6;
  --plc-rule-dark: #2e2e2e;
  --plc-label: "Space Grotesk", var(--font-body);
  --plc-button: "DM Sans", var(--font-body);
}

/* PLC's near black takes the place of the portfolio's own, header included */
.case--performance-lab [data-theme="dark"] {
  --bg: var(--plc-ink);
  --room: var(--plc-ink);
}

.case--performance-lab ::selection {
  background: var(--plc-teal);
  color: #fff;
}

/* A readout: PLC's small label, Space Grotesk in capitals with open tracking */
.plc-readout,
.plc-crumbs,
.plc-panel__head,
.plc-panel dt,
.plc-jump {
  font-family: var(--plc-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ 1. The opening */

.plc-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  padding-top: clamp(6.5rem, 11vw, 9.5rem);
}

/* The forty yards: five timing gates, at 0, 10, 20, 30 and 40, rising faintly from the strip of anchors */
.plc-hero::before {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(to right, var(--plc-teal-on-dark) 1px, transparent 1px) 0 0 / calc((100% - 1px) / 4) 100% repeat-x;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, transparent, #000 85%);
  pointer-events: none;
}

.plc-hero > * {
  position: relative;
}

.plc-crumbs {
  display: flex;
  gap: 0.7em;
  color: var(--fg-muted);
}

.plc-crumbs a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.plc-crumbs a:hover {
  color: var(--plc-teal-on-dark);
}

.plc-hero__name {
  margin-top: clamp(0.5rem, 2vw, 2rem);
}

.cushion--plc {
  width: 0.78em;
  height: 0.78em;
}

.cushion--plc svg {
  width: 74%;
  height: 74%;
}

.plc-hero__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem) var(--gutter);
  align-items: start;
}

.plc-hero__lead {
  grid-column: 1 / 9;
  display: grid;
  justify-items: start;
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

/* The headline of PLC's pages, said in the portfolio's voice: the second half in teal */
.plc-hero__statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.plc-hero__statement span:last-child {
  color: var(--plc-teal-on-dark);
}

.plc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 0.25rem;
}

/* PLC's button: square, teal, DM Sans in capitals */
.plc-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.15em 1.7em;
  background: var(--plc-teal);
  color: #fff;
  font-family: var(--plc-button);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out);
}

.plc-button:hover {
  background: var(--plc-teal-hover);
}

.plc-button svg,
.plc-link svg {
  width: 1em;
  height: 1em;
  transition: translate 0.3s var(--ease-out);
}

.plc-button:hover svg {
  translate: 0.12em -0.12em;
}

.plc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  color: var(--fg);
  font-family: var(--plc-button);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.plc-link:hover {
  color: var(--plc-teal-on-dark);
}

.plc-link:hover svg {
  translate: 0 0.15em;
}

/* The panel of PLC's program heroes ("What we train"), holding the facts of the job */
.plc-panel {
  grid-column: 9 / 13;
  border: 1px solid var(--plc-rule-dark);
  background: var(--plc-panel);
}

.plc-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--plc-rule-dark);
}

.plc-panel__head span:first-child {
  color: var(--plc-teal-on-dark);
}

.plc-panel__head span:last-child {
  color: var(--fg-muted);
}

.plc-panel dl {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 1.15rem;
}

.plc-panel dl div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
}

/* A tiny teal cushion as the bullet: the portfolio's object in PLC's colour */
.plc-panel dl div::before {
  content: "";
  grid-row: 1 / 3;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.2rem;
  border-radius: var(--radius-cushion);
  background: var(--plc-teal-on-dark);
}

.plc-panel dt {
  color: var(--fg-muted);
}

.plc-panel dd {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.plc-panel dd a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--plc-teal-on-dark);
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease-out);
}

.plc-panel dd a:hover {
  color: var(--plc-teal-on-dark);
}

.plc-panel__foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--plc-rule-dark);
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

.plc-swatches {
  display: inline-flex;
  flex: none;
}

.plc-swatches i {
  width: 0.85rem;
  height: 0.85rem;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}

/* The strip of anchors along the bottom of PLC's heroes, each one standing at a gate */
.plc-jump {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--plc-rule-dark);
}

.plc-jump a {
  grid-row: 1;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 0.9rem 1rem 1.1rem 0.75rem;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.plc-jump a::before {
  content: attr(data-yd) " yd";
  color: var(--plc-teal-on-dark);
}

.plc-jump a:hover {
  color: var(--plc-teal-on-dark);
}

.plc-jump a:nth-child(4) {
  grid-column: 4;
}

.plc-jump .plc-jump__next {
  grid-column: 4;
  justify-self: end;
  justify-items: end;
  padding-right: 0;
  text-align: right;
}

.plc-jump__next svg {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.3em;
  vertical-align: -0.25em;
}

/* The site itself, framed like PLC's own posters */
.plc-cover {
  display: grid;
  gap: 0.9rem;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.plc-cover__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(7rem, 18%, 15rem);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 4.5rem);
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5.5rem) clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--plc-rule-dark);
  /* Measuring paper: a faint teal grid of twelve columns and eight rows */
  background:
    linear-gradient(to right, rgb(74 151 171 / 0.07) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%,
    linear-gradient(to bottom, rgb(74 151 171 / 0.07) 1px, transparent 1px) 0 0 / 100% calc(100% / 8),
    #141414;
}

.plc-cover__corner {
  position: absolute;
  top: clamp(1rem, 2vw, 1.75rem);
  left: clamp(1.25rem, 5vw, 5.5rem);
  display: flex;
  gap: 1em;
  margin: 0;
}

.plc-cover__corner span {
  color: var(--plc-teal-on-dark);
}

/* The timing gate: a hairline with a tick at each end and the readout in the middle */
.plc-gate {
  position: relative;
  display: flex;
  justify-content: center;
  height: 13px;
  margin: 0 0 1rem;
  border-inline: 1px solid var(--plc-teal-on-dark);
  font-family: var(--plc-label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--plc-teal-on-dark);
}

.plc-gate::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}

.plc-gate span {
  position: relative;
  padding: 0 0.7em;
  background: #141414;
  line-height: 13px;
}

.plc-cover__phone .plc-gate {
  margin: 1rem 0 0;
}

.plc-screen {
  border: 1px solid var(--plc-rule-dark);
  background: var(--plc-ink);
  box-shadow: 0 2rem 3.5rem -1.5rem rgb(0 0 0 / 0.7);
}

.plc-screen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.plc-screen--desktop img {
  aspect-ratio: 16 / 10;
}

.plc-screen--phone img {
  aspect-ratio: 9 / 19.5;
}

/* The window's bar keeps the portfolio's three tiny cushions, on a square window */
.plc-screen__bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--plc-rule-dark);
}

.plc-screen__bar span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-cushion);
  background: rgb(255 255 255 / 0.22);
}

.plc-cover__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.plc-cover__caption span + span {
  color: var(--fg-muted);
}

@media (max-width: 960px) {
  .plc-hero__lead,
  .plc-panel {
    grid-column: 1 / -1;
  }

  .plc-panel {
    max-width: 34rem;
  }
}

@media (max-width: 700px) {
  .plc-hero::before {
    display: none;
  }

  .plc-hero__statement {
    font-size: 8.4vw;
  }

  .plc-button {
    justify-content: center;
    width: 100%;
  }

  /* Two by two, each anchor still at its gate */
  .plc-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plc-jump a,
  .plc-jump a:nth-child(4),
  .plc-jump .plc-jump__next {
    grid-row: auto;
    grid-column: auto;
    justify-self: stretch;
    justify-items: start;
    padding: 0.8rem 0.5rem 0.9rem 0.75rem;
    border-left: 1px solid var(--plc-rule-dark);
    border-bottom: 1px solid var(--plc-rule-dark);
    text-align: left;
  }

  .plc-jump .plc-jump__next {
    grid-column: 1 / -1;
  }

  .plc-cover__stage {
    grid-template-columns: minmax(0, 1fr) 30%;
    gap: 0.9rem;
    padding: 3rem 0.9rem 1.25rem;
  }

  .plc-cover__corner {
    left: 0.9rem;
  }

  .plc-gate {
    font-size: 0.5625rem;
  }
}

@media (min-width: 701px) {
  /* Gates at the left of each anchor */
  .plc-jump a:not(.plc-jump__next) {
    border-left: 1px solid var(--plc-teal-on-dark);
  }

  .plc-jump .plc-jump__next {
    padding-right: 0.75rem;
    border-right: 1px solid var(--plc-teal-on-dark);
  }
}

/* ------------------------------------------------------------------ Grounds and shared parts */

/* PLC's white and teal wash take the place of the portfolio's white. "wash" is a theme of its own, so
   the header follows it too when it passes over */
.case--performance-lab [data-theme="light"],
.case--performance-lab [data-theme="wash"] {
  --bg: #ffffff;
  --fg: var(--plc-ink);
  --fg-muted: rgb(24 24 24 / 0.66);
  --plc-rule: #e5e5e5;
  --plc-accent: var(--plc-teal);
  background: var(--bg);
  color: var(--fg);
}

.case--performance-lab [data-theme="wash"] {
  --bg: var(--plc-wash);
  --plc-rule: #cfdbdf;
}

.case--performance-lab [data-theme="dark"] {
  --plc-rule: var(--plc-rule-dark);
  --plc-accent: var(--plc-teal-on-dark);
}

.case--performance-lab :focus-visible {
  outline-color: var(--plc-accent, var(--plc-teal));
  border-radius: 0;
}

/* Every section after the opening reaches the edges of the screen */
.plc-section {
  margin-inline: calc(var(--gutter) * -1);
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
}

/* The opening of a section, as on PLC's pages: the heading on the left, a line of text on the right */
.plc-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem var(--gutter);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.plc-title {
  grid-column: 1 / 8;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 5.75rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.plc-title span {
  display: block;
}

.plc-title span:last-child {
  color: var(--plc-accent);
}

.plc-lead {
  grid-column: 8 / 13;
  max-width: 34rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
  line-height: 1.5;
}

.plc-gate span {
  background: var(--gate-bg, var(--bg));
}

.plc-cover__stage {
  --gate-bg: #141414;
}

/* ------------------------------------------------------------------ 2. The numbers */

.plc-measure__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--plc-rule);
}

.plc-measure__grid div {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1.1rem;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2.2vw, 2.25rem) clamp(1.5rem, 3vw, 3rem);
}

.plc-measure__grid div + div {
  border-left: 1px solid var(--plc-rule);
}

.plc-measure__grid dt {
  color: var(--fg-muted);
}

.plc-measure__grid dd {
  margin: 0;
}

.plc-measure__value {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6.6vw, 7rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.plc-measure__value span {
  font-family: var(--plc-label);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* The chip under each figure: teal on teal wash, square */
.plc-chip {
  padding: 0.6em 0.85em;
  background: var(--plc-wash);
  color: var(--plc-teal);
  font-family: var(--plc-label);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plc-measure__from {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

.plc-measure__from b {
  color: var(--fg);
}

/* ------------------------------------------------------------------ 3. The brief */

.plc-tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid rgb(24 24 24 / 0.4);
  border-left: 1px solid rgb(24 24 24 / 0.4);
}

.plc-tile {
  display: grid;
  align-content: space-between;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: clamp(15rem, 24vw, 21rem);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-right: 1px solid rgb(24 24 24 / 0.4);
  border-bottom: 1px solid rgb(24 24 24 / 0.4);
  background: #fff;
}

.plc-tile:nth-child(1) { grid-column: 1 / 8; }
.plc-tile:nth-child(2) { grid-column: 8 / 13; }
.plc-tile:nth-child(3) { grid-column: 1 / 6; }
.plc-tile:nth-child(4) { grid-column: 6 / 13; }

.plc-tile--dark {
  background: var(--plc-ink);
  color: #fff;
}

.plc-tile--wash {
  background: transparent;
}

.plc-icon {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: var(--plc-teal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plc-tile--dark .plc-icon {
  stroke: var(--plc-teal-on-dark);
}

.plc-tile h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.plc-tile p {
  max-width: 44ch;
  margin: 0;
  color: rgb(24 24 24 / 0.7);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.55;
}

.plc-tile--dark p {
  color: rgb(255 255 255 / 0.7);
}

/* ------------------------------------------------------------------ 4. What I did */

.plc-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--plc-rule);
}

.plc-row {
  display: grid;
  grid-template-columns: clamp(12rem, 24vw, 22rem) minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 2vw, 1.75rem) 0;
  border-bottom: 1px solid var(--plc-rule);
}

.plc-row img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--plc-rule);
}

.plc-row h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.plc-row p:not([class]) {
  max-width: 60ch;
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Where PLC's rows have a square arrow button, these carry what each part covers */
.plc-row__readout {
  align-self: center;
  margin: 0;
  padding: 0.85em 1em;
  border: 1px solid var(--plc-ink);
  font-family: var(--plc-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ 5. The system */

.plc-enrol {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: stretch;
}

.plc-enrol__card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  background: #232323;
}

.plc-enrol__card .plc-readout {
  margin: 0;
  color: var(--plc-teal-on-dark);
}

.plc-enrol__figure {
  position: relative;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0.75rem;
  font-family: var(--plc-label);
  font-size: clamp(7rem, 15vw, 14rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.plc-enrol__name {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.plc-enrol__note {
  position: relative;
  max-width: 30ch;
  margin: 0.75rem 0 0;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* PLC's card has its "40" ghosted in the corner; this one has the fifteen pages */
.plc-enrol__ghost {
  position: absolute;
  right: -0.06em;
  bottom: -0.2em;
  font-family: var(--plc-label);
  font-size: clamp(9rem, 20vw, 19rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgb(255 255 255 / 0.05);
}

.plc-enrol__form {
  display: grid;
  align-content: start;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
  background: #fff;
  color: var(--plc-ink);
}

.plc-enrol__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--plc-ink);
  font-family: var(--plc-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.plc-enrol__head span:last-child {
  color: var(--plc-teal);
}

.plc-enrol__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1rem, 2.5vw, 2.25rem);
  margin: 0;
}

.plc-enrol__fields dt {
  font-family: var(--plc-button);
  font-size: 0.8125rem;
  font-weight: 700;
}

.plc-enrol__fields dd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.55rem 0 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #c9c9c9;
  font-size: 1rem;
}

.plc-enrol__fields i {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  box-shadow: inset 0 0 0 1px rgb(24 24 24 / 0.2);
}

/* A square corner, drawn */
.plc-enrol__fields i.plc-corner {
  box-shadow: none;
  border-top: 2px solid var(--plc-teal);
  border-left: 2px solid var(--plc-teal);
}

.plc-enrol__button {
  display: block;
  padding: 1.15em;
  background: var(--plc-teal);
  color: #fff;
  font-family: var(--plc-button);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.plc-enrol__foot {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  color: rgb(24 24 24 / 0.66);
  font-size: 0.875rem;
}

.plc-blog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(7rem, 20%, 15rem);
  align-items: end;
  gap: clamp(1rem, 4vw, 4rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}

.plc-blog figure {
  margin: 0;
}

.plc-blog .plc-screen {
  border-color: var(--plc-rule);
  box-shadow: 0 2rem 3.5rem -1.75rem rgb(24 24 24 / 0.4);
}

.plc-blog .plc-gate {
  color: var(--plc-teal);
}

.plc-blog__phone .plc-gate {
  margin: 1rem 0 0;
}

.plc-blog__caption {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--fg-muted);
}

/* ------------------------------------------------------------------ 7. The result */

.plc-faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--gutter);
  align-items: start;
}

.plc-faq__topics {
  grid-column: 1 / 4;
  position: sticky;
  top: 7rem;
  display: grid;
  border-top: 1px solid var(--plc-ink);
}

.plc-faq__topics p {
  margin: 0;
  padding: 1rem 0.5rem 0.9rem;
  border-bottom: 1px solid var(--plc-rule);
  font-family: var(--plc-button);
  font-size: 0.8125rem;
  font-weight: 700;
}

.plc-faq__topics a {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.5rem 0.85rem 0.85rem;
  border-bottom: 1px solid var(--plc-rule);
  font-family: var(--plc-button);
  font-size: 0.875rem;
  font-weight: 700;
  transition: color 0.2s var(--ease-out);
}

.plc-faq__topics a:hover {
  color: var(--plc-teal);
}

.plc-faq__topics a span {
  color: var(--fg-muted);
  font-family: var(--plc-label);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.plc-faq__body {
  grid-column: 5 / 13;
  display: grid;
  gap: 1.25rem;
}

.plc-faq__body > * {
  grid-column: 1 / -1;
}

.plc-faq__body .plc-title {
  font-size: clamp(2.5rem, 4.6vw, 5rem);
}

.plc-faq__body .plc-lead {
  max-width: 40rem;
}

.plc-faq__list {
  margin-top: clamp(1rem, 2.5vw, 2rem);
  border-top: 1px solid var(--plc-ink);
}

.plc-faq__list details {
  border-bottom: 1px solid var(--plc-rule);
}

.plc-faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}

.plc-faq__list summary::-webkit-details-marker {
  display: none;
}

/* PLC's plus, drawn: it turns into a cross when the question is open */
.plc-faq__list summary::after {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 100% no-repeat;
  transition: rotate 0.4s var(--ease-out);
}

.plc-faq__list summary:hover,
.plc-faq__list details[open] summary {
  color: var(--plc-teal);
}

.plc-faq__list details[open] summary::after {
  rotate: 45deg;
}

.plc-faq__answer {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 2.4vw, 2rem) clamp(1.25rem, 2.8vw, 2.25rem);
  border-left: 1px solid var(--plc-teal);
  background: var(--plc-wash);
}

.plc-faq__answer p {
  max-width: 62ch;
  margin: 0;
  line-height: 1.6;
}

/* The client's words in PLC's quote bar */
.plc-quote {
  margin: 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 1px solid var(--plc-ink);
}

.plc-quote blockquote {
  margin: 0;
}

.plc-quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.plc-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-top: 1rem;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

.plc-quote figcaption b {
  color: var(--fg);
}

/* The stars stay the portfolio's orange: the reviews are David's thread through every case */
.plc-stars {
  display: inline-flex;
  gap: 0.15rem;
}

.plc-stars svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: var(--vivid);
}

/* ------------------------------------------------------------------ 8. Next project */

/* "Book your free assessment": the heading in capitals over a rule, the checklist and the teal button */
.plc-next__title {
  margin: 0;
  padding-bottom: clamp(1.25rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--plc-ink);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.plc-next__title span {
  color: var(--plc-teal);
}

.plc-next__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--gutter);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.plc-next__lead {
  grid-column: 1 / 6;
  display: grid;
  justify-items: start;
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.plc-next__intro {
  margin: 0;
  font-family: var(--plc-button);
  font-size: 1.125rem;
  font-weight: 700;
}

.plc-checks {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plc-checks li {
  display: flex;
  gap: 0.85rem;
  color: var(--fg-muted);
}

/* PLC's check, drawn in teal */
.plc-checks li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.75rem;
  margin: 0.2rem 0.3rem 0 0.25rem;
  border-right: 1.6px solid var(--plc-teal);
  border-bottom: 1.6px solid var(--plc-teal);
  rotate: 40deg;
}

.plc-next .plc-button svg {
  transition: translate 0.3s var(--ease-out);
}

.plc-next .plc-button:hover svg {
  translate: 0.2em 0;
}

.plc-next__poster {
  grid-column: 7 / 13;
  display: block;
  overflow: hidden;
  border: 1px solid var(--plc-rule);
  box-shadow: 0 2rem 3.5rem -2rem rgb(24 24 24 / 0.4);
}

.plc-next__poster img {
  display: block;
  width: 100%;
  height: auto;
  transition: scale 0.8s var(--ease-out);
}

.plc-next__poster:hover img {
  scale: 1.03;
}

@media (max-width: 960px) {
  .plc-title,
  .plc-lead {
    grid-column: 1 / -1;
  }

  .plc-measure__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plc-measure__grid div:nth-child(3) {
    border-left: 0;
  }

  .plc-measure__grid div:nth-child(n + 3) {
    border-top: 1px solid var(--plc-rule);
  }

  .plc-enrol {
    grid-template-columns: minmax(0, 1fr);
  }

  .plc-faq__topics {
    display: none;
  }

  .plc-faq__body,
  .plc-next__lead,
  .plc-next__poster {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .plc-measure__value {
    font-size: 15vw;
  }

  .plc-measure__grid div {
    padding-inline: 0.85rem;
  }

  .plc-chip {
    font-size: 0.6875rem;
  }

  .plc-tile:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .plc-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .plc-row__readout {
    justify-self: start;
  }

  .plc-enrol__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .plc-blog {
    grid-template-columns: minmax(0, 1fr) 30%;
    gap: 0.9rem;
  }

  .plc-blog .plc-gate {
    font-size: 0.5625rem;
  }

  .plc-next .plc-button {
    width: 100%;
  }
}

/* Body copy without a word left alone on its last line */
.case--performance-lab p {
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ The eight programs, as one still sheet

   The programs hub large, the seven sports around it; square frames with PLC's hairline, labels as its dark
   square readouts with the gate tick in front */
.mosaic--plc {
  --mosaic-border: 1px solid var(--plc-rule);
  --mosaic-chip-bg: var(--plc-ink);
  --mosaic-chip-radius: 0;
}

.mosaic--plc .mosaic__label {
  font-family: var(--plc-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mosaic--plc .mosaic__label::before {
  content: "";
  width: 1px;
  height: 11px;
  background: var(--plc-teal-on-dark);
}

@media (min-width: 701px) {
  .mosaic--plc {
    --mosaic-cols: repeat(4, minmax(0, 1fr));
    --mosaic-areas: "a a b c" "a a d e" "f g h h";
    --mosaic-row: clamp(12rem, 19vw, 21rem);
  }

  .mosaic--plc .mosaic__tile:nth-child(1) { grid-area: a; }
  .mosaic--plc .mosaic__tile:nth-child(2) { grid-area: b; }
  .mosaic--plc .mosaic__tile:nth-child(3) { grid-area: c; }
  .mosaic--plc .mosaic__tile:nth-child(4) { grid-area: d; }
  .mosaic--plc .mosaic__tile:nth-child(5) { grid-area: e; }
  .mosaic--plc .mosaic__tile:nth-child(6) { grid-area: f; }
  .mosaic--plc .mosaic__tile:nth-child(7) { grid-area: g; }
  .mosaic--plc .mosaic__tile:nth-child(8) { grid-area: h; }
}
