:root{
  --ink:#000000;
  --paper:#FFFFFF;        /* pure white, no warm tint */
  --white:#FFFFFF;
  --mute:#6A6A6A;
  --line:#DEDEDE;
  --red:#DA352B;          /* logo red, now also used as a sparing trim */
  --band:#F6F6F6;         /* neutral band, separates sections now that paper is pure white */
  --act:#000000;          /* interface black, this is what buttons and rules use now */
  --act-hi:#2E2E2E;
  --gut:clamp(20px,5vw,72px);
  --navh:74px;
  --arch:clamp(34px,4.8vw,62px);   /* one depth, shared by the header and foot arches */
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:Archivo,system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-size:17px;line-height:1.6;font-weight:400;-webkit-font-smoothing:antialiased;
}
img,video{display:block;max-width:100%}
img{height:auto}
a{color:inherit}
p{margin:0}
h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.026em;line-height:1.06}
:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.wrap{max-width:1300px;margin:0 auto}

/* ---------- nav : transparent over the video, solid once you leave it ---------- */
/* A floating pill rather than a full-width bar. The colour behaviour is
   unchanged: transparent over the hero, white once the hero is behind you.
   Inset on all sides, so the page shows through around it. */
.nav{
  position:fixed;top:12px;left:12px;right:12px;z-index:60;height:var(--navh);
  display:flex;align-items:center;gap:30px;padding:0 clamp(20px,3vw,40px);
  color:var(--white);border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  transition:background .3s ease,color .3s ease,box-shadow .3s ease,
             border-color .3s ease,border-radius .3s ease;
}
/* Frosted glass. Over the hero the tint stays light enough to read white type
   against the dark film behind it; scrolled, it turns to frosted white. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .nav{background:rgba(255,255,255,.07);
    -webkit-backdrop-filter:blur(18px) saturate(150%);
    backdrop-filter:blur(18px) saturate(150%)}
  /* .55 is the practical floor: over the black contact section it still gives
     dark type about 5.8:1, comfortably past WCAG AA. Heavier blur keeps it
     reading as glass now that there is less white in it. */
  .nav.solid{background:rgba(255,255,255,.55);
    -webkit-backdrop-filter:blur(26px) saturate(180%);
    backdrop-filter:blur(26px) saturate(180%)}
}
/* Over a dark section a white pill turns into a grey slab, which reads as the
   least glassy state on the site. There it inverts: dark glass, white type. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .nav.solid.on-dark{background:rgba(0,0,0,.28);
    -webkit-backdrop-filter:blur(26px) saturate(150%);
    backdrop-filter:blur(26px) saturate(150%)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .nav.solid.on-dark{background:rgba(0,0,0,.72)}
}
.nav.solid.on-dark{color:var(--white);border-color:rgba(255,255,255,.16);
  box-shadow:0 2px 20px rgba(0,0,0,.28)}
.nav.solid.on-dark .nav__logo--dark{display:none}
.nav.solid.on-dark .nav__logo--light{display:block}

/* no backdrop-filter: fall back to a solid pill so the type never loses contrast */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .nav.solid{background:var(--white)}
}
.nav.solid{color:var(--ink);border-color:rgba(0,0,0,.07);
  box-shadow:0 2px 20px rgba(0,0,0,.10)}
.nav__logo{height:22px;width:auto}
.nav__brand{display:flex;align-items:center;min-height:44px;padding:11px 0}
.nav__logo--dark{display:none}
.nav.solid .nav__logo--light{display:none}
.nav.solid .nav__logo--dark{display:block}
.nav__links{display:flex;gap:28px;margin-left:auto;font-size:.95rem}
.nav__links a{text-decoration:none;opacity:.86;padding:12px 0;border-bottom:1.5px solid transparent;display:inline-flex;align-items:center;min-height:44px}
.nav__links a:hover{opacity:1;border-bottom-color:var(--red)}
.nav__links a[aria-current="page"]{opacity:1;border-bottom-color:var(--red)}
.quote{
  display:inline-flex;align-items:center;min-height:44px;text-decoration:none;white-space:nowrap;
  font-size:.9rem;font-weight:500;letter-spacing:.005em;border:0;
  box-shadow:inset 0 -1px 0 currentColor;transition:box-shadow .2s;
}
.quote:hover{box-shadow:inset 0 -2px 0 var(--red)}
.burger{display:none;margin-left:auto;background:none;border:0;padding:14px 10px;min-height:44px;min-width:44px;cursor:pointer;color:inherit}
.burger span{display:block;width:23px;height:1.6px;background:currentColor;margin:5px 0}

