/* ===========================================================================
   About Us (about.css until 31 Oct, team.html and Our Team until 5 Nov, when
   the page became about.html again; the sheet keeps the name team.css) —
   page-specific layout only.

   Direction A, "Descent": the page follows the same thesis as the home page,
   where the ground tone carries the argument. It opens light and open for
   someone still deciding, drops to charcoal for the positioning, and comes
   back up light for the detail. Everything here builds on site.css; nothing
   in it is overridden.
   =========================================================================== */

/* --- the positioning band: the one dark stretch on the page --------------- */
.position {
  background: var(--charcoal); color: var(--pale);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.position .d { color: var(--pale); font-size: clamp(1.9rem, 3.8vw, 3.1rem); max-width: 16ch; }

/* Two columns so the two paragraphs read as one argument rather than a wall.
   Below 900px they stack, which is the right reading order anyway. */
.position .body { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .position .body { grid-template-columns: repeat(2, 1fr); } }
.position p { margin: 0; color: var(--pale-soft); max-width: 46ch; }
.position p:first-child { color: rgba(242, 241, 237, .9); }

/* --- the team: the principles' rows, with a face where the number stood ---- */
.team { background: var(--l0); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.team .d { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 16ch; }
.team > .wrap > ul {
  list-style: none; margin: clamp(2.2rem, 4vw, 3.2rem) 0 0; padding: 0;
  border-top: 1px solid rgba(22, 25, 27, .14);
}
.team > .wrap > ul > li {
  display: grid; gap: .6rem 1.6rem;
  grid-template-columns: 6rem minmax(0, 1fr);
  padding: clamp(1.4rem, 2.6vw, 1.9rem) 0;
  border-bottom: 1px solid rgba(22, 25, 27, .14);
}
/* The columns are named by place, not by order, so a row without a
   photograph keeps its words where the others keep theirs and the slot
   simply stands empty. On a wide screen the biography sits alongside the
   name rather than under it, so four people stay one scan each. */
.team .face {
  grid-column: 1; grid-row: 1 / span 2;
  width: 6rem; height: 6rem; display: block; object-fit: cover;
  border-radius: 8px; background: var(--l1);
}
.team .who, .team .bio { grid-column: 2; }
@media (min-width: 860px) {
  .team > .wrap > ul > li { grid-template-columns: 6rem minmax(12rem, 16rem) 1fr; align-items: start; }
  .team .face { grid-row: 1; }
  .team .bio { grid-column: 3; }
}
.team h3 {
  margin: 0; font-family: var(--head); font-weight: 300; font-synthesis: none;
  /* light, so never under 20px: the floor for the light weight */
  font-size: clamp(1.25rem, 1.9vw, 1.4rem); letter-spacing: -0.012em; line-height: 1.2;
}
/* the deep green: the brand green is under 4.5:1 at this size on the light ground */
.team .role { margin: .45rem 0 0; color: var(--kevin-deep); }
/* The post-nominals (5 Nov, the client's own letters), under the name so the
   name reads first and all four rows stack the same way, whatever the length
   of the letters. Lighter than the name by size and tone: the name is already
   at 300, the lightest weight Outfit has, and the site sets nothing under 20px
   that light, so these take the body weight in the soft ink, which is 6.3:1
   on the pale ground. balance keeps a long set (Kevin's) from leaving "MIEI"
   alone on a second line on a phone. */
.team .post {
  display: block; margin-top: .3rem;
  font-size: clamp(.9rem, 1.2vw, 1rem); font-weight: 400; letter-spacing: .01em; line-height: 1.35;
  color: var(--ink-soft); text-wrap: balance;
}
.team .bio p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.team .bio p + p { margin-top: .8rem; }
/* the installation partners: his three names as short rows under the team */
.team .partners { margin-top: clamp(3rem, 6vw, 5rem); }
.team .partners p { margin: 1rem 0 0; color: var(--ink-soft); max-width: 52ch; }
.team .partners ul {
  list-style: none; margin: 1.4rem 0 0; padding: 0; max-width: 36rem;
  border-top: 1px solid rgba(22, 25, 27, .14);
}
.team .partners li {
  padding: .9rem 0; border-bottom: 1px solid rgba(22, 25, 27, .14);
  font-family: var(--head); font-weight: 300; font-synthesis: none;
  font-size: clamp(1.15rem, 1.7vw, 1.3rem); letter-spacing: -0.012em;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.4rem; box-sizing: border-box;
}
/* each team's own logo, opposite its name; alt is empty as the name sits beside it */
.team .partners li img { height: 2.6rem; width: auto; max-width: 13rem; object-fit: contain; flex: none; }
.team .partners li img.tall { height: 3.3rem; }  /* a stacked mark, so it takes more height to read at the wordmark's weight */

/* --- the head: the client's reference, in the site's colours ---------------
   One dark screen: the words on the left and, on the right, his own drawing
   of the system, the frame on its piles, the roots under one corner and the
   masonry wall at the far end. The reference put two stock figures here with
   the drawing faint behind them; the figures are gone (the client asked, and
   they said nothing about him), and the drawing, which is his and no one
   else's, is the subject. The bar over it is the shared one in its usual
   pale state over a dark band, nothing About-only. Under the hero a pale
   strip carries the address, the email and the phone, each under a small
   dark-green disc.

   The ground is the deep green the dark bands already use. The button is
   not the brand green itself: #118A5F carries no text at AA (4.35:1 with
   white, 4.19:1 with the charcoal), so it takes the site's brighter step of
   it, --kevin-bright, with the charcoal on it at 5.91:1. */
.about-hero {
  --hero-pad: clamp(1.2rem, 4vw, 3rem);   /* the wrap's own gutter, so the drawing's bleed is measured from its content edge */
  --strip-h: 9rem;                         /* the strip's measured height (144px), left out of the hero so both fit one screen */
  position: relative; overflow: hidden;
  background: var(--charcoal); color: var(--pale);
  display: grid; grid-template-rows: 1fr; align-items: stretch;
  padding-top: var(--hdr);
  /* one screen less the strip, and never so short the words meet the bar */
  height: max(38rem, calc(100vh - var(--strip-h)));
  height: max(38rem, calc(100svh - var(--strip-h)));
  max-height: 60rem;
}
/* The wrap is the hero's one row and fills it, so the drawing's column has a
   height to be sized by. min-height 0: a grid item's minimum is otherwise its
   content, and the content here is a picture at its own height for the
   column's width, which on a wide, short screen is taller than the hero
   (measured at 1920x900: 776px of picture in a 634px row, and the hero's
   overflow clipped the roots). Clamped, the row is the hero's and the
   picture is fitted to it. Two columns: the words take 56% of the measure
   at most, which is where the reference's headline stops, and the drawing
   has the rest. Both centre on the row's midline, so the drawing's middle
   sits level with the words' middle whatever the screen's height. */
.about-hero .wrap {
  position: relative; z-index: 2; width: 100%; min-height: 0;
  padding-top: clamp(1rem, 3vh, 2.5rem); padding-bottom: clamp(1rem, 3vh, 2.5rem);
  display: grid; grid-template-columns: min(46rem, 56%) minmax(0, 1fr); align-items: center;
}
/* The reference sets its head light, not bold, and the client liked it so
   much the whole site now takes the display face at 300 (see .d in
   site.css); this hero keeps its own 1.14 line-height. At the client's ask the
   head is larger than the reference's proportion would give it: 66px at
   1440, where the column is 645px, so the 44 characters run to three lines
   rather than the reference's two. The column is the bound; there is no ch
   limit on top of it. */
.about-hero .d {
  color: #fff; font-weight: 300; letter-spacing: -0.022em; line-height: 1.14;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
}
.about-hero p { margin: 1.3rem 0 0; max-width: 46ch; font-size: .98rem; line-height: 1.6; color: var(--pale-soft); }
/* the client's page name over the head, in the spec face the hero's own
   stamps use, in the bright green they take over a dark ground */
.about-hero p.over { margin: 0 0 1.1rem; font-size: .74rem; color: var(--kevin-bright); }
/* The button: the site's primary pill, pale on the teal run as it is on the
   close, so it reads as the one action on the ground. It was the reference's
   small green rectangle, which sat too close in tone to the run to read as
   the action; radius, padding, weight, hover (kevin-mid with white, 6.26:1)
   and focus ring are the site's own. */
.about-hero .btn { margin-top: 2rem; background: var(--pale); color: var(--charcoal); }
/* the site's hover, restated: this sheet loads after site.css, so the rule
   above would otherwise outrank .btn:hover at the same specificity */
@media (hover: hover) { .about-hero .btn:hover { background: var(--kevin-mid); color: #fff; } }

/* The drawing. The client's wireframe of a house on its helical piles, white
   linework on a transparent ground (the file is cut to the drawing; about.html
   says how), so it composites on the run like any cutout and needs no blend
   mode. The column stretches to the row and the picture is contained in it,
   centred: where the width binds (a screen of the usual proportions, 1440x900,
   1920x1080) the picture fills the column; where the height binds (a wide,
   short window, 1920x900 say) it is narrower than the column and sits in
   the middle of it. The column runs past the wrap's content edge by the
   wrap's own gutter and the slack beyond 78rem (the formula the people's
   right edge used, the other way round), and stops a rem and a half short
   of the screen's edge: --bleed is now room, not bleed. The drawing before
   this one ended in a wall that could run off the screen; this one ends in
   the piles themselves, and a column carried past the edge cut the last of
   them. A rem and a half on the left keeps the house off the words. */
.ah-frame {
  --bleed: -1.5rem;
  align-self: stretch; min-width: 0; min-height: 0;
  margin-right: calc(-1 * max(var(--hero-pad), 50vw - 39rem + var(--hero-pad)) - var(--bleed));
  padding: 1vh 0 1vh 1.5rem;
}
.ah-frame img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
/* It arrives the way every block below the fold on the site does, risen 24px
   and settled over .85s on the reference's appear spring (the linear() from
   .will-appear in site.css, with the same bezier under it for a browser
   without linear()); a keyframe rather than the class, since this is on load
   and not on scroll, and it needs no script. Under reduced motion it is
   simply there. */
@keyframes ah-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .ah-frame {
    animation: ah-rise .85s .12s both;
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
    animation-timing-function: linear(0, 0.1197, 0.3102, 0.4786, 0.6106, 0.7104, 0.785, 0.8405, 0.8816, 0.9122, 0.9349, 0.9517, 0.9642, 0.9734, 0.9803, 0.9854, 0.9891, 0.9919, 0.994, 0.9956, 0.9967, 0.9976, 0.9982, 0.9987, 1);
  }
}

/* Under 900px the hero stacks: words, then the drawing, centred in whatever
   of the screen is left under them (a full screen at the least, as before),
   the width of the measure plus a little off the right edge. */
@media (max-width: 899px) {
  .about-hero {
    height: auto; max-height: none;
    min-height: 100vh; min-height: 100svh;
  }
  /* the hero is as tall as its content here, so the wrap's minimum is its
     content again: clamped, a stack taller than the screen would be cut */
  .about-hero .wrap {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start;
    padding-top: clamp(1.2rem, 4vh, 2.5rem); padding-bottom: .75rem;
  }
  .about-hero .d { font-size: clamp(2.1rem, 8.6vw, 3rem); }
  .about-hero .btn { margin-top: 1.5rem; }
  /* a rem over the button, and the wrap's padding under it trimmed, so the
     drawing's foot (the pile tips) lands near the screen's edge rather than
     well under it. Inside the gutter on both sides: the drawing's right edge
     is the piles, and the 6vw it once ran off the right cut the last one. */
  .ah-frame { --bleed: calc(-1 * var(--hero-pad)); align-self: center; margin-top: 1rem; padding: 0; }
  /* its own shape, the measure wide where that fits (a phone) and no more
     than half the screen tall where it does not (a tablet, a short wide
     window), where it was running to 724px tall at 899x700; a picture under
     the measure's width sits centred in the box, so on the half-bleed */
  .ah-frame img { width: auto; height: auto; max-width: 100%; max-height: 50vh; max-height: 50svh; margin: 0 auto; }
}

/* --- the strip: address, email, phone, each under a disc -------------------
   Three equal columns across the wrap, each disc and its line centred in its
   own, so the gaps between the three read even, as the client's reference
   has them (columns sized to their words put the address wide and the other
   two bunched to the right). From 1024px up nothing wraps. The address is
   the long one, 429px on one line, and a third of the measure is under that
   until well past 1200px: from 1280px up the line is a box of its own width,
   centred on its column and overhanging it equally on both sides (28px at
   most, into a 32px gap and a neighbour that is never that full, and still
   23px clear of the page edge; at 1200 it came within 4px of it). Under
   that no equal-thirds layout holds the address on one line clear of the
   page edge, at any gap or gutter (its column's centre sits 185px in at
   1024; the line needs 215), so between 1024 and 1279 the columns size to
   their words and share the slack, and the gaps read a little uneven there.
   Between 1024 and 768px the three share the width and wrap as they must;
   under 768px they stack. */
.about-strip { background: var(--l1); color: var(--ink); padding: clamp(1.6rem, 3vw, 2rem) 0; }
.about-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 2rem;
}
@media (min-width: 1024px) {
  .about-strip li { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .about-strip ul { grid-template-columns: auto auto auto; justify-content: space-evenly; }
}
@media (min-width: 1280px) {
  /* a box of its own width, centred in a track that does not grow to it, so
     the long line overhangs its column equally on both sides */
  .about-strip li { grid-template-columns: minmax(0, 1fr); }
  .about-strip li > :not(.disc) { width: max-content; max-width: none; }
}
.about-strip li { display: grid; justify-items: center; gap: .7rem; text-align: center; font-size: 1.06rem; line-height: 1.45; }
.about-strip .disc {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--kevin-deep); color: #fff;
}
.about-strip .disc svg { width: 1.2rem; height: 1.2rem; display: block; }
.about-strip address { font-style: normal; }
.about-strip a { color: inherit; text-decoration: underline; text-decoration-color: rgba(22, 25, 27, .35); text-underline-offset: .2em; }
@media (hover: hover) { .about-strip a:hover { text-decoration-color: currentColor; } }
@media (max-width: 767px) {
  .about-strip ul { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* --- the testimonials: four quotations, set as moments ----------------------
   The client's customers' own words, verbatim, four of them since 14 Oct:
   Danny of Milltor Construction leading as before, his first paragraph large
   and light (the line the rest rests on: quick, straightforward, very little
   mess) and the other two at body size, then three single-paragraph
   quotations each set large as that lead is, so each reads as a quotation
   rather than as body copy. Each is an opening quotation mark in the display
   face at the client's green beside the words, with the attribution in the
   spec face under a short rule. White, so the band steps off the team's
   pale ground above it and the teal close below. From 900px the mark takes a
   column of its own and the words sit beside it, and the three that follow
   Danny alternate sides down the band - right, left, right - the mark on the
   outer edge each time and the block set to that edge, so the four read as a
   zigzag rather than a stack. Under 900px they are one column, the mark over
   the words, and the alternation collapses with it. */
.testimonial { padding: var(--pad) 0; }
.testimonial figure { margin: 0; display: grid; grid-template-columns: minmax(0, 44rem); gap: 0; }
.testimonial figure + figure { margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 900px) {
  .testimonial figure { grid-template-columns: 5.5rem minmax(0, 44rem); column-gap: 1.5rem; }
  .testimonial .mark { grid-row: 1 / span 2; }
  /* the even ones flip: the words in the first column, the mark in the second
     and set to its right edge, and the whole block justified to the wrap's
     right edge, so the mark is on the outer edge on both sides */
  .testimonial figure:nth-of-type(even) { grid-template-columns: minmax(0, 44rem) 5.5rem; justify-content: end; }
  .testimonial figure:nth-of-type(even) .mark { grid-column: 2; text-align: right; }
  .testimonial figure:nth-of-type(even) blockquote,
  .testimonial figure:nth-of-type(even) figcaption { grid-column: 1; }
}
/* the mark: the display face at 300, big, and pulled up so its top sits on
   the lead's first line rather than floating above it */
.testimonial .mark {
  display: block; font-family: var(--display); font-weight: 300; font-synthesis: none;
  font-size: clamp(5rem, 9vw, 8rem); line-height: .72; color: var(--kevin);
  margin: -.02em 0 .1em; user-select: none;
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; max-width: none; }
.testimonial blockquote p + p { margin-top: 1.1rem; }
.testimonial .lead {
  font-family: var(--display); font-weight: 300; font-synthesis: none;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.32; letter-spacing: -0.012em;
  color: var(--ink); margin-bottom: 1.6rem !important;
}
.testimonial blockquote p:not(.lead) { font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); max-width: 52ch; }
/* the attribution: the spec face in the mid green (4.5:1 on white), under a
   short rule in the brand green, as the eyebrow carries its mark */
.testimonial figcaption {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 1.8rem; color: var(--kevin-mid);
}
.testimonial figcaption::before { content: ""; width: 2rem; height: 2px; background: var(--kevin); flex: none; }

/* the hero and the closing call take the footer's teal run (13 Sep). The close
   copy steps up to the pale: the pale-soft falls to 3.7:1 at the run's light end. */
.about-hero { background: linear-gradient(180deg, var(--board-deep) 0%, var(--board-mid) 100%); }
.close { background: linear-gradient(180deg, var(--board-deep) 0%, var(--board-mid) 100%); }
.close p { color: var(--pale); }
/* The accreditations band (moved here from the home page, 5 Nov) ends in the
   sweep that is cut away to show whatever is behind it. On the home page that
   was a photograph pulled up under the foot (.band + .pin); here the close
   follows, so it is pulled up the same way and sits behind the band, and the
   cut shows its teal rather than the white page ground, which was a wedge and
   a sliver of white between two teal sections. The padding is raised by what
   the pull took, so the words stand where they did, and the run keeps its
   own length under the band: only the flat start of it is behind the sweep. */
.accred + .close {
  z-index: 0;
  margin-top: calc(-1 * var(--band-foot));
  padding-top: calc(clamp(4rem, 9vw, 7.5rem) + var(--band-foot));
  background:
    linear-gradient(180deg, var(--board-deep) 0%, var(--board-mid) 100%) bottom / 100% calc(100% - var(--band-foot)) no-repeat,
    var(--board-deep);
}
.about-hero p { color: var(--pale); }   /* pale-soft is 3.7:1 at the run's light end */
/* "More than an installer." takes the same teal run */
.position { background: linear-gradient(180deg, var(--board-deep) 0%, var(--board-mid) 100%); }
.position p, .position .lede { color: var(--pale); }
.position p:first-child { color: var(--pale); }   /* the .9 white was 4.2:1 at the run's light end */
