:root{
  --ground:#2D3722;
  --ground-deep:#1F2717;
  --moss:#4C5C34;
  --moss-hi:#6F8048;
  --lichen:#BFC8A0;
  --bone:#EEEADB;
  --bone-soft:#DCDFC8;
  --lime:#D4F25A;
  --lime-hi:#E2FB7E;
  --ink:#1A2210;
  --pill:#222B17;
  --hair:rgba(191,200,160,.34);
  --hair-pill:rgba(191,200,160,.6);
  --contact:0 2px 6px rgba(8,12,5,.45);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --gutter:clamp(16px,4vw,64px);
  /* the content frame: on screens wider than this the page centres, and every edge (bar, hero, sections, card row) lines up */
  --frame:1600px;
  --edge:max(var(--gutter),calc((100% - var(--frame)) / 2));
  --body:clamp(1rem,1.22vw,1.1875rem);
  --sans:'Hanken Grotesk',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --display:'Bricolage Grotesque','Hanken Grotesk',ui-sans-serif,system-ui,'Segoe UI',Roboto,Arial,sans-serif;
  /* the fixed top bar: resting padding (as in the hero), compact padding once the page scrolls */
  --bar-top:clamp(18px,3.4vh,34px);
  --bar-pad-c:12px;
  --bar-c:calc(44px + 2 * var(--bar-pad-c));
  --sec-pad:clamp(64px,8.5vh,104px);
}
*,*::before,*::after{box-sizing:border-box}
html{background:var(--ground-deep);color-scheme:dark;scrollbar-color:var(--moss) var(--ground-deep);scrollbar-width:thin;scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--ground-deep)}
::-webkit-scrollbar-thumb{background:var(--moss);border-radius:10px;border:2px solid var(--ground-deep)}
::selection{background:var(--lime);color:var(--ink)}
body{margin:0;background:var(--ground);color:var(--bone);font-family:var(--sans);caret-color:var(--lime);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
a{color:inherit;text-underline-offset:.4em;text-decoration-thickness:1px}
:focus-visible{outline:2px solid var(--lime);outline-offset:3px;border-radius:6px}
main:focus{outline:none}
[hidden]{display:none!important}

/* skip link: first stop for the keyboard, out of sight until focused */
.skip{position:fixed;left:var(--gutter);top:10px;z-index:60;padding:12px 18px;border-radius:999px;background:var(--bone);color:var(--ink);font:600 1rem/1 var(--sans);text-decoration:none;transform:translateY(-160%);transition:transform .45s var(--ease-out)}
.skip:focus,.skip:focus-visible{transform:none;outline:2px solid var(--lime);outline-offset:3px}

/* ---------- top bar: fixed over the whole page; identical to the hero bar at rest ---------- */
/* links on the left, the logo in the middle, the language on the far right */
.bar{position:fixed;top:0;left:0;right:0;z-index:40;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:clamp(16px,3vw,48px);padding:var(--bar-top) var(--edge) 0;transition:transform .6s var(--ease-out)}
.bar nav{justify-self:start}
.bar .jaffai-logo{justify-self:center}
.bar .lang{justify-self:end}
.bar::before{content:"";position:absolute;left:0;right:0;top:0;bottom:calc(-1 * var(--bar-pad-c));z-index:-1;background:var(--ground);border-bottom:1px solid rgba(191,200,160,.16);opacity:0;pointer-events:none;transition:opacity .4s var(--ease-out)}
.bar.solid{transform:translateY(calc(var(--bar-pad-c) - var(--bar-top)))}
.bar.solid::before{opacity:1}
.bar .jaffai-logo{color:var(--bone);font-size:clamp(1.0625rem,.8rem + .6vw,1.375rem)}
.links{display:flex;gap:clamp(18px,2.6vw,40px);list-style:none;margin:0;padding:0}
.links a{display:inline-block;padding:8px 0;color:var(--lichen);text-decoration:none;font-size:1rem;font-weight:500;letter-spacing:.005em;transition:color .4s var(--ease-out)}
.links a:hover{color:var(--bone);text-decoration:underline;text-decoration-color:var(--lime)}
.lang{display:flex;gap:2px;padding:3px;border:1px solid var(--hair);border-radius:999px;background:rgba(26,34,16,.4)}
.lang a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font:600 .9375rem/1 var(--sans);letter-spacing:.06em;color:var(--lichen);background:transparent;border:0;min-width:44px;min-height:36px;padding:0 11px;border-radius:999px;cursor:pointer;transition:background-color .4s var(--ease-out),color .4s var(--ease-out)}
.lang a:hover{color:var(--bone)}
.lang a.is-active,.lang a[aria-current="page"]{background:var(--bone);color:var(--ink)}
.lang a:focus-visible{border-radius:999px}
.menu-btn{display:none}

