/* Elevetis: one stylesheet for every page.
   Fonts: Fraunces (display) and Geist (text), self-hosted in assets/fonts under the SIL Open Font License.
   No JavaScript anywhere on the site. All motion is in the last section and is optional. */

/* ---------- Shared base: reset, accessibility, layout helpers ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0}
h1,h2,h3,p,ul{margin:0}
ul{padding:0;list-style:none}
svg{display:block}
a{color:inherit}

/* Skip link: off-screen until it receives keyboard focus */
.skip{position:absolute;left:1rem;top:-5rem;z-index:10;padding:.75rem 1rem;
  background:var(--ink);color:var(--bg);font-weight:600;text-decoration:none}
.skip:focus{top:1rem}

/* One visible focus style for every interactive element */
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}

/* Keeps "E-commerce" on one line without a special hyphen character
   (U+2011 is missing from the subset fonts and would fall back to another font) */
.nw{white-space:nowrap}

/* Page gutters respect the iPhone notch in landscape */
.wrap{max-width:var(--max);margin-inline:auto;
  padding-left:max(var(--gutter),env(safe-area-inset-left));
  padding-right:max(var(--gutter),env(safe-area-inset-right))}

.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{display:inline-flex;align-items:center;gap:.625rem;min-height:2.75rem;text-decoration:none}
.contact{display:inline-flex;align-items:center;min-height:2.75rem}

/* Buttons are links (mailto), so they work with JavaScript off.
   The transparent border becomes visible in Windows high-contrast mode. */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:3rem;
  text-decoration:none;border:1px solid transparent}

.foot-links{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem}
.foot-links a{display:inline-flex;align-items:center;min-height:2.75rem}

/* ---------- Design: "Elevation" ----------
   Paper, ink and one cobalt. A light display serif for everything that speaks,
   a precise sans for everything that explains. All motion is CSS; none of it is
   needed to read the page, and all of it switches off for reduced motion. */

@font-face{font-family:"Fraunces";src:url(fonts/fraunces-display.woff2) format("woff2");
  font-weight:300 400;font-display:swap}
@font-face{font-family:"Geist";src:url(fonts/geist-400-600.woff2) format("woff2");
  font-weight:400 600;font-display:swap}

:root{
  color-scheme:light dark;
  --bg:#F6F5F1; --ink:#0D1730; --muted:#50586D; --line:#DAD8D1; --line-strong:#B9B7AF;
  --cobalt:#2236D8;                    /* the single accent */
  --link:#2236D8; --mark:#2236D8; --focus:#2236D8;
  --on-plate:#FFFFFF; --on-plate-soft:#DCE1FF;
  --serif:"Fraunces","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --sans:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;
  --gutter:clamp(1.5rem,5vw,3.5rem);   /* text margin from the screen edge */
  --frame:clamp(.5rem,1.4vw,1.125rem); /* paper margin around the cobalt plates */
  --max:78rem;
  --space:clamp(5rem,12vw,9.5rem);
  --ease:cubic-bezier(.16,1,.3,1);
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#0A0F1E; --ink:#EEEFF3; --muted:#A4ABBD; --line:#232B43; --line-strong:#3A4463;
    --link:#A9C1FF; --mark:#7C95FF; --focus:#A9C1FF;
  }
}

/* Soft page-to-page transition in browsers that support it; a normal page load elsewhere */
@view-transition{navigation:auto}

html{scroll-padding-top:5.5rem}
body{background:var(--bg);color:var(--ink);font:400 1.0625rem/1.6 var(--sans)}
::selection{background:var(--cobalt);color:#FFFFFF}
a{text-decoration-thickness:1px;text-underline-offset:.26em}
p{text-wrap:pretty}

/* ---------- Header: stays at the top, lightly frosted ---------- */
.site-header{position:sticky;top:0;z-index:5;padding-block:.625rem;
  background:var(--bg);                                   /* fallback */
  background:color-mix(in srgb,var(--bg) 82%,transparent);
  -webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);
  border-bottom:1px solid transparent}
