/* About page: intro, founders, how we work, design techniques and people.
   Loaded after css/site.css, which holds the banner, section bar and shared section pieces. */

/* ---------- Intro statement ----------
   A wide statement, then a ruled row: a serif lead on the left; the approach and
   what the studio does and designs on the right. */
.about-intro {
  padding: clamp(80px, 9vw, 140px) 0 clamp(16px, 2vw, 32px);
}
.about-statement {
  margin: 0;
  max-width: 28ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 3.6vw + .75rem, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.about-intro-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 32px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(28px, 3vw, 44px);
}
.about-lead {
  grid-column: 1 / 7;
  margin: 0;
  max-width: 33ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1vw + 1rem, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.about-detail { grid-column: 8 / 13; }
.about-sub {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  max-width: 34rem;
  margin: clamp(28px, 3vw, 40px) 0 0;
}
.about-facts .ruled { padding-top: 16px; }
.about-facts dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink);
}
.about-facts dt + dd { margin-top: 10px; }

/* ---------- 01 Founders ----------
   The founders side by side: a portrait each, with the name and role on a ruled caption below it. */
.founders-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 4vw, 64px);
  row-gap: 56px;
}
.founder {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.founder:nth-child(even) { --d: .12s; }

.founder-media {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--plaster);
}
/* Stands in for a founder's portrait until the photograph is ready */
.founder-media--pending {
  display: grid;
  place-items: center;
  border: 1px solid #dcd6ce;
}
.founder-media--pending span {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--stone);
}
.founder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* The same warm grey tone as the rest of the page; colour comes back on hover */
  filter: grayscale(1) sepia(.16) contrast(1.02);
  transition: filter .8s ease, transform 1.4s var(--ease-out);
}
/* Keeps the reveal from site.css alongside the hover fade */
.js .founder-media img {
  transition: filter .8s ease, transform 1.4s var(--ease-out), clip-path 1.4s var(--ease-out) var(--d, 0s), scale 1.9s var(--ease-out) var(--d, 0s);
}
@media (hover: hover) {
  .founder:hover .founder-media img { filter: none; transform: scale(1.03); }
}

/* Caption: name on the left, role on the right, on a rule under the portrait */
.founder-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: clamp(18px, 1.8vw, 24px);
  padding-top: clamp(16px, 1.6vw, 22px);
  border-top: 1px solid var(--line);
}
.founder-body .founder-role { order: 2; margin: 0; }
.founder-body .founder-name { order: 1; }
.founder-role {
  margin: 0 0 14px;
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}
.founder-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.6vw + 1.1rem, 3.125rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.founder-quote {
  position: relative;
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding-left: 28px;
  border-left: 1px solid var(--olive);
}
.founder-quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.375rem, 1vw + .95rem, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}

.founder-bio {
  margin: clamp(24px, 2.6vw, 32px) 0 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.founder-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  max-width: 34rem;
  margin: clamp(28px, 3vw, 40px) 0 0;
}
.founder-facts .ruled { padding: 16px 0 4px; }
.founder-facts dt,
.about-facts dt {
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.founder-facts dd {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- 02 How we work ----------
   Dark band: heading, note and a photograph on the left (held in view while you read),
   numbered principles on the right. */
.how-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 56px;
}
/* The aside runs the full height of the list, so its photograph can stay pinned while the heading scrolls away */
.how-aside {
  grid-column: 1 / 6;
  align-self: stretch;
}
.how-intro {
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  max-width: 28rem;
  font-family: var(--serif);
  font-size: clamp(1.125rem, .5vw + .9rem, 1.3125rem);
  line-height: 1.5;
  color: rgba(236, 233, 227, .84);
}
.how-media {
  position: relative;
  margin: clamp(32px, 4vw, 48px) 0 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #2a2c26;
}
.how-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35) sepia(.12) brightness(.92);
}
.how-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 18, 0) 55%, rgba(20, 22, 18, .65) 100%);
  pointer-events: none;
}
.how-media figcaption {
  position: absolute;
  z-index: 4;
  left: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(18px, 2.2vw, 26px);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, .88);
}
.how-media::after { z-index: 3; }

