/* tevola by athreix · platform.css
   #platform: the headline "One platform. Every desk.", one line, and one card (a mosaic of module photos, "12
   modules. One record.", the module names and "Explore the platform"). Tapping the card opens the module explorer
   (#modules, styled below) out of the card (modules.js). */
.pf{position:relative;z-index:1;background:var(--paper,#eee9da)}
.pfx{max-width:1240px;margin:0 auto;padding:clamp(110px,16vh,180px) var(--pad,24px) clamp(90px,14vh,160px);text-align:center}
.pfx__h{margin:0;font:600 clamp(3rem,13vw,4.6rem)/.98 var(--sans);letter-spacing:-.035em;color:var(--ink,#30332b)}
.pfx__h em{font-style:normal;color:var(--olive,#45513b)}
.pfx__l{display:inline-block;overflow:clip;padding:.04em .02em .16em;margin:-.04em 0 -.16em;vertical-align:top}
.pfx__l>span{display:inline-block}

/* the card: two rounded panels side by side (stacked on phones).
   Left, a still collage: three columns of rounded tiles, each a close-up of one real screen (--x/--y: the point to keep,
   --z: how far in), the middle column set higher, all running off the top and bottom edges.
   Right: a white panel with the headline and one "Explore capabilities" button. */
.pfx{padding-top:clamp(90px,13vh,150px)}
.pfc{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;text-align:left}
.pfm{position:relative;display:flex;gap:10px;width:100%;aspect-ratio:1/1;padding:0 10px;border-radius:28px;overflow:hidden;background:#e6dbcf}
.pfm__col{display:flex;flex:1 1 0;flex-direction:column;gap:10px;min-width:0;height:118%;margin-top:-9%}
.pfm__col:nth-child(2){margin-top:-16%}
.pfm__col:nth-child(3){margin-top:-4%}
.pfm__t{position:relative;display:block;flex:1 1 0;min-height:0;border-radius:18px;overflow:hidden;background:#f6f2e8;box-shadow:0 0 0 1px rgba(48,51,43,.06)}
.pfm__t img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--x,50%) var(--y,50%);transform:scale(var(--z,1));transform-origin:var(--x,50%) var(--y,50%)}
/* the site app: the phone whole, on its own beige; set a little low, since the column starts above the card */
.pfm__t--phone{background:#e8ded6}
.pfm__t--phone img{inset:auto;left:50%;top:53.5%;width:auto;height:88%;object-fit:contain;transform:translate(-50%,-50%);border-radius:14.6% / 7%;box-shadow:0 18px 28px -16px rgba(36,37,31,.45)}
/* two die-cut stickers dropped on the collage where the tiles meet: a backhoe loader and a tower crane (real cut-outs,
   assets/ui/stk-*.webp). Four hard offset shadows in paper build the die-cut edge, then a soft shadow lifts it. */
.pfm__stk{position:absolute;z-index:4;height:auto;pointer-events:none;
  filter:drop-shadow(3px 0 0 #fbfaf6) drop-shadow(-3px 0 0 #fbfaf6) drop-shadow(0 3px 0 #fbfaf6) drop-shadow(0 -3px 0 #fbfaf6) drop-shadow(0 14px 16px rgba(36,37,31,.3))}
.pfm__stk--jcb{left:46%;top:49%;width:clamp(165px,29%,330px);transform:rotate(-6deg)}
.pfm__stk--crane{left:24%;top:17%;width:clamp(86px,15%,170px);transform:rotate(5deg)}
.pfs__panel{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:40px;padding:clamp(28px,4vw,56px);border-radius:28px;background:#fbfaf6;box-shadow:0 0 0 1px rgba(48,51,43,.06)}
.pfs__panel .pfx__h{margin:0;text-align:left}
/* always two lines, "One platform." / "Every desk.": the panel is a size container and the headline is sized from its
   width (the longest line is 6.56em), so it fits at any screen width instead of growing with the viewport */
.pfs__panel{container-type:inline-size}
.pfs__panel .pfx__l{display:block;width:fit-content;white-space:nowrap}
.pfs__panel .pfx__h{font-size:clamp(2rem,14.6cqi,5.6rem)}
/* the one call to action on the card: a black pill, cream text on a mustard marker underline (the highlight style).
   While it is on screen the underline redraws and a soft ring pulses */
.pfs__go{position:relative;align-self:flex-end;margin-right:calc(30px - clamp(28px,4vw,56px));display:inline-flex;align-items:center;padding:24px 40px 22px;border-radius:999px;background:#1f201b;color:#fbfaf6;font:600 clamp(16px,calc(1.4vw - 2px),19px)/1 var(--sans);letter-spacing:-.01em;cursor:pointer;box-shadow:0 16px 32px -16px rgba(20,21,17,.55);transition:background .3s,transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s}
.pfs__go-t{position:relative;z-index:0;padding-bottom:4px}
.pfs__go-t::after{content:"";position:absolute;z-index:-1;left:-.12em;right:-.12em;bottom:-.26em;height:.3em;background:#e8cd72;border-radius:.12em;clip-path:polygon(0 18%,100% 0,99% 88%,1% 100%);transform:rotate(-1.2deg);transform-origin:0 50%;opacity:.95}
.pfs__go::before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 0 rgba(31,32,27,.35);pointer-events:none}
.pfs__go.is-live::before{animation:pfsHalo 3s cubic-bezier(.22,1,.36,1) infinite}
.pfs__go.is-live .pfs__go-t::after{animation:pfsLine 3s cubic-bezier(.22,1,.36,1) infinite}
@keyframes pfsHalo{0%{box-shadow:0 0 0 0 rgba(31,32,27,.35)}55%,100%{box-shadow:0 0 0 16px rgba(31,32,27,0)}}
@keyframes pfsLine{0%{transform:rotate(-1.2deg) scaleX(0)}28%,100%{transform:rotate(-1.2deg) scaleX(1)}}
.pfs__go:hover{background:#30332b;transform:translateY(-2px);box-shadow:0 22px 38px -18px rgba(20,21,17,.6)}
.pfs__go:focus-visible{outline:2px solid #1f201b;outline-offset:4px}
/* the first time the card arrives, the button buzzes like a phone on a desk, so the eye lands on it */
.pfs__go.is-buzz{animation:pfsBuzz .9s cubic-bezier(.36,.07,.19,.97) both}
@keyframes pfsBuzz{
  0%,100%{transform:translate(0,0) rotate(0)}
  6%,30%,54%{transform:translate(-4px,0) rotate(-2.2deg)}
  12%,36%,60%{transform:translate(4px,0) rotate(2.2deg)}
  18%,42%,66%{transform:translate(-3px,0) rotate(-1.4deg)}
  24%,48%,72%{transform:translate(3px,0) rotate(1.4deg)}
  80%{transform:translate(-1px,0) rotate(-.4deg)}
  88%{transform:translate(1px,0) rotate(.4deg)}}
@media (prefers-reduced-motion:reduce){.pfs__go.is-live::before,.pfs__go.is-live .pfs__go-t::after{animation:none}}
/* the collage opens the explorer too */
.pfm{cursor:pointer;opacity:1}
.pfm__col{filter:saturate(.92)}
.pfm::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;
  background:linear-gradient(90deg,rgba(238,233,218,0) 62%,rgba(238,233,218,.18) 100%),linear-gradient(180deg,rgba(238,233,218,0) 70%,rgba(238,233,218,.16) 100%)}   /* the collage sits back a touch behind the copy */
@media (min-width:768px){
  .pfx__h{font-size:clamp(4rem,9vw,6.6rem)}
  .pfm{aspect-ratio:16/10}
}
@media (min-width:1024px){
  .pfc{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);height:clamp(560px,76vh,780px)}
  .pfm{aspect-ratio:auto;height:100%}
  .pfs__panel .pfx__h{line-height:.98}
}

/* ---------- the module explorer ----------
   A full-screen sheet over the page: header with the close button, then the twelve module cards (title, one line,
   who it is for). modules.js opens it (the sheet grows out of the platform card, the cards step in) and closes it. */
.mods{position:fixed;inset:0;z-index:200;background:#fbfaf6;color:var(--ink,#30332b)}
.mods[hidden]{display:none}
.mods__in{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:clamp(20px,4vh,44px) clamp(16px,4vw,64px) clamp(40px,8vh,80px)}
.mods__top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;max-width:1440px;margin:0 auto}
.mods__t{margin:0 0 0 -.07em;font:600 clamp(2rem,6vw,4.2rem)/1.02 var(--sans);letter-spacing:-.035em;color:#30332b}
/* the close button sits on the headline's first line, centred on its capitals (cap middle = .51em below the line top) */
.mods__x{flex:none;position:relative;margin-top:calc(clamp(2rem,6vw,4.2rem)*.51 - 26px);width:52px;height:52px;border-radius:50%;background:#30332b;cursor:pointer;transition:transform .35s cubic-bezier(.22,1,.36,1),background .3s}
.mods__x i::before,.mods__x i::after{content:"";position:absolute;left:50%;top:50%;width:20px;height:1.75px;margin:-1px 0 0 -10px;background:#fbfaf6;transform:rotate(45deg)}
.mods__x i::after{transform:rotate(-45deg)}
.mods__x:hover{transform:rotate(90deg);background:var(--olive,#45513b)}
/* the cards: big flat panels on a hairline (no shadow), a large title, the line in full ink, the tag pinned at the foot */
/* wrapping rows, centred, so a last row that is not full (thirteen cards) sits in the middle */
.mods__g{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;max-width:1440px;margin:clamp(40px,7vh,72px) auto 0}
.mods__c{flex:0 0 100%}
.mods__c{position:relative;display:flex;flex-direction:column;min-width:0;min-height:300px;padding:32px 30px 30px;border-radius:6px;border:1px solid #d9d2c3;background:#f6f2e8;transition:border-color .3s,background .3s}
.mods__c[hidden]{display:none}
.mods__c:hover{border-color:#30332b;background:#f1ece0}
.mods__c.is-hl{border-color:var(--olive,#45513b);box-shadow:0 0 0 1px var(--olive,#45513b)}
.mods__b{display:flex;flex-direction:column;flex:1}
.mods__h{margin:0;font:600 clamp(26px,2.1vw,34px)/1.1 var(--sans);letter-spacing:-.03em;color:#1f201b}
.mods__p{margin-top:16px;margin-bottom:28px;font-size:clamp(16px,1.2vw,18.5px);line-height:1.5;color:#2b2d25}
/* the foot: a hairline across the card, a small "Used by" label, and under it the team in ink after an olive dot
   (always stacked, so the hairlines line up across a row) */
.mods__f{margin-top:auto;padding-top:18px;border-top:1px solid #ddd6c7}
.mods__who{font:500 15px/1.3 var(--sans);color:#24251f}
/* the whole card is the button that opens its screen */
.mods__hit{position:absolute;inset:0;width:100%;border-radius:inherit;background:transparent;cursor:pointer}
/* one capability, full size: over the grid inside the same sheet. Text on the left, the screen on the right; phones
   stack them and let the screen pan sideways at a readable size */
.mv{position:absolute;inset:0;z-index:2;background:#fbfaf6}
.mv[hidden]{display:none}
.mv__in{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:clamp(20px,4vh,44px) clamp(16px,4vw,64px) clamp(40px,8vh,80px)}
.mv__bar{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:1440px;margin:0 auto}
.mv__back{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 22px 0 18px;border-radius:999px;border:1px solid #d9d2c3;background:transparent;font:500 16px/1 var(--sans);color:#24251f;cursor:pointer;transition:border-color .3s,background .3s}
.mv__back:hover,.mv__step:hover{border-color:#30332b;background:#f1ece0}
.mv__nav{display:flex;align-items:center;gap:10px}
.mv__count{margin-right:6px;font:500 14px/1 var(--sans);letter-spacing:.08em;font-variant-numeric:tabular-nums;color:#8a8b7d}
.mv__step{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:1px solid #d9d2c3;background:transparent;color:#24251f;font-size:18px;cursor:pointer;transition:border-color .3s,background .3s}
.mv__body{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;max-width:1440px;margin:clamp(32px,6vh,64px) auto 0}
.mv__h{margin:0 0 0 -.06em;font:600 clamp(2.1rem,3.8vw,3.6rem)/1.02 var(--sans);letter-spacing:-.035em;color:#1f201b}
.mv__p{margin-top:18px;max-width:30ch;font-size:clamp(17px,1.3vw,20px);line-height:1.5;color:#2b2d25}
.mv__txt .mods__f{margin-top:28px;max-width:30ch}
.mv__shot{margin:0;border-radius:14px;overflow:hidden;background:#fff;border:1px solid #e3ddcf;box-shadow:0 34px 70px -36px rgba(36,37,31,.4)}
.mv__shot img{display:block;width:100%;height:auto}
.mv__shot[hidden]{display:none}
@media (min-width:1024px){
  .mv__body{grid-template-columns:minmax(240px,.3fr) minmax(0,1fr);gap:clamp(40px,4vw,80px);align-items:start}
  .mv__shot{max-width:calc((100vh - 200px) * 1.6);justify-self:end;width:100%}
}
@media (max-width:639px){
  .mv__count{display:none}
  /* the whole screen in view: no sideways panning */
  .mv__shot{border-radius:10px}
  .mv__shot img{width:100%;max-width:100%}
}
.mods button:focus-visible{outline:2px solid var(--olive,#45513b);outline-offset:3px}
@media (min-width:640px){.mods__c{flex-basis:calc((100% - 20px) / 2)}}
@media (min-width:1024px){.mods__c{flex-basis:calc((100% - 40px) / 3)}}
@media (min-width:1280px){.mods__c{flex-basis:calc((100% - 60px) / 4)}}
@media (min-width:1024px){.mods__c{min-height:clamp(340px,44vh,440px)}}
/* phones: two cards a row, set smaller to fit */
@media (max-width:639px){
  .mods__g{gap:10px}
  .mods__c{flex-basis:calc((100% - 10px) / 2);min-height:0;padding:16px 14px 14px;border-radius:12px}
  .mods__h{font-size:clamp(15px,4.6vw,19px);line-height:1.15;letter-spacing:-.02em}
  .mods__p{margin-top:8px;margin-bottom:14px;font-size:clamp(12px,3.4vw,13.5px);line-height:1.42}
  .mods__f{padding-top:10px}
  .mods__f{line-height:1.3}
  .mods__who{display:block;font-size:11.5px;line-height:1.3}
}

@media (hover:none){.pfs__go:hover{transform:none;background:#1f201b;box-shadow:0 16px 32px -16px rgba(20,21,17,.55)}}
