/* Nicholson & Galloway — shared stylesheet for the mockup pages.
   Palette sampled from the supplied crest (assets/brand/ng-crest-green-gold.png):
   green #0A714C at 51% of the artwork, deep green #0B5130, gold #B99B32. */

:root{
  /* Their colours.
     --green is the green from their live site theme (#008A5F, 21 uses in
     themes/nicholson/style.css) — the one they said they like.
     --green-dk is the crest green sampled from the supplied logo; it clears AA on
     limestone where the brighter site green does not, so small text uses it. */
  --green:#008A5F;--green-dk:#0A714C;--green-deep:#0B5130;--green-lt:#3E9B75;
  --gold:#B99B32;--gold-lt:#D8BC63;

  /* Grounds and neutrals — warm, because the photography is limestone and copper */
  --limestone:#E8E7E1;--limestone-2:#DEDCD4;--ink:#1E2320;--grey:#75786F;
  --slate:#14201C;                 /* near-black, biased green so it sits with the crest */
  --rule:#C9C6BC;--rule-dk:rgba(232,231,225,.16);

  --pad:34px;                      /* page gutter, tightened at each breakpoint */

  /* The primary (serif) face. Everything that is not mono reads from this one token,
     so the font selector is a single assignment rather than a find-and-replace. */
  --serif:"Newsreader",Georgia,serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{height:100%}
body{
  background:var(--limestone);color:var(--ink);
  font-family:var(--serif);font-size:16px;
  -webkit-font-smoothing:antialiased;display:flex;flex-direction:column;
  min-height:100vh;min-height:100dvh;
}
.mono,nav,.est,.eyebrow,.cta,footer,.psub,.pnum,.back,.gcap,.gcount,.pcount,
.lbclose,.playbtn,.soon,.chip,.years,.slist li,.kicker,.crumb{
  font-family:"IBM Plex Mono",ui-monospace,monospace;
}
a{color:inherit}
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ============================ header ============================ */
header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px var(--pad);border-bottom:1px solid var(--rule);flex:0 0 auto;
  background:var(--limestone);position:relative;z-index:60;
}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.crest{height:44px;width:auto;display:block}
.brandtext{display:flex;flex-direction:column;gap:3px}
.brandtext h1{font-weight:400;font-size:22px;letter-spacing:.02em;line-height:1}
.est{font-size:9.5px;letter-spacing:.26em;color:var(--green-dk);white-space:nowrap}

nav{font-size:10.5px;letter-spacing:.16em;color:var(--grey);display:flex;gap:26px}
nav a{text-decoration:none;white-space:nowrap;padding-bottom:2px;border-bottom:1px solid transparent}
nav a:hover{color:var(--ink)}
nav a[aria-current="page"]{color:var(--green-dk);border-bottom-color:var(--gold)}
.back{font-size:10.5px;letter-spacing:.16em;color:var(--green);background:none;border:0;cursor:pointer;display:none}

/* hamburger — phone and tablet only, right-hand side */
.burger{
  display:none;background:none;border:1px solid var(--rule);cursor:pointer;
  width:42px;height:38px;flex:0 0 auto;padding:0;position:relative;
}
.burger span{
  position:absolute;left:11px;right:11px;height:1.5px;background:var(--ink);
  transition:transform 260ms cubic-bezier(.19,1,.22,1),opacity 160ms;
}
.burger span:nth-child(1){top:13px}
.burger span:nth-child(2){top:18.5px}
.burger span:nth-child(3){top:24px}
.burger[aria-expanded="true"]{border-color:var(--green)}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}

