/* Nicholson & Galloway — theme overrides.
   Kept separate so assets/ng.css stays byte-identical to the stylesheet that was
   reviewed and can be re-copied wholesale if the concept is revised. Loaded after it,
   so identical selectors win on order alone. */

/* --- the filter needs this to be an author rule ---
   Rows are hidden by setting the hidden attribute, but [hidden]{display:none} lives in
   the UA stylesheet, so any author rule that sets display — .irow is display:grid —
   silently outranks it and the row stays on screen. */
[hidden]{display:none!important}

/* --- page hero entrance ---
   The reviewed animation lifted each line 18px with a 60/130/220ms stagger, which on a
   44px display headline reads as three separate things popping in. ng.css already makes
   this argument about photographs — "a 16px lift on a full-bleed image reads as a jolt"
   — and it holds for large type too.

   So: a much shorter drift, a longer and softer curve, and a tighter stagger, so the
   kicker, headline and standing line arrive as one block settling into place rather
   than as a sequence of pops. */
@keyframes ngherorise{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:none}
}
html.motion .pagehero .kicker{animation:ngherorise 820ms cubic-bezier(.22,.61,.36,1) 40ms both}
html.motion .pagehero h2    {animation:ngherorise 900ms cubic-bezier(.22,.61,.36,1) 100ms both}
html.motion .pagehero p     {animation:ngherorise 940ms cubic-bezier(.22,.61,.36,1) 160ms both}

/* The photograph behind it settles a touch more slowly, so the type lands first and the
   image resolves under it rather than the two racing each other. */
html.motion .pagehero .photo{animation:heroshot 1700ms cubic-bezier(.22,.61,.36,1) both}

/* --- home rail: the category labels ---
   At 10px these were a caption on a photograph rather than the name of the thing you
   are about to click, which is what they actually are. Sized up substantially and
   given a little more weight.

   Set upright rather than rotated: text-orientation:upright keeps every glyph the
   right way up while the line still runs top to bottom, so the name is readable
   without tilting your head. The reviewed version used vertical-rl plus a 180deg
   rotation, which reads bottom-to-top and sideways — that rotation has to come off,
   or upright glyphs would simply be upside down.

   Metrics change completely in this mode. Rotated, each character took its own
   advance width; upright, each takes a full line box, and letter-spacing applies down
   the column instead of along it. So line-height is pinned near 1 and tracking drops
   to .06em — without that, the longest label (ORNAMENTAL SHEETMETAL, 21 characters)
   would run about 700px and fall off the bottom of the slat.

   A shadow because the label sits directly on the photograph, and a bright sky behind
   a thin mono capital is the one place this can lose legibility. */
.vt{
  writing-mode:vertical-rl;
  text-orientation:upright;
  transform:translateX(-50%);
  top:26px;
  bottom:auto;
  font-size:clamp(12px,1.05vw,16px);
  line-height:1.02;
  letter-spacing:.06em;
  font-weight:500;
  text-shadow:0 1px 6px rgba(20,32,28,.75);
}

/* --- home rail: hover is a cue, not a selection ---
   The reviewed rail opened a slat on hover, so the panel changed under the cursor and
   crossing the rail swept through everything on the way. Opening is a click now, and
   hover only has to say "this is clickable".

   A small flex bump reads as growth without a transform — the slats are a flex row, so
   scaling one would overlap its neighbours instead of pushing them. The photograph
   lifts from .18 to .34 opacity and loses some of its grey, well short of the .82 an
   open slat gets, so the cue can never be mistaken for the open state. The whole thing
   is deliberately quicker than the 620ms open, so it feels like a response to the
   pointer rather than the beginning of a transition. */
#rail .slat{transition:flex 620ms cubic-bezier(.19,1,.22,1)}
#rail .slat:not(.on):hover{flex:1.34}
#rail .slat:not(.on):hover .photo{opacity:.34;filter:grayscale(.35) contrast(1.05)}
#rail .slat:not(.on):hover .vt{color:var(--gold-lt);text-shadow:0 1px 8px rgba(20,32,28,.9)}

/* Hover cues are meaningless on a touch screen, where there is no pointer to rest —
   and :hover sticks after a tap on many mobile browsers, leaving a slat stuck wide. */