.brand-mark{width:1.75rem;height:1.75rem}
.brand-mark .top{fill:var(--mark)}
.brand-name{font:400 1.5rem/1 var(--serif);letter-spacing:.004em}
.site-nav ul{display:flex;align-items:center;gap:1.75rem}
.site-nav a{display:inline-flex;align-items:center;min-height:2.5rem;font-size:.9375rem;font-weight:500;text-decoration:none}
.site-nav a:hover{text-decoration:underline}
.nav-wide{display:none}
.nav-cta{padding-inline:1.05rem;border:1px solid var(--line-strong);border-radius:999px;transition:border-color .2s,background-color .2s,color .2s}
.site-nav .nav-cta:hover{background:var(--ink);border-color:var(--ink);color:var(--bg);text-decoration:none}
@media (min-width:48rem){.nav-wide{display:block}}

/* ---------- Plates: one field of cobalt inside a paper margin ---------- */
.plate{color:var(--on-plate);border-radius:4px;
  /* faint paper grain, so the colour reads as ink rather than a flat screen fill */
  background:var(--cobalt) url(grain.svg);
  background-blend-mode:soft-light;
  margin-left:max(var(--frame),env(safe-area-inset-left));
  margin-right:max(var(--frame),env(safe-area-inset-right))}
.plate .wrap{max-width:calc(var(--max) - 2*var(--frame));
  padding-left:calc(var(--gutter) - var(--frame));padding-right:calc(var(--gutter) - var(--frame))}