/* slide-in panel, from the right */
.scrim{
  position:fixed;inset:0;z-index:70;background:rgba(20,32,28,.55);
  opacity:0;pointer-events:none;transition:opacity 260ms;
}
.scrim.open{opacity:1;pointer-events:auto}
#menu{
  position:fixed;top:0;right:0;bottom:0;z-index:80;width:min(78vw,330px);
  background:var(--green-deep);color:var(--limestone);
  display:flex;flex-direction:column;
  padding:22px 26px calc(26px + env(safe-area-inset-bottom));
  /* Closed, the panel sits just off the right edge. Its shadow would still fall on
     the page there, so the shadow belongs to the open state only, and the closed
     panel is hidden once it has slid away, which also keeps its links out of the
     tab order. */
  transform:translateX(100%);visibility:hidden;
  transition:transform 320ms cubic-bezier(.19,1,.22,1),box-shadow 320ms,visibility 0s 320ms;
}
#menu.open{
  transform:none;visibility:visible;box-shadow:-24px 0 60px rgba(0,0,0,.35);
  transition:transform 320ms cubic-bezier(.19,1,.22,1),box-shadow 320ms,visibility 0s;
}
#menu .mclose{
  align-self:flex-end;background:none;border:1px solid rgba(232,231,225,.32);
  color:var(--limestone);font-size:10px;letter-spacing:.16em;padding:8px 12px;cursor:pointer;
  font-family:"IBM Plex Mono",monospace;
}
#menu nav{
  display:flex;flex-direction:column;gap:0;margin-top:26px;font-size:12px;letter-spacing:.2em;
  color:rgba(232,231,225,.9);
}
#menu nav a{
  padding:16px 0;border-bottom:1px solid rgba(232,231,225,.14);
}
#menu nav a[aria-current="page"]{color:var(--gold-lt);border-bottom-color:var(--gold)}
#menu .mfoot{margin-top:auto;font-size:9.5px;letter-spacing:.22em;color:rgba(232,231,225,.5);font-family:"IBM Plex Mono",monospace}

/* ============================ page furniture ============================ */
.pagehero{position:relative;background:var(--slate);color:var(--limestone);overflow:hidden;flex:0 0 auto}
.pagehero .photo{
  position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:.34;filter:grayscale(.35) contrast(1.04);
}
.pagehero::after{content:"";position:absolute;inset:0;background:linear-gradient(to right,rgba(20,32,28,.95) 10%,rgba(20,32,28,.45) 100%)}
.pagehero .inner{position:relative;z-index:2;padding:52px var(--pad) 44px;max-width:860px}
.kicker{font-size:9.5px;letter-spacing:.28em;color:var(--gold-lt);margin-bottom:12px;text-shadow:0 1px 3px rgba(20,32,28,.7)}
.pagehero h2{font-size:44px;font-weight:300;line-height:1.04;margin-bottom:14px}
.pagehero p{font-size:16px;font-weight:300;line-height:1.55;color:rgba(232,231,225,.8);max-width:640px}

main{flex:1 1 auto}
.wrap{padding:0 var(--pad)}
.eyebrow{font-size:9.5px;letter-spacing:.26em;color:var(--gold-lt);margin-bottom:10px;text-shadow:0 1px 3px rgba(20,32,28,.7)}

/* ============================ services ============================ */
.sgrid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:1px;background:var(--rule);border:1px solid var(--rule);margin:34px var(--pad) 48px;
}
.sgroup{background:var(--limestone);padding:24px 26px 28px;display:flex;flex-direction:column}
.sgroup.lead{background:var(--limestone-2)}
.snum{font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.22em;color:var(--green-dk);margin-bottom:9px}
.sgroup h3{font-size:22px;font-weight:400;line-height:1.15;margin-bottom:4px}
.sgroup .sdesc{font-size:14px;font-weight:300;line-height:1.5;color:var(--grey);margin-bottom:14px}
.slist{list-style:none;margin-top:auto}
.slist li{
  font-size:11px;letter-spacing:.05em;line-height:1.5;color:var(--ink);
  padding:7px 0 7px 16px;border-top:1px solid var(--rule);position:relative;
}
.slist li:first-child{border-top:0}
.slist li::before{
  content:"";position:absolute;left:0;top:14px;width:6px;height:1.5px;background:var(--gold);
}

/* ============================ history ============================ */
.tl{margin:0 var(--pad) 20px;border-left:1px solid var(--rule);padding-left:0}
.era{display:grid;grid-template-columns:150px 1fr;gap:0 34px;padding:36px 0 40px;border-bottom:1px solid var(--rule)}
.era:last-child{border-bottom:0}
.years{
  font-size:11px;letter-spacing:.16em;color:var(--green-dk);padding-left:22px;position:relative;
}
.years::before{
  content:"";position:absolute;left:-4px;top:5px;width:7px;height:7px;
  background:var(--gold);border:1px solid var(--limestone);border-radius:50%;
}
.era h3{font-size:27px;font-weight:300;line-height:1.15;margin-bottom:3px}
.era .lifespan{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.16em;color:var(--grey);margin-bottom:14px}
.era .role{
  display:inline-block;font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.2em;
  color:var(--green-dk);border:1px solid var(--rule);padding:4px 9px;margin-bottom:16px;
}
.era p{font-size:16px;font-weight:300;line-height:1.62;margin-bottom:14px;max-width:660px}
.era p:last-child{margin-bottom:0}
.clients{
  margin-top:18px;padding-top:16px;border-top:1px solid var(--rule);
  font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.09em;line-height:2;color:var(--grey);
}
.clients b{display:block;color:var(--green-dk);font-weight:500;letter-spacing:.2em;margin-bottom:6px}

