/* Lulative shared styles: the tokens and the button, loaded by every page of the site.
   Source of every value: 06_branding/Guides/lulative_spec.md. Change a value here, never in a page. */
:root{
  /* ── Lulative tokens: the one menu every rule below draws from (spec: 06_branding/Guides/lulative_spec.md §11 to §14) ── */
  /* Layers (z-index): what sits on top of what across the whole page; levels 0-3 inside one component stay numbers */
  --layer-bg:-1;--layer-tile-hover:20;--layer-hero:25;--layer-menu:26;--layer-foot:27;--layer-page-under-menu:45;--layer-nav:50;--layer-viewer:55;--layer-cursor:60;
  /* Motion durations: every transition and animation length uses one of these; delays and choreography stay numbers */
  --dur-tap:.1s;--dur-fast:.15s;--dur-base:.25s;--dur-mid:.45s;--dur-slow:.7s;--dur-long:1s;
  /* Color: primary */
  --green:#2fa43e;--green-deep:#2d8a37;--ink:#1a1f1c;--ink-mute:#6a6a6a;--paper:#fcfbf2;--rule:#d8d6cd;--white:#ffffff;
  /* Color: secondary accents (one per category) */
  --lime:#a3e635;--sun:#f5d547;--amber:#f0a020;--rose:#e54a7e;--magenta:#b347a8;--indigo:#5a4fcf;--azure:#2f8fd6;
  /* Color: blooms */
  --bloom-green:#ecf7ed;--bloom-sun:#fdf8e2;--bloom-amber:#fdf2e0;--bloom-rose:#fcedf2;--bloom-magenta:#f7edf6;--bloom-indigo:#eeedfa;--bloom-azure:#eaf4fb;
  /* Grounds */
  --dots:radial-gradient(circle,rgba(26,31,28,.16) 1.15px,transparent 1.6px) center/30px 30px;
  --dots-dark:radial-gradient(circle,rgba(252,251,242,.09) 1.15px,transparent 1.6px) center/30px 30px;
  /* Faces */
  --serif:"DM Serif Display",Georgia,serif;--sans:"Quicksand",system-ui,sans-serif;--mono:"JetBrains Mono",ui-monospace,monospace;
  /* Type scale (spec §12): one fluid scale, phone 14.22 px x 1.125 at 390 px (lead 16, body 14.2), desktop 17 px x 1.2 at 1440 px.
     Each step is the body size times the ratio n times; every step grows between the same two widths, so the levels keep their proportions. */
  --step-7:clamp(2.0273rem,1.3662rem + 2.7121vw,3.8071rem);--step-6:clamp(1.8020rem,1.2930rem + 2.0885vw,3.1726rem);--step-5:clamp(1.6018rem,1.2148rem + 1.5879vw,2.6438rem);--step-4:clamp(1.4238rem,1.1343rem + 1.1876vw,2.2032rem);--step-3:clamp(1.2656rem,1.0538rem + 0.8691vw,1.8360rem);
  --step-2:clamp(1.1250rem,0.9746rem + 0.6171vw,1.5300rem);--step-1:clamp(1.0000rem,0.8979rem + 0.4190vw,1.2750rem);--step-0:clamp(0.8889rem,0.8244rem + 0.2646vw,1.0625rem);--step--1:clamp(0.7901rem,0.7547rem + 0.1452vw,0.8854rem);--step--2:clamp(0.7023rem,0.6891rem + 0.0541vw,0.7378rem);
  /* Type levels: every text on the site uses one of these 16; the size is a step of the scale (cursor, chip and thumb stay fixed: they are inside the small drawings) */
  --type-display:400 var(--step-7)/1.04 var(--serif);
  --type-h1:400 var(--step-6)/1.08 var(--serif);
  --type-h2:400 var(--step-5)/1.1 var(--serif);
  --type-h3:400 var(--step-4)/1.1 var(--serif);
  --type-h4:400 var(--step-3)/1.1 var(--serif);
  --type-stat:400 var(--step-1)/1.2 var(--serif);
  --type-subtitle:400 var(--step-2)/1.3 var(--serif);
  --type-lead:500 var(--step-1)/1.5 var(--sans);
  --type-subhead:600 var(--step-0)/1.4 var(--sans);
  --type-body:500 var(--step-0)/1.5 var(--sans);
  --type-button:600 var(--step-0) var(--sans);
  --type-pill:600 var(--step--1)/1.3 var(--sans);
  --type-cursor:600 11px/1 var(--sans);
  --type-label:500 var(--step--2) var(--mono);
  --type-chip:500 10px/1 var(--mono);
  --type-thumb:500 9px/1.2 var(--mono);
  /* Radii */
  --r:15px;--r-tile:10px;--r-input:12px;--r-img:8px;--r-chip:4px;--r-pill:999px;--r-hl:.35em;
  /* Shadows (Ink at 50%) */
  --shadow-card:0 0 10px -5px rgba(26,31,28,.5),0 10px 30px -12px rgba(26,31,28,.5);
  --shadow-lift:0 2px 4px rgba(26,31,28,.5),0 22px 44px -16px rgba(26,31,28,.5);
  --shadow-viewer:0 0 10px -5px rgba(26,31,28,.5),0 6px 26px -12px rgba(26,31,28,.5);
  --shadow-fan:0 14px 32px -12px rgba(26,31,28,.5);
  --shadow-island:0 3px 10px -5px rgba(26,31,28,.5);
  /* Motion: --ease is the brand ease; the rest are the site's named exceptions */
  --ease:cubic-bezier(.22,1,.36,1);
  --ease-draw:cubic-bezier(.65,0,.35,1);   /* doodles, language switch, cursor */
  --ease-enter:cubic-bezier(.215,.61,.355,1); /* page and button entrances, 0.7 s */
  --ease-lift:cubic-bezier(.22,1.4,.36,1);  /* hover lift with a small bounce */
  --ease-fan:cubic-bezier(.22,1.3,.36,1);   /* project fans */
  --ease-tile:cubic-bezier(.22,1.2,.36,1);  /* hero thumbnails arriving */
  --ease-pop:cubic-bezier(.34,1.56,.64,1);  /* About speech bubble */
  /* Buttons: height and side padding follow the button text (step 0) */
  /* spacing steps (owner, 2026-11-20): one list for every margin, padding and gap; shrink on phones like the text (x0.836 at 390 px, x1 from 1440 px) */
  --sp-2:clamp(1.67px,calc(1.67px + (100vw - 390px) * 0.00031),2px);
  --sp-4:clamp(3.35px,calc(3.35px + (100vw - 390px) * 0.00062),4px);
  --sp-6:clamp(5.02px,calc(5.02px + (100vw - 390px) * 0.00093),6px);
  --sp-8:clamp(6.69px,calc(6.69px + (100vw - 390px) * 0.00125),8px);
  --sp-12:clamp(10.04px,calc(10.04px + (100vw - 390px) * 0.00187),12px);
  --sp-16:clamp(13.38px,calc(13.38px + (100vw - 390px) * 0.00249),16px);
  --sp-20:clamp(16.73px,calc(16.73px + (100vw - 390px) * 0.00311),20px);
  --sp-24:clamp(20.08px,calc(20.08px + (100vw - 390px) * 0.00374),24px);
  --sp-32:clamp(26.77px,calc(26.77px + (100vw - 390px) * 0.00498),32px);
  --sp-40:clamp(33.46px,calc(33.46px + (100vw - 390px) * 0.00623),40px);
  --sp-48:clamp(40.15px,calc(40.15px + (100vw - 390px) * 0.00747),48px);
  --sp-64:clamp(53.54px,calc(53.54px + (100vw - 390px) * 0.00997),64px);
  --sp-80:clamp(66.92px,calc(66.92px + (100vw - 390px) * 0.01246),80px);
  --sp-96:clamp(80.30px,calc(80.30px + (100vw - 390px) * 0.01495),96px);
  --sp-128:clamp(107.07px,calc(107.07px + (100vw - 390px) * 0.01993),128px);
  --sp-160:clamp(133.84px,calc(133.84px + (100vw - 390px) * 0.02491),160px);
  --sp-320:clamp(267.68px,calc(267.68px + (100vw - 390px) * 0.04983),320px);
  --btn-h:calc(var(--step-0) * 2.5);--btn-px:calc(var(--step-0) * 1.375);
  /* Pills: the same proportions, from the pill text (step −1); capability pills use the button ones (their text is body, step 0) */
  --pill-h:calc(var(--step--1) * 2.5);--pill-px:calc(var(--step--1) * 1.375);
  --s:1;
}