/* ---------- hero (heroes/hero-v1.html, unchanged; the bar now sits above it) ---------- */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;background:var(--ground);padding-top:calc(var(--bar-top) + 44px)}
.hero canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
#moss{z-index:0}
/* the network thins out into the ground below instead of stopping at a hard edge */
#net{z-index:1;-webkit-mask-image:linear-gradient(#000 calc(100% - min(16vh,150px)),transparent);mask-image:linear-gradient(#000 calc(100% - min(16vh,150px)),transparent)}
.stage{position:relative;z-index:3;flex:1;display:flex;align-items:flex-end;padding:clamp(28px,6vh,64px) var(--edge) clamp(28px,7.5vh,84px)}
.copy{max-width:min(46rem,56vw)}
h1{margin:0;font-family:var(--display);font-optical-sizing:auto;font-size:clamp(2.5rem,min(5.5vw,9.6vh),5.875rem);line-height:.97;letter-spacing:-.035em;font-weight:300;color:var(--bone-soft)}
h1 .l{display:block;width:fit-content;max-width:100%}
h1 .l3{font-weight:720;color:var(--bone);letter-spacing:-.038em;padding-top:.04em}
.sub{margin:clamp(18px,2.8vh,30px) 0 0;max-width:58ch;font-size:var(--body);line-height:1.55;color:var(--lichen);text-wrap:pretty}
.act{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(14px,2vh,18px);margin-top:clamp(22px,3.8vh,42px)}
.cta{display:inline-flex;align-items:center;gap:14px;height:56px;padding:0 22px 0 28px;border-radius:999px;background:var(--lime);color:var(--ink);font:600 1.0625rem/1 var(--sans);letter-spacing:.005em;text-decoration:none;white-space:nowrap;box-shadow:0 2px 6px rgba(10,14,6,.45);transition:transform .6s var(--ease-out),background-color .35s var(--ease-out),box-shadow .6s var(--ease-out)}
.cta::after{content:"";width:20px;height:20px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13.5 6.5 19 12l-5.5 5.5'/%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 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13.5 6.5 19 12l-5.5 5.5'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .6s var(--ease-out)}
.cta:hover{background:var(--lime-hi);transform:translateY(-2px);box-shadow:0 4px 10px rgba(10,14,6,.45)}
.cta:hover::after{transform:translateX(4px)}
.cta:active{transform:translateY(0)}
.cta:focus-visible{outline:2px solid var(--bone);outline-offset:4px;border-radius:999px}
.hint{margin:0;max-width:62ch;font-size:.9375rem;line-height:1.5;color:var(--lichen);text-wrap:pretty}
.flow{position:absolute;inset:0;z-index:2;list-style:none;margin:0;padding:0;pointer-events:none}
.flow.off{display:none}
.step{position:absolute;left:0;top:0;display:flex;align-items:center;gap:10px;white-space:nowrap;font:500 .9375rem/1.2 var(--sans);letter-spacing:.005em;color:var(--lichen);padding:9px 14px 9px 11px;border-radius:999px;background:var(--pill);border:1px solid var(--hair-pill);box-shadow:var(--contact);transition:background-color .45s var(--ease-out),color .45s var(--ease-out),border-color .45s var(--ease-out)}
.step svg{width:19px;height:19px;flex:none}
.step .ok{width:15px;height:15px;color:var(--lime);opacity:0;transition:opacity .4s var(--ease-out)}
.step.pin{font-weight:600}
.step.done{color:var(--bone);border-color:var(--lime)}
.step.done .ok{opacity:1}
.step.run{background:var(--bone);color:var(--ink);border-color:var(--lime);font-weight:600}
.step.sp{padding:9px 12px 9px 15px;opacity:0;transition:opacity .5s var(--ease-out),background-color .45s var(--ease-out),color .45s var(--ease-out),border-color .45s var(--ease-out)}
.step.sp.on{opacity:1}
.step.sp.glide{transition:transform .7s var(--ease-out),opacity .5s var(--ease-out),background-color .45s var(--ease-out),color .45s var(--ease-out),border-color .45s var(--ease-out)}

/* ---------- the ground below the hero: the same moss, drawn as a quiet tile (site.js) ---------- */
.ground{position:relative;background-color:var(--ground);background-repeat:repeat;isolation:isolate}
.seam{position:absolute;left:0;top:0;width:100%;height:min(380px,45vh);z-index:-1;pointer-events:none;display:block}
.wrap{padding-inline:var(--gutter);max-width:calc(var(--frame) + 2 * var(--gutter));margin-inline:auto}
@media (max-width:760px){:root{--sec-pad:clamp(56px,8vh,80px)}}
.sec{position:relative;padding-block:var(--sec-pad);scroll-margin-top:max(0px,calc(var(--bar-c) + 28px - var(--sec-pad)))}
/* rhythm: more air after the hero and before the ask, less between the two "who are you" sections */
.cases{padding-top:calc(var(--sec-pad) * 1.5)}
.team{padding-bottom:calc(var(--sec-pad) * .6)}
.contact{padding-top:calc(var(--sec-pad) * 1.4)}

/* section headings: the hero's rule, light rising to heavy; the weight lands on the outcome */
/* section headings: a short label, then one sentence in one weight (the two-weight lines stay in the hero only) */
.eyebrow{margin:0 0 clamp(14px,2vh,20px);font:600 .875rem/1.2 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--lichen)}
.sh{margin:0;font-family:var(--display);font-optical-sizing:auto;font-weight:560;font-size:clamp(2rem,3.6vw,3.5rem);line-height:1.04;letter-spacing:-.03em;color:var(--bone);max-width:18em;text-wrap:balance}
.lede{margin:clamp(18px,2.8vh,28px) 0 0;max-width:70ch;font-size:var(--body);line-height:1.55;color:var(--lichen);text-wrap:pretty}

/* a quiet text link with the hero's arrow; the lime button stays unique per view */
.tlink{display:inline-flex;align-items:center;gap:12px;padding:10px 0;color:var(--bone);font:600 1.0625rem/1.2 var(--sans);letter-spacing:.005em;text-decoration:underline;text-decoration-color:rgba(191,200,160,.55);text-underline-offset:.45em;transition:color .4s var(--ease-out),text-decoration-color .4s var(--ease-out)}
.tlink svg{width:20px;height:20px;flex:none;transition:transform .6s var(--ease-out)}
.tlink:hover{text-decoration-color:var(--lime)}
.tlink:hover svg{transform:translateX(4px)}