/* ============================ projects ============================ */
.chips{
  display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;
  padding:18px var(--pad);border-bottom:1px solid var(--rule);
  position:sticky;top:0;z-index:40;background:var(--limestone);
}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto;font-size:10px;letter-spacing:.14em;color:var(--grey);
  border:1px solid var(--rule);background:none;padding:8px 13px;cursor:pointer;white-space:nowrap;
  text-decoration:none;   /* layout A builds these as links, and the browser underlines them */
  transition:color 200ms,border-color 200ms,background 200ms;
}
.chip:hover{color:var(--ink)}
.chip.on{color:var(--limestone);background:var(--green);border-color:var(--green)}
.section{padding:38px 0 8px}
.sechead{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:0 var(--pad) 4px;padding-bottom:12px;border-bottom:1px solid var(--rule)}
.sechead h3{font-size:25px;font-weight:400;line-height:1.15}
.sechead .count{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.18em;color:var(--green-dk);white-space:nowrap}
.secblurb{margin:14px var(--pad) 0;font-size:15px;font-weight:300;line-height:1.55;color:var(--grey);max-width:660px}

.cards{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:1px;background:var(--rule);border:1px solid var(--rule);margin:22px var(--pad) 40px;
}
.p{position:relative;background:var(--limestone);cursor:pointer;transition:background 260ms}
.p:hover{background:#fff}
.pimg{position:relative;height:170px;overflow:hidden;background:var(--slate)}
.pimg .photo{
  position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:.9;filter:grayscale(.5);
  transition:transform 900ms cubic-bezier(.19,1,.22,1),filter 600ms;
}
.p:hover .pimg .photo{transform:scale(1.05);filter:grayscale(0)}
.pcount{position:absolute;right:10px;bottom:10px;z-index:2;font-size:9px;letter-spacing:.14em;color:var(--limestone);background:rgba(20,32,28,.75);padding:3px 7px}
.pmeta{padding:14px 16px 18px;border-top:1px solid var(--rule)}
.pnum{font-size:9.5px;letter-spacing:.22em;color:var(--green-dk);margin-bottom:6px}
.p h3{font-size:19px;font-weight:400;line-height:1.2;margin-bottom:5px}
.psub{font-size:10px;letter-spacing:.06em;color:var(--grey);line-height:1.6}
.soon{
  margin:22px var(--pad) 40px;padding:24px 26px;border-left:2px solid var(--gold);
  background:var(--limestone-2);color:var(--grey);font-size:11px;letter-spacing:.1em;line-height:2;
}

/* ============================ gallery ============================ */
#lb{position:fixed;inset:0;z-index:100;background:rgba(12,20,17,.97);display:none;flex-direction:column}
#lb.open{display:flex}
.lbhead{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 28px 16px;border-bottom:1px solid var(--rule-dk);color:var(--limestone)}
.lbhead h3{font-size:25px;font-weight:300;line-height:1.15;margin-bottom:5px}
.lbclose{background:none;border:1px solid rgba(232,231,225,.3);color:var(--limestone);font-size:10px;letter-spacing:.16em;padding:7px 12px;cursor:pointer;white-space:nowrap}
.lbclose:hover{border-color:var(--gold-lt);color:var(--gold-lt)}
.lbstage{flex:1 1 auto;position:relative;display:flex;align-items:center;justify-content:center;padding:22px 60px;min-height:0}
#lbimg{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.arw{position:absolute;top:50%;transform:translateY(-50%);background:none;border:0;color:var(--limestone);font-size:30px;cursor:pointer;padding:14px;opacity:.55;line-height:1}
.arw:hover{opacity:1}
.arw.l{left:8px}.arw.r{right:8px}
.thumbs{display:flex;gap:7px;overflow-x:auto;padding:12px 28px;border-top:1px solid var(--rule-dk)}
.th{flex:0 0 auto;width:86px;height:58px;background-size:cover;background-position:center;cursor:pointer;opacity:.4;border:1px solid transparent;transition:opacity 200ms,border-color 200ms}
.th:hover{opacity:.75}
.th.on{opacity:1;border-color:var(--gold-lt)}
.lbfoot{padding:12px 28px 18px;border-top:1px solid var(--rule-dk);display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--limestone)}
.gcap{font-size:10.5px;letter-spacing:.1em;color:rgba(232,231,225,.7)}
.gcount{font-size:10.5px;letter-spacing:.18em;color:var(--gold-lt);white-space:nowrap}