/* ── Button (spec §13): Green, white text, Quicksand 600, full radius, height 2.5x its text; hover Green-Deep. Used by the menu button, the calls to action and the contact form. ── */
.btn,.menu-btn,.fmt-cta,.cta-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;height:var(--btn-h);box-sizing:border-box;padding:0 var(--btn-px);border:1px solid var(--green);border-radius:var(--r-pill);background:var(--green);color:var(--white);font:var(--type-button);white-space:nowrap;cursor:pointer;text-decoration:none;transition:background-color var(--dur-base),border-color var(--dur-base),color var(--dur-base),scale var(--dur-base) var(--ease)}
.btn:hover,.btn:focus-visible,.fmt-cta:hover,.fmt-cta:focus-visible,.menu-btn:hover,.menu-btn:focus-visible,.menu-btn.is-open,.cta-btn:hover:not(:disabled),.cta-btn:focus-visible{background:var(--green-deep);border-color:var(--green-deep);color:var(--white)}
/* Ghost button (spec §13): Paper ground, green text and border; hover 12% green tint, Green-Deep. */
.fmt-cta.fmt-ghost{background:var(--paper);color:var(--green);border-color:var(--green)}
.fmt-cta.fmt-ghost:hover,.fmt-cta.fmt-ghost:focus-visible{background:color-mix(in srgb,var(--green) 12%,var(--paper));color:var(--green-deep);border-color:var(--green-deep)}
/* Pressed (all buttons and pills): shrink to 97% in 0.1 s, spring back with the brand ease. No new color: hover already darkens. */
.btn:active,.menu-btn:active,.fmt-cta:active,.cta-btn:active:not(:disabled){scale:.97;transition:background-color var(--dur-base),border-color var(--dur-base),color var(--dur-base),scale var(--dur-tap) var(--ease)}