/* ---------- approach: the lit route through three plain steps, straight down at every width ---------- */
.approach{--nc:44px;--indent:0px;--rgap:clamp(48px,7.5vh,84px)}
.route-wrap{position:relative;margin-top:clamp(52px,9vh,104px)}
.route-svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}
.route-svg path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.rl-base{stroke:rgba(191,200,160,.3);stroke-width:1.5}
.rl-lit{stroke:var(--lime);stroke-width:2.6}
.route{position:relative;z-index:1;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--rgap)}
.route>li{margin-left:calc(var(--k) * var(--indent))}
.r-end-li,.r-start-li{display:flex}
.rpill{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;font:600 .9375rem/1.2 var(--sans);letter-spacing:.005em;color:var(--lichen);padding:9px 14px 9px 11px;border-radius:999px;background:var(--pill);border:1px solid var(--hair-pill);box-shadow:var(--contact);transition:background-color .45s var(--ease-out),color .45s var(--ease-out),border-color .45s var(--ease-out)}
.rpill svg{width:19px;height:19px;flex:none}
.rpill.done{color:var(--bone);border-color:var(--lime)}
.rpill.run{background:var(--bone);color:var(--ink);border-color:var(--lime)}
.r-step{display:grid;grid-template-columns:var(--nc) minmax(0,34rem);column-gap:clamp(16px,2vw,28px);align-items:start}
.r-node{grid-row:1/span 3;justify-self:center;margin-top:calc((1.12em - 30px) / 2);font-size:clamp(1.75rem,2.7vw,2.625rem);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--pill);border:1px solid var(--hair-pill);box-shadow:var(--contact);transition:border-color .45s var(--ease-out)}
.r-node svg{width:15px;height:15px;color:var(--lime);opacity:0;transition:opacity .4s var(--ease-out)}
.r-node.on{border-color:var(--lime)}
.r-node.on svg{opacity:1}
.r-title{grid-column:2;margin:0;font-family:var(--display);font-optical-sizing:auto;font-weight:400;font-size:clamp(1.75rem,2.7vw,2.625rem);line-height:1.12;letter-spacing:-.025em;color:var(--bone);text-wrap:balance}
.r-text{grid-column:2;margin:clamp(12px,1.6vh,18px) 0 0;max-width:58ch;font-size:var(--body);line-height:1.55;color:var(--lichen);text-wrap:pretty}
.r-text+.r-text{margin-top:12px}
/* the first step says up front that it costs nothing */
.r-free{grid-column:2;justify-self:start;margin:clamp(12px,1.6vh,16px) 0 0;padding:6px 14px;border-radius:999px;background:var(--bone);color:var(--ink);font:600 .875rem/1.2 var(--sans)}
.close{margin-top:clamp(64px,10vh,120px);display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.close p span{display:block}
/* Approach: the route on the left, "where we start" (consultation, audit) travelling beside it on the right */
.approach-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:clamp(32px,6vw,112px);align-items:start;margin-top:clamp(52px,9vh,104px)}
.approach-grid .route-wrap{margin-top:0}
.start-panel{position:sticky;top:calc(var(--bar-c) + 40px);display:grid;gap:14px}
.st-h{margin:0 0 4px;font:600 .875rem/1.2 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--lichen)}
.st-card{padding:clamp(20px,2vw,26px);background:var(--pill);border:1px solid var(--hair);border-radius:20px;box-shadow:var(--contact)}
.st-l{margin:0;font:500 .875rem/1.3 var(--sans);color:var(--lichen)}
.st-t{margin:8px 0 0;font:650 1.375rem/1.15 var(--display);letter-spacing:-.02em;color:var(--bone)}
.st-x{margin:10px 0 0;font-size:1rem;line-height:1.55;color:var(--bone-soft);text-wrap:pretty}
/* rhythm: the text-led sections sit on a deeper band, so the page doesn't read as one long green field */
.approach,.faq{background:var(--ground-deep)}
.approach .st-card{background:var(--ground)}
@media (max-width:1100px){
  .approach-grid{grid-template-columns:minmax(0,1fr)}
  .start-panel{position:static;margin-top:clamp(48px,7vh,72px);grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
  .st-h{grid-column:1/-1}
}
.close p{margin:0;max-width:34ch;font-family:var(--display);font-optical-sizing:auto;font-weight:300;font-size:clamp(1.375rem,1.9vw,1.875rem);line-height:1.25;letter-spacing:-.015em;color:var(--bone-soft);text-wrap:balance}

/* ---------- case studies: a horizontal row of cards; the full story lives on its own page ---------- */
.cases-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:24px 48px}
/* under the row: the arrows and a slim line showing how far along the row you are */
.cs-nav{display:flex;align-items:center;gap:10px;margin-top:4px}
.cs-prog{position:relative;flex:0 1 220px;height:2px;margin-left:12px;border-radius:2px;background:var(--hair);overflow:hidden}
.cs-prog i{position:absolute;top:0;bottom:0;left:0;border-radius:2px;background:var(--bone-soft);transition:transform .3s var(--ease-out)}
.cs-btn{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:1px solid var(--hair-pill);border-radius:999px;background:var(--pill);color:var(--bone);cursor:pointer;transition:border-color .4s var(--ease-out),opacity .4s var(--ease-out)}
.cs-btn svg{width:20px;height:20px}
.cs-btn:hover:not(:disabled){border-color:var(--lime)}
.cs-btn:disabled{opacity:.35;cursor:default}
.cs-track{list-style:none;margin:clamp(36px,6vh,64px) 0 0;padding:4px var(--edge) 20px;display:flex;gap:clamp(14px,1.6vw,24px);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--edge);overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--moss) transparent}
.cs-track:focus-visible{outline-offset:-3px;border-radius:24px}
.cs-card{position:relative;flex:0 0 min(420px,84vw);scroll-snap-align:start;display:flex;flex-direction:column;transition:border-color .4s var(--ease-out);padding:clamp(22px,2.4vw,32px);background:var(--pill);border:1px solid var(--hair);border-radius:24px;box-shadow:var(--contact)}
.cs-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 16px}
/* the estimated time saved per task: an estimate, always labelled as one */
.cs-metric{display:flex;flex-direction:column;gap:6px;min-width:0}
.cs-mv{font:500 clamp(2.5rem,3.2vw,3rem)/1 var(--display);font-optical-sizing:auto;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--bone)}
.cs-ml{font-size:.875rem;line-height:1.35;color:var(--lichen)}
.cs-tag{display:inline-block;padding:6px 12px;border:1px solid var(--hair);border-radius:999px;font:500 .875rem/1.2 var(--sans);color:var(--lichen)}
.cs-title{margin:0;font:400 clamp(1.375rem,1.8vw,1.75rem)/1.15 var(--display);font-optical-sizing:auto;letter-spacing:-.02em;color:var(--bone);text-wrap:balance}
.cs-desc{margin:12px 0 16px;font-size:1rem;line-height:1.55;color:var(--lichen);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
/* the whole card opens the case study: the "Read more" link stretches over it (one link per card for keyboards and screen readers) */
.cs-more::after{content:"";position:absolute;inset:0;border-radius:24px}
.cs-card:hover{border-color:var(--hair-pill)}
.cs-card:hover .cs-more{text-decoration-color:var(--lime)}
.cs-card:hover .cs-more svg{transform:translateX(4px)}
.cs-more:focus-visible{outline:none}
.cs-card:has(.cs-more:focus-visible){outline:2px solid var(--lime);outline-offset:3px}
.cs-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;margin-top:auto}
.cs-foot .cs-tag{white-space:nowrap}
.cs-card .pv{min-height:200px;margin-bottom:clamp(20px,2.8vh,26px);justify-content:center;overflow:hidden}

