/* Loop Space: the shell every page shares (tokens, type, buttons, header and drawer, sheets, reveals, closing, footer) */
:root{
  --paper:#F7F7F6; --ink:#141716; --stone:#5F655F; --line:#DCDDD8; --plate:#ECECE8;
  --forest:#0E2E22; --forest-2:#0A2119; --bone:#EDEFEA; --mist:#A9B5AC; --green:#157A45; --leaf:#9ED3B0;
  --font:'Archivo','IBM Plex Sans Arabic',system-ui,sans-serif;
  --mono:'Archivo','IBM Plex Sans Arabic',system-ui,sans-serif;   /* small labels use the text face, uppercase and tracked; no monospace on the site */
  --ease:cubic-bezier(.16,1,.3,1);
  --gutter:clamp(20px,4vw,56px); --max:1360px;
  --h2fs:clamp(28px,calc(4.6vw - 8px),58px);  /* section headline size; other parts align to its metrics */
}
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
h1,h2,h3{margin:0;font-weight:400;letter-spacing:-0.03em;line-height:1.02;text-wrap:balance;font-optical-sizing:auto}
/* tracking and leading follow size: display tight, small headings looser, body at zero */
h3{letter-spacing:-0.02em;line-height:1.15}
p{margin:0}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
/* 40px more air on each side on laptops and up; tablets and phones keep their gutter */
@media (min-width:1024px){ :root{--gutter:calc(clamp(20px,4vw,56px) + 40px)} }
.muted{color:var(--stone)}
.ph{color:var(--green);border-bottom:1px dashed var(--green)}
.forest .ph,.sheet.forest .ph{color:var(--leaf);border-color:var(--leaf)}
.btn{display:inline-flex;align-items:center;white-space:nowrap;height:48px;padding:0 22px;border-radius:999px;font:500 15px var(--font);transition:background .25s var(--ease),transform .2s var(--ease),border-color .25s;cursor:pointer}
.btn:active{transform:scale(.97);transition-duration:.1s;transition-timing-function:ease-out}
.btn-ink{background:var(--ink);color:var(--paper);border:1px solid var(--ink)} .btn-ink:hover{background:#2A2E2C}
.btn-paper{background:var(--paper);color:var(--ink);border:1px solid var(--paper)} .btn-paper:hover{background:#fff}
.btn-line{border:1px solid var(--line);color:var(--ink);background:transparent} .btn-line:hover{border-color:var(--ink)}
.btn-ghost{border:1px solid rgba(237,239,234,.45);color:var(--bone);background:transparent} .btn-ghost:hover{border-color:var(--bone)}

/* ---------- header ---------- */
header{position:fixed;inset:0 0 auto;z-index:20;color:var(--bone);transition:color .35s var(--ease),background-color .35s var(--ease),border-color .35s}
header .bar{height:68px;display:flex;align-items:center;justify-content:space-between;gap:24px}
header nav{display:flex;gap:4px;font-size:15px;font-weight:500}
@media (max-width:1040px){ header nav{gap:0;font-size:14px} header .nl{padding:0 10px} header .right{gap:8px} }
.nl{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color .2s var(--ease)}
.nl:hover,.nl[aria-expanded="true"]{background:rgba(237,239,234,.12)}
.roll{position:relative;display:block;overflow:hidden;line-height:20px;height:20px}
.roll>span{display:block;white-space:nowrap;transition:transform .32s cubic-bezier(0,0,.2,1)}
.roll>span+span{position:absolute;inset:0;transform:translateY(110%)}
.nl:hover .roll>span:first-child,.nl:focus-visible .roll>span:first-child{transform:translateY(-100%)}
.nl:hover .roll>span+span,.nl:focus-visible .roll>span+span{transform:none}
/* buttons roll their label the same way as the nav links (the label is wrapped by site.js) */
.btn .roll{height:1.25em;line-height:1.25em}
.btn:hover .roll>span:first-child,.btn:focus-visible .roll>span:first-child{transform:translateY(-100%)}
.btn:hover .roll>span+span,.btn:focus-visible .roll>span+span{transform:none}
.chev{width:12px;height:12px;transition:transform .35s var(--ease);opacity:.8}
.nl[aria-expanded="true"] .chev{transform:rotate(180deg)}
header .right{display:flex;gap:8px;align-items:center}
header .ar{font-family:'IBM Plex Sans Arabic',var(--font);font-size:15px;opacity:.78;padding:0 12px}
header .btn{height:42px;padding:0 18px}
header.on-paper{color:var(--ink);background:rgba(247,247,246,.72);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-bottom:1px solid transparent}
/* a scroll edge, not a hard rule: the material fades into the page where content passes under it */
/* the paper fade under the frosted bar. It may only show when the bar is paper over a light page.
   Switching it OFF is always instant (hero coming back, a dark band, the drawer); only switching it ON waits, so it returns after the drawer has closed.
   A delayed fade-out is what left a light streak over the dark hero and bands when scrolling fast. */
header::after{content:"";position:absolute;left:0;right:0;top:100%;height:18px;pointer-events:none;background:linear-gradient(rgba(247,247,246,.55),rgba(247,247,246,0));opacity:0;transition:none}
header.on-paper:not(.over-dark):not(.open):not(.closing)::after{opacity:1;transition:opacity .35s var(--ease) .38s}
/* while the drawer is open the fade strip is removed, not just hidden: an invisible strip hanging below a box that is changing height left stale paint (a ghost band) in Chrome */
header.open::after,header.closing::after{display:none}
header.on-paper .btn-paper,header.open .btn-paper{background:var(--ink);color:var(--paper);border-color:var(--ink)}
header.on-paper .nl:hover,header.on-paper .nl[aria-expanded="true"],header.open .nl:hover,header.open .nl[aria-expanded="true"]{background:rgba(20,23,22,.06)}
header.open{color:var(--ink);background:var(--paper);backdrop-filter:none;border-bottom:1px solid var(--line)}
.menu-btn{display:none}

/* products drawer */
.drawer{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s var(--ease)}
header.open .drawer{grid-template-rows:1fr}
.drawer>div{overflow:hidden;min-height:0}
.dgrid{display:grid;grid-template-columns:300px 1fr 400px;gap:48px;padding:28px 0 40px;border-top:1px solid var(--line)}
/* narrower desktops: the note column was squeezed to a word per line; products and the note stack on the left, the picture keeps the right */
@media (max-width:1180px){
  .dgrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:40px;row-gap:28px}
  .dgrid>div:first-child{grid-column:1;grid-row:1}
  .dgrid .dnote{grid-column:1;grid-row:2;padding-top:24px;border-top:1px solid var(--line)}
  .dgrid .dfeat{grid-column:2;grid-row:1 / span 2;align-self:start}
}
.dlabel{font-size:13px;color:var(--stone);margin-bottom:18px}
.ditems{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:22px}
.ditem{display:block}
.ditem b{display:flex;align-items:center;gap:12px;font-weight:400;font-size:26px;letter-spacing:-0.022em;line-height:1.15;transition:opacity .15s var(--ease)}
.ditem.dim b{color:#7B817B} .ditem.dim small{color:#8E938E}
.ditem .soon{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:rgba(20,23,22,.06);color:var(--stone);font-size:12px;font-weight:500;letter-spacing:0;white-space:nowrap}
.ditem .plat{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:rgba(21,122,69,.1);color:var(--green);font-size:12px;font-weight:500;letter-spacing:0;white-space:nowrap}
.ditem .plat+.plat{margin-left:-6px}
.ditem .dlogo{width:28px;height:28px;flex:none;display:block;margin-right:-2px}
.ditem small{display:block;font-size:13px;color:var(--stone);margin-top:4px}
.ditem:not(.off):hover b,.ditem:not(.off):focus-visible b{opacity:.5}
.ditem.off{cursor:default;user-select:none}
.dnote p{font-size:16px;line-height:1.5;color:var(--stone);max-width:34ch}
.dnote a{display:inline-flex;align-items:center;gap:8px;margin-top:16px;font-size:15px;font-weight:500}
.dnote a svg,.dfeat .cap svg{width:14px;height:14px;transition:transform .3s var(--ease)}
.dnote a:hover svg,.dfeat:hover .cap svg{transform:translateX(3px)}
.dfeat{display:block}
.dfeat .pic{display:block;position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--plate)}
.dfeat .pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.04);transition:opacity .5s var(--ease),transform .9s var(--ease)}
.dfeat .pic img.on{opacity:1;transform:none}
.dfeat .cap{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:15px}
/* items drop in each time the drawer opens */
.drawer [data-di]{opacity:0;transform:translateY(-8px)}
header.open .drawer [data-di]{opacity:1;transform:none;transition:opacity .5s var(--ease),transform .6s var(--ease);transition-delay:calc(var(--i,0) * 60ms + 80ms)}
/* a plain dim behind the open drawer. No backdrop blur: Chrome leaves the strip under the header edge unblurred, which showed the page (or a ghost of the header) through it */
.nav-scrim{position:fixed;inset:0;z-index:19;background:rgba(20,23,22,.3);opacity:0;pointer-events:none;transition:opacity .35s var(--ease);will-change:opacity;transform:translateZ(0)}
.nav-scrim.on{opacity:1}

