/* SMARTIFY: shared tokens, header and menu, then the home page. Black and white, Inter, no accent colour. */
@font-face{font-family:Inter;font-weight:300;font-style:normal;font-display:swap;src:url(../fonts/inter-latin-300.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:400;font-style:normal;font-display:swap;src:url(../fonts/inter-latin-400.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:500;font-style:normal;font-display:swap;src:url(../fonts/inter-latin-500.woff2) format("woff2")}
:root{
  --ground:#fff;--panel:#f5f5f5;--ink:#171717;--ink-soft:#404040;--grey:#737373;--line:#e5e5e5;--line-btn:#d4d4d4;
  --ease:cubic-bezier(.77,0,.18,1);--out:cubic-bezier(.16,1,.3,1);
  --pad:clamp(18px,2.8vw,40px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--ground);-webkit-text-size-adjust:100%}
body{color:var(--ink);font:300 15px/1.5 Inter,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
::selection{background:var(--ink);color:#fff}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* header */
.top{position:fixed;inset:0 0 auto 0;height:76px;padding:0 var(--pad);display:flex;align-items:center;gap:28px;z-index:70;background:rgba(255,255,255,.92)}
.logo{display:block;width:118px;height:27px;background:var(--ink);-webkit-mask:url(../img/smartify.png) left center/contain no-repeat;mask:url(../img/smartify.png) left center/contain no-repeat}
.top nav{margin-left:auto;display:flex;align-items:center;gap:26px;font-size:14px;font-weight:400}
.ul{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:6px;transition:text-decoration-color .3s}
.ul:hover,.ul:focus-visible{text-decoration-color:currentColor}
.pill{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 20px;border-radius:999px;font-weight:500;font-size:14px;white-space:nowrap}
.pill.ink{background:var(--ink);color:#fff}
.pill.out{border:1px solid var(--line-btn);background:#fff}

/* mobile menu */
.mbtn{display:none;align-items:center;gap:10px;height:36px;padding:0 6px 0 14px;border:1px solid var(--line-btn);border-radius:999px;font-size:13px;font-weight:500}
.mbtn i{position:relative;width:22px;height:22px;border-radius:50%;background:var(--ink)}
.mbtn i::before,.mbtn i::after{content:"";position:absolute;left:6px;right:6px;height:1.5px;background:#fff}
.mbtn i::before{top:8px}.mbtn i::after{top:12.5px}
.menu-open .mbtn i::before{transform:translateY(2.25px) rotate(45deg)}
.menu-open .mbtn i::after{transform:translateY(-2.25px) rotate(-45deg)}
.mmenu{position:fixed;inset:0;z-index:69;background:#fff;display:none;flex-direction:column;padding:96px 20px 28px}
.menu-open .mmenu{display:flex}
.menu-open{overflow:hidden}
.mmenu nav{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.mmenu nav a{display:flex;align-items:baseline;gap:14px;padding:18px 0;border-bottom:1px solid var(--line);font-size:34px;letter-spacing:-.025em}
.mmenu nav a small{font-size:11px;letter-spacing:.14em;color:var(--grey);font-weight:500;width:22px}
.mfoot{margin-top:auto;display:grid;gap:10px;font-size:15px;color:var(--ink-soft)}
.mfoot span{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--grey);margin-top:6px}

/* the 3D layer: fixed to the screen, above the section backgrounds, below the text. Its size is set in pixels by the script. */
#h3d{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:5;pointer-events:none;display:block}
.no3d #h3d{display:none}

/* hero */
.hfirst{position:relative;height:100vh;height:100svh;min-height:560px;padding:76px var(--pad) 0;display:flex;flex-direction:column;overflow:hidden;background:#fff}
.hftiles i{position:absolute;width:40px;height:40px;background:url(../img/mark.svg) center/100% 100%;opacity:.12}
.hfmid{position:relative;z-index:6;margin:auto 0;padding-bottom:4vh}
.hfmark{width:min(82%,1300px);aspect-ratio:118/27;opacity:1;background:var(--ink);-webkit-mask:url(../img/smartify.png) left center/contain no-repeat;mask:url(../img/smartify.png) left center/contain no-repeat}
/* the plain logo shows first; the particle logo replaces it once the 3D script has drawn it */
.h3d .hfmark{opacity:0}.no3d .hfmark{opacity:1}
.hfline{font-size:clamp(24px,3vw,48px);letter-spacing:-.025em;line-height:1.1;margin-top:clamp(20px,4vh,44px);font-weight:300}
.hbtns{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}
.hfpill{position:relative;z-index:6;list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,2vw,28px);padding-bottom:34px}
.hfpill li{border-top:1px solid var(--ink);padding-top:12px;font-size:clamp(15px,1.3vw,19px)}
.hfpill small{display:block;font-size:11px;letter-spacing:.14em;color:var(--grey);margin-bottom:4px}
.hfhint{position:absolute;right:var(--pad);top:50%;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--grey);writing-mode:vertical-rl}

/* build sections */
.hs{position:relative;height:100vh;min-height:640px;overflow:hidden;padding:0 clamp(24px,6vw,110px);display:flex;align-items:center;background:#fff}
.hs:nth-of-type(odd){background:#f5f5f5}
.hsnum{position:absolute;bottom:-.114em;font-size:clamp(160px,26vw,480px);line-height:0;color:#ececec}
.hsnum svg{display:block;height:.747em;width:auto}
.hs:nth-of-type(odd) .hsnum{color:#e9e9e9}
.hs-l .hsnum{left:3vw}.hs-r .hsnum{right:3vw}.hs-c .hsnum{left:50%;margin-left:-.6em}
.hstext{position:relative;z-index:6;width:min(500px,40vw)}
.hs-l .hstext{margin-left:auto}
.hs-c{align-items:flex-start;justify-content:center;text-align:center}
.hs-c .hstext{margin-top:15vh;width:min(760px,86vw)}
.hs-c .hscopy{margin-left:auto;margin-right:auto}
.hs-c ul{display:none}
.hseye{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--grey);font-weight:500}
.hstext h2{font-weight:300;font-size:clamp(32px,3.9vw,64px);letter-spacing:-.035em;line-height:1.02;margin:16px 0 20px}
.hscopy{font-size:clamp(15px,1.15vw,18px);line-height:1.6;color:var(--ink-soft);max-width:46ch}
.hstext ul{list-style:none;margin-top:30px;border-bottom:1px solid var(--line)}
.hstext li{display:flex;gap:16px;align-items:baseline;border-top:1px solid var(--line);padding:13px 0;font-size:15px}
.hstext li small{font-size:11px;letter-spacing:.14em;color:var(--grey);width:22px}

/* closing section: black, above the 3D layer */
.hend{position:relative;z-index:6;min-height:100vh;display:flex;flex-direction:column;background:#0a0a0a;color:#fff;--ink:#fff;--ink-soft:rgba(255,255,255,.7);--grey:rgba(255,255,255,.5);--line:rgba(255,255,255,.18);padding:120px var(--pad) 0;overflow:hidden}
.hetiles i{position:absolute;width:40px;height:40px;background:url(../img/mark-w.svg) center/100% 100%;opacity:.12}
.heyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--grey);font-weight:500}
.hend h2{position:relative;font-weight:300;font-size:clamp(56px,min(9vw,17vh),170px);letter-spacing:-.05em;line-height:.92;margin-top:22px}
.herow{position:relative;display:grid;grid-template-columns:1fr auto;gap:40px;align-items:end;margin-top:clamp(28px,5vh,56px)}
.hend .lead{font-size:clamp(16px,1.3vw,19px);color:var(--ink-soft);max-width:52ch;line-height:1.55}
.hecta{display:flex;flex-direction:column;align-items:flex-end;gap:14px;font-size:14px;color:var(--ink-soft)}
.hebig{height:68px;padding:0 34px;font-size:19px;background:#fff;color:#0a0a0a;gap:14px}
.hebig svg{width:24px;height:12px;stroke:#0a0a0a;fill:none;stroke-width:1.3}
.hlinks{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,2vw,28px);margin:auto 0 40px;padding-top:6vh}
.hl{display:block;border-top:1px solid var(--line);padding-top:14px;color:var(--ink);transition:border-color .3s}
.hl:hover,.hl:focus-visible{border-top-color:var(--ink)}
.hl small{font-size:11px;letter-spacing:.14em;color:var(--grey)}
.hl b{display:flex;align-items:center;gap:12px;font-weight:300;font-size:clamp(22px,2.2vw,34px);letter-spacing:-.02em;margin-top:6px}
.hl b svg{width:22px;height:12px;stroke:var(--ink);fill:none;stroke-width:1.2}
.hl span{display:block;font-size:13px;color:var(--grey);margin-top:6px;line-height:1.45}
.htick{margin:0 calc(var(--pad) * -1);padding:11px var(--pad);border-top:1px solid var(--line);font-size:11px;letter-spacing:.22em;color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:clip}
.htick span{padding-right:3em}
.hefoot{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0 26px;font-size:13px;color:var(--grey);border-top:1px solid var(--line)}
.hefoot .logo{background:#fff;width:96px}

/* tablets: the device sits above and the text below, as on phones, with larger type */
@media (min-width:768px) and (max-width:1099px){
  .hs{align-items:flex-end;padding:0 var(--pad) 6vh}
  .hstext,.hs-c .hstext{width:min(600px,100%);margin:0;text-align:left}
  .hs-c{align-items:flex-end;justify-content:flex-start}.hs-c .hscopy{margin-left:0}.hs-c ul{display:block}
  .hstext h2{font-size:clamp(34px,5vw,48px);margin:12px 0 14px}.hscopy{font-size:16px}
  .hstext ul{margin-top:20px}.hstext li{padding:10px 0}
  .hsnum{font-size:32vw;top:calc(86px + .027em);bottom:auto;left:auto!important;right:24px!important;margin:0!important}
  .hftiles,.hetiles{display:none}
  .herow{grid-template-columns:1fr}.hecta{align-items:flex-start}
}
@media (max-width:767px){
  .top{height:60px}.top nav{gap:10px;font-size:13px}.top .nprod,.top .nabout,.top .pill.ink{display:none}.logo{width:90px}
  .mbtn{display:inline-flex}
  .hfmark{width:100%}.hfirst{padding:60px 20px 0}
  .hfpill{grid-template-columns:1fr;gap:0;padding-bottom:22px}.hfpill li{padding:9px 0;display:flex;gap:12px;align-items:baseline;border-top-color:var(--line)}.hfpill small{margin:0}
  .hfhint{display:none}.hfline{font-size:26px}.hftiles i:nth-child(n+4){display:none}
  .hs{align-items:flex-end;padding:0 20px 5vh}
  .hstext,.hs-c .hstext{width:auto;margin:0;text-align:left}.hs-c{align-items:flex-end}
  .hstext h2{font-size:30px;margin:10px 0 12px}.hscopy{font-size:14.5px}
  .hstext ul{margin-top:16px}.hstext li{padding:9px 0;font-size:14px}.hs-c ul{display:block}
  .hsnum{font-size:44vw;top:calc(70px + .027em);bottom:auto;left:auto!important;right:14px!important;margin:0!important}
  .hend{padding-top:110px}.herow{grid-template-columns:1fr}.hecta{align-items:flex-start}.hebig{height:58px;font-size:17px;width:100%;justify-content:space-between}
  .hlinks{grid-template-columns:1fr;gap:0}.hl{padding:12px 0}.hl b{font-size:22px}
  .hefoot{flex-direction:column;align-items:flex-start;gap:8px}.hefoot span:last-child{display:none}
  /* phones: solid header so text never shows through it, no decorative tiles over the text, Blog lives in the menu */
  .top{background:#fff}.hftiles,.hetiles{display:none}.top .nblog{display:none}
}

/* links from each stage to its service page */
.hsmore{margin-top:18px;font-size:14px;font-weight:500}
h1.hfline{font-weight:300}