/* ---------- who we are: one card per person; the initials hold the place of a photo until the team decides ---------- */
.crew{list-style:none;margin-top:clamp(36px,5vh,56px);margin-bottom:0;padding-block:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.6vw,22px)}
.mate{display:flex;flex-direction:column;padding:clamp(22px,2vw,28px);background:var(--pill);border:1px solid var(--hair);border-radius:24px;box-shadow:var(--contact)}
.mono{width:64px;height:64px;margin-bottom:22px;border-radius:50%;display:grid;place-items:center;background:var(--ground-deep);border:1px solid var(--hair-pill);font:600 1.25rem/1 var(--display);letter-spacing:-.02em;color:var(--bone-soft)}
.m-name{margin:0;font:650 1.5rem/1.1 var(--display);letter-spacing:-.02em;color:var(--bone)}
.m-role{margin:8px 0 0;font:500 .9375rem/1.4 var(--sans);color:var(--bone-soft)}
.m-bio{margin:14px 0 0;font-size:1rem;line-height:1.55;color:var(--lichen);text-wrap:pretty}

/* ---------- larger projects: one panel, heading left, text and the ask right ---------- */
.big{padding-block:calc(var(--sec-pad) * .5) calc(var(--sec-pad) * .9)}
.big-panel{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(32px,6vw,112px);row-gap:8px;align-items:start;padding:clamp(28px,4vw,56px);background:var(--pill);border:1px solid var(--hair);border-radius:28px;box-shadow:var(--contact)}
.big-body .lede{margin-top:0}
.big-body .cta{margin-top:clamp(24px,3.4vh,32px)}
@media (max-width:1100px){.big-panel{grid-template-columns:1fr}.big-body{margin-top:clamp(10px,2vh,18px)}}

/* ---------- technology: plain names in three groups, below the team cards ---------- */
.tech{margin-top:clamp(40px,6vh,64px);display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(32px,6vw,112px);row-gap:22px;align-items:start}
.tech-h{margin:0;font:600 .875rem/1.2 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--lichen)}
.tech-x{margin:12px 0 0;max-width:46ch;font-size:1rem;line-height:1.55;color:var(--bone-soft);text-wrap:pretty}
.tech-list{margin:0;display:grid;gap:14px}
.tech-list > div{display:grid;grid-template-columns:minmax(110px,9rem) 1fr;gap:12px;align-items:center;padding-top:14px;border-top:1px solid var(--hair)}
.tech-list dt{font:500 .9375rem/1.3 var(--sans);color:var(--lichen)}
.tech-list dd{margin:0;display:flex;flex-wrap:wrap;gap:8px}
.tech-list dd span{padding:7px 14px;border-radius:999px;border:1px solid var(--hair-pill);background:var(--ground-deep);font:500 .9375rem/1.2 var(--sans);color:var(--bone)}
.tech-list dd .tech-more{border-color:transparent;background:none;padding-inline:4px;color:var(--lichen)}
@media (max-width:1100px){.tech{grid-template-columns:1fr}}
@media (max-width:460px){.tech-list > div{grid-template-columns:1fr;gap:8px}}

/* two-column sections: the heading on the left travels with the longer column on the right */
@media (min-width:1101px){
  .faq-grid > :first-child,.contact-grid > :first-child{position:sticky;top:calc(var(--bar-c) + 40px)}
}

/* ---------- FAQ: questions that open to their answers (native details, no script) ---------- */
:root{interpolate-size:allow-keywords}
.faq-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(32px,6vw,112px);align-items:start}
.faq-list{border-bottom:1px solid var(--hair)}
.qa{border-top:1px solid var(--hair)}
.qa summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:clamp(18px,2.6vh,26px) 0;cursor:pointer;list-style:none;font:400 clamp(1.1875rem,1.6vw,1.5rem)/1.3 var(--display);font-optical-sizing:auto;letter-spacing:-.01em;color:var(--bone);text-wrap:balance}
.qa summary::-webkit-details-marker{display:none}
.qa summary svg{width:22px;height:22px;flex:none;color:var(--lichen);transition:transform .45s var(--ease-out),color .4s var(--ease-out)}
.qa summary:hover svg{color:var(--bone)}
.qa[open] summary svg{transform:rotate(45deg);color:var(--bone)}
.qa::details-content{height:0;overflow:clip;transition:height .45s var(--ease-out),content-visibility .45s allow-discrete}
.qa[open]::details-content{height:auto}
.qa p{margin:0;padding:0 0 clamp(20px,3vh,28px);max-width:58ch;font-size:var(--body);line-height:1.55;color:var(--lichen);text-wrap:pretty}