/* mobile sheet */
.sheet-nav{display:none}

.mono,[class*="num"],time{font-variant-numeric:tabular-nums}
.logo{display:inline-flex;align-items:center;line-height:0}
.logo .lk{display:block;height:8.75px;width:auto}   /* the one-line wordmark in the header, drawn in the header's own colour; the footer keeps the two-line mark */
header .logo{color:var(--bone)}
header.on-paper .logo,header.open .logo{color:var(--ink)}

.foot-logo .lk{width:121px;height:auto;display:block}   /* the same wordmark, at the same size, as the header */


.l{display:block;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
.l>span{display:block;transform:translateY(112%);opacity:0;transition:transform 1.2s var(--ease),opacity 1s var(--ease);transition-delay:var(--d,0s)}
.in .l>span,.in.l>span{transform:none;opacity:1}

/* ---------- sheets ---------- */
.sheet{position:relative;background:var(--paper);border-radius:28px 28px 0 0;margin-top:-28px;padding:clamp(88px,10vw,140px) 0 clamp(72px,8vw,120px)}
.sheet.forest{background:var(--forest);color:var(--bone)}
.sheet.forest .muted{color:var(--mist)}
.sheet.forest .line{border-color:rgba(237,239,234,.16)}
.z1{z-index:1}.z2{z-index:2}.z3{z-index:3}.z4{z-index:4}.z5{z-index:5}.z6{z-index:6}.z7{z-index:7}.z8{z-index:8}
.kicker{font-size:15px;color:var(--stone);margin-bottom:18px}
h2.t{font-size:var(--h2fs);max-width:14ch}
.lead{font-size:clamp(18px,1.5vw,22px);line-height:1.45;color:var(--stone);max-width:40ch}
.rv .l:nth-child(2)>span{--d:.07s}.rv .l:nth-child(3)>span{--d:.14s}.rv .l:nth-child(4)>span{--d:.21s}.rv .l:nth-child(5)>span{--d:.28s}
.mo [data-m]:not(.shown){opacity:0}
.mo [data-m="media"]:not(.shown){opacity:1;clip-path:inset(18% 0 0 0)}
.img{position:relative;overflow:hidden;border-radius:16px;background:var(--plate)}

.close{position:relative;min-height:clamp(440px,58vh,600px);display:flex;align-items:center;justify-content:center;text-align:center;color:var(--bone);overflow:hidden;background:var(--ink)}
.close .bg{position:absolute;inset:0}
.close .bg img{width:100%;height:100%;object-fit:cover;transform:scale(1.08);transition:transform 2.4s var(--ease)}
.close .bg img[src*="mesh"]{object-position:72% 50%} @media (max-width:820px){ .close .bg img[src*="mesh"]{object-position:96% 50%} } /* the gradient's dark side behind the words when the banner is narrow */
.close.in .bg img{transform:none}
.close .bg::after{content:"";position:absolute;inset:0;background:radial-gradient(46% 64% at 50% 52%,rgba(14,19,20,.78),rgba(14,19,20,.5) 55%,rgba(14,19,20,.1))}
.close .in{position:relative;display:flex;flex-direction:column;align-items:center;gap:20px;padding:88px var(--gutter)}
.close h2{font-size:clamp(34px,4.4vw,60px);max-width:18ch}
.close p{font-size:clamp(17px,1.4vw,20px);color:rgba(237,239,234,.8)}
.close .note{right:auto;left:var(--gutter);top:24px;bottom:auto}

/* the footer is dark on every page: off-white type on a near-black green, hairlines in the same off-white, dim */
/* its ground is pure black, top to bottom */
footer{--foot:#000;
  background:#000;
  padding:56px 0 48px;font-size:14px;color:rgba(237,239,234,.62)}
.foot{display:grid;grid-template-columns:4fr 2fr 2fr 2fr 2fr;gap:32px}
/* between the stacked footer and the 12-column one the last column is too narrow for "Prefer to write or call?": it takes a little more, on the 24px gap of the wide grid */
@media (min-width:821px) and (max-width:1000px){ .foot{grid-template-columns:4fr 2fr 2fr 2fr 2.5fr;column-gap:24px} }
.foot h4,.foot .foot-logo{font-size:13px;font-weight:500;line-height:1.5}
.foot h4{margin:0 0 12px;color:var(--bone)}
.foot a,.foot span{display:block;margin-bottom:8px;transition:color .2s} .foot a:hover,.legal a:hover{color:var(--bone)}
/* the wordmark stands on the headings' first line: its link has their type and line height, so it shares their baseline, and the mark
   (bottom on that baseline) moves down by its height less the font's cap height (1cap), which puts its top on the headings' cap line
   in whatever font draws them (Archivo, IBM Plex Sans Arabic or a fallback). The -2px leaves the headings' 12px below that line, so the
   tagline starts on the first row of links */
.foot .foot-logo{color:var(--bone);margin-bottom:-2px}
.foot .foot-logo .lk{display:inline-block;vertical-align:baseline;translate:0 calc(100% - 1cap)}
footer .ph{color:var(--leaf);border-color:var(--leaf)}
/* footer links: a small arrow slides in on the right on hover (an outward arrow for mail and other sites) */
.foot a:not(.foot-logo)::after,.legal a::after{content:"";display:inline-block;width:.86em;height:.86em;margin-left:.4em;vertical-align:-.06em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;opacity:0;transform:translateX(-4px);transition:opacity .2s cubic-bezier(.2,0,0,1),transform .28s cubic-bezier(.2,0,0,1)}
.foot a[href^="mailto:"]::after,.foot a[href^="http"]::after,.legal a[href^="http"]::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5l7-7M6 4.5h5.5V10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5l7-7M6 4.5h5.5V10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");transform:translate(-3px,3px)}
.foot a:not(.foot-logo):is(:hover,:focus-visible)::after,.legal a:is(:hover,:focus-visible)::after{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){ .foot a::after,.legal a::after{transition:opacity .2s} }
.legal{margin-top:40px;padding-top:20px;border-top:1px solid rgba(237,239,234,.1);display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}

@media (prefers-reduced-motion:reduce){
  .l>span{transform:none;opacity:1;transition:none}
  .img img{transform:none;transition:none} .close .bg img{transform:none} .drawer,.drawer [data-di],.sheet-nav,.sheet-nav [data-di],.roll>span,.chev{transition:none !important}
}
@media (max-width:820px){
  .logo .lk{height:7.5px}
  .foot-logo .lk{width:112px;height:auto}
  header .bar{height:60px} header nav,.drawer{display:none} header .ar{padding:0 6px} header .btn{height:38px;padding:0 14px;font-size:14px}
  .menu-btn{display:inline-flex}
  header .right .btn{display:none}
  .sheet-nav{display:block;position:fixed;inset:60px 0 0;background:var(--paper);color:var(--ink);overflow:auto;padding:24px var(--gutter) 40px;clip-path:inset(0 0 100% 0);transition:clip-path .5s var(--ease);visibility:hidden}
  header.open .sheet-nav{clip-path:inset(0);visibility:visible}
  .sheet-nav .dlabel{margin:8px 0 14px}
  .sheet-nav .ditems{gap:18px;padding-bottom:28px;border-bottom:1px solid var(--line)}
  .sheet-nav .links{display:flex;flex-direction:column;padding:12px 0 28px}
  .sheet-nav .links a{font-size:24px;letter-spacing:-0.02em;padding:12px 0;border-bottom:1px solid var(--line)}
  .sheet-nav [data-di]{opacity:0;transform:translateY(-8px)}
  header.open .sheet-nav [data-di]{opacity:1;transform:none;transition:opacity .5s var(--ease),transform .6s var(--ease);transition-delay:calc(var(--i,0) * 50ms + 120ms)}
  .sheet{border-radius:20px 20px 0 0;margin-top:-20px}
  .close{min-height:420px} .close .in{padding:64px var(--gutter)}
  .foot{grid-template-columns:1fr 1fr}
}

/* closing banner on narrow screens: a wider scrim, so the gradient's light band never sits behind the words */
@media (max-width:820px){ .close .bg::after{background:radial-gradient(85% 62% at 50% 45%,rgba(14,19,20,.82),rgba(14,19,20,.6) 60%,rgba(14,19,20,.22))} }

/* materials: the header is a translucent layer over the page; make it solid when asked to */
@media (prefers-reduced-transparency:reduce){ header.on-paper{background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom-color:var(--line)} header::after{display:none} .nav-scrim{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(20,23,22,.4)} }
@media (prefers-contrast:more){ header.on-paper{background:var(--paper);border-bottom-color:var(--ink)} header::after{display:none} }

/* home: the hero is a curtain the next section slides over (assets/curtain.js) */
html.curtain .hero{position:sticky;top:0;z-index:0}

/* Page change, measured from the reference recording at 120fps. The next page is uncovered by an edge that rises
   from the bottom, while its content travels only the last 18% (parallax), so the page seems to arrive from below.
   The current page drifts up 8% and darkens to 45%. One ease-out for all of it, fitted to the recording:
   fast off the mark, slowing all the way in, cubic-bezier(.3,.5,.15,1). The new header shows only as it lands.
   Back plays the reverse. Browsers without cross-document view transitions just change page. */
@view-transition{navigation:auto}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}
:root{--pt-dur:.85s;--pt-ease:cubic-bezier(.3,.5,.15,1)}
::view-transition-group(root){animation-duration:var(--pt-dur)}
::view-transition-old(root),::view-transition-new(root){mix-blend-mode:normal;animation-duration:var(--pt-dur);animation-timing-function:var(--pt-ease);animation-fill-mode:both}
::view-transition-old(root){animation-name:pt-back}
::view-transition-new(root){animation-name:pt-rise}
html:active-view-transition-type(back)::view-transition-old(root){z-index:2;animation-name:pt-drop}
html:active-view-transition-type(back)::view-transition-new(root){z-index:1;animation-name:pt-front}
/* the header holds still above both pages: it never moves, and where the two headers differ (a hover, a dark band) they cross-fade */
::view-transition-group(pt-hdr){animation:none}
header.pt-still,header.pt-still *,header.pt-still::after{transition:none!important}
::view-transition-old(pt-hdr),::view-transition-new(pt-hdr){animation-duration:.3s;animation-timing-function:cubic-bezier(.4,0,.2,1)}
/* a snapshot cannot carry the frosted blur, so for the length of the slide the bar is the solid colour it already looks like:
   paper over a light page, the same grey it shows over a dark band */
header.pt-on.on-paper{background:var(--paper)}
header.pt-on.on-paper.over-dark{background:rgb(181,182,180)}
header.pt-on::after{opacity:0!important;transition:none!important}
@keyframes pt-rise{from{clip-path:inset(82% 0 0 0);transform:translateY(18%)}to{clip-path:inset(0 0 0 0);transform:none}}
@keyframes pt-back{from{transform:none;filter:brightness(1)}to{transform:translateY(-8%);filter:brightness(.45)}}
@keyframes pt-drop{from{clip-path:inset(0 0 0 0);transform:none}to{clip-path:inset(82% 0 0 0);transform:translateY(18%)}}
@keyframes pt-front{from{transform:translateY(-8%);filter:brightness(.45)}to{transform:none;filter:brightness(1)}}
@keyframes pt-hdr{from{opacity:0}to{opacity:1}}