/* One photograph per value, stacked. The one on show wipes in over the last, from below when you scroll
   down and from above when you scroll back up, and settles from a slight zoom. */
/* Heading and intro sit above both columns, so the drawing and the first value start level */
.how-head .how-intro { margin: 0; }
.how-head + .how-grid { margin-top: 0; }
.how-media {
  margin-top: 0;
  position: sticky;
  top: calc(var(--header-h) + 40px);
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - var(--header-h) - 80px);
  width: 100%;
}
.how-slides { position: absolute; inset: 0; }
.how-media .how-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.js .how-media .how-slide {
  clip-path: inset(100% 0 0 0);
  scale: 1.14;
  transition: clip-path 1.1s var(--ease-out), scale 1.8s var(--ease-out);
}
.js .how-media[data-dir="up"] .how-slide { clip-path: inset(0 0 100% 0); }
.js .how-media.is-in .how-slide.is-active,
.js .how-media.is-in .how-slide.was-active { clip-path: inset(0 0 0 0); scale: 1; }
.how-media .how-slide.was-active { z-index: 1; }
.how-media .how-slide.is-active { z-index: 2; }
html:not(.js) .how-slide + .how-slide { display: none; }

/* Each slide is a line drawing on a faint drafting grid */
.how-media .how-slide {
  display: grid;
  place-items: center;
  background-color: #23251f;
  background-image:
    linear-gradient(rgba(236, 233, 227, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 233, 227, .045) 1px, transparent 1px);
  background-size: 20px 20px;
}
.how-art {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(236, 233, 227, .86);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.how-art .a { stroke: #c9d1a8; }
.how-art .dash { stroke: #c9d1a8; stroke-dasharray: 3 4; opacity: .8; }
.how-art .dash.faint { stroke: rgba(236, 233, 227, .5); opacity: .55; }
.how-art text {
  fill: #c9d1a8;
  stroke: none;
  font: 500 8.5px/1 var(--sans);
  letter-spacing: .14em;
}
/* On show, the lines draw themselves in one after another, then the guide lines and labels fade up */
.js .how-media .how-art .ln { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .how-media .how-art .dash,
.js .how-media .how-art text { opacity: 0; }
.js .how-media.is-in .how-slide.is-active .how-art .ln,
.js .how-media.is-in .how-slide.was-active .how-art .ln {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--ease-out) calc(.25s + min(var(--i, 0) * 35ms, 1.2s));
}
.js .how-media.is-in .how-slide.is-active .how-art .dash,
.js .how-media.is-in .how-slide.was-active .how-art .dash { opacity: .8; transition: opacity .9s ease .9s; }
.js .how-media.is-in .how-slide.is-active .how-art .dash.faint,
.js .how-media.is-in .how-slide.was-active .how-art .dash.faint { opacity: .55; }
.js .how-media.is-in .how-slide.is-active .how-art text,
.js .how-media.is-in .how-slide.was-active .how-art text { opacity: 1; transition: opacity .9s ease 1.1s; }

.how-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.how-count {
  flex: none;
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: .1em;
  color: #d3dabb;
  font-variant-numeric: tabular-nums;
}
.how-caption-text { transition: opacity .3s ease, transform .5s var(--ease-out); }
.how-caption-text.is-out { opacity: 0; transform: translateY(6px); }

/* A thin bar per value along the foot of the photograph; the current one is filled */
.how-progress {
  position: absolute;
  z-index: 4;
  left: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  bottom: 10px;
  display: flex;
  gap: 6px;
}
.how-progress span {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.how-progress span::after {
  content: "";
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.how-progress span.is-on::after { transform: scaleX(1); }

/* The value being read stands out; the rest step back until you reach them */
.how-title,
.how-num { transition: color .6s ease, opacity .6s ease; }
.js .how-list.is-tracking .how-item:not(.is-current) .how-title { color: rgba(236, 233, 227, .42); }
.js .how-list.is-tracking .how-item:not(.is-current) .how-num { opacity: .45; }
.js .how-list.is-tracking .how-item.is-current .how-text { color: rgba(236, 233, 227, .84); }
.js .how-list.is-tracking .how-item.is-current .how-body { transform: translateX(8px); }

/* On small screens the photograph can't stay in view, so each value carries its own */
.how-thumb { display: none; }

.how-main { grid-column: 7 / 13; }
.how-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}
.how-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 16px;
  padding: clamp(28px, 3vw, 40px) 0 clamp(32px, 3.4vw, 44px);
}
.how-item:last-child { padding-bottom: clamp(36px, 4vw, 52px); }
.how-num {
  padding-top: .55em;
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: .1em;
  color: #b7c09a;
  font-variant-numeric: tabular-nums;
}
.how-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.2vw + 1rem, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.how-text {
  margin: 12px 0 0;
  max-width: 34rem;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--night-soft);
  transition: color .5s ease;
}
.how-body { transition: transform .7s var(--ease-out); }
@media (hover: hover) {
  .how-item:hover .how-body { transform: translateX(8px); }
  .how-item:hover .how-text { color: rgba(236, 233, 227, .84); }
}
.how-more {
  padding-top: clamp(28px, 3vw, 36px);
  border-top: 1px solid var(--night-line);
}

/* ---------- 03 Design techniques ----------
   A ruled grid of the eight design process steps on a plaster band. Each line icon redraws on hover. */
.techniques { background: var(--plaster); }
/* The call to action has no top padding of its own (it expects a paper section above), so give it room here */
.techniques + .cta { padding-top: clamp(72px, 8vw, 120px); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #dcd6ce;
  border: 1px solid #dcd6ce;
}
.tech {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--plaster);
  transition: background-color .5s ease;
}
.tech:nth-child(4n + 2) { --d: .1s; }
.tech:nth-child(4n + 3) { --d: .2s; }
.tech:nth-child(4n + 4) { --d: .3s; }

/* Line icons: each stroke is one unit long (pathLength="1"), so it can draw itself in */
.tech-icon {
  display: block;
  width: 48px;
  height: 48px;
  color: var(--olive);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
}
.tech-icon > * { stroke-dasharray: 1 1; }

.tech-num {
  margin: auto 0 10px;
  padding-top: 48px;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}
.tech-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, .9vw + 1rem, 1.875rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.tech-text {
  margin: 12px 0 0;
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--stone);
}