.plate :focus-visible{outline-color:#FFFFFF}

/* ---------- Hero ---------- */
.hero-grid{display:grid;gap:2.25rem;padding-block:clamp(2.25rem,6vw,4.5rem) clamp(2rem,5vw,3.5rem)}
h1,.display{font:300 clamp(2.75rem,6.7vw,5.875rem)/1 var(--serif);letter-spacing:-.024em;text-wrap:balance}
h1{max-width:13.5ch}
.lead{max-width:31rem;font-size:clamp(1.125rem,1.5vw,1.25rem);line-height:1.5}
.actions{margin-top:1.75rem}
.btn{padding:.8rem 1.7rem;border-radius:999px;background:#F6F5F1;color:#0D1730;
  font:500 1rem/1.2 var(--sans);transition:background-color .2s,color .2s}
.btn:hover{background:#0D1730;color:#FFFFFF}
.fine{margin-top:1rem;max-width:26rem;font-size:.9375rem;line-height:1.5;color:var(--on-plate-soft)}
.hero-art{max-width:25rem}
@media (min-width:62rem){
  /* fills the first screen: headline top left, details bottom left, drawing bottom right */
  .hero{display:flex;min-height:min(calc(100vh - 6rem),48rem);min-height:min(calc(100svh - 4.75rem - var(--frame)),48rem)}
  .hero-grid{flex:1;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:1fr auto;column-gap:3rem;row-gap:2.5rem}
  h1{grid-column:1;grid-row:1}
  .hero-foot{grid-column:1;grid-row:2}
  .hero-art{grid-column:2;grid-row:1/3;align-self:end;justify-self:end;width:100%;max-width:27rem}
}

/* The drawing: five levels in axonometric view. Its outline is the hexagon of the logo. */
.stack{display:block;width:100%;height:auto;overflow:visible}
.stack path{vector-effect:non-scaling-stroke;stroke-linejoin:round}
.stack .face{fill:#3345DB;stroke:#FFFFFF;stroke-width:1}
.stack .side-l{fill:#2B3EDA;stroke:#FFFFFF;stroke-width:1}
.stack .side-r{fill:#1D30C8;stroke:#FFFFFF;stroke-width:1}
/* lower levels sit a little deeper in the colour */
.stack .p1 .face{fill:#2539D8}.stack .p2 .face{fill:#2C3FD9}.stack .p4 .face{fill:#3B4CDD}
.stack .is-top .face{fill:#FFFFFF}
.stack .is-top .side-l{fill:#DCE1FF}
.stack .is-top .side-r{fill:#B9C2F7}
.stack .guides path{fill:none;stroke:rgba(255,255,255,.6);stroke-width:1;stroke-dasharray:2 4}
.stack .leaders path{fill:none;stroke:rgba(255,255,255,.75);stroke-width:1}
.stack text{font:500 13.5px var(--sans);fill:#FFFFFF}

/* ---------- Sections ---------- */
.band{padding-top:var(--space)}
h2{font:300 clamp(2.125rem,4.4vw,3.5rem)/1.04 var(--serif);letter-spacing:-.022em;text-wrap:balance}
.band h2{max-width:13ch;margin-bottom:2.25rem}
.aside{max-width:22rem;margin:-1rem 0 2.25rem;color:var(--muted)}
@media (min-width:62rem){
  .split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(2rem,6vw,6rem)}
  /* the heading stays in view while its section scrolls past */
  .split>:first-child{position:sticky;top:6.5rem;align-self:start}
  .band h2{margin-bottom:0}
  .aside{margin:1.25rem 0 0}
}

/* Services: each row carries a small mark showing its level in the drawing above */
.services li{position:relative;display:grid;grid-template-columns:1.75rem minmax(0,1fr);column-gap:1.25rem;padding-block:1.75rem}
.services li::before{content:"";position:absolute;inset:0 0 auto 0;height:1px;background:var(--line);transform-origin:left}
.services li:last-child{border-bottom:1px solid var(--line)}
.level{width:1.75rem;height:auto;margin-top:.2rem}
.level path{fill:var(--bg);stroke:var(--line-strong);stroke-width:1;vector-effect:non-scaling-stroke}
.level .on{fill:var(--mark);stroke:var(--mark)}
/* The display serif is drawn for large sizes, so smaller settings get a little more room */
h3{font:400 clamp(1.5rem,2.2vw,1.875rem)/1.16 var(--serif);letter-spacing:.002em;word-spacing:.06em}
.services p,.principles p{margin-top:.5rem;color:var(--muted);max-width:33rem}

/* Principles */
.principles{display:grid;gap:2.25rem}

/* Specification: facts about this page, set like a schedule on a drawing */
.spec>div{padding-block:1.375rem;border-top:1px solid var(--line)}
.spec>div:last-child{border-bottom:1px solid var(--line)}
.spec dt{font-size:.9375rem;color:var(--muted)}
.spec dd{margin:.25rem 0 0;color:var(--muted);font-size:.9375rem}
.spec strong{display:block;font:400 clamp(1.5rem,2.2vw,1.875rem)/1.16 var(--serif);letter-spacing:.002em;word-spacing:.06em;color:var(--ink);margin-bottom:.25rem}
@media (min-width:40rem){
  .spec>div{display:grid;grid-template-columns:minmax(0,13rem) minmax(0,1fr);column-gap:2rem;align-items:baseline}
  .spec dd{margin-top:0}
}

/* Product */
.statement{font:400 clamp(1.5rem,2.5vw,2.0625rem)/1.26 var(--serif);letter-spacing:-.002em;word-spacing:.05em;max-width:42rem}
.status{margin-top:1.25rem;color:var(--muted)}

/* ---------- Closing plate ---------- */
.launch{position:relative;overflow:hidden;margin-top:var(--space)}
.launch-grid{display:grid;gap:2.25rem;padding-top:clamp(2.75rem,7vw,5.5rem)}
.display{font-size:clamp(2.5rem,6vw,4.75rem);max-width:11ch}
@media (min-width:62rem){
  .launch-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:3rem;align-items:end}
}
/* The name, very large and tone on tone, cut off by the bottom edge of the plate */
.wordmark{font:300 clamp(5.5rem,25.5vw,21rem)/.74 var(--serif);letter-spacing:-.045em;white-space:nowrap;text-align:center;
  color:rgba(255,255,255,.14);margin:clamp(2.5rem,7vw,5rem) 0 -.1em;-webkit-user-select:none;user-select:none}

/* ---------- Footer ---------- */
.site-footer{padding-block:2.75rem 3rem;font-size:.9375rem}
.foot{display:grid;gap:1rem}
.foot-brand .brand-name{font-size:1.25rem;margin-right:.5rem}
.foot-line,.legal{color:var(--muted)}
@media (min-width:56rem){
  .foot{grid-template-columns:1fr auto;align-items:center}
  .legal{grid-column:1/-1}
}

/* ---------- Text pages: privacy, terms, accessibility ---------- */
.page{padding-block:clamp(3rem,8vw,6rem)}
.page-head{max-width:46rem}
.page-head h1{font-size:clamp(2.75rem,6vw,4.5rem);max-width:none}
.updated{margin-top:1.25rem;color:var(--muted);font-size:.9375rem}
.page-lead{margin-top:1.25rem;max-width:40rem;font-size:clamp(1.125rem,1.5vw,1.25rem);line-height:1.5}
.prose{max-width:42rem;margin-top:clamp(2.5rem,6vw,4rem)}
.prose h2{font:400 clamp(1.5rem,2.2vw,1.875rem)/1.16 var(--serif);letter-spacing:.002em;word-spacing:.06em;margin-top:2.75rem}
.prose h3{font:600 1.0625rem/1.4 var(--sans);letter-spacing:0;word-spacing:0;margin-top:1.75rem}
.prose p,.prose ul{margin-top:1rem}
.prose ul{list-style:disc;padding-left:1.25rem}
.prose li{margin-top:.5rem}
/* links inside running text are underlined as well as coloured, so colour is never the only cue */
.prose a,.page-lead a{color:var(--link)}
.page+.site-footer{border-top:1px solid var(--line)}

/* ---------- 404 page ---------- */
.notfound .wrap{padding-block:clamp(3rem,9vw,7rem)}
.notfound h1{max-width:14ch}
.notfound .lead{margin-top:1.5rem}

/* ---------- Motion (all optional) ---------- */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}

  /* 1. The headline rises word by word, once */
  h1 span{display:inline-block;animation:rise .95s var(--ease) both}
  h1 span:nth-child(2){animation-delay:.05s} h1 span:nth-child(3){animation-delay:.1s}
  h1 span:nth-child(4){animation-delay:.15s} h1 span:nth-child(5){animation-delay:.2s}
  h1 span:nth-child(6){animation-delay:.25s} h1 span:nth-child(7){animation-delay:.3s}
  h1 span:nth-child(8){animation-delay:.35s} h1 span:nth-child(9){animation-delay:.4s}
  @keyframes rise{from{opacity:0;transform:translateY(.42em)}}

  /* 2. The five levels lift apart from a closed block, then the labels arrive */
  .stack .plate{animation:lift 1.2s var(--ease) backwards}
  .stack .p2{--drop:31.5px;animation-delay:.5s} .stack .p3{--drop:63px;animation-delay:.56s}
  .stack .p4{--drop:94.5px;animation-delay:.62s} .stack .p5{--drop:126px;animation-delay:.68s}
  @keyframes lift{from{transform:translateY(var(--drop,0px))}}
  .stack .guides{animation:show .8s ease 1.3s both}
  .stack .leaders path{stroke-dasharray:1;animation:draw .5s ease-out both,show .15s linear both}
  .stack .labels text{animation:show .5s ease both}
  /* (two classes each, so these delays outrank the shorthand above) */
  .stack .leaders .l1,.stack .labels .l1{animation-delay:1.35s} .stack .leaders .l2,.stack .labels .l2{animation-delay:1.43s}
  .stack .leaders .l3,.stack .labels .l3{animation-delay:1.51s} .stack .leaders .l4,.stack .labels .l4{animation-delay:1.59s}
  .stack .leaders .l5,.stack .labels .l5{animation-delay:1.67s}
  @keyframes draw{from{stroke-dashoffset:1}}
  @keyframes show{from{opacity:0}}

  /* On a pointer device the levels lift a little further when the drawing is hovered */
  .stack .plate,.stack .leaders path,.stack .labels text{transition:transform .7s var(--ease)}
  @media (hover:hover){
    .stack:hover .p2,.stack:hover .l2{transform:translateY(-5px)}
    .stack:hover .p3,.stack:hover .l3{transform:translateY(-10px)}
    .stack:hover .p4,.stack:hover .l4{transform:translateY(-15px)}
    .stack:hover .p5,.stack:hover .l5{transform:translateY(-20px)}
  }
}

/* 3. Scroll-linked details, only where the browser can tie animation to scrolling */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    /* each service rule draws in from the left as its row arrives */
    .services li::before{animation:rule linear both;animation-timeline:view();animation-range:entry 0% cover 26%}
    @keyframes rule{from{transform:scaleX(0)}}
    /* the name rises into the closing plate as that plate crosses the screen */
    .launch{view-timeline-name:--launch}
    .wordmark{animation:surface linear both;animation-timeline:--launch;animation-range:cover 12% cover 48%}
    @keyframes surface{from{transform:translateY(62%)}}
    /* the header gains its hairline once the page has moved */
    .site-header{animation:edge linear both;animation-timeline:scroll();animation-range:0 5rem}
    @keyframes edge{to{border-bottom-color:var(--line)}}
  }
}