/* ---------- hero ---------- */
.hero{position:relative;height:100vh;height:100svh;min-height:600px;overflow:hidden;background:var(--ink)}
.hero__media{position:absolute;inset:0}
.hero__media img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .75s ease;
  /* the slow zoom is CSS, not video: ffmpeg's zoompan rounds its crop origin to
     whole pixels and judders. A transform is GPU-composited and sub-pixel exact. */
  transform-origin:50% 50%;
  animation:heroZoom 8s ease-in-out infinite alternate;
  will-change:transform;backface-visibility:hidden;
}
.hero__media img.on{opacity:1}
.hero__media.paused img{animation-play-state:paused}
@keyframes heroZoom{from{transform:scale(1)}to{transform:scale(1.09)}}
.hero__scrim{position:absolute;inset:0;
  background:
    linear-gradient(to top,rgba(0,0,0,.92) 0%,rgba(0,0,0,.60) 30%,rgba(0,0,0,.16) 58%,rgba(0,0,0,.30) 84%,rgba(0,0,0,.62) 100%),
    linear-gradient(to right,rgba(0,0,0,.46) 0%,rgba(0,0,0,.06) 58%,rgba(0,0,0,0) 100%)}
.hero__body{
  position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;
  padding:var(--navh) var(--gut) 0;color:var(--white);
}
.hero h1{font-size:clamp(2.1rem,4.9vw,4.1rem);max-width:17ch;letter-spacing:-.032em}
.hero__sub{margin-top:18px;max-width:52ch;font-size:clamp(1rem,1.1vw,1.09rem);color:#DCDCDC;line-height:1.55}
.hero__cta{margin:clamp(22px,3.4vh,34px) 0 clamp(26px,4.4vh,44px);display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.motion{
  margin-left:auto;display:inline-flex;align-items:center;gap:9px;cursor:pointer;
  min-height:44px;padding:0 4px;background:none;border:0;color:rgba(255,255,255,.72);
  font:inherit;font-size:.86rem;transition:color .2s;
}
.motion:hover{color:#fff}
.motion .glyph{
  width:26px;height:26px;border:1px solid currentColor;border-radius:50%;
  display:grid;place-items:center;font-size:.62rem;line-height:1;
}
@media (max-width:900px){.motion{margin-left:0}}
.btn{display:inline-block;text-decoration:none;padding:13px 26px;font-size:.95rem;font-weight:500;
  background:var(--act);color:var(--white);border:1px solid var(--act);transition:background .2s,border-color .2s}
.btn:hover{background:var(--act-hi);border-color:var(--act-hi)}
.btn--ghost{background:transparent;color:var(--white);border:0;padding-left:6px;padding-right:6px;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.5)}
/* dark grounds: the primary flips to paper so it still reads as the primary */
.hero .btn:not(.btn--ghost),
.phead .btn:not(.btn--ghost),
.reveal .btn:not(.btn--ghost),
.contact .btn:not(.btn--ghost){background:var(--paper);color:var(--ink);border-color:var(--paper)}
.hero .btn:not(.btn--ghost):hover,
.phead .btn:not(.btn--ghost):hover,
.reveal .btn:not(.btn--ghost):hover,
.contact .btn:not(.btn--ghost):hover{background:#fff;border-color:#fff}
.btn--ghost:hover{background:transparent;box-shadow:inset 0 -2px 0 var(--red)}

/* the strip is the portfolio and the navigation at once */
.strip{
  position:relative;display:flex;gap:0;overflow-x:auto;scrollbar-width:none;
  border-top:1px solid rgba(255,255,255,.26);
}
.strip::-webkit-scrollbar{display:none}
.strip button{
  flex:1 1 0;min-width:170px;text-align:left;cursor:pointer;
  background:none;border:0;border-top:2px solid transparent;margin-top:-1px;
  padding:16px 22px 20px 0;color:rgba(255,255,255,.62);
  font:inherit;font-size:.88rem;line-height:1.35;transition:color .2s,border-color .2s;
}
.strip button:hover{color:rgba(255,255,255,.9)}
.strip button[aria-selected="true"]{color:var(--white);border-top-color:var(--red)}
.strip b{display:block;font-weight:500}
.strip i{font-style:normal;font-size:.78rem;opacity:.6}

/* ---------- light sections ---------- */
.sec{padding:clamp(64px,9vh,120px) var(--gut);scroll-margin-top:var(--navh)}
.sec--band{background:var(--band)}
.lede{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(26px,5vw,80px);align-items:start}
.lede h2{font-size:clamp(1.6rem,3.3vw,2.7rem);max-width:19ch}
.lede p{color:var(--mute);max-width:54ch}
.lede p + p{margin-top:1em}

/* the one thing Karbon is that most of its competitors are not */

/* sectors */
.sectors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:clamp(24px,4vh,40px);
  border-top:1px solid var(--line)}
.sectors span{padding:20px 0;font-size:clamp(1.05rem,1.9vw,1.45rem);font-weight:500;letter-spacing:-.02em;
  border-bottom:1px solid var(--line)}
@media (max-width:640px){.sectors{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* contact */
/* The page header arches downward; the dark band at the foot of the page
   arches upward to mirror it. Both use --arch, a length rather than a
   percentage, so the two curves stay identical even though the elements
   are different heights. */
.contact{background:var(--ink);color:var(--paper)}
/* inner pages only: the homepage keeps a flat edge here */
.contact--arch{clip-path:inset(0 round 50% 50% 0 0 / var(--arch) var(--arch) 0 0)}
.contact__grid{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(28px,5vw,72px);align-items:start}
.contact h2{font-size:clamp(1.7rem,3.8vw,3rem);max-width:15ch}
.contact .row{margin-top:clamp(24px,4vh,36px);display:flex;gap:12px;flex-wrap:wrap}
.contact address{font-style:normal;color:#9A9A9A;font-size:.98rem;line-height:1.8}
.contact address a{color:var(--paper);text-decoration:none;border-bottom:1px solid rgba(244,241,236,.25);
  display:inline-block;padding:13px 0;line-height:1.2}
.contact address a:hover{border-bottom-color:var(--paper)}
footer{background:var(--ink);color:#6A6A6A;padding:22px var(--gut) 40px;border-top:1px solid rgba(255,255,255,.12)}
.foot{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:.82rem}
.foot img{height:19px;width:auto;opacity:.75}

@media (max-width:900px){
  .nav .quote{display:none}
  .burger{display:block}
  /* The menu drops as its own card under the pill, which keeps its shape. Growing the
     pill itself (height:auto plus a border-radius transition) drew a stretching oval. */
  .nav__links{display:flex;flex-direction:column;gap:0;position:absolute;top:calc(100% + 8px);left:0;right:0;
    margin:0;padding:8px clamp(20px,3vw,40px) 12px;background:var(--white);color:var(--ink);
    border-radius:24px;box-shadow:0 14px 40px rgba(0,0,0,.18);font-size:1.02rem;
    opacity:0;visibility:hidden;transform:translateY(-6px);
    transition:opacity .2s ease,transform .24s cubic-bezier(.2,.7,.3,1),visibility 0s linear .24s}
  .nav.open .nav__links{opacity:1;visibility:visible;transform:none;
    transition:opacity .2s ease,transform .24s cubic-bezier(.2,.7,.3,1),visibility 0s}
  .nav__links a{opacity:1;border-bottom:1px solid var(--line)}
  .nav__links a:last-child{border-bottom:0}
  .nav__links a[aria-current="page"]{color:var(--red);border-bottom-color:var(--line)}
  /* the two bars fold into a cross */
  .burger span{transition:transform .24s cubic-bezier(.2,.7,.3,1)}
  .nav.open .burger span:first-child{transform:translateY(3.3px) rotate(45deg)}
  .nav.open .burger span:last-child{transform:translateY(-3.3px) rotate(-45deg)}
  .lede,.contact__grid{grid-template-columns:1fr}
  .strip button{min-width:150px;padding-right:18px}
}
/* the quote link inside the phone menu; desktop keeps its own boxed link */
@media (min-width:901px){ .nav__links .nav__cta{display:none} }
@media (max-width:900px) and (prefers-reduced-motion:reduce){
  .nav__links,.nav.open .nav__links,.burger span{transition:none}
}
/* on a phone the conversion path is a call, so keep it permanently in reach */
.callbar{display:none}
@media (max-width:900px){
  .callbar{
    display:grid;grid-template-columns:1fr 1fr;position:fixed;left:0;right:0;bottom:0;z-index:70;
    border-top:1px solid rgba(244,241,236,.18);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .callbar a{
    display:flex;align-items:center;justify-content:center;gap:8px;
    min-height:56px;text-decoration:none;font-size:1rem;font-weight:500;
  }
  .callbar a:first-child{background:var(--paper);color:var(--ink)}
  .callbar a:last-child{background:var(--ink);color:var(--paper)}
  body{padding-bottom:56px}
}

/* the five capabilities. Three across then two wider, on a six column grid, so
   the odd count closes cleanly instead of leaving one orphan tile */
.pillars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(20px,3vw,40px);
  margin-top:clamp(34px,5vh,56px)}
.pillar{grid-column:span 2}
.pillar:nth-child(n+4){grid-column:span 3}
.pillar img{width:100%;aspect-ratio:3/2;object-fit:cover}
.pillar h3{margin-top:12px;font-size:clamp(1.15rem,1.9vw,1.45rem);font-weight:600;letter-spacing:-.022em}
.pillar h3 a{display:inline-flex;align-items:center;min-height:44px;padding:4px 0}
.pillar .sub{display:block;margin-top:4px;font-size:.92rem;font-weight:400;color:var(--mute)}
.pillar p{margin-top:9px;color:var(--mute);font-size:.98rem;max-width:44ch}
.also{margin-top:clamp(30px,4.5vh,48px);padding-top:20px;border-top:1px solid var(--line);
  color:var(--mute);font-size:.98rem;max-width:66ch}
@media (max-width:760px){.pillars{grid-template-columns:1fr}.pillar,.pillar:nth-child(n+4){grid-column:auto}}

/* the seven services read as a schedule of works, not as cards */
/* The in-house list used to read as a spec table. Each row now carries a red
   rule that wipes in from the left on hover, the same device as the portfolio
   tiles, so the two behave like one system rather than two inventions. The
   title nudges with it, which is what makes the row feel like one object. */
.svc{margin-top:clamp(34px,5vh,56px);border-top:1px solid var(--line)}
.svc__row{position:relative;display:grid;
  grid-template-columns:minmax(0,.86fr) minmax(0,1fr);
  gap:clamp(14px,3vw,44px);align-items:baseline;
  padding:clamp(18px,2.4vh,26px) 0;border-bottom:1px solid var(--line)}
.svc__row::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:var(--red);transform:scaleX(0);transform-origin:left;
  transition:transform .45s cubic-bezier(.2,.7,.3,1)}
.svc__row:hover::after{transform:scaleX(1)}
.svc__row dt{font-size:clamp(1.1rem,1.9vw,1.5rem);font-weight:500;letter-spacing:-.022em;
  transition:transform .35s cubic-bezier(.2,.7,.3,1)}
.svc__row:hover dt{transform:translateX(8px)}
.svc__row dd{margin:0;color:var(--mute);font-size:.96rem;
  transition:color .3s}
.svc__row:hover dd{color:var(--ink)}
@media (prefers-reduced-motion:reduce){
  .svc__row::after,.svc__row dt,.svc__row dd{transition:none}
  .svc__row:hover dt{transform:none}
}
@media (max-width:760px){.svc__row{grid-template-columns:1fr;gap:5px}}

/* their own four-step process. numbers are used here because this genuinely is a sequence */
/* The four steps are one process: a hairline runs between them with a node at
   each stage, so the sequence reads left to right. Each step draws the segment
   to its right, which is how the line lands exactly between node centres and
   crosses the grid gap. Below 900px the same line turns vertical. */
.steps{--sgap:clamp(18px,2.4vw,34px);
  position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--sgap);margin-top:clamp(30px,4.5vh,50px);padding-top:40px}
.step{position:relative}
.step::before{content:"";position:absolute;left:0;top:-40px;width:11px;height:11px;
  border-radius:50%;background:var(--red);z-index:1;
  transition:transform .25s cubic-bezier(.2,.7,.3,1)}
.step::after{content:"";position:absolute;left:5px;right:calc(-1 * var(--sgap) - 6px);
  top:-35px;height:1px;background:var(--line)}
.step:last-child::after{display:none}
.step:hover::before{transform:scale(1.4)}
.step b{display:block;font-size:.76rem;font-weight:600;color:var(--act);
  letter-spacing:.09em;text-transform:uppercase;font-variant-numeric:tabular-nums;
  transition:color .25s}
.step:hover b{color:var(--red)}
.step p{margin-top:10px;color:var(--mute);font-size:.97rem}
@media (prefers-reduced-motion:reduce){.step::before{transition:none}}

/* why choose us, their six points, their words */
/* Six equal blocks read as a wall, so the titles carry more weight than the
   body and each cell answers to the pointer. The rule darkens rather than
   turning red: the page already spends its red elsewhere. */
.why{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 clamp(24px,4vw,56px);
  margin-top:clamp(28px,4vh,46px);border-top:1px solid var(--line)}
.why div{position:relative;padding:28px 0;border-bottom:1px solid var(--line)}
.why div::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:var(--red);transform:scaleX(0);transform-origin:left;
  transition:transform .45s cubic-bezier(.2,.7,.3,1)}
.why div:hover::after{transform:scaleX(1)}
.why h3{font-size:clamp(1.14rem,1.45vw,1.28rem);font-weight:600;letter-spacing:-.018em;
  transition:transform .35s cubic-bezier(.2,.7,.3,1)}
.why div:hover h3{transform:translateX(6px)}
.why p{margin-top:9px;color:var(--mute);font-size:.95rem;max-width:40ch}
/* staggered fade-up, a different motion from the pillars so the two read as
   one system rather than the same trick twice */
.why.js-reveal div{opacity:0;transform:translateY(22px);
  transition:opacity .6s cubic-bezier(.2,.7,.3,1),transform .6s cubic-bezier(.2,.7,.3,1)}
.why.js-reveal div.is-in{opacity:1;transform:none}
.why.js-reveal div:nth-child(3n+2){transition-delay:.07s}
.why.js-reveal div:nth-child(3n+3){transition-delay:.14s}
@media (prefers-reduced-motion:reduce){
  .why div::after,.why h3{transition:none}
  .why div:hover h3{transform:none}
  .why.js-reveal div{opacity:1;transform:none;transition:none}
}

/* enquiry form, the fields their old contact page asked for */
.form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form label{display:block;font-size:.82rem;color:#9A9A9A;margin-bottom:6px}
.form input,.form textarea{
  width:100%;background:transparent;color:var(--paper);font:inherit;font-size:.98rem;
  border:1px solid rgba(244,241,236,.26);padding:13px 14px;border-radius:0;
}
.form input:focus,.form textarea:focus{outline:2px solid var(--red);outline-offset:1px;border-color:transparent}
.form .wide{grid-column:1/-1}
.form textarea{min-height:120px;resize:vertical}
.form button{grid-column:1/-1;justify-self:start}

@media (max-width:900px){
  /* stacked, the same line runs vertically with the nodes down the left */
  .steps{grid-template-columns:1fr;padding-top:0;padding-left:30px;
    row-gap:clamp(26px,4vw,38px)}
  .step::before{left:-30px;top:3px}
  .step::after{left:-25px;right:auto;top:14px;height:auto;
    bottom:calc(-1 * var(--sgap) - 3px);width:1px}
  .why{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .why,.form{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero__media img{transition:none}
  .hero__media img{animation:none;transform:none}
}

/* ---------- interior page header. a still, not the homepage film ---------- */
.phead{position:relative;height:clamp(340px,52vh,520px);height:clamp(340px,52svh,520px);overflow:hidden;background:var(--ink)}
.phead img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.phead__scrim{position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.88) 0%,rgba(0,0,0,.46) 46%,rgba(0,0,0,.30) 100%)}
.phead__body{position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;
  padding:var(--navh) var(--gut) clamp(30px,5vh,52px);color:var(--white);max-width:1300px;margin:0 auto}
.phead h1{font-size:clamp(1.9rem,4.4vw,3.4rem);max-width:18ch;letter-spacing:-.03em}
.phead p{margin-top:14px;max-width:54ch;color:#DCDCDC;font-size:clamp(.98rem,1.1vw,1.08rem)}

/* ---------- one discipline per block, alternating so the page has a rhythm ---------- */
.disc{display:grid;grid-template-columns:1fr 1fr;gap:clamp(26px,4.5vw,72px);align-items:center;
  padding:clamp(48px,7vh,92px) 0;border-bottom:1px solid var(--line);scroll-margin-top:calc(var(--navh) + 16px)}
.disc:last-of-type{border-bottom:0}
.disc img{width:100%;aspect-ratio:3/2;object-fit:cover}
.disc h2{font-size:clamp(1.35rem,2.7vw,2.1rem);letter-spacing:-.024em;max-width:18ch}
.disc .lead{margin-top:12px;color:var(--act);font-size:1.02rem;font-weight:500}
.disc p.body{margin-top:16px;color:var(--mute);max-width:46ch}
.disc:nth-of-type(even) .media{order:-1}
.disc__no{font-size:.78rem;color:var(--mute);font-variant-numeric:tabular-nums;letter-spacing:.04em}
@media (max-width:820px){
  .disc{grid-template-columns:1fr;gap:20px;padding:clamp(36px,5vh,56px) 0}
  .disc:nth-of-type(even) .media{order:0}
}

/* capability cards link through to their section on the Services page */
.pillar a{text-decoration:none;display:block}
.pillar h3 a{color:inherit}
.pillar h3 a:hover{color:var(--mute)}
.pillar img{transition:transform .6s cubic-bezier(.2,.7,.3,1)}
.pillar a:hover img{transform:scale(1.02)}
.pillar > a{overflow:hidden}

/* ---------- portfolio grid ---------- */
.projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.6vw,22px);
  margin-top:clamp(30px,4.5vh,50px)}
.proj{position:relative;display:block;overflow:hidden;background:var(--ink);text-decoration:none}
.proj img{width:100%;aspect-ratio:4/3;object-fit:cover;filter:brightness(.86);
  transition:transform .7s cubic-bezier(.2,.7,.3,1),filter .4s}
.proj:hover img{transform:scale(1.05);filter:brightness(1)}
.proj__cap{position:absolute;left:0;right:0;bottom:0;padding:22px 20px;color:var(--white);
  background:linear-gradient(to top,rgba(0,0,0,.86),rgba(0,0,0,0))}
.proj__cap b{display:block;font-size:1.02rem;font-weight:500;letter-spacing:-.015em}
.proj__cap span{font-size:.82rem;opacity:.78}
@media (max-width:900px){.projects{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.projects{grid-template-columns:1fr}}

/* an honest note where real content is still owed */

/* ---------- about: the two-column story block ---------- */
.story{display:grid;grid-template-columns:1fr 1fr;gap:clamp(26px,4.5vw,72px);align-items:center;
  padding:clamp(40px,6vh,80px) 0}
.story img{width:100%;aspect-ratio:4/3;object-fit:cover}
.story h2{font-size:clamp(1.4rem,2.8vw,2.2rem);max-width:18ch}
.story p{margin-top:16px;color:var(--mute);max-width:48ch}
.story p + p{margin-top:1em}
@media (max-width:820px){.story{grid-template-columns:1fr;gap:22px}}

/* ---------- contact page ---------- */
.reach{display:grid;grid-template-columns:1.3fr 1fr;gap:clamp(28px,5vw,72px);align-items:start}
.reach__block{padding:20px 0;border-top:1px solid var(--line)}
.reach__block h3{font-size:.86rem;font-weight:600;color:var(--mute);letter-spacing:.02em}
.reach__block p,.reach__block a{margin-top:6px;display:block;font-size:1.05rem;color:var(--ink);
  text-decoration:none;font-weight:500}
.reach__block a:hover{color:var(--mute)}
.form--light input,.form--light textarea{color:var(--ink);border-color:var(--line)}
.form--light label{color:var(--mute)}
@media (max-width:820px){.reach{grid-template-columns:1fr}}

/* ---------- reveal band: the image stays put while the section scrolls over it ----------
   clip-path on the section makes it the containing block for the fixed child, which pins the
   image exactly like background-attachment:fixed but without that property's iOS Safari bug. */
.reveal{position:relative;overflow:hidden;background:var(--ink);
  /* the arch is the shape, AND it is what pins the image: any non-none clip-path makes this
     section the containing block for the fixed child inside it. */
  clip-path:inset(0 round 50% 50% 0 0 / 16% 16% 0 0);
  min-height:clamp(420px,72vh,700px);min-height:clamp(420px,72svh,700px);display:grid;place-items:center;
  padding:clamp(70px,11vh,130px) var(--gut)}
.reveal__media{position:fixed;inset:0;width:100%;height:100vh;height:100svh;z-index:0;
  /* give the pinned image its own compositor layer: without this the browser re-rasterises
     it every frame against the moving arch clip, which reads as a shimmer on desktop. */
  will-change:transform;transform:translateZ(0);backface-visibility:hidden}
.reveal__media img{width:100%;height:100%;object-fit:cover}
.reveal__media::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.62)}
.reveal__body{position:relative;z-index:1;text-align:center;max-width:min(92vw,660px);color:var(--white)}
.reveal__body h2{font-size:clamp(1.6rem,3.4vw,2.8rem);letter-spacing:-.026em}
.reveal__body p{margin-top:16px;color:#D8D8D8;font-size:clamp(1rem,1.1vw,1.08rem);max-width:40ch;
  margin-left:auto;margin-right:auto}
.reveal__body .btn{margin-top:clamp(24px,3.6vh,34px)}
/* the pin only makes sense while the page is actually scrolling */
@media (prefers-reduced-motion:reduce){
  .reveal__media{position:absolute;height:100%}
}

/* ---------- featured projects carousel ---------- */
.feat__head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.feat__head h2{font-size:clamp(1.5rem,3vw,2.35rem)}
.carousel{position:relative;margin-top:clamp(28px,4vh,44px)}
.carousel__view{overflow:hidden}
.track{display:flex;gap:clamp(10px,1.4vw,20px);will-change:transform;
  transition:transform .75s cubic-bezier(.22,.8,.28,1)}
.slide{position:relative;flex:0 0 72%;overflow:hidden;background:var(--ink)}
.slide img{width:100%;aspect-ratio:16/9;object-fit:cover;transition:opacity .5s,transform 1.2s cubic-bezier(.2,.7,.3,1)}
.slide:not(.is-active) img{opacity:.42}
.slide__info{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;
  padding:clamp(22px,3vw,46px);color:var(--white);
  background:linear-gradient(to top,rgba(0,0,0,.9) 0%,rgba(0,0,0,.55) 42%,rgba(0,0,0,.1) 78%);
  opacity:0;transition:opacity .45s ease;pointer-events:none}
.slide__info::before{content:"";position:absolute;left:clamp(22px,3vw,46px);top:clamp(22px,3vw,46px);
  bottom:clamp(22px,3vw,46px);width:1px;background:rgba(255,255,255,.45)}
.slide__info > *{margin-left:clamp(14px,1.4vw,22px)}
.slide.is-active:hover .slide__info,
.slide.is-active:focus-within .slide__info{opacity:1;pointer-events:auto}
.slide__info h3{font-size:clamp(1.25rem,2.2vw,1.9rem);font-weight:600;letter-spacing:-.022em}
.slide__info p{margin-top:12px;max-width:46ch;color:#DCDCDC;font-size:.98rem}
.slide__info a{margin-top:10px;display:inline-flex;align-items:center;min-height:44px;
  color:var(--white);text-decoration:none;font-size:.92rem;
  box-shadow:inset 0 -1px 0 currentColor;padding-bottom:3px}
.slide__info a:hover{box-shadow:inset 0 -2px 0 currentColor}
/* a caption that is always readable, for touch and for anyone who never hovers */
.slide__label{position:absolute;left:0;right:0;bottom:0;padding:18px clamp(22px,3vw,46px);
  color:var(--white);font-size:.92rem;font-weight:500;
  background:linear-gradient(to top,rgba(0,0,0,.8),rgba(0,0,0,0));transition:opacity .45s}
.slide.is-active:hover .slide__label,
.slide.is-active:focus-within .slide__label{opacity:0}
.slide:not(.is-active) .slide__label{opacity:0}

.carousel__btn{position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:52px;height:52px;display:grid;place-items:center;cursor:pointer;
  background:rgba(0,0,0,.5);border:0;color:var(--white);font-size:1.3rem;line-height:1;
  transition:background .2s}
.carousel__btn:hover{background:rgba(0,0,0,.85)}
.carousel__btn--prev{left:clamp(6px,1vw,14px)}
.carousel__btn--next{right:clamp(6px,1vw,14px)}
.carousel__dots{display:flex;gap:4px;justify-content:center;margin-top:12px}
.carousel__dots button{width:44px;height:44px;border:0;padding:0;cursor:pointer;
  background:transparent;display:grid;place-items:center}
.carousel__dots button::after{content:"";display:block;width:30px;height:3px;
  background:var(--line);transition:background .25s}
.carousel__dots button[aria-current="true"]::after{background:var(--red)}
.carousel__dots button:hover::after{background:rgba(218,53,43,.55)}

@media (hover:none){
  .slide.is-active .slide__info{opacity:1;pointer-events:auto}
  .slide.is-active .slide__label{opacity:0}
}
@media (max-width:820px){ .slide{flex:0 0 86%} .carousel__btn{width:44px;height:44px} }
@media (prefers-reduced-motion:reduce){ .track{transition:none} .slide img{transition:none} }

/* ---------- map embed ---------- */
.map{margin-top:clamp(40px,6vh,72px);border-top:1px solid var(--line);padding-top:clamp(26px,4vh,40px)}
.map h2{font-size:clamp(1.3rem,2.4vw,1.9rem)}
.map__frame{position:relative;margin-top:20px;aspect-ratio:21/9;background:var(--line);overflow:hidden}
.map__frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;filter:grayscale(1) contrast(1.05)}
.map__frame:hover iframe{filter:none}
.map__note{margin-top:12px;color:var(--mute);font-size:.88rem}
@media (max-width:760px){.map__frame{aspect-ratio:4/3}}

/* ---------- floating WhatsApp ---------- */
.wa{
  --wa:#000000;
  position:fixed;right:clamp(14px,2vw,26px);bottom:clamp(14px,2vw,26px);z-index:80;
  display:inline-flex;align-items:center;gap:0;height:56px;padding:0 16px;
  background:var(--wa);color:#fff;text-decoration:none;border-radius:999px;
  box-shadow:0 6px 24px rgba(0,0,0,.28);
  transition:gap .28s cubic-bezier(.2,.8,.3,1),padding .28s cubic-bezier(.2,.8,.3,1),transform .2s;
}
.wa svg{width:26px;height:26px;flex:0 0 auto;fill:currentColor}
.wa span{max-width:0;overflow:hidden;white-space:nowrap;font-size:.94rem;font-weight:500;
  transition:max-width .28s cubic-bezier(.2,.8,.3,1)}
.wa:hover,.wa:focus-visible{gap:10px;transform:translateY(-2px)}
.wa:hover span,.wa:focus-visible span{max-width:190px}
/* sit above the mobile call bar rather than on top of it */
@media (max-width:900px){ .wa{bottom:calc(56px + env(safe-area-inset-bottom) + 14px);height:52px} }
@media (prefers-reduced-motion:reduce){ .wa,.wa span{transition:none} }

/* ---------- red trim: a short rule above a section heading, used sparingly ---------- */
.rule-red::before{content:"";display:block;width:38px;height:3px;background:var(--red);
  margin-bottom:18px}
/* the quote CTA has to survive inside the opened mobile menu, or phones lose the path */

/* ---------- red trim, used sparingly: selection + one hover rule ---------- */
::selection{background:rgba(218,53,43,.85);color:#fff}
.proj::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--red);
  transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.2,.7,.3,1)}