/* ============================ quote + footer ============================ */
.quote{padding:34px var(--pad);text-align:center;border-top:1px solid var(--rule);background:var(--limestone-2);flex:0 0 auto}
.quote p{font-size:21px;font-weight:300;line-height:1.45;max-width:760px;margin:0 auto 12px;font-style:italic}
.quote cite{font-size:10px;letter-spacing:.22em;color:var(--grey);font-style:normal;font-family:"IBM Plex Mono",monospace}
footer{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:13px var(--pad);padding-bottom:calc(13px + env(safe-area-inset-bottom));
  border-top:1px solid var(--rule);flex:0 0 auto;font-size:10px;letter-spacing:.16em;color:var(--grey);
}

/* ============================ tablet ============================ */
@media (max-width:900px){
  :root{--pad:24px}
  header{padding:13px var(--pad)}
  .crest{height:38px}
  .brandtext h1{font-size:19px}
  nav.desk{display:none}
  .burger{display:block}
  .pagehero .inner{padding:38px var(--pad) 32px}
  .pagehero h2{font-size:34px}
  .pagehero p{font-size:15px}
  .sgrid{margin:24px var(--pad) 36px;grid-template-columns:1fr}
  .era{grid-template-columns:1fr;gap:0;padding:28px 0 32px}
  .years{padding-left:22px;margin-bottom:12px}
  .era h3{font-size:24px}
  .era p{font-size:15px}
  .cards{margin:18px var(--pad) 34px;grid-template-columns:1fr}
  .quote p{font-size:18px}
  .lbstage{padding:16px 44px}
}

/* ============================ phone ============================ */
@media (max-width:560px){
  :root{--pad:18px}
  body{font-size:15px}
  .crest{height:34px}
  .brand{gap:11px}
  .brandtext h1{font-size:17px}
  .est{font-size:8.5px;letter-spacing:.22em}
  .pagehero h2{font-size:28px}
  .pagehero .inner{padding:30px var(--pad) 26px}
  .sgroup{padding:20px var(--pad) 22px}
  .sgroup h3{font-size:20px}
  .sechead h3{font-size:21px}
  .pimg{height:200px}
  .quote{padding:26px var(--pad)}
  .quote p{font-size:16.5px;margin-bottom:10px}
  .quote cite{font-size:9px;letter-spacing:.18em}
  footer{font-size:9px}
  #hint{display:none}

  .lbhead{flex-wrap:wrap;padding:16px var(--pad) 12px}
  .lbhead h3{font-size:20px}
  .lbclose{order:-1;margin-left:auto}
  .lbstage{padding:14px 10px}
  .arw{font-size:26px;padding:10px;background:rgba(20,32,28,.55)}
  .arw.l{left:2px}.arw.r{right:2px}
  .th{width:66px;height:46px}
  .thumbs{padding:10px var(--pad)}
  .lbfoot{padding:10px var(--pad) calc(14px + env(safe-area-inset-bottom))}
  .gcap{font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

@media (hover:none){
  .p:hover{background:var(--limestone)}
  .p:hover .pimg .photo{transform:scale(1);filter:grayscale(.5)}
  .arw{opacity:.9}
}

/* ============================ home rail ============================ */
#railwrap{position:relative;flex:1 1 auto;display:flex;flex-direction:column;min-height:440px}
#bar{height:2px;background:rgba(232,231,225,.12);flex:0 0 auto}
#barfill{height:100%;width:0;background:var(--gold);transition:width 90ms linear}
#rail{display:flex;flex:1 1 auto;background:var(--slate);min-height:0}
.slat{
  position:relative;flex:1;min-width:0;cursor:pointer;overflow:hidden;
  border-right:1px solid var(--rule-dk);
  transition:flex 620ms cubic-bezier(.19,1,.22,1);
}
.slat:last-child{border-right:0}
.slat.on{flex:9}
.slat .photo{
  position:absolute;inset:0;background-size:cover;background-position:center;
  filter:grayscale(.6) contrast(1.05);opacity:.18;transform:scale(1.06);
  transition:opacity 900ms cubic-bezier(.19,1,.22,1),transform 1600ms cubic-bezier(.19,1,.22,1),filter 900ms;
}
.slat.on .photo{opacity:.82;transform:scale(1);filter:grayscale(0) contrast(1.02)}
.slat::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(20,32,28,.94) 0%,rgba(20,32,28,.34) 54%,rgba(20,32,28,.06) 100%);
}