@keyframes icon-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@media (hover: hover) {
  .tech:hover { background: var(--paper); }
  .tech:hover .tech-icon > * { animation: icon-draw 1.2s var(--ease-out) both; }
}

/* ---------- 04 People ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 56px) clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.person:nth-child(4n + 2) { --d: .08s; }
.person:nth-child(4n + 3) { --d: .16s; }
.person:nth-child(4n + 4) { --d: .24s; }

.person-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--plaster);
}
/* Portraits share one warm grey tone, and come into colour on hover */
.person-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1) sepia(.16) contrast(1.02);
  transition: filter .8s ease, transform 1.4s var(--ease-out);
}
@media (hover: hover) {
  .person:hover .person-media img { filter: none; transform: scale(1.04); }
}

.person-name {
  margin: 18px 0 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.person-role {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--stone);
}


/* ---------- Load and scroll reveals ---------- */
.js .tech-icon > * { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) calc(var(--d, 0s) + .25s); }
.tech.is-in .tech-icon > * { stroke-dashoffset: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .founder-facts { grid-template-columns: 1fr; }

  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech:nth-child(n) { --d: 0s; }
  .tech:nth-child(even) { --d: .1s; }
}

@media (max-width: 960px) {
  .about-lead,
  .about-detail { grid-column: 1 / -1; }

  .how-aside,
  .how-main { grid-column: 1 / -1; }
  .how-aside { position: static; }
  .how-media { display: none; }
  .how-thumb {
    display: block;
    margin: 20px 0 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #23251f;
    background-image:
      linear-gradient(rgba(236, 233, 227, .045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(236, 233, 227, .045) 1px, transparent 1px);
    background-size: 20px 20px;
  }
  .js .how-list.is-tracking .how-item:not(.is-current) .how-title { color: inherit; }
  .js .how-list.is-tracking .how-item:not(.is-current) .how-num { opacity: 1; }
  .js .how-list.is-tracking .how-item.is-current .how-body { transform: none; }

  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech:nth-child(n) { --d: 0s; }
  .tech:nth-child(even) { --d: .1s; }

  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person:nth-child(n) { --d: 0s; }
  .person:nth-child(3n + 2) { --d: .08s; }
  .person:nth-child(3n + 3) { --d: .16s; }
}

@media (max-width: 720px) {
  .founders-list { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .founder-media { aspect-ratio: 4 / 5; }
  .founder-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .how-item { grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; }

  .tech-grid { grid-template-columns: 1fr; }
  .tech { min-height: 0; }
  .tech:nth-child(n) { --d: 0s; }
  .tech-num { padding-top: 32px; }

  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .person:nth-child(n) { --d: 0s; }
  .person:nth-child(even) { --d: .08s; }
  .person-name { margin-top: 14px; font-size: 1rem; }
  .person-role { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .tech-icon > * { stroke-dashoffset: 0; transition: none; }
  .tech-icon > * { animation: none !important; }
  .person-media img,
  .how-body,
  .how-text,
  .tech { transition: none; }
  /* Photographs swap with a quick fade instead of a wipe */
  .js .how-media .how-slide,
  .js .how-media[data-dir="up"] .how-slide { clip-path: none; scale: 1; opacity: 0; transition: opacity .3s ease; }
  .js .how-media .how-slide.is-active { opacity: 1; }
  .js .how-media .how-art .ln { stroke-dashoffset: 0 !important; transition: none !important; }
  .js .how-media .how-art .dash,
  .js .how-media .how-art text { opacity: .8 !important; transition: none !important; }
  .how-caption-text,
  .how-progress span::after { transition: none; }
}

/* A founder without a quote shows no empty quote mark */
.founder-quote:has(> p:empty) { display: none; }

/* ---------- Founders, one row each (26 Nov) ----------
   Each founder on a wide row: portrait on one side, the text centred beside it, sides alternating.
   The role reads as a small label above a large name, then the quote and the biography. */
.founders-list {
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(80px, 9vw, 144px);
}
.founder {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: clamp(20px, 3vw, 48px);
}
.founder-media {
  grid-column: 1 / 6;
  grid-row: 1 / -1;
  aspect-ratio: 4 / 5;
}
.founder-body,
.founder-quote,
.founder-bio { grid-column: 7 / 13; }
.founder-body { grid-row: 2; }
.founder-quote { grid-row: 3; }
.founder-bio { grid-row: 4; }
.founder:nth-child(even) .founder-media { grid-column: 8 / 13; }
.founder:nth-child(even) .founder-body,
.founder:nth-child(even) .founder-quote,
.founder:nth-child(even) .founder-bio { grid-column: 1 / 7; }

.founder-body {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.founder-body .founder-role { order: 1; }
.founder-body .founder-name { order: 2; }
.founder-name { font-size: clamp(2.5rem, 2.6vw + 1.2rem, 4.25rem); }
.founder-quote { margin-top: clamp(28px, 3vw, 40px); }
.founder-bio {
  max-width: 36rem;
  margin-top: clamp(24px, 2.6vw, 32px);
  padding-top: clamp(20px, 2.2vw, 28px);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .founder { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .founder-media,
  .founder:nth-child(even) .founder-media,
  .founder-body, .founder-quote, .founder-bio,
  .founder:nth-child(even) .founder-body,
  .founder:nth-child(even) .founder-quote,
  .founder:nth-child(even) .founder-bio { grid-column: 1 / -1; grid-row: auto; }
  .founder-media { width: min(100%, 520px); margin-bottom: clamp(24px, 5vw, 36px); }
}

/* ---------- Founders: the photo matches the text (26 Nov, second pass) ----------
   No fixed photo shape: each portrait stretches to the full height of its founder's text, so the photo and the
   words start and end together and nothing is left empty beside them. A minimum height keeps a short biography
   from squeezing the photo into a strip. */
.founder {
  grid-template-rows: auto auto 1fr;
  align-items: start;
}
.founder-media {
  position: relative;
  grid-row: 1 / -1;
  align-self: stretch;
  aspect-ratio: auto;
  min-height: 240px;
}
.founder-media img {
  position: absolute;
  inset: 0;
}
.founder-body { grid-row: 1; }
.founder-quote { grid-row: 2; }
.founder-bio { grid-row: 3; margin-bottom: 0; }
/* Text sits against the photo's top and bottom edges, with breathing room from the photo side */
.founder-body,
.founder-quote,
.founder-bio { padding-inline: 0; }

@media (max-width: 900px) {
  .founder-media { aspect-ratio: 4 / 3; min-height: 0; width: 100%; }
}
/* Tighter rhythm: less air between the two founders and before the team that follows */
.founders-list { row-gap: clamp(56px, 6vw, 96px); }
.founders { padding-bottom: clamp(40px, 4vw, 64px); }
.founders + .section { padding-top: clamp(56px, 6vw, 96px); }

/* ---------- Founders: both rows the same height (26 Nov, third pass) ----------
   Both portraits are the same height (the taller founder's text sets it). In each row the name sits level with
   the top of the photo and the biography's last line with its foot, so the two rows share one shape. */
.founders-list { grid-auto-rows: 1fr; }
.founder { grid-template-rows: auto auto 1fr; }
.founder-bio { align-self: end; }
@media (max-width: 900px) {
  .founders-list { grid-auto-rows: auto; }
  .founder-bio { align-self: auto; }
}

/* ---------- Founders: quote on the photo, biographies clamped (26 Nov, fourth pass) ----------
   Equal photos without empty space: the quote moves onto the founder's photo as a caption, and each biography
   shows six lines with "Read more" (added by site.js) so the two text columns are the same length. */
.founder { grid-template-rows: auto 1fr auto; }
.founder-body { grid-row: 1; }
.founder-bio { grid-row: 2; align-self: end; }
.founder-more { grid-row: 3; }
.founder-quote {
  grid-column: 1 / 6;
  grid-row: 1 / -1;
  align-self: end;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(48px, 5vw, 80px) clamp(22px, 2.4vw, 34px) clamp(20px, 2.2vw, 30px);
  border-left: 0;
  background: linear-gradient(180deg, rgba(20, 16, 14, 0), rgba(20, 16, 14, .78));
  pointer-events: none;
}
.founder-quote p {
  font-size: clamp(1.0625rem, .5vw + .9rem, 1.3125rem);
  line-height: 1.4;
  color: #fff;
}
.founder:nth-child(even) .founder-quote { grid-column: 8 / 13; }
.founder-bio.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.founder-more {
  grid-column: 7 / 13;
  justify-self: start;
  margin-top: 14px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.founder:nth-child(even) .founder-more { grid-column: 1 / 7; }
/* While a biography is open its row grows on its own */
.founders-list:has(.founder-bio.is-open) { grid-auto-rows: auto; }

@media (max-width: 900px) {
  .founder-quote,
  .founder:nth-child(even) .founder-quote {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: clamp(24px, 5vw, 32px);
    padding: 0 0 0 22px;
    border-left: 1px solid var(--olive);
    background: none;
  }
  .founder-quote p { color: var(--ink); }
  .founder-more,
  .founder:nth-child(even) .founder-more { grid-column: 1 / -1; grid-row: auto; }
  .founder-bio { grid-row: auto; }
}
/* Phones: everything in reading order (this comes last so it wins over the desktop placements above) */
@media (max-width: 900px) {
  .founder { grid-template-rows: none; }
  .founder-media,
  .founder:nth-child(even) .founder-media,
  .founder-body,
  .founder-quote,
  .founder:nth-child(even) .founder-quote,
  .founder-bio,
  .founder-more,
  .founder:nth-child(even) .founder-more { grid-row: auto; align-self: auto; }
}