.proj:hover::after,.proj:focus-visible::after{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){ .proj::after{transition:none} }

/* --- the arch, extended from the reveal band to the inner page headers ---
   The reveal band arches at the top; page headers mirror it at the bottom.
   The rest of the motif experiment (dimension lines, slat grid, arches on
   the smaller images) was removed 5 Oct: three motifs read as busy, not
   designed. This one stays because it was already in the design. */
.phead{clip-path:inset(0 round 0 0 50% 50% / 0 0 var(--arch) var(--arch))}

/* ---------- What we do: the two columns arrive from opposite sides ----------
   The hidden state only applies once JS has added .js-reveal, so with no JS
   (or with reduced motion) the tiles are simply visible rather than invisible. */
.pillars.js-reveal{overflow:hidden}   /* tiles wait outside the grid, so clip
   here or their offset extends the page and creates a horizontal scrollbar */
.pillars.js-reveal .pillar{opacity:0;
  transition:opacity .75s cubic-bezier(.2,.7,.3,1),transform .75s cubic-bezier(.2,.7,.3,1)}
.pillars.js-reveal .pillar:nth-child(odd){transform:translateX(-48px)}
.pillars.js-reveal .pillar:nth-child(even){transform:translateX(48px);transition-delay:.09s}
/* the middle of the top row has no side to come from, so it rises */
.pillars.js-reveal .pillar:nth-child(2){transform:translateY(30px)}
.pillars.js-reveal .pillar:nth-child(3){transform:translateX(48px);transition-delay:.18s}
.pillars.js-reveal .pillar.is-in{opacity:1;transform:none}
@media (max-width:700px){
  /* one column: arriving from alternating sides reads as jitter, so it lifts */
  .pillars.js-reveal .pillar:nth-child(odd),
  .pillars.js-reveal .pillar:nth-child(even){transform:translateY(30px);transition-delay:0s}
  .pillars.js-reveal .pillar.is-in{transform:none}
}
@media (prefers-reduced-motion:reduce){
  .pillars.js-reveal .pillar{opacity:1;transform:none;transition:none}
}