@media (hover:none){
  #rail .slat:not(.on):hover{flex:1}
  #rail .slat:not(.on):hover .photo{opacity:.18;filter:grayscale(.6) contrast(1.05)}
  #rail .slat:not(.on):hover .vt{color:var(--limestone)}
}

@media (max-width:900px){
  /* Stacked, the label goes back to ordinary horizontal text in the collapsed strip.
     ng.css already says so, but this file loads after it and the rule above has equal
     specificity — so the horizontal case has to be restated here or the phone layout
     would inherit the upright column. */
  .vt{
    writing-mode:horizontal-tb;
    text-orientation:mixed;
    transform:none;
    left:var(--pad);
    top:22px;
    bottom:auto;
    font-size:13px;
    line-height:normal;
    letter-spacing:.2em;
  }
}

/* ==========================================================================
   Contrast. Every text colour below was measured against the ground it sits on
   and failed WCAG 2.1 AA (4.5:1 for ordinary text, 3:1 for text 24px and up).
   The selectors carry a leading "body" on purpose: several of these rules live
   in <style> blocks inside the page templates, which come later in the document
   than this file, so an equal selector here would lose to them.
   ========================================================================== */

/* --- the two text tokens ---
   Grey (#75786F) measured 3.6:1 on limestone and 3.3:1 on the darker limestone
   panels, and most of what is set in it is small mono type: nav links, spec lines,
   counts, captions. The new grey is 6.9:1 and 6.2:1, and still reads as secondary
   beside the near-black ink.

   The crest green (#0A714C) passed on limestone at 4.9:1 but slipped to 4.4:1 on
   the limestone panels and on hovered rows. One step darker clears both grounds
   (5.7:1 and 5.1:1) and is not a change anyone will see as a different green. */