/* ---------- book a call: one clear ask ---------- */
.contact-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(32px,6vw,112px);align-items:start}
.form{position:relative;margin-top:clamp(6px,1.2vh,14px)}
.f-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.field{display:flex;flex-direction:column;margin-bottom:22px;min-width:0}
.field label{margin:0 0 10px 2px;font:500 1rem/1.3 var(--sans);color:var(--bone-soft)}
.field input,.field textarea{width:100%;font:400 1.0625rem/1.4 var(--sans);color:var(--bone);background:var(--pill);border:1px solid var(--hair-pill);border-radius:999px;height:56px;padding:0 22px;caret-color:var(--lime);transition:border-color .4s var(--ease-out);-webkit-appearance:none;appearance:none}
.field textarea{height:auto;min-height:9.5rem;padding:16px 22px;border-radius:20px;resize:none;line-height:1.5}
.field input:hover,.field textarea:hover{border-color:rgba(191,200,160,.85)}
.field input:focus-visible{border-radius:999px}
.field textarea:focus-visible{border-radius:20px}
.field input:-webkit-autofill,.field input:-webkit-autofill:hover,.field input:-webkit-autofill:focus{-webkit-text-fill-color:var(--bone);box-shadow:0 0 0 60px var(--pill) inset;caret-color:var(--lime);transition:background-color 99999s}
.field [aria-invalid="true"]{border-color:var(--bone)}
.f-err{display:flex;align-items:flex-start;gap:8px;margin:10px 0 0 2px;font-size:.9375rem;line-height:1.45;color:var(--bone);text-wrap:pretty}
.f-err svg,.f-fail svg{width:18px;height:18px;flex:none;margin-top:1px}
.f-act{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;margin-top:6px}
.f-send{border:0;cursor:pointer}
.form[data-state="sending"] .f-send{cursor:progress;background:var(--lime-hi)}
.form[data-state="sending"] .f-send::after{opacity:.45}
.f-fail{display:flex;align-items:flex-start;gap:10px;margin:18px 0 0;max-width:46ch;font-size:1rem;line-height:1.5;color:var(--bone);text-wrap:pretty}
.f-fail:empty{display:none}
.f-ok{display:flex;align-items:flex-start;gap:18px;padding-top:6px}
.f-ok:empty{display:none}
.f-ok svg{width:44px;height:44px;flex:none}
.f-ok p{margin:4px 0 0;max-width:20em;font-family:var(--display);font-optical-sizing:auto;font-weight:400;font-size:clamp(1.5rem,2.2vw,2rem);line-height:1.15;letter-spacing:-.02em;color:var(--bone);text-wrap:balance}
.form[data-state="ok"] .f-fields{display:none}
.hp{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
/* the form is where the page leads, so it sits on its own panel: the cards' colour, a clear edge, the lime button inside */
.form{padding:clamp(22px,3vw,40px);background:var(--pill);border:1px solid var(--hair-pill);border-radius:28px;box-shadow:var(--contact)}
.form .field input,.form .field textarea{background:var(--ground-deep)}
.form .field input:-webkit-autofill,.form .field input:-webkit-autofill:hover,.form .field input:-webkit-autofill:focus{box-shadow:0 0 0 60px var(--ground-deep) inset}

/* ---------- footer: the page edge ---------- */
.foot{background:var(--ground-deep);border-top:1px solid rgba(191,200,160,.14)}
.foot-row{display:flex;align-items:center;flex-wrap:wrap;gap:14px clamp(20px,3vw,48px);padding-block:clamp(28px,5vh,44px)}
.foot .jaffai-logo{color:var(--bone);font-size:1.25rem}
.foot-copy{margin:0;font-size:.9375rem;line-height:1.3;color:var(--lichen)}
/* social profiles: quiet line icons in the site's own stroke, not brand colours */
.social{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 0 auto;padding:0}
.social a{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--hair);border-radius:999px;color:var(--lichen);transition:color .4s var(--ease-out),border-color .4s var(--ease-out)}
.social a:hover{color:var(--bone);border-color:var(--bone-soft)}
.social svg{width:20px;height:20px}

/* ---------- one calm entrance: content is visible by default; site.js only holds back what is below the fold ---------- */
[data-reveal]{transition:opacity .7s var(--ease-out),transform .7s var(--ease-out);transition-delay:calc(var(--rd,0) * 80ms)}
[data-reveal].rv-wait{opacity:0;transform:translateY(18px)}

