/* ==========================================================================
   strata.css — v5. One rule for every page: the page is a block of stone, cut in slabs.
   A slab lies pinned until the next plane has come over it along the brand diagonal; it has thickness
   (a lit cut face, a shadow on the slab below) and it sinks as it is overcome. Inside a slab there are
   three planes: the word cut into the stone (far), the content, and offcuts passing close to the eye (near).
   Loaded after main.css; the motion is in strata.js.
   S1 slabs   S2 planes   S3 offcuts   S4 the page hero   S5 home: hero and carve as slabs
   S6 home 06: strata of work   S7 footer   S8 small screens, reduced motion
   ========================================================================== */

/* S1. slabs ---------------------------------------------------------------- */
:root{--cut:clamp(9px,1vw,16px);
  /* the left (and right) edge of the content column, usable where there is no .container: the gutter, or on a screen wider
     than the container the container's own edge. (% = the full-width box it is used in.) */
  --pad:max(var(--gutter),calc((100% - var(--container)) / 2 + var(--gutter)))}
.main>.sec,.main>.page-hero,.main>.hero,.main>.carve,.footer{--edge:atan2(var(--skew),100vw)}
/* pin: main.js sets `top` for a slab taller than the screen, so that it only pins once its foot is in view */
.js .main>.sec,.js .main>.page-hero{position:sticky;top:0}
html.reduce-motion .main>.sec,html.reduce-motion .main>.page-hero{position:relative;top:auto!important}   /* motion off: nothing pins */
@media (prefers-reduced-motion:reduce){.js .main>.sec,.js .main>.page-hero{position:relative;top:auto!important}}
/* nothing in a slab may widen the page; `clip` (unlike `hidden`) leaves sticky children their scrollport */
@supports (overflow:clip){.main>.sec{overflow-x:clip}}
/* cut: along the brand diagonal, from alternate sides */
.main>*+.sec{clip-path:polygon(0 var(--skew),100% 0,100% 100%,0 100%);padding-top:calc(var(--sec) + var(--skew))}
.main>*+.sec:nth-child(even){clip-path:polygon(0 0,100% var(--skew),100% 100%,0 100%)}
html:not(.js) .main>*+.sec,html.reduce-motion .main>*+.sec{margin-top:calc(-1 * var(--skew))}          /* no script, or motion off: the planes only overlap */
@media (prefers-reduced-motion:reduce){.main>*+.sec,.footer{margin-top:calc(-1 * var(--skew))}}
.main>.sec:last-child{padding-bottom:calc(var(--sec) + var(--skew))}
.footer{position:relative;z-index:20;clip-path:polygon(0 var(--skew),100% 0,100% 100%,0 100%);padding-top:var(--skew)}
html:not(.js) .footer,html.reduce-motion .footer{margin-top:calc(-1 * var(--skew))}
/* thickness: the cut face of the slab, lit from above, with the chisel's tooth marks across it */
.main>*+.sec::after,html.js:not(.no-webgl):not(.carve-static) .page-home .main>.carve::after,.footer::after{content:"";position:absolute;left:0;right:0;top:0;height:var(--skew);z-index:6;pointer-events:none;
  --a:calc(180deg - var(--edge));--b:calc(90deg - var(--edge));
  -webkit-mask-image:linear-gradient(var(--a),transparent calc(50% - .7px),#000 50%,#000 calc(50% + var(--cut)),transparent calc(50% + var(--cut) + .7px));
  mask-image:linear-gradient(var(--a),transparent calc(50% - .7px),#000 50%,#000 calc(50% + var(--cut)),transparent calc(50% + var(--cut) + .7px));
  background:repeating-linear-gradient(var(--b),rgba(0,0,0,.2) 0 1px,transparent 1px 7px),linear-gradient(var(--a),transparent 50%,var(--cut-hi,rgba(255,255,255,.4)) 50%,var(--cut-lo,rgba(255,255,255,.06)) calc(50% + var(--cut)))}
.main>*+.sec:nth-child(even)::after,html.js:not(.no-webgl):not(.carve-static) .page-home .main>.carve::after{--a:calc(180deg + var(--edge));--b:calc(90deg + var(--edge))}
.main>*+.sec--light::after{--cut-hi:#fff;--cut-lo:#cfccc4}
.main>*+.sec--navy::after{--cut-hi:rgba(170,212,245,.6);--cut-lo:rgba(120,170,210,.1)}
@supports not (transform:skewY(atan2(1px,2px))){.main>*+.sec::after,.page-home .main>.carve::after,.footer::after{display:none!important}}
/* overcome: while the next plane crosses, the slab under it darkens, and the edge above throws a shadow on it
   (strata.js writes --cover 0..1, --dim, and --ey = where the next plane's upper edge lies on this slab) */
.main>.sec::before,.main>.page-hero::before,.hero__stage::after,.carve__stage::after{content:"";position:absolute;inset:0;z-index:7;pointer-events:none;
  background:linear-gradient(var(--sa,calc(180deg - var(--edge))),rgba(0,0,0,0) calc(50% - 37px),rgba(0,0,0,var(--sh,.58)) calc(50% + 37px)) 0 calc(var(--ey,-9999px) - 75px)/100% calc(var(--skew) + 75px) no-repeat,
             linear-gradient(rgba(0,0,0,var(--dim,0)),rgba(0,0,0,var(--dim,0)))}
.main>.sec--light::before{--sh:.3}
[data-next="b"]::before,.hero__stage[data-next="b"]::after,.carve__stage[data-next="b"]::after{--sa:calc(180deg + var(--edge))}
/* …and its content sinks a little: the far word least, the content more */
.js .main>.is-left>.container{transform:translate3d(0,calc(var(--cover,0) * -5vh),0) scale(calc(1 - var(--cover,0) * .028));transform-origin:50% 100%}
.main>.is-under>*{visibility:hidden}                                     /* wholly covered: its content is neither painted nor focusable (strata.js also sets `inert`) */

/* S2. planes --------------------------------------------------------------- */
/* strata.js drifts these against the scroll: `translate` is its own property, so reveals and tweens on `transform` keep working */
[data-z]{translate:0 calc(var(--zy,0) * 1px)}

/* S3. offcuts: pieces of stone passing close to the eye, faster than the page ------------------------- */
.near{position:fixed;inset:0;z-index:70;pointer-events:none;overflow:hidden;contain:strict}
.near svg{position:absolute;left:0;top:0;will-change:transform;filter:blur(var(--b,0px)) drop-shadow(0 18px 22px rgba(0,0,0,.2))}
html.reduce-motion .near,body.drawer-open .near{display:none}

/* S4. the page hero: a face of stone with the page's word cut into it ---------------------------- */
.page-hero{min-height:100vh;min-height:100svh;padding:calc(var(--sec-hero) * .8) 0 clamp(72px,7.6vw,112px);display:flex;flex-direction:column;justify-content:flex-end;clip-path:none;overflow:hidden}
@supports (overflow:clip){.page-hero{overflow:clip}}
.page-hero .watermark{display:none}
.ph-word{position:absolute;left:var(--pad);top:clamp(88px,17.5vh,200px);margin:0;font-family:var(--font-en);font-weight:800;font-stretch:112%;font-size:var(--fit,17vw);line-height:1;letter-spacing:-.045em;text-transform:uppercase;white-space:nowrap;pointer-events:none;user-select:none;
  transform:translate3d(0,calc(var(--cover,0) * -11vh),0) scale(calc(1 + var(--cover,0) * .05));transform-origin:0 50%}
.ph-word b{font-weight:inherit;display:inline-block;position:relative;color:#08090b;text-shadow:1px 1.5px 0 rgba(255,255,255,.17),-1px -1.5px 1px rgba(0,0,0,.9)}
.ph-word b::after{content:attr(data-c);position:absolute;left:0;top:0;background:linear-gradient(152deg,#040405 16%,#15171b 50%,#383c44 94%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
/* cut letter by letter: each one is there at a stroke, bright where the steel has just been, then at rest */
.js .ph-word b{opacity:0;animation:phStrike .8s cubic-bezier(.2,.7,.2,1) calc(var(--i,0) * 70ms + .25s) forwards}
@keyframes phStrike{0%{opacity:0}1%{opacity:1;filter:brightness(3.4)}100%{opacity:1;filter:brightness(1)}}
.page-hero .container{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--gap-l);row-gap:var(--gap);align-items:end}
.page-hero__label{grid-column:1/-1;margin-bottom:0;align-items:center}
.page-hero__title{grid-column:1/-1;font-family:var(--font-en);font-weight:600;font-stretch:104%;font-size:13px;line-height:1.4;letter-spacing:.24em;text-transform:uppercase;color:var(--c-plaster-68)}
.page-hero__statement{grid-column:1;margin-top:0;font-size:clamp(26px,3.5vw,54px);line-height:1.42;max-width:15em}
.lang-en .page-hero__statement{font-size:clamp(26px,3.3vw,50px);max-width:17em}
.page-hero__lead{grid-column:2;margin-top:0;max-width:30em;padding-bottom:.5em}
.page-hero__statement+.page-hero__lead{align-self:end}
/* the CEO's page: the company's English line in the display face, and the sentence that belongs to it directly under it.
   Sized so that each of the statement's two lines stays one line down to a 320px phone, and so that on a wide screen the block stays clear of the
   word cut above it: the room under that word shrinks in a short, wide window (25.5vh - 6.6vw - 61px is the size that still fits, measured) */
.page-hero__statement--en,.lang-en .page-hero__statement--en{grid-column:1/-1;font-family:var(--font-en);font-weight:800;font-stretch:112%;font-size:clamp(20px,6.5vw,44px);line-height:1.04;letter-spacing:-.03em;text-transform:uppercase;max-width:none}
.page-hero__lead--copy{grid-column:1/-1;font-family:var(--font-serif);font-weight:600;font-size:clamp(15px,4.2vw,19px);line-height:1.75;letter-spacing:.06em;color:var(--c-plaster);max-width:none;padding-bottom:0}
.lang-en .page-hero__lead--copy{letter-spacing:-.005em;line-height:1.4}
@media (min-width:901px){
  .page-hero__statement--en,.lang-en .page-hero__statement--en{font-size:clamp(30px,min(4.3vw,calc(25.5vh - 6.6vw - 61px)),76px)}
  .page-hero__lead--copy{font-size:clamp(15px,min(1.5vw,calc(8.7vh - 2.25vw - 21px)),26px)}
}
.page-hero--nostmt .page-hero__lead{grid-column:1;font-size:clamp(16px,1.35vw,19px);color:var(--c-plaster);max-width:34em}
.page-hero--plain .page-hero__title{grid-column:1;font-family:var(--font-serif);font-size:clamp(28px,3.5vw,54px);font-weight:600;letter-spacing:.04em;text-transform:none;line-height:1.4;color:var(--c-plaster)}
.page-hero--plain .page-hero__lead{grid-column:1;font-size:var(--fs-body);color:var(--c-plaster-68)}
/* the statement and the lead come in after the word is cut: set down, not faded up */
.js .page-hero__statement,.js .page-hero--plain .page-hero__title{-webkit-mask-image:linear-gradient(100deg,#000 49.2%,transparent 50.8%);mask-image:linear-gradient(100deg,#000 49.2%,transparent 50.8%);-webkit-mask-size:300% 100%;mask-size:300% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;animation:wipeIn 1.2s var(--ease-out) .75s both}
.js .page-hero__lead,.js .page-hero__label,.js .page-hero:not(.page-hero--plain) .page-hero__title{opacity:0;animation:phSet .9s var(--ease-out) 1.05s forwards}
.js .page-hero__label,.js .page-hero:not(.page-hero--plain) .page-hero__title{animation-delay:.15s}
@keyframes phSet{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.ph-cue{position:absolute;right:var(--pad);bottom:clamp(30px,3.4vw,48px);z-index:2;font-family:var(--font-en);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--c-plaster-68);display:flex;align-items:center;gap:14px;transition:opacity .5s}
.ph-cue i{display:block;width:1px;height:22px;background:linear-gradient(var(--c-plaster),transparent)}
.page-hero.is-left .ph-cue{opacity:0}
/* a ruled line at the foot of the face: the mason's datum, with the depth in millimetres */
.ph-datum{position:absolute;left:var(--pad);right:var(--pad);bottom:clamp(20px,2.6vw,36px);z-index:2}

/* S5. home: the hero and the carve are slabs too -------------------------------------------------- */
/* the hero's stage stays pinned a screen longer and the block of the carve comes over it; the same at the foot of the carve */
html.js:not(.no-webgl) .page-home .hero{height:330vh}
html.js:not(.no-webgl):not(.carve-static) .page-home .main>.carve{--tail:1;margin-top:-100vh;z-index:2;height:calc(var(--n,5) * 100vh + 100vh);clip-path:polygon(0 0,100% var(--skew),100% 100%,0 100%)}
html.js:not(.no-webgl):not(.carve-static) .page-home .main>.carve+.sec{margin-top:-100vh}
.page-home .main>.carve~.sec{z-index:3}                                    /* the carve block is raised over the hero; the slabs after it lie over the carve */
.hero__stage>.hero__canvas,.hero__stage>.hero__ui,.carve__stage>.carve__canvas{transform:translate3d(0,calc(var(--cover,0) * -4vh),0) scale(calc(1 - var(--cover,0) * .045));transform-origin:50% 100%}
.hero__ui{transform-origin:0 100%}

/* on a wide screen the hero's lines and the carve's texts stand on the same edge as the slabs below them */
@media (min-width:1441px){
  .hero__ui{padding-left:var(--pad);padding-right:var(--pad)}
  .hero__cue{right:var(--pad)}
  .carve__step{padding-left:var(--pad);padding-right:var(--pad)}
  .carve__hud{left:var(--pad)}
  .carve__done{right:calc(var(--pad) + 112px)}
}

/* S6. home 06: layers of work (class `layers`; `.strata` is the history list on the company page and must stay untouched). The kinds of work lie in the stone in layers; the layers shift against one another ------- */
.layers{position:relative;margin:var(--gap-l) 0 0;padding:clamp(10px,1.4vw,22px) 0;overflow:hidden;transform:rotate(calc(-1 * var(--edge,3deg)));transform-origin:50% 50%;width:108%;margin-left:-4%}
.layers__band{position:relative;display:flex;align-items:center;height:clamp(58px,7.6vw,116px);background:var(--bg,#111317);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 -1px 0 rgba(0,0,0,.6);overflow:hidden}
.layers__band:nth-child(5n+1){--bg:#14161a;--ink:rgba(239,237,232,.9)}
.layers__band:nth-child(5n+2){--bg:#0c0d10;--ink:rgba(239,237,232,.34)}
.layers__band:nth-child(5n+3){--bg:#1b1e23;--ink:rgba(239,237,232,.72)}
.layers__band:nth-child(5n+4){--bg:#0f1114;--ink:rgba(239,237,232,.26)}
.layers__band:nth-child(5n+5){--bg:#16181c;--ink:rgba(239,237,232,.56)}
.layers__band:nth-child(odd){height:clamp(48px,6.2vw,92px)}
.layers__line{display:flex;align-items:center;list-style:none;white-space:nowrap;will-change:transform;transform:translate3d(var(--sx,0px),0,0)}
.layers__line li{display:flex;align-items:center;gap:clamp(22px,3vw,48px);padding-right:clamp(22px,3vw,48px);font-family:var(--font-serif);font-weight:600;font-size:clamp(24px,3.5vw,54px);line-height:1;letter-spacing:.04em;color:var(--ink)}
.layers__band:nth-child(odd) .layers__line li{font-size:clamp(20px,2.7vw,42px)}
.lang-en .layers__line li{font-family:var(--font-en);font-weight:700;font-stretch:108%;letter-spacing:-.01em;text-transform:uppercase}
.layers__line li::after{content:"";width:.2em;height:.2em;background:var(--c-brass);transform:rotate(45deg);opacity:.8;flex:none}
/* the two faint layers are cut in, not painted: the stone's own colour with a lit lower edge */
.layers__band:nth-child(5n+2) .layers__line li,.layers__band:nth-child(5n+4) .layers__line li{color:#07080a;text-shadow:1px 1.5px 0 rgba(255,255,255,.12),-1px -1px 0 rgba(0,0,0,.8)}
.work-layers .shead{align-items:end}
.work-layers__foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px 40px;margin-top:var(--gap-l)}

/* S7. footer: the last plane ---------------------------------------------------------------------- */
.footer__title{font-size:clamp(28px,4.2vw,64px);max-width:14em}
.lang-en .footer__title{max-width:16em}

/* S8. small screens, reduced motion ------------------------------------------------------------------ */
@media (max-width:900px){
  .page-hero .container{grid-template-columns:1fr}
  .page-hero__lead,.page-hero__statement{grid-column:1}
  .ph-word{top:clamp(84px,13vh,140px)}
  .ph-cue{display:none}
}
@media (max-width:700px){
  .near{display:none}
  /* on a phone the word stands directly over the statement, as the head of one block at the foot of the face */
  .ph-word{position:relative;left:auto;top:auto;margin:0 var(--gutter) clamp(16px,5vw,26px);transform-origin:0 100%}
}
html.reduce-motion .ph-word b,html.reveal-all .ph-word b{opacity:1!important;animation:none!important}
html.reduce-motion .page-hero__statement,html.reduce-motion .page-hero__lead,html.reduce-motion .page-hero__label,html.reduce-motion .page-hero__title,html.reveal-all .page-hero__statement,html.reveal-all .page-hero__lead,html.reveal-all .page-hero__label,html.reveal-all .page-hero__title{opacity:1!important;animation:none!important;-webkit-mask-image:none!important;mask-image:none!important;transform:none!important}
@media (prefers-reduced-motion:reduce){
  .ph-word b,.page-hero__statement,.page-hero__lead,.page-hero__label,.page-hero__title{opacity:1!important;animation:none!important;-webkit-mask-image:none!important;mask-image:none!important}
  .near{display:none}
}
.page-hero__title.is-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ph-datum{height:9px;border-bottom:1px solid var(--line-dark);background:repeating-linear-gradient(90deg,rgba(239,237,232,.36) 0 1px,transparent 1px 100px) left bottom/100% 9px no-repeat,repeating-linear-gradient(90deg,var(--line-dark) 0 1px,transparent 1px 10px) left bottom/100% 4px no-repeat}