/* ======================================================================
   MOBILE PASS
   ====================================================================== */

/* --- touch devices: :hover latches after a tap and stays until you tap
   elsewhere, so every motion state below is neutralised. Focus-visible
   rules are separate selectors and keep working for keyboard users. --- */
@media (hover:none){
  .svc__row:hover::after,
  .why div:hover::after,
  .proj:hover::after            {transform:scaleX(0)}
  .svc__row:hover dt,
  .why div:hover h3             {transform:none}
  .svc__row:hover dd            {color:var(--mute)}
  .step:hover::before           {transform:none}
  .pillar a:hover img,
  .proj:hover img,
  .map__frame:hover iframe      {transform:none}
  .carousel__dots button:hover::after {background:var(--line)}
  .nav__links a:hover           {border-bottom-color:transparent}
  .wa:hover                     {gap:0;transform:none}
  .wa:hover span                {max-width:0}
  .quote:hover                  {box-shadow:inset 0 -1px 0 currentColor}
  .btn--ghost:hover             {box-shadow:none}
}

/* --- tap targets: these contact links were 27px tall --- */
@media (hover:none),(max-width:900px){
  .reach__block p,.reach__block a,
  .contact address a{min-height:44px;display:flex;align-items:center}
  /* the inline maps link sat at 38px; padding lifts it over the 44px minimum
     without breaking the sentence it lives inside */
  .map__note a{display:inline-block;padding:11px 0;min-height:44px}
}