@media (max-width:1100px){
  .faq-grid,.contact-grid{grid-template-columns:1fr}
  .crew{grid-template-columns:repeat(2,minmax(0,1fr))}
  .faq-list{margin-top:clamp(32px,5vh,48px);max-width:760px}
  .form{margin-top:clamp(36px,5vh,48px);max-width:640px}
}
/* the links fold into a menu before they can reach the centred logo */
@media (max-width:1100px){
  .menu-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--hair);border-radius:999px;background:rgba(26,34,16,.4);color:var(--lichen);cursor:pointer;transition:color .4s var(--ease-out)}
  .menu-btn:hover,.menu-btn[aria-expanded="true"]{color:var(--bone)}
  .menu-btn svg{width:20px;height:20px}
  .menu-btn path{transform-box:view-box;transform-origin:12px 12px;transition:transform .45s var(--ease-out),opacity .25s var(--ease-out)}
  .menu-btn[aria-expanded="true"] .m1{transform:rotate(45deg) translateY(5px)}
  .menu-btn[aria-expanded="true"] .m2{opacity:0;transform:scaleX(.2)}
  .menu-btn[aria-expanded="true"] .m3{transform:rotate(-45deg) translateY(-5px)}
  .links{display:none;position:absolute;top:calc(100% + 10px);left:var(--gutter);flex-direction:column;gap:2px;min-width:min(240px,calc(100vw - 2 * var(--gutter)));margin:0;padding:8px;background:var(--pill);border:1px solid var(--hair);border-radius:20px;box-shadow:var(--contact)}
  .bar nav.open .links{display:flex}
  .links a{display:block;padding:12px 14px;font-size:1.0625rem;border-radius:14px;color:var(--bone-soft)}
  .links a:hover{background:rgba(191,200,160,.1);color:var(--bone);text-decoration:none}
}
@media (max-width:760px){
  :root{--bar-pad-c:10px}
  .lang a{font-size:.875rem;min-width:42px;min-height:38px}
  /* phones: the headline comes first; the path keeps a fixed band above it instead of a whole screen */
  .hero{min-height:0}
  .stage{padding-top:max(196px,25svh);padding-bottom:clamp(24px,5vh,48px)}
  .copy{max-width:none}
  /* phones: the case studies stack, so all three are seen without discovering a swipe */
  .cs-track{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px;overflow:visible;scroll-snap-type:none;padding:4px var(--gutter) 0}
  .cs-nav{display:none}
  .cs-foot .cs-tag{display:none}
  h1{font-size:min(9.6vw,3.1rem);line-height:1}
  .sub{font-size:1rem;line-height:1.5}
  .act{gap:14px}
  .cta{height:52px;font-size:1rem}
  .step{font-size:.875rem;gap:8px;padding:7px 12px 7px 9px}
  .step.sp{padding:7px 10px 7px 12px}
  .step svg{width:16px;height:16px}
  .step .ok{width:13px;height:13px}

  .approach{--nc:36px;--indent:0px;--rgap:44px}
  .rpill{font-size:.875rem;gap:8px;padding:7px 12px 7px 9px}
  .rpill svg{width:16px;height:16px}
  .r-step{column-gap:14px}
  .r-node{width:26px;height:26px;margin-top:calc((1.12em - 26px) / 2)}
  .r-node svg{width:13px;height:13px}
  .r-text{font-size:1rem;line-height:1.5}
  .lede,.qa p{font-size:1rem;line-height:1.5}
  .f-row{grid-template-columns:1fr}
  .field input{height:52px}
  .foot-row{gap:18px 20px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

/* ---------- example previews: illustrations of each case (a drafted reply, a chat, a filed document), not screenshots ---------- */
.pv{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:16px;background:var(--ground-deep);border:1px solid rgba(191,200,160,.14);font-size:.875rem;line-height:1.4;color:var(--bone-soft)}
.pv-meta,.pv-foot,.pv-arrow,.pv-sub{font-size:.875rem;color:var(--lichen)}
.pv-foot{text-align:center}
.pv-arrow{align-self:flex-start;padding-left:15px}
.pv-in{align-self:flex-end;max-width:85%;padding:8px 12px;border-radius:14px 14px 4px 14px;background:rgba(191,200,160,.16);color:var(--bone)}
.pv-out{align-self:flex-start;max-width:88%;padding:8px 12px;border-radius:14px 14px 14px 4px;background:var(--moss);color:var(--bone)}
.pv-btn{align-self:flex-start;padding:6px 12px;border-radius:999px;border:1px solid var(--bone-soft);color:var(--bone);font-weight:600}
.pv-file{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;border:1px dashed rgba(191,200,160,.35);color:var(--bone-soft)}
.pv-fn{display:flex;flex-direction:column;min-width:0}
.pv-file svg{width:18px;height:18px;flex:none;color:var(--lichen)}
.pv-card{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:12px;background:var(--pill);border:1px solid var(--hair-pill)}
.pv-row,.pv-act{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pv-title{font-weight:600;color:var(--bone)}
.pv-tag{padding:2px 8px;border-radius:999px;background:rgba(191,200,160,.16);font-size:.875rem;color:var(--bone-soft);white-space:nowrap}
.pv-approve{padding:5px 12px;border-radius:999px;background:var(--bone);color:var(--ink);font-weight:600}

/* ---------- a case study page: the team's text in the JAFFAI system ---------- */
.cs-page{padding-top:calc(var(--bar-top) + 44px + clamp(36px,6.5vh,88px));padding-bottom:var(--sec-pad)}
.cs-back{flex-direction:row-reverse}
.cs-back svg{transform:scaleX(-1)}
.cs-back:hover svg{transform:scaleX(-1) translateX(4px)}
.cs-only{margin:16px 0 0;max-width:60ch;font-size:.9375rem;color:var(--bone-soft)}
html:not([lang="en"]) .cs-only{display:none}
.cs-hero{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:40px clamp(32px,6vw,112px);align-items:center;margin-top:clamp(28px,4.4vh,44px)}
.cs-hero .pv{font-size:.9375rem;padding:20px;max-width:420px;width:100%;justify-self:end}
.cs-hero .pv-meta,.cs-hero .pv-sub,.cs-hero .pv-foot,.cs-hero .pv-arrow{font-size:.875rem}
.pv-txt{color:var(--bone-soft)}
.cs-h1{margin:18px 0 0;font:720 clamp(2.125rem,3.7vw,3.5rem)/1.04 var(--display);font-optical-sizing:auto;letter-spacing:-.035em;color:var(--bone);text-wrap:balance;max-width:15em}
.cs-lede{margin:clamp(18px,2.8vh,28px) 0 0;max-width:58ch;font-size:clamp(1.0625rem,1.4vw,1.25rem);line-height:1.55;color:var(--lichen);text-wrap:pretty}
.cs-stats{list-style:none;margin:clamp(48px,8vh,88px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px clamp(24px,3vw,48px)}
.cs-stats li{padding-top:18px;border-top:1px solid var(--hair)}
.cs-stat{margin:0;font:300 clamp(2.5rem,4.4vw,4rem)/1 var(--display);font-optical-sizing:auto;letter-spacing:-.03em;color:var(--bone)}
.cs-stat-l{margin:12px 0 0;max-width:30ch;font-size:1rem;line-height:1.5;color:var(--lichen)}
.cs-fn{margin:16px 0 0;max-width:70ch;font-size:.875rem;line-height:1.5;color:var(--lichen)}
.cs-sec{margin-top:calc(var(--sec-pad) * 1.4)}
.cs-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px clamp(32px,6vw,112px);align-items:start}
.cs-h2{margin:0;font:400 clamp(1.75rem,3vw,2.75rem)/1.1 var(--display);font-optical-sizing:auto;letter-spacing:-.025em;color:var(--bone);max-width:20em;text-wrap:balance}
.cs-h3{margin:0 0 18px;font:600 1.125rem/1.3 var(--sans);color:var(--bone)}
.cs-p{margin:16px 0 0;max-width:62ch;font-size:var(--body);line-height:1.6;color:var(--lichen);text-wrap:pretty}
.cs-call{padding:clamp(24px,3vw,36px);border-radius:22px;background:var(--pill);border:1px solid var(--hair)}
.cs-call-n{margin:0;font:300 clamp(3rem,5vw,4.5rem)/1 var(--display);letter-spacing:-.03em;color:var(--bone)}
.cs-call-t{margin:14px 0 0;font-size:var(--body);line-height:1.5;color:var(--bone-soft)}
.cs-bars{display:flex;flex-direction:column;gap:14px;margin-top:28px;max-width:860px}
.cs-two .cs-bars{margin-top:0}
.bar-row{display:grid;grid-template-columns:minmax(0,15rem) minmax(0,1fr) 4.5rem;gap:16px;align-items:center;font-size:1rem;color:var(--bone-soft)}
.bar-t{height:10px;border-radius:5px;background:rgba(191,200,160,.12)}
.bar-f{display:block;height:100%;border-radius:inherit;background:var(--moss-hi)}
.bar-v{text-align:right;font-variant-numeric:tabular-nums;color:var(--bone)}
.bar-tot{display:flex;justify-content:space-between;padding-top:14px;border-top:1px solid var(--hair);font-weight:600;color:var(--bone)}
.cs-legend{display:flex;flex-wrap:wrap;gap:10px 24px;margin:24px 0 0;font-size:.9375rem;color:var(--lichen)}
.cs-legend span{display:inline-flex;align-items:center;gap:8px}
.sw{width:14px;height:14px;border-radius:4px;border:1px solid var(--hair-pill)}
.sw.hum{border-color:var(--bone-soft);background:rgba(220,223,200,.22)}
.cs-steps{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.cs-step{padding:22px;border-radius:18px;border:1px solid var(--hair)}
.cs-step.hum{border-color:var(--bone-soft);background:rgba(220,223,200,.06)}
.cs-step-m{margin:0;font-size:.875rem;color:var(--lichen)}
.cs-step.hum .cs-step-m{color:var(--bone)}
.cs-step h3{margin:8px 0;font:600 1.125rem/1.3 var(--sans);color:var(--bone)}
.cs-step p:last-child{margin:0;font-size:.9375rem;line-height:1.55;color:var(--lichen)}
.cs-chips-h{margin-top:clamp(32px,5vh,44px)}
.cs-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cs-chips li{padding:7px 14px;border:1px solid var(--hair);border-radius:999px;font-size:.9375rem;color:var(--bone-soft)}
.cs-table{overflow-x:auto;margin-top:28px}
.cs-table table{width:100%;min-width:600px;border-collapse:collapse;font-size:1rem}
.cs-table thead th{padding:0 16px 12px 0;text-align:left;font-weight:500;font-size:.875rem;color:var(--lichen)}
.cs-table thead th.a{color:var(--bone)}
.cs-table tbody th,.cs-table td{padding:16px 16px 16px 0;border-top:1px solid var(--hair);text-align:left;vertical-align:top}
.cs-table tbody th{width:30%;font-weight:600;color:var(--bone)}
.cs-table td.b{color:var(--lichen)}
.cs-table td.a{color:var(--bone)}
.cs-list{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:14px;max-width:60ch;font-size:var(--body);line-height:1.55;color:var(--lichen)}
.cs-list strong{color:var(--bone);font-weight:600}
.cs-tl{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:28px 24px}
.cs-tl li{padding-top:16px;border-top:2px solid var(--moss-hi)}
.cs-tl-m{margin:0;font-size:.875rem;font-weight:600;color:var(--lichen)}
.cs-tl h3{margin:8px 0 6px;font:600 1.0625rem/1.3 var(--sans);color:var(--bone)}
.cs-tl p:last-child{margin:0;font-size:.9375rem;line-height:1.55;color:var(--lichen)}
.cs-prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-top:28px;max-width:1100px}
.cs-price{padding:clamp(24px,3vw,32px);border-radius:22px;background:var(--pill);border:1px solid var(--hair)}
.cs-price.main{border-color:var(--bone-soft)}
.cs-price-l{margin:0;font-size:.875rem;font-weight:600;color:var(--lichen)}
.cs-price h3{margin:8px 0 12px;font:600 1.25rem/1.3 var(--sans);color:var(--bone)}
.cs-price-a{margin:0;font:400 clamp(2rem,3vw,2.5rem)/1 var(--display);letter-spacing:-.02em;color:var(--bone)}
.cs-price-s{margin:8px 0 0;font-size:.875rem;color:var(--lichen)}
.cs-price-s strong{color:var(--bone-soft)}
.cs-price ul{margin:20px 0 0;padding:0 0 0 18px;display:flex;flex-direction:column;gap:8px;font-size:1rem;line-height:1.5;color:var(--lichen)}
.cs-price ul strong{color:var(--bone)}
.cs-page .faq-grid{margin-top:calc(var(--sec-pad) * 1.4)}
.cs-end{margin-top:calc(var(--sec-pad) * 1.4);padding:clamp(28px,5vw,56px);border-radius:28px;background:var(--ground-deep);border:1px solid var(--hair);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px 48px}
.cs-end>div{flex:1 1 30rem}
.cs-tech{margin:24px 0 0;font-size:.875rem;color:var(--lichen)}
.cs-others{margin-top:clamp(56px,9vh,96px);padding-top:28px;border-top:1px solid var(--hair);display:flex;flex-wrap:wrap;align-items:center;gap:8px 40px}
.cs-others h2{margin:0;flex-basis:100%}
@media (max-width:860px){
  .cs-hero,.cs-two{grid-template-columns:1fr}
  .cs-hero .pv{justify-self:start}
  .cs-stats{grid-template-columns:1fr}
  .bar-row{grid-template-columns:minmax(0,1fr) 4.5rem;row-gap:6px}
  .bar-l{grid-column:1/-1}
}
.cs-close{margin-top:clamp(40px,6vh,64px)}

/* narrow phones: only the start and end of the hero path keep their labels, so long Polish steps never collide */
@media (max-width:480px){
  .step.sp{visibility:hidden}
}
/* before/after on phones: each row stacks, both columns stay visible */
@media (max-width:640px){
  .cs-table table{min-width:0}
  .cs-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .cs-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;padding:14px 0;border-top:1px solid var(--hair)}
  .cs-table tbody th{grid-column:1/-1;width:auto;padding:0 0 8px;border:0}
  .cs-table td{padding:0;border:0}
  .cs-table td::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:.875rem;font-weight:500;color:var(--lichen)}
}

/* very narrow screens (small phones, narrow windows): a tighter logo and language switch so the bar never overlaps */
@media (max-width:360px){
  .bar .jaffai-logo{font-size:.9375rem;letter-spacing:.2em;margin-right:-.2em}
  .lang a{min-width:38px;padding:0 8px}
}

@media (max-width:620px){
  .crew{grid-template-columns:minmax(0,1fr)}
}
/* narrow phones: the long ask keeps to the screen (and to the form panel); on the narrowest it may take two lines */
@media (max-width:400px){
  .cta{gap:10px;padding:0 18px 0 22px;font-size:.9375rem;line-height:1.2;white-space:normal;text-align:left}
  .form{padding:20px 16px}
}

/* the right end of the bar: the standing ask (contact) beside the language; quiet, so the hero button stays the one lime action */
.bar-end{justify-self:end;display:flex;align-items:center;gap:12px}
.bar-cta{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid var(--hair-pill);border-radius:999px;background:rgba(26,34,16,.4);color:var(--bone);font:600 .9375rem/1 var(--sans);letter-spacing:.005em;text-decoration:none;white-space:nowrap;transition:border-color .4s var(--ease-out),opacity .35s var(--ease-out),visibility 0s}
.bar-cta:hover{border-color:var(--lime)}
/* one ask on screen at a time: the bar's button steps aside while a page button or the form is in view (site.js) */
.bar.ask-off .bar-cta{opacity:0;visibility:hidden;transition:opacity .35s var(--ease-out),visibility 0s linear .35s}
.links .in-menu{display:none}
/* the blog is announced, not linked: no empty page behind it */
.soon{display:flex;align-items:center;gap:8px;padding:8px 0;color:var(--lichen);font-size:1rem;font-weight:500;cursor:default}
.soon-tag{padding:3px 8px;border:1px solid var(--hair);border-radius:999px;font-size:.875rem;font-weight:500;letter-spacing:.02em;color:var(--lichen)}
/* just above the fold point the links sit closer together, so they keep clear of the centred logo */
@media (min-width:1101px) and (max-width:1250px){
  .links{gap:20px}
}
@media (max-width:1100px){
  .bar-cta{display:none}
  .links .in-menu{display:block}
  .soon{padding:12px 14px;font-size:1.0625rem}
}

/* nav: "Case studies" opens a short list of the case studies (hover, keyboard focus or the arrow button) */
.has-sub{position:relative;display:flex;align-items:center;gap:2px}
.has-sub::after{content:"";position:absolute;left:0;right:0;top:100%;height:12px}
.sub-btn{display:inline-grid;place-items:center;width:26px;height:30px;padding:0;border:0;border-radius:8px;background:none;color:var(--lichen);cursor:pointer;transition:color .4s var(--ease-out)}
.sub-btn svg{width:16px;height:16px;transition:transform .4s var(--ease-out)}
.sub-btn:hover{color:var(--bone)}
.subnav{position:absolute;top:calc(100% + 10px);left:-12px;z-index:5;min-width:300px;margin:0;padding:8px;list-style:none;background:var(--pill);border:1px solid var(--hair);border-radius:16px;box-shadow:var(--contact);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .3s var(--ease-out),transform .3s var(--ease-out),visibility 0s linear .3s}
.has-sub:hover .subnav,.has-sub:focus-within .subnav,.has-sub.open .subnav{opacity:1;visibility:visible;transform:none;transition:opacity .3s var(--ease-out),transform .3s var(--ease-out),visibility 0s}
.has-sub:hover .sub-btn svg,.has-sub.open .sub-btn svg{transform:rotate(180deg)}
.links .subnav a{display:block;padding:10px 12px;border-radius:10px;font-size:.9375rem;color:var(--bone-soft);white-space:nowrap}
.links .subnav a:hover{background:rgba(191,200,160,.1);color:var(--bone);text-decoration:none}
@media (max-width:1100px){
  /* inside the menu panel the case studies are simply listed under their heading */
  .has-sub{display:block}
  .has-sub::after{display:none}
  .sub-btn{display:none}
  .subnav{position:static;min-width:0;padding:0 0 4px 14px;background:none;border:0;box-shadow:none;opacity:1;visibility:visible;transform:none}
  .links .subnav a{padding:9px 14px;font-size:.9375rem;white-space:normal;color:var(--lichen)}
}

/* case study: "W skrócie" (at a glance) in the first screen: timeline, price, result and the ask */
.cs-brief{display:flex;flex-wrap:wrap;align-items:center;gap:20px 32px;margin-top:clamp(24px,3.6vh,36px);padding-top:clamp(18px,2.6vh,24px);border-top:1px solid var(--hair)}
.cs-brief dl{display:flex;flex-wrap:wrap;gap:14px clamp(20px,3vw,40px);margin:0}
.cs-brief dt{font-size:.875rem;font-weight:600;color:var(--lichen)}
.cs-brief dd{margin:4px 0 0;font-size:1rem;line-height:1.4;color:var(--bone)}
.cs-fn a{color:var(--bone-soft);text-decoration-color:rgba(191,200,160,.5)}

/* footer link to the privacy policy */
.foot-link{font-size:.9375rem;color:var(--lichen);text-underline-offset:.3em;text-decoration-color:rgba(191,200,160,.45)}
.foot-link:hover{color:var(--bone)}

/* under the form: when we reply and what happens to the data */
.f-note{margin:18px 0 0;max-width:72ch;font-size:.9375rem;line-height:1.5;color:var(--lichen);text-wrap:pretty}
.f-note a{color:var(--bone-soft);text-underline-offset:.3em}

/* privacy policy (a draft until the company details and a lawyer's check are in) */
.legal{padding-top:calc(var(--bar-top) + 44px + clamp(36px,6.5vh,88px));padding-bottom:var(--sec-pad)}
.legal > *{max-width:820px}
.legal-draft{margin:20px 0 0;padding:14px 18px;border:1px dashed var(--hair-pill);border-radius:14px;font-size:.9375rem;line-height:1.5;color:var(--bone-soft)}
.legal-sec{margin-top:clamp(32px,5vh,48px);padding-top:20px;border-top:1px solid var(--hair)}
.legal-sec h2{margin:0;font:400 clamp(1.25rem,1.8vw,1.625rem)/1.2 var(--display);font-optical-sizing:auto;letter-spacing:-.015em;color:var(--bone)}
.legal-sec p{margin:12px 0 0;max-width:68ch;font-size:var(--body);line-height:1.6;color:var(--lichen);text-wrap:pretty}
.ph{padding:0 5px;border:1px dashed rgba(191,200,160,.6);border-radius:5px;color:var(--bone)}

/* 404: the path that leads nowhere */
.nf{padding-top:calc(var(--bar-top) + 44px + clamp(48px,10vh,120px));padding-bottom:var(--sec-pad)}
.nf-path{display:block;width:min(320px,80vw);height:auto;margin-bottom:clamp(20px,3vh,32px)}
.nf-path path{fill:none;stroke:var(--moss-hi);stroke-width:2;stroke-linecap:round}
.nf-path .nf-off{stroke:rgba(191,200,160,.4);stroke-dasharray:2 6}
.nf-start{fill:var(--lichen)}
.nf-end{fill:none;stroke:var(--lichen);stroke-width:1.5;stroke-dasharray:3 4}
.nf-code{margin:0;font:300 clamp(1.25rem,2vw,1.5rem)/1 var(--display);letter-spacing:.06em;color:var(--lichen)}
.nf .cs-h1{margin-top:12px}
.nf-en{margin:14px 0 0;max-width:58ch;font-size:1rem;line-height:1.5;color:var(--lichen)}
.nf-links{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin:clamp(28px,4vh,40px) 0 0}

/* text for screen readers and search engines only */
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