:root{--grey:#4A4E47;--green-dk:#086643}

/* --- the bright site green, used as text ---
   #008A5F is 3.5:1 on limestone. It stays for rules, focus rings and large
   numerals (which pass at 3:1); small text set in it moves to the crest green. */
body .crewrow .cn,
body .crewline .cn,
body .ayear,
body .lead-row.current .lspan,
body .back,
body .pcats a:hover{color:var(--green-dk)}
body .chapter:not(.dark) .bigyears{color:var(--green-dk)}

/* --- gold as small text on limestone ---
   The crest gold is 2.2:1 there. No gold that still looks like gold reaches 4.5:1 at
   this lightness, so the row numbers take a deep bronze from the same hue (5.7:1). */
body .rnum{color:#6B5710}
body .row.lead .rnum,body .lead .rnum{color:var(--green-dk)}

/* --- white or limestone text on a green fill ---
   On the bright green these were 3.5:1 (limestone) and 4.4:1 (white). The crest
   green behind the same text is 5.7:1 and 7:1. */
body .chip.on,
body .chips.dark .chip.on,
body .vswitch a.on,
body .sendbtn{background:var(--green-dk);border-color:var(--green-dk)}

/* --- pale text on the dark grounds ---
   Limestone at 42 to 60 percent opacity. On the deep green menu panel that is 3.1:1;
   on slate it scraped past or just missed. Lifted to one value that clears 4.5:1 on
   every dark ground the site uses, the menu panel included (5.4:1 there, 8.6:1 on slate). */
body #menu .mfoot,
body .coversub,
body .cta,
body .ig,
body .tspec,
body .wallnote,
body .chips.dark .chip,
body .chapter.dark .crole,
body .chapter.dark .cfacts,
body .chapter.dark .cnoport,
body .sticky .mini .l,
body .vswitch .vlab,
body .vswitch .vnote,
body .vswitch .vwhy{color:rgba(232,231,225,.78)}

/* ==========================================================================
   About: the people, the unions, and awards with a picture.
   ========================================================================== */

/* --- the people ---
   One figure and the roles by name. The figure is set at the size of the headline
   numbers in the band above so it reads as the same kind of fact. */
.people{
  margin:0 var(--pad);padding:26px 0 6px;
  display:grid;grid-template-columns:minmax(200px,300px) 1fr;gap:26px 48px;align-items:start;
}
.people-n b{
  display:block;font-size:clamp(52px,6vw,76px);font-weight:300;line-height:.95;
  letter-spacing:-.01em;color:var(--green-dk);margin-bottom:12px;
}
.people-n span{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:9.5px;letter-spacing:.22em;
  line-height:1.7;color:var(--grey);
}
.people-g{display:grid;grid-template-columns:1fr 1fr;gap:26px 48px}
.people-g h4{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:9.5px;font-weight:400;letter-spacing:.24em;
  color:var(--green-dk);padding-bottom:12px;border-bottom:1px solid var(--rule);margin-bottom:4px;
}
.people-g ul{list-style:none}
.people-g li{font-size:17px;line-height:1.25;padding:11px 0;border-bottom:1px solid var(--rule)}
/* A role's number, when the office has given one: set in the headcount's green, in a
   column of its own so the role names still line up. */
.people-g li{display:flex;gap:16px;align-items:baseline}
.people-g li .rn{flex:0 0 4.4em;color:var(--green-dk);font-variant-numeric:tabular-nums lining-nums}
.people-g ul:not(:has(.rn)) li{display:block}

/* --- the unions --- */
.unions{margin:0 var(--pad);padding:24px 0 6px}
.unions-intro{font-size:17px;font-weight:300;line-height:1.6;max-width:680px;margin-bottom:24px}
.unionlist{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1px;background:var(--rule);border:1px solid var(--rule);
}
.union{
  background:var(--limestone);padding:20px 22px 22px;display:flex;flex-direction:column;gap:8px;
  text-decoration:none;color:inherit;transition:background 180ms;
}
a.union:hover{background:var(--limestone-2)}
.union .ut{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:9.5px;letter-spacing:.22em;color:var(--green-dk)}
.union .un{font-size:20px;line-height:1.2}
.union .ul{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:9.5px;letter-spacing:.16em;
  color:var(--grey);margin-top:auto;padding-top:8px;
}
a.union .ul{color:var(--green-dk)}

/* A draft is meant to be noticed by the person reviewing it, and by nobody as
   finished copy: a gold-edged panel and a plain label, on staging and anywhere else. */
.sectitle .c.draftmark{
  color:var(--ink);background:var(--gold-lt);padding:5px 9px;letter-spacing:.16em;
}
.unions.is-draft{
  margin-top:18px;padding:20px 22px 22px;background:var(--limestone-2);border-left:2px solid var(--gold);
}
.unions.is-draft .unions-intro{font-style:italic}

/* Layout C sets these sections in a narrower right-hand column with no gutter. */
.right .people,.right .unions{margin-left:0;margin-right:0}
.right .people{grid-template-columns:1fr}

@media (max-width:760px){
  .people{grid-template-columns:1fr}
}
@media (max-width:480px){
  .people-g{grid-template-columns:1fr}
}

/* --- awards with a picture ---
   The picture sits at the right of the entry and is a link: to the award's own page
   when there is one, otherwise to the picture at full size. */
.award.has-img{grid-template-columns:96px 1fr minmax(140px,220px)}
.award h4 a{color:inherit;text-decoration:none;border-bottom:1px solid var(--rule)}
.award h4 a:hover{color:var(--green-dk);border-bottom-color:var(--green-dk)}
.award .aimg{display:block;width:100%;padding:0;cursor:zoom-in;background:var(--limestone-2);border:1px solid var(--rule);overflow:hidden}
.award .aimg img{
  display:block;width:100%;height:auto;max-height:260px;object-fit:contain;
  transition:transform 900ms cubic-bezier(.19,1,.22,1);
}
.award .aimg:hover img{transform:scale(1.03)}
.award .alink{
  display:inline-block;margin-top:12px;font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:9.5px;letter-spacing:.18em;color:var(--green-dk);text-decoration:none;
  border-bottom:1px solid var(--rule);padding-bottom:2px;
}
.award .alink:hover{border-bottom-color:var(--green-dk)}
@media (max-width:760px){
  .award.has-img{grid-template-columns:96px 1fr}
  .award .aimg{grid-column:2;margin-top:14px;max-width:260px}
}
@media (max-width:640px){
  .award.has-img{grid-template-columns:1fr}
  .award .aimg{grid-column:1}
}

/* ==========================================================================
   Projects: current state, dates and phases.
   ========================================================================== */
.pstate{
  display:inline-block;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:9px;letter-spacing:.18em;
  color:var(--ink);background:var(--gold-lt);padding:4px 8px;vertical-align:middle;
}
.irow h3 .pstate{margin-left:12px;vertical-align:4px}
.pfacts{
  margin:22px var(--pad) 0;display:flex;flex-wrap:wrap;gap:10px 34px;
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:10.5px;letter-spacing:.12em;color:var(--grey);
}
.pfacts b{font-weight:400;color:var(--green-dk);letter-spacing:.2em;margin-right:10px}
.pphases{margin:34px var(--pad) 0;max-width:760px}
.pphases h3{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:10px;font-weight:400;letter-spacing:.22em;
  color:var(--green-dk);padding-bottom:12px;border-bottom:1px solid var(--rule);margin-bottom:18px;
}
.pphase{display:flex;gap:16px}
.pphase .r{flex:none;width:11px;display:flex;flex-direction:column;align-items:center}
.pphase .r i{width:11px;height:11px;border-radius:50%;background:var(--gold);margin-top:5px;flex:none}
.pphase .r b{width:1px;flex:1;background:var(--rule)}
.pphase:last-child .r b{background:none}
.pphase .b{flex:1;min-width:0;padding-bottom:22px}
.pphase .w{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:11px;letter-spacing:.08em;color:var(--green-dk);margin-bottom:3px}
.pphase .t{font-size:20px;line-height:1.25}
.pphase .d{font-size:15.5px;font-weight:300;line-height:1.55;color:var(--grey);margin-top:4px;max-width:620px}

/* --- awards: the fold --- */
.award-rest .award:first-child{border-top:1px solid var(--rule);padding-top:22px}
.award-more{
  display:block;margin:6px 0 0;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:10.5px;
  letter-spacing:.18em;color:var(--ink);background:none;border:1px solid var(--ink);
  min-height:44px;padding:0 20px;cursor:pointer;transition:background 180ms,color 180ms;
}
.award-more:hover{background:var(--ink);color:var(--limestone)}

/* ---- a project's record: its own page, and each section of a site page ---- */
.pspec{
  margin:0 var(--pad);padding:34px 0 6px;max-width:900px;
  font-family:"IBM Plex Mono",monospace;font-size:11.5px;letter-spacing:.08em;
  line-height:2;color:var(--grey);
}
.pcats{margin:18px var(--pad) 0;display:flex;gap:8px;flex-wrap:wrap}
.pcats a{
  font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.18em;
  color:var(--green-dk);border:1px solid var(--rule);padding:7px 11px;text-decoration:none;
}
.pcats a:hover{border-color:var(--green);color:var(--green)}
.plates2{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  grid-auto-rows:230px;gap:2px;padding:34px 2px 2px;background:var(--slate);margin-top:34px;
}
.shotcell{position:relative;overflow:hidden;cursor:pointer;background:#0d1613}
.shotcell .photo{
  position:absolute;inset:0;background-size:cover;background-position:center;
  filter:grayscale(.4);transform:scale(1.02);
  transition:transform 1200ms cubic-bezier(.19,1,.22,1),filter 700ms;
}
.shotcell:hover .photo,.shotcell:focus-visible .photo{transform:scale(1.06);filter:grayscale(0)}
.shotn{
  position:absolute;left:14px;bottom:12px;z-index:2;
  font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.18em;
  color:rgba(232,231,225,.8);text-shadow:0 1px 4px rgba(20,32,28,.9);
}
.backlink{
  display:inline-block;margin:26px var(--pad) 54px;font-family:"IBM Plex Mono",monospace;
  font-size:10px;letter-spacing:.2em;color:var(--green-dk);text-decoration:none;
  border-bottom:1px solid var(--rule);
}
.backlink:hover{border-bottom-color:var(--green)}
@media (max-width:560px){.plates2{grid-template-columns:1fr;grid-auto-rows:240px}}

/* Photographs fade in once loaded, in order (ngPhotos in ng-site.js, which adds both
   classes). Opacity only: the tile's transform and filter belong to its hover. The
   header's own entrance is held back while it waits, and starts when .wait comes off. */
html.motion .shotcell .photo.wait{opacity:0}
html.motion .shotcell .photo.arrive{animation:photoin 1100ms cubic-bezier(.33,0,.2,1) both}
html.motion .pagehero .photo.wait{animation:none;opacity:0}
@keyframes photoin{from{opacity:0}to{opacity:1}}

/* ---- a site's page: the place, then every project done there ---- */
.sitefacts{margin:30px var(--pad) 0}
.sitefacts.pfacts{margin-top:30px}
.siteintro{max-width:760px;margin:22px var(--pad) 0;font-size:18px;line-height:1.55;color:var(--ink)}
.sitejobs-h{
  margin:46px var(--pad) 0;padding-top:16px;border-top:1px solid var(--ink);
  font-family:"IBM Plex Mono",monospace;font-size:10.5px;font-weight:400;letter-spacing:.22em;color:var(--green-dk);
}
.sitejob{padding:30px 0 0;scroll-margin-top:80px}
.sitejob .plates2{margin-top:26px}

/* Several projects at one site: each is its own numbered panel, alternating with a
   darker limestone, so it is plain where one project ends and the next begins. */
.sitejobs-nav{list-style:none;margin:18px var(--pad) 0;padding:0;border-top:1px solid var(--rule)}
.sitejobs-nav li{border-bottom:1px solid var(--rule)}
.sitejobs-nav a{
  display:grid;grid-template-columns:44px 1fr auto;gap:0 14px;align-items:baseline;
  padding:13px 0;color:var(--ink);text-decoration:none;transition:color 160ms,padding 160ms;
}
.sitejobs-nav a:hover,.sitejobs-nav a:focus-visible{color:var(--green-dk);padding-left:6px}
.sitejobs-nav .num{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.16em;color:var(--gold)}
.sitejobs-nav .t{font-size:20px;line-height:1.25}
.sitejobs-nav .c{font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.18em;color:var(--grey)}
.sitejob.many{margin-top:64px;padding:0 0 0;border-top:3px solid var(--ink)}
.sitejob.many:nth-of-type(even){background:var(--limestone-2)}
.sitejob.many .plates2{margin-top:30px}
.sitejob-n{display:flex;align-items:baseline;gap:16px;margin:0 var(--pad);padding:22px 0 10px}
.sitejob-n .num{font-family:var(--serif);font-size:clamp(44px,6vw,72px);line-height:.9;color:var(--gold)}
.sitejob-n .of{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.22em;color:var(--green-dk)}
.sitejob.many:target{box-shadow:inset 4px 0 0 var(--green)}
@media (max-width:560px){
  .sitejobs-nav a{grid-template-columns:34px 1fr}
  .sitejobs-nav .c{grid-column:2}
  .sitejob.many{margin-top:44px}
}
.sitejob-h{margin:0 var(--pad);font-weight:400;font-size:clamp(26px,3.2vw,36px);line-height:1.1;text-wrap:balance}
.sitejob-h .pstate{vertical-align:middle}
.sitejob .pspec{padding-top:14px}
.sitejob:target .sitejob-h{color:var(--green-dk)}

/* ---- on a project card: the job, and how many projects the site has ---- */
.psite{
  display:block;margin-top:4px;font-family:"IBM Plex Mono",monospace;font-size:10px;
  letter-spacing:.14em;color:var(--green-dk);text-decoration:none;
}
a.psite:hover{color:var(--green-deep, var(--green))}
.psite .job{color:var(--ink);letter-spacing:.08em}
.psite .job + .many::before{content:"\00a0\00b7\00a0"}
.tcap .psite,.tcap .psite .job{color:var(--gold-lt, #d8bc63)}

/* Projects page cards go to the project's place on its site page. The name is the
   link; the card around it is clickable too (ngWireLinks). */
[data-href]{cursor:pointer}
.plink{color:inherit;text-decoration:none}
.plink:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.irow:focus-within{background:rgba(0,138,95,.07)}
.p:hover .plink,.irow:hover .plink{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}

/* ---- No photographs yet: the crest holds the place ----
   The crest is a small PNG with a transparent ground, so it is drawn centred at a
   modest size on stone, never stretched to cover like a photograph. */
.photo.is-crest{
  background-color:var(--limestone-2);background-size:auto 46%;background-repeat:no-repeat;
  background-position:center;opacity:1;filter:none;
}
.p:hover .pimg .photo.is-crest{transform:none}
.pagehero .photo.is-crest{
  background-color:transparent;background-size:auto 64%;background-position:right 9% center;opacity:.5;
}
.slat .photo.is-crest,.slat.on .photo.is-crest{background-size:auto 30%;opacity:1;filter:none}
.irow .ith img.is-crest,.ith img.is-crest{object-fit:contain!important;box-sizing:border-box;background:var(--limestone-2);padding:16px 0}
.pm-c-photo.is-crest{display:flex;align-items:center;justify-content:center}
.pm-c-photo.is-crest img{width:auto;height:46%;object-fit:contain;transform:none}
.irow:hover .ith img.is-crest{transform:none}

/* --- home: recent Instagram posts, a row of small square tiles under the quote ---
   The rail keeps the first screen to itself; the tiles are below the fold. */
.home:has(.igstrip) #railwrap{min-height:max(440px,calc(100dvh - 300px))}
.igstrip{padding:26px var(--pad) 30px;background:var(--limestone-2);flex:0 0 auto}
.ighead{
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  max-width:1100px;margin:0 auto 14px;font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.2em;
}
.ighead .k{color:var(--grey)}
.ighead .h{color:var(--green-dk);text-decoration:none}
.ighead .h:hover{text-decoration:underline}
.iggrid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;max-width:1100px;margin:0 auto}
.igtile{display:block;position:relative;aspect-ratio:1;overflow:hidden;background:var(--limestone)}
.igtile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 900ms cubic-bezier(.19,1,.22,1),opacity 200ms}
.igtile:hover img,.igtile:focus-visible img{transform:scale(1.05);opacity:.9}
.igplay{
  position:absolute;right:8px;top:8px;width:0;height:0;
  border-left:11px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.6));
}
@media (max-width:900px){
  .home:has(.igstrip) #railwrap{min-height:0}
  .iggrid{grid-template-columns:repeat(3,1fr);gap:6px}
}

/* --- About: meet the team ---
   Headshots in a grid of equal portrait frames, name and title under each. */
.team{
  margin:0 var(--pad);padding:26px 0 30px;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:30px 26px;
}
.tm{margin:0}
.tm-img{aspect-ratio:3/4;overflow:hidden;background:var(--limestone-2);margin-bottom:12px}
.tm-img img{display:block;width:100%;height:100%;object-fit:cover;filter:grayscale(.15)}
.tm-img.is-crest img{object-fit:contain;padding:28%;box-sizing:border-box;filter:none}
.tm figcaption{display:flex;flex-direction:column;gap:5px}
.tm-n{font-size:19px;line-height:1.2}
.tm-r{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:9.5px;letter-spacing:.18em;line-height:1.6;color:var(--green-dk)}
@media (max-width:560px){
  .team{grid-template-columns:repeat(2,1fr);gap:22px 14px}
  .tm-n{font-size:16.5px}
}

/* A project's disciplines, separated by a middle dot. Under a discipline filter the
   chosen one is moved first and reads a shade darker. */
.ng-cats > span + span::before{content:" \00B7  "}
.ng-cats > .lead{color:var(--green-dk)}

/* A project's printed sheet, offered as a download under its facts. */
.psheet{
  display:inline-flex;align-items:center;gap:14px;margin:22px var(--pad) 0;min-height:44px;padding:0 18px;
  font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.18em;color:var(--ink);
  border:1px solid var(--ink);text-decoration:none;transition:background 180ms,color 180ms;
}
.psheet span{color:var(--grey);letter-spacing:.12em;transition:color 180ms}
.psheet:hover{background:var(--ink);color:var(--limestone)}
.psheet:hover span{color:var(--limestone)}

/* --- Meet the team page: the usual page banner, a little taller, the group photograph
   faded behind the title as on the other pages; the headshots under it. --- */
.team-intro p{font-size:16px;font-weight:300;line-height:1.55;color:rgba(232,231,225,.8);max-width:640px}
.team-hero{min-height:clamp(260px,22vw,440px);display:flex;align-items:center}
/* The banner grows with the width (within limits), so the photograph keeps about the same
   crop on every screen: the row of faces sits in the band, not cut off at the bottom. */
.team-hero .photo{background-position:center 37%;opacity:.72;filter:grayscale(.1) contrast(1.04)}
/* Less faded than the other banners so the people can be seen: the photograph is
   clearer and the dark wash lighter, kept just dark enough behind the title. */
.team-hero::after{background:linear-gradient(to right,rgba(20,32,28,.88) 0%,rgba(20,32,28,.55) 35%,rgba(20,32,28,.12) 100%)}
html.motion .team-hero .photo{animation-name:teamshot}
@keyframes teamshot{from{opacity:0;transform:scale(1.06)}to{opacity:.72;transform:none}}
.teampage .team{padding-top:44px;padding-bottom:64px}
/* Five to a row on a desktop (fifteen people fill three rows), three on a tablet, two on
   a phone. Lined up with the title's left edge, like the rest of the site. */
/* One space, --tg, both between the portraits and at the two outer edges, so the margins
   match the gaps. It grows with the screen. */
.teampage .team{--tg:clamp(24px,4vw,80px);grid-template-columns:repeat(5,minmax(0,1fr));gap:48px var(--tg);margin-inline:var(--tg)}
@media (max-width:1100px){.teampage .team{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.teampage .team{--tg:20px;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px var(--tg)}}
/* Team page: names and titles a size up from the defaults. */
.teampage .tm figcaption{gap:7px;margin-top:4px}
.teampage .tm-n{font-size:clamp(20px,1.5vw,25px)}
.teampage .tm-r{font-size:clamp(10.5px,.75vw,12px);letter-spacing:.16em}
@media (max-width:560px){.teampage .tm-n{font-size:18.5px}.teampage .tm-r{font-size:10px}}

/* Home rail: a followed slat shows it is on its way to the projects page. */
html.ng-leaving, html.ng-leaving .slat{cursor:progress}
.slat.going .cta{color:var(--gold-lt, #D8BC63)}
.slat.going .cta .dots::after{content:"";display:inline-block;width:1.4em;text-align:left;animation:ngdots 1.2s steps(4,end) infinite}
@keyframes ngdots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}
.slat .goingbar{position:absolute;left:0;bottom:0;z-index:3;height:3px;width:100%;background:var(--gold);
  transform-origin:left;transform:scaleX(0);animation:nggoing 2.4s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes nggoing{0%{transform:scaleX(0)}100%{transform:scaleX(.92)}}
.slat.going .photo{opacity:.62;transition:opacity 300ms}
@media (prefers-reduced-motion:reduce){
  /* No movement: the bar is drawn full and the words say what is happening. */
  .slat .goingbar{transform:scaleX(1)}
  .slat.going .cta .dots::after{content:"..."}
}

/* ---- a project's description on its site page ----
   The copy is the old site's write-up: an opening paragraph, then the scope of work
   as a list. The paragraph is set as a lead in the light serif; the list becomes a
   ruled, numbered scope in two columns, numbered in the green mono used for every
   other count on the site, under a small SCOPE OF WORK label. */
.pdesc{margin:30px var(--pad) 0;max-width:1080px;counter-reset:scope}
.pdesc p{
  max-width:760px;font-family:var(--serif);font-size:21px;font-weight:300;
  line-height:1.55;color:var(--ink);
}
.pdesc p + p{margin-top:14px}
.pdesc p strong{font-weight:400}
.pdesc ul{
  list-style:none;margin:34px 0 0;padding:0;
  columns:2;column-gap:48px;border-top:1px solid var(--ink);
}
.pdesc ul::before{
  content:"SCOPE OF WORK";display:block;column-span:all;padding:12px 0 6px;
  font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.22em;color:var(--green-dk);
}
.pdesc li{
  counter-increment:scope;break-inside:avoid;
  display:grid;grid-template-columns:34px 1fr;align-items:baseline;
  padding:11px 0;border-bottom:1px solid var(--rule);
  font-size:16px;line-height:1.45;color:var(--ink);
}
.pdesc li::before{
  content:counter(scope,decimal-leading-zero);
  font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.12em;color:var(--green-dk);
}
.pdesc ul + p{margin-top:26px}
@media (max-width:760px){
  .pdesc{margin-top:24px}
  .pdesc p{font-size:18px}
  .pdesc ul{columns:1;margin-top:26px}
  .pdesc li{font-size:15px;grid-template-columns:30px 1fr}
}