/* ======================================================================
   MOBILE FIXES, 6 Oct
   ====================================================================== */

/* Featured projects: on a slide this narrow the overlaid caption covered the photo
   and ran off its top edge, so on phones the caption sits under the image instead. */
@media (max-width:820px){
  .slide{background:transparent}
  .slide__label{display:none}
  .slide__info,
  .slide.is-active .slide__info{position:static;opacity:1;pointer-events:auto;background:none;
    color:var(--ink);padding:16px 0 0}
  .slide:not(.is-active) .slide__info{opacity:.42}
  .slide__info::before{display:none}
  .slide__info > *{margin-left:0}
  .slide__info p{margin-top:8px;color:var(--mute);font-size:.95rem}
  .slide__info a{margin-top:4px;color:var(--ink)}
  /* keep the arrows on the photo, not halfway down the caption */
  .carousel__btn{top:calc((100vw - 2 * var(--gut)) * .86 * 9 / 32)}
}

/* Hero tabs: four labels never fit a phone and the strip scrolled sideways, hiding
   Public space entirely. On phones they become four bars, and only the chosen
   project is named beneath them. The hidden names stay readable to screen readers. */
@media (max-width:640px){
  .strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
    overflow:visible;border-top:0;padding-bottom:56px}
  .strip button{min-width:0;min-height:44px;padding:0;margin:0;
    border-top:2px solid rgba(255,255,255,.32)}
  .strip button[aria-selected="true"]{border-top-color:var(--red)}
  .strip b,.strip i{position:absolute;width:1px;height:1px;overflow:hidden;
    clip-path:inset(50%);white-space:nowrap}
  .strip [aria-selected="true"] b,
  .strip [aria-selected="true"] i{left:0;width:auto;height:auto;overflow:visible;clip-path:none}
  .strip [aria-selected="true"] b{bottom:24px;font-size:.98rem}
  .strip [aria-selected="true"] i{bottom:4px}
}
@media (max-width:900px){
  /* the call bar is fixed over the bottom of the screen, so the hero's last line has to clear it */
  .hero__body{padding-bottom:calc(56px + env(safe-area-inset-bottom) + 6px)}
  .burger{-webkit-tap-highlight-color:transparent}
}
@media (max-width:640px){
  /* and the bars stop short of the WhatsApp bubble in the corner */
  .strip{margin-right:72px}
}

/* ---------- form sending state + spam trap ---------- */
.form .hp{display:none}
.form__status{grid-column:1/-1;margin:0;font-size:.9rem;line-height:1.5}
.form__status:empty{display:none}
.form button[disabled]{opacity:.6;cursor:progress}

/* ---------- footer credit ---------- */
.foot__meta{display:flex;align-items:center;gap:8px 22px;flex-wrap:wrap;margin-right:clamp(64px,7vw,96px)}
/* the margin keeps the footer text clear of the fixed WhatsApp button when scrolled to the bottom */
.foot__powered a{color:#A8A8A8;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:12px 4px;margin:-12px -4px}
.foot__powered a:hover{color:var(--paper)}

/* ---------- short pages (404, thank you): footer sits at the bottom of the screen ---------- */
body.short{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
body.short main{flex:1 0 auto}