/* ── Top bar and footer: one version for every page (moved from index.html, 24 Nov 2026) ── */
.nav{position:fixed;inset:0 0 auto 0;z-index:var(--layer-nav);display:flex;align-items:center;justify-content:space-between;padding:var(--sp-20) max(var(--sp-16),4vw)}
.nav-logo{display:inline-flex;align-items:center;height:var(--btn-h);box-sizing:border-box;padding:0 17.25px;background:var(--paper);border-radius:var(--r-pill)}
.nav-logo img{height:29.5px;width:auto}
.lang{display:flex;border:1px solid var(--green);border-radius:var(--r-pill);background:var(--paper)}
.lang button{font:var(--type-button);border:0;border-radius:var(--r-pill);background:transparent;color:var(--green);cursor:pointer;white-space:nowrap;transition:background-color var(--dur-base),border-color var(--dur-base),color var(--dur-base);height:100%;padding:0 var(--btn-px)}
.nav-right{display:flex;align-items:center;gap:var(--sp-12)}
.foot{padding:var(--sp-40) max(var(--sp-32),4vw) var(--sp-48);margin-top:var(--sp-80);font:var(--type-label);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-mute)}
.foot b{color:var(--green);letter-spacing:.2em}
.foot address{display:inline;font-style:normal}
.foot .hl{padding:.06em .3em .1em}
.foot a{color:var(--green)}
@media (max-width:700px){.nav-logo img{height:23.6px}.nav-right{gap:var(--sp-6)}}
.lang{height:var(--btn-h);box-sizing:border-box}
.lang button,.menu-btn{font-size:var(--step-0)}
.lang{position:relative}
.lang button{font-weight:600}
@media (max-width:700px){.nav{padding:var(--sp-12) var(--sp-16)}.nav .nav-logo,.nav .menu-btn,.nav .lang{height:34px}.nav .nav-logo{padding-left:5.72px;padding-right:5.72px}.nav-logo img{height:26.6px}.nav .menu-btn,.nav .lang button{padding-left:var(--sp-12);padding-right:var(--sp-12)}.nav .lang .lf{display:none}.nav .lang .ls{display:inline}}
.lang .ls{display:none}
@media (max-width:380px){.nav .nav-logo img{height:20px}.nav .nav-logo{padding-left:5px;padding-right:5px}}
.nav-logo,.lang button{position:relative}