/* The vertical label and the card are the same real estate, so they hand off rather
   than cross-fade: the card leaves fast and without delay, the label waits for it. */
.vt{
  position:absolute;left:50%;bottom:24px;z-index:2;
  transform:translateX(-50%) rotate(180deg);writing-mode:vertical-rl;
  font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.3em;
  color:var(--limestone);white-space:nowrap;
  transition:opacity 200ms 200ms;
}
.slat.on .vt{opacity:0;transition:opacity 120ms}
.card{
  position:absolute;left:30px;right:30px;bottom:26px;z-index:2;color:var(--limestone);
  opacity:0;transform:translateY(10px);pointer-events:none;
  /* leaving: immediate and quick, so the text is gone before the slat has narrowed
     enough to re-wrap it — that re-wrap was the judder on the closing panel */
  transition:opacity 140ms ease-out,transform 140ms ease-out;
}
.slat.on .card{
  opacity:1;transform:none;pointer-events:auto;
  /* arriving: wait for the slat to have most of its width, then fade in */
  transition:opacity 380ms 300ms,transform 380ms 300ms;
}
.card h2{font-size:29px;font-weight:300;line-height:1.08;margin-bottom:6px}
.cover{font-size:15px;font-weight:300;line-height:1.4;color:rgba(232,231,225,.85);margin-bottom:4px}
.coversub{font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.1em;color:rgba(232,231,225,.55);line-height:1.6;margin-bottom:12px}
.cta{font-size:10.5px;letter-spacing:.12em;color:rgba(232,231,225,.6)}
.playbtn{
  position:absolute;right:22px;top:16px;z-index:5;
  background:rgba(20,32,28,.7);border:1px solid rgba(232,231,225,.28);
  color:var(--limestone);font-size:9.5px;letter-spacing:.16em;
  padding:6px 11px;cursor:pointer;
}
.playbtn:hover{border-color:var(--gold-lt);color:var(--gold-lt)}
#grid{display:none;flex:1 1 auto;overflow-y:auto;background:var(--limestone);-webkit-overflow-scrolling:touch}
.divhero{position:relative;min-height:200px;display:flex;align-items:flex-end;overflow:hidden;background:var(--slate)}
.divhero .photo{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.55;filter:grayscale(.2)}
.divhero::after{content:"";position:absolute;inset:0;background:linear-gradient(to right,rgba(20,32,28,.94) 8%,rgba(20,32,28,.3) 100%)}
.divhero .inner{position:relative;z-index:2;padding:30px var(--pad) 26px;color:var(--limestone);max-width:780px}
.divhero h2{font-size:35px;font-weight:300;line-height:1.05;margin-bottom:10px}
.divhero p{font-size:15px;font-weight:300;line-height:1.5;color:rgba(232,231,225,.78)}

@media (max-width:900px){
  #railwrap{min-height:0}
  #rail{flex-direction:column}
  .slat{border-right:0;border-bottom:1px solid var(--rule-dk);min-height:60px}
  .slat.on{flex:6;min-height:44vh}
  .vt{writing-mode:horizontal-tb;transform:none;left:var(--pad);bottom:auto;top:22px;font-size:10.5px;letter-spacing:.22em}
  .card{left:var(--pad);right:var(--pad);bottom:22px}
  /* Stacked, a collapsed slat is ~60px tall, so a bottom-anchored card would paint
     inside that strip and collide with the label. Only the open slat gets a card. */
  .slat:not(.on) .card{display:none}
  .card h2{font-size:25px}
  .cover{font-size:14px}
  .divhero h2{font-size:29px}
}
@media (max-width:560px){
  .playbtn{right:12px;top:10px;font-size:9px;padding:5px 9px}
  .slat{min-height:54px}
  .slat.on{min-height:42vh}
  .vt{top:19px;font-size:10px}
  .card{bottom:18px}
  .card h2{font-size:22px;margin-bottom:5px}
  .cover{font-size:13.5px}
  .coversub{font-size:9px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .divhero{min-height:170px}
  .divhero h2{font-size:25px}
  .divhero p{font-size:14px}
}

/* ==================== variant switcher (review scaffolding) ==================== */
.vswitch{
  position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:90;
  display:flex;align-items:center;gap:6px;
  background:rgba(20,32,28,.92);border:1px solid rgba(232,231,225,.2);
  padding:7px 9px;font-family:"IBM Plex Mono",monospace;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
}
.vswitch .vlab{font-size:8.5px;letter-spacing:.2em;color:rgba(232,231,225,.5);margin-right:3px}
.vswitch a{
  display:block;width:26px;height:24px;line-height:24px;text-align:center;
  font-size:10px;letter-spacing:.1em;color:rgba(232,231,225,.72);text-decoration:none;
  border:1px solid rgba(232,231,225,.22);
}
.vswitch a:hover{color:var(--gold-lt);border-color:var(--gold-lt)}
.vswitch a.on{background:var(--green);border-color:var(--green);color:#fff}
.vswitch .vnote{font-size:8.5px;letter-spacing:.12em;color:rgba(232,231,225,.42);margin-left:6px}
@media (max-width:560px){.vswitch .vnote{display:none}}

/* The variant switcher is fixed to the bottom of the window, so pages that show it
   reserve room for it rather than letting it sit on top of the last row. */
body[data-family]{padding-bottom:58px}

/* The slideshow control lives in the footer, not over the rail: anything floating on the
   rail cannot be reached without crossing a slat, and crossing a slat pauses. */
.fleft{display:flex;align-items:center;gap:16px}
footer .playbtn{
  position:static;background:none;border:1px solid var(--rule);color:var(--grey);
  font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.16em;
  padding:6px 11px;cursor:pointer;transition:color 200ms,border-color 200ms;
}
footer .playbtn:hover{color:var(--green-dk);border-color:var(--green)}

/* ============================ about / clients ============================ */
.statband{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:1px;background:var(--rule);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
}
.stat{background:var(--limestone);padding:26px var(--pad) 28px}
.stat .n{font-size:44px;font-weight:300;line-height:1;color:var(--green);letter-spacing:-.01em;margin-bottom:8px}
.stat .l{font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.24em;color:var(--green-dk);margin-bottom:7px}
.stat .note{font-size:13.5px;font-weight:300;line-height:1.45;color:var(--grey)}

.crew{display:grid;grid-template-columns:1fr 1fr;gap:0 48px;margin:0 var(--pad)}
.crewcol h4{
  font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.24em;
  color:var(--green-dk);padding-bottom:12px;border-bottom:1px solid var(--rule);margin-bottom:4px;
}
.crewrow{display:grid;grid-template-columns:78px 1fr;gap:0 18px;padding:13px 0;border-bottom:1px solid var(--rule);align-items:baseline}
.crewrow .cn{font-family:"IBM Plex Mono",monospace;font-size:14px;letter-spacing:.06em;color:var(--green)}
.crewrow .cl{font-size:17px;font-weight:400;line-height:1.25}
.crewrow .cnote{font-size:13px;font-weight:300;line-height:1.45;color:var(--grey);margin-top:3px}
@media (max-width:760px){.crew{grid-template-columns:1fr;gap:34px 0}}

.clientlist{columns:4;column-gap:32px;margin:0 var(--pad)}
.clientlist p{
  break-inside:avoid;font-family:"IBM Plex Mono",monospace;font-size:10.5px;
  letter-spacing:.02em;line-height:1.55;padding:4px 0;color:var(--ink);
}
@media (max-width:1100px){.clientlist{columns:3}}
@media (max-width:760px){.clientlist{columns:2}}
@media (max-width:480px){.clientlist{columns:1}}
.approvals{
  margin:0 var(--pad);padding:20px 24px;border-left:2px solid var(--green);
  background:var(--limestone-2);font-size:15px;font-weight:300;line-height:1.6;max-width:820px;
}
.sectitle{
  margin:0 var(--pad);padding:44px 0 14px;border-bottom:1px solid var(--rule);
  display:flex;align-items:baseline;justify-content:space-between;gap:20px;
}
.sectitle h3{font-size:26px;font-weight:400;line-height:1.15}
.sectitle .c{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.2em;color:var(--green-dk);white-space:nowrap}
.prose{margin:0 var(--pad);max-width:680px}
.prose p{font-size:17px;font-weight:300;line-height:1.62;margin-bottom:16px}
.awaiting{
  margin:0 var(--pad);padding:18px 22px;border:1px dashed var(--rule);
  font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.14em;line-height:1.9;color:var(--grey);
}

/* ============================ news ============================ */
.nfeed{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1px;background:var(--rule);border:1px solid var(--rule);margin:0 var(--pad)}
.nitem{background:var(--limestone);display:flex;flex-direction:column}
.nshot{position:relative;height:200px;overflow:hidden;background:var(--slate)}
.nshot .photo{position:absolute;inset:0;background-size:cover;background-position:center;filter:grayscale(.4);transition:transform 900ms cubic-bezier(.19,1,.22,1),filter 600ms}
.nitem:hover .nshot .photo{transform:scale(1.05);filter:grayscale(0)}
.nbody{padding:18px 20px 22px}
.nkind{font-family:"IBM Plex Mono",monospace;font-size:8.5px;letter-spacing:.24em;color:var(--green-dk);margin-bottom:8px}
.nitem h3{font-size:20px;font-weight:400;line-height:1.2;margin-bottom:6px}
.nitem p{font-size:14px;font-weight:300;line-height:1.5;color:var(--grey)}
.tagrow{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.htag{font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.08em;color:var(--green-dk);border:1px solid var(--rule);padding:4px 8px}

/* ============================ contact ============================ */
.cgrid{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0;border-top:1px solid var(--rule)}
.cpanel{padding:44px var(--pad)}
.cpanel.dark{background:var(--slate);color:var(--limestone)}
.cline{padding:16px 0;border-bottom:1px solid var(--rule);display:grid;grid-template-columns:150px 1fr;gap:0 20px;align-items:baseline}
.cpanel.dark .cline{border-bottom-color:var(--rule-dk)}
.cline .l{font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.22em;color:var(--green-dk)}
.cpanel.dark .cline .l{color:var(--gold-lt)}
.cline .v{font-size:19px;font-weight:300;line-height:1.35}
.cline .v a{text-decoration:none;border-bottom:1px solid var(--rule)}
.cline .v a:hover{border-bottom-color:var(--green)}
.field{margin-bottom:16px;display:flex;flex-direction:column;gap:7px}
.field label{font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.22em;color:var(--grey)}
.field input,.field textarea,.field select{
  font-family:var(--serif);font-size:16px;color:var(--ink);
  background:var(--limestone);border:1px solid var(--rule);padding:11px 13px;width:100%;
}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid var(--green);outline-offset:1px}
.sendbtn{
  font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.2em;
  background:var(--green);color:#fff;border:0;padding:14px 26px;cursor:pointer;
}
.sendbtn:hover{background:var(--green-dk)}
.formnote{font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.14em;color:var(--grey);margin-top:12px;line-height:1.8}
@media (max-width:860px){.cgrid{grid-template-columns:1fr}.cpanel{padding:32px var(--pad)}}
/* On a phone the 150px label column leaves too little room for the email address, so
   the label sits above its value, and a long address may still break rather than
   push the page wider than the screen. */
@media (max-width:600px){
  .cline{grid-template-columns:1fr;gap:6px 0}
  .cline .v{overflow-wrap:anywhere}
}

/* ============================ awards ============================ */
.awardlist{margin:0 var(--pad)}
.right .awardlist{margin:0}
.award{
  display:grid;grid-template-columns:96px 1fr;gap:0 26px;
  padding:22px 0 24px;border-top:1px solid var(--rule);align-items:start;
}
.award:first-child{border-top:0;padding-top:0}
.ayear{font-family:"IBM Plex Mono",monospace;font-size:15px;letter-spacing:.06em;color:var(--green)}
.award h4{font-size:21px;font-weight:400;line-height:1.2;margin-bottom:5px}
.award .abody{font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.2em;color:var(--green-dk);margin-bottom:10px}
.award .aproj{font-size:16px;font-weight:300;line-height:1.4;margin-bottom:7px}
.award .arole{font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.1em;color:var(--grey);line-height:1.7;margin-bottom:9px}
.award p{font-size:14.5px;font-weight:300;line-height:1.55;color:var(--grey);max-width:640px}
@media (max-width:640px){.award{grid-template-columns:1fr;gap:8px 0}}
.vswitch .vsep{width:1px;height:18px;background:rgba(232,231,225,.22);margin:0 4px}
.vswitch .vfont{
  font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.08em;
  background:rgba(232,231,225,.06);color:var(--limestone);
  border:1px solid rgba(232,231,225,.22);padding:5px 7px;cursor:pointer;
}
.vswitch .vfont option{background:#14201C;color:#E8E7E1}
.vswitch .vwhy{
  font-size:8.5px;letter-spacing:.06em;color:rgba(232,231,225,.5);
  margin-left:8px;max-width:290px;line-height:1.5;
}
@media (max-width:760px){.vswitch .vwhy{display:none}}

/* ============================ motion ============================
   Everything here is gated on html.motion, which ng-site.js only adds when
   IntersectionObserver exists and the visitor has not asked for reduced motion.
   Without that class the page is simply visible — no animation can ever leave content
   stranded at opacity 0 because a script failed. */

html.motion{scroll-behavior:smooth}

/* --- scroll reveal --- */
html.motion [data-rise]{
  opacity:0;transform:translateY(16px);
  transition:opacity 620ms cubic-bezier(.19,1,.22,1),transform 620ms cubic-bezier(.19,1,.22,1);
  transition-delay:var(--d,0ms);
}
html.motion [data-rise].in{opacity:1;transform:none}
/* Photographs settle rather than slide: a 16px lift on a full-bleed image reads as a jolt */
html.motion [data-rise].shot{transform:none;opacity:0;transition-duration:900ms}
html.motion [data-rise].shot.in{opacity:1}

/* --- page arrival and departure --- */
html.motion body{animation:pagein 420ms cubic-bezier(.19,1,.22,1) both}
@keyframes pagein{from{opacity:0}to{opacity:1}}
html.motion body.leaving{
  opacity:0;transform:translateY(-6px);
  transition:opacity 170ms ease-in,transform 170ms ease-in;
  animation:none;
}

/* --- hero, on arrival --- */
html.motion .pagehero .kicker{animation:rise 700ms cubic-bezier(.19,1,.22,1) 60ms both}
html.motion .pagehero h2{animation:rise 760ms cubic-bezier(.19,1,.22,1) 130ms both}
html.motion .pagehero p{animation:rise 760ms cubic-bezier(.19,1,.22,1) 220ms both}
html.motion .pagehero .photo{animation:heroshot 1500ms cubic-bezier(.19,1,.22,1) both}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes heroshot{from{opacity:0;transform:scale(1.06)}to{opacity:.34;transform:none}}

/* --- filter switches: the new list arrives, it does not just appear --- */
html.motion .swap-in{animation:swapin 460ms cubic-bezier(.19,1,.22,1) both;animation-delay:var(--d,0ms)}
@keyframes swapin{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.chip{position:relative}
html.motion .chip{transition:color 200ms,border-color 200ms,background 260ms cubic-bezier(.19,1,.22,1)}

/* --- header lifts off the page once you scroll --- */
header{transition:box-shadow 320ms,border-color 320ms}
header.stuck{box-shadow:0 1px 0 var(--rule),0 10px 30px rgba(20,32,28,.07)}

/* --- menu links arrive in sequence --- */
html.motion #menu.open nav a{animation:menuin 420ms cubic-bezier(.19,1,.22,1) both}
@keyframes menuin{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
html.motion #menu.open nav a:nth-child(1){animation-delay:90ms}
html.motion #menu.open nav a:nth-child(2){animation-delay:130ms}
html.motion #menu.open nav a:nth-child(3){animation-delay:170ms}
html.motion #menu.open nav a:nth-child(4){animation-delay:210ms}
html.motion #menu.open nav a:nth-child(5){animation-delay:250ms}
html.motion #menu.open nav a:nth-child(6){animation-delay:290ms}
html.motion #menu.open nav a:nth-child(7){animation-delay:330ms}

/* --- gallery --- */
html.motion #lb.open{animation:lbin 300ms cubic-bezier(.19,1,.22,1) both}
@keyframes lbin{from{opacity:0}to{opacity:1}}
html.motion #lb.open .lbstage{animation:lbstage 460ms cubic-bezier(.19,1,.22,1) 60ms both}
@keyframes lbstage{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}
#lbimg{transition:opacity 220ms}
#lbimg.swapping{opacity:0}

/* --- links and cards get a considered hover, not a jump --- */
nav a{transition:color 220ms,border-color 220ms}
.p,.irow,.tile,.nitem,.award{transition:background 260ms,transform 420ms cubic-bezier(.19,1,.22,1)}
html.motion .sendbtn{transition:background 240ms,transform 240ms}
html.motion .sendbtn:active{transform:translateY(1px)}
