/* ==========================================================================
   Oli's Bio — design system "Hydro"
   Deep greenhouse green + grow-light lime + fruit accents.
   Edit the tokens in :root and the whole site follows.
   ========================================================================== */

:root {
  /* ---- Colour ---- */
  --deep: #0C2A1C;          /* greenhouse green: hero, footer, blocks */
  --deep-2: #143B27;
  --bg: #FBFAF4;            /* warm near-white */
  --bg-2: #F0EEE2;          /* sand */
  --lime: #C3E048;          /* grow light */
  --lime-soft: #E8F2C4;
  --tomato: #E24A2E;
  --tomato-soft: #FBE6E0;
  --berry: #F26A85;
  --berry-soft: #FDE7EC;
  --ink: #14251B;
  --muted: rgba(20, 37, 27, 0.64);
  --muted-2: rgba(20, 37, 27, 0.44);
  --line: rgba(20, 37, 27, 0.14);
  --on-deep: #F4F6EC;
  --on-deep-muted: rgba(244, 246, 236, 0.68);

  /* ---- Type ---- */
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ---- Shape ---- */
  --wrap: 1200px;
  --gutter: clamp(18px, 4.5vw, 44px);
  --r-xl: 36px;
  --r-lg: 24px;
  --r: 14px;
  --pill: 999px;
  --header-h: 76px;
  --ring: 0 0 0 1px var(--line);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--deep);
  text-wrap: balance;
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 14px; top: -70px; z-index: 200;
  background: var(--deep); color: var(--on-deep); padding: 12px 20px;
  border-radius: var(--pill); text-decoration: none; transition: top .18s ease;
}
.skip-link:focus { top: 14px; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--deep); background: var(--lime); padding: 7px 14px; border-radius: var(--pill);
}
.tag--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.tag--onDeep { background: rgba(195, 224, 72, .16); color: var(--lime); }

section { padding-block: clamp(64px, 9vw, 128px); }
.head { max-width: 22ch; }
.head--wide { max-width: 34ch; }
.head h2 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  margin-top: 22px;
}
.head p { margin-top: 20px; color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.head + * { margin-top: clamp(38px, 5vw, 64px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--pill);
  font-family: var(--body); font-size: 0.97rem; font-weight: 500; text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lime { background: var(--lime); color: var(--deep); }
.btn--lime:hover { background: #d0ea63; }
.btn--deep { background: var(--deep); color: var(--on-deep); }
.btn--deep:hover { background: var(--deep-2); }
.btn--tomato { background: var(--tomato); color: #fff; }
.btn--tomato:hover { background: #cf3f24; }
.btn--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--deep); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--deep); }
.btn--onDeep { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(244,246,236,.3); color: var(--on-deep); }
.btn--onDeep:hover { box-shadow: inset 0 0 0 1.5px var(--lime); color: var(--lime); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 250, 244, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 18px 40px -34px rgba(12,42,28,.7); }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 38px; width: auto; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-block; text-decoration: none; font-size: 0.93rem; color: var(--muted);
  padding: 9px 14px; border-radius: var(--pill); transition: background-color .16s ease, color .16s ease;
}
.site-nav a:hover { color: var(--deep); background: rgba(20,37,27,.05); }
.site-nav a.is-active { color: var(--deep); background: var(--lime-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 40px; border-radius: var(--pill);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: .06em;
  text-decoration: none; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .16s ease, background-color .16s ease;
}
.lang-switch:hover { box-shadow: inset 0 0 0 1.5px var(--deep); background: var(--lime-soft); }
.header-actions .btn { padding: 12px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--pill);
  background: var(--deep); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 17px; height: 2px; background: var(--on-deep); border-radius: 2px;
  transition: transform .24s ease, opacity .16s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(16px, 2vw, 28px) clamp(40px, 6vw, 72px); }
.hero__panel {
  position: relative;
  background: var(--deep);
  color: var(--on-deep);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero__panel::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(195,224,72,.16), rgba(195,224,72,0) 66%); pointer-events: none;
}
.hero__content { position: relative; z-index: 2; }
.hero h1 {
  color: var(--on-deep);
  font-size: clamp(2.5rem, 7.2vw, 5.1rem);
  margin: 26px 0 24px;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__lead { color: var(--on-deep-muted); font-size: clamp(1.02rem, 1.4vw, 1.17rem); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__visual { position: relative; z-index: 1; display: grid; place-items: center; }
.arch { width: min(100%, 400px); height: auto; }

/* rotating seal */
.seal { position: absolute; width: clamp(96px, 12vw, 148px); right: -6px; bottom: -10px; z-index: 3; }
.seal__text { font-family: var(--mono); font-size: 11.4px; letter-spacing: .16em; fill: var(--deep); text-transform: uppercase; }
.seal__ring { transform-origin: 80px 80px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal__ring { animation: none; } }

/* stat strip under the hero */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px;
}
.metric {
  background: var(--bg-2); border-radius: var(--r-lg); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px; min-height: 100%;
}
.metric:nth-child(2) { background: var(--lime-soft); }
.metric:nth-child(3) { background: var(--tomato-soft); }
.metric:nth-child(4) { background: var(--berry-soft); }
.metric__num { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.04em; color: var(--deep); line-height: 1; }
.metric__label { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker { background: var(--lime); overflow: hidden; padding-block: 15px; }
.ticker__track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span {
  display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; padding-inline: 30px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--deep);
}
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--deep); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ==========================================================================
   Products
   ========================================================================== */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.product {
  border-radius: var(--r-xl); padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .24s cubic-bezier(.2,.7,.3,1);
}
.product:hover { transform: translateY(-4px); }
.product--tomato { background: var(--tomato-soft); }
.product--berry { background: var(--berry-soft); }
.product__art { width: clamp(140px, 20vw, 200px); height: auto; margin-left: auto; margin-bottom: 6px; }
.product h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 16px 0 14px; }
.product__text { color: var(--muted); font-size: 1rem; max-width: 42ch; }
.product__features { list-style: none; margin-top: 24px; display: grid; gap: 11px; }
.product__features li { position: relative; padding-left: 28px; font-size: 0.94rem; color: var(--ink); }
.product__features li::before {
  content: ""; position: absolute; left: 0; top: 0.34em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 4.9 8.4 9.4 3.9' fill='none' stroke='%23C3E048' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.product__specs { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: rgba(255,255,255,.72); border-radius: var(--pill); padding: 8px 14px;
  font-size: 0.82rem; box-shadow: inset 0 0 0 1px rgba(20,37,27,.08);
}
.chip b { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; }
.products-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { background: var(--bg-2); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 22px); }
.step {
  background: var(--bg); border-radius: var(--r-lg); padding: 30px 26px 32px;
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.step__icon { width: 34px; height: 34px; color: var(--deep); }
.step__icon svg { width: 100%; height: 100%; }
.step__n { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .16em; color: var(--tomato); }
.step h3 { font-size: 1.18rem; letter-spacing: -0.02em; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ==========================================================================
   Why — bento grid
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.bento__item {
  border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 34px);
  background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; justify-content: flex-end;
  min-height: 190px;
}
.bento__item:nth-child(1) { grid-column: span 3; background: var(--deep); color: var(--on-deep); }
.bento__item:nth-child(1) h3 { color: var(--lime); }
.bento__item:nth-child(1) p { color: var(--on-deep-muted); }
.bento__item:nth-child(2) { grid-column: span 3; background: var(--lime); }
.bento__item:nth-child(3) { grid-column: span 2; }
.bento__item:nth-child(4) { grid-column: span 2; background: var(--tomato-soft); }
.bento__item:nth-child(5) { grid-column: span 2; background: var(--berry-soft); }
.bento__item:nth-child(6) { grid-column: span 6; background: var(--lime-soft); flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; min-height: 0; }
.bento__item:nth-child(6) > div { max-width: 46ch; }
.bento__n { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .16em; color: var(--muted-2); }
.bento__item:nth-child(1) .bento__n { color: rgba(244,246,236,.5); }
.bento__item h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.bento__item p { font-size: 0.93rem; color: var(--muted); }

/* ==========================================================================
   B2B
   ========================================================================== */
.b2b__panel {
  background: var(--deep); color: var(--on-deep); border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 72px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 4vw, 64px);
}
.b2b__panel h2 { color: var(--on-deep); font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 22px; }
.b2b__panel > div > p { color: var(--on-deep-muted); margin-top: 18px; max-width: 40ch; }
.b2b__list { display: grid; gap: 2px; border-radius: var(--r-lg); overflow: hidden; }
.b2b__row {
  background: rgba(244,246,236,.05); padding: 24px clamp(20px, 2.4vw, 30px);
  display: grid; grid-template-columns: 34px 1fr; gap: 18px; align-items: start;
  transition: background-color .18s ease;
}
.b2b__row:hover { background: rgba(195,224,72,.12); }
.b2b__row span { font-family: var(--mono); font-size: 0.74rem; color: var(--lime); padding-top: 3px; }
.b2b__row h3 { color: var(--on-deep); font-size: 1.06rem; letter-spacing: -0.015em; margin-bottom: 6px; }
.b2b__row p { color: var(--on-deep-muted); font-size: 0.9rem; }
.b2b__cta { margin-top: 32px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-2); aspect-ratio: 1 / 1; display: grid; place-items: center;
}
.tile:nth-child(1) { grid-column: span 2; aspect-ratio: 2 / 1; background: var(--lime-soft); }
.tile:nth-child(4) { grid-column: span 2; aspect-ratio: 2 / 1; background: var(--tomato-soft); }
.tile:nth-child(5) { background: var(--berry-soft); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__art { width: 40%; max-width: 90px; color: var(--deep); opacity: .28; }
.tile figcaption {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--deep); background: rgba(251,250,244,.8); padding: 6px 12px; border-radius: var(--pill);
}
.tile:has(img) figcaption { background: rgba(12,42,28,.72); color: var(--on-deep); }

/* ==========================================================================
   Story
   ========================================================================== */
.story__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center;
}
.story__quote {
  background: var(--lime); border-radius: var(--r-xl); padding: clamp(32px, 4.4vw, 60px);
  position: relative; min-height: 320px; display: flex; align-items: center;
}
.story__quote blockquote { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.08; letter-spacing: -0.035em; color: var(--deep); }
.story__text p { color: var(--muted); margin-top: 18px; font-size: 1.03rem; }
.story__text p:first-of-type { color: var(--ink); font-size: clamp(1.1rem, 1.6vw, 1.25rem); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--bg-2); border-radius: var(--r-lg); overflow: hidden; transition: background-color .2s ease; }
.faq details[open] { background: var(--lime-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px clamp(58px, 7vw, 72px) 24px clamp(22px, 3vw, 32px);
  position: relative; font-family: var(--display); font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  letter-spacing: -0.02em; color: var(--deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: clamp(20px, 2.6vw, 28px); top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--deep)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6' fill='none' stroke='%23C3E048' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq details p { padding: 0 clamp(58px, 7vw, 72px) 26px clamp(22px, 3vw, 32px); color: var(--muted); font-size: 0.97rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__panel {
  background: var(--deep); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 56px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(26px, 3.4vw, 48px); align-items: start;
}
.contact__intro h2 { color: var(--on-deep); font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 22px; }
.contact__intro > p { color: var(--on-deep-muted); margin-top: 18px; max-width: 38ch; }
.contact-cards { display: grid; gap: 8px; margin-top: 32px; }
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(244,246,236,.06); border-radius: var(--r); padding: 16px 20px;
  text-decoration: none; transition: background-color .18s ease, transform .18s ease;
}
.contact-card:hover { background: rgba(195,224,72,.14); transform: translateX(3px); }
.contact-card__k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.contact-card__v { color: var(--on-deep); font-size: 0.95rem; text-align: right; }
.contact-hours { margin-top: 20px; font-size: 0.86rem; color: var(--on-deep-muted); }
.contact-hours b { color: var(--lime); font-weight: 500; }

.form { background: var(--bg); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.8rem; color: var(--muted-2); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 0; border-radius: var(--r); padding: 14px 16px; font-size: 0.96rem;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .16s ease, background-color .16s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--deep);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form__note { font-size: 0.78rem; color: var(--muted-2); }
.form__error { font-size: 0.85rem; color: var(--tomato); display: none; }
.form__error.is-visible { display: block; }
.form .btn { width: 100%; }

/* ==========================================================================
   Institutional support
   ========================================================================== */
.grant {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 3.4vw, 48px); align-items: center;
  background: var(--bg-2); border-radius: var(--r-xl); padding: clamp(26px, 3.4vw, 46px);
}
.grant__badge {
  width: 96px; height: 96px; border-radius: 50%; background: var(--deep);
  display: grid; place-items: center; text-align: center; flex: none;
}
.grant__badge span {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime); line-height: 1.5;
}
.grant__text .tag { margin-bottom: 16px; }
.grant__text p { font-size: 0.97rem; color: var(--muted); line-height: 1.65; max-width: 62ch; }
.grant__logos { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 32px); flex-wrap: wrap; }
.grant__logos img { width: auto; background: #fff; border-radius: 12px; padding: 10px 16px; box-shadow: 0 1px 2px rgba(20,37,27,.06); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding-block: clamp(48px, 7vw, 88px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(26px, 4vw, 48px); }
/* `>` e necessario: senza, il margine colpirebbe anche il logo dentro .footer-support */
.footer-brand > img { height: 42px; margin-bottom: 18px; }
/* Slogan e badge condividono la stessa larghezza (--footer-brand-w): i bordi
   destri coincidono. Il corpo e tarato perche la frase riempia la riga. */
.footer-brand { --footer-brand-w: 300px; }
.footer-brand p { font-size: 0.96rem; max-width: var(--footer-brand-w); }
.footer-support {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; max-width: var(--footer-brand-w, 300px);
  background: rgba(244,246,236,.06); border-radius: var(--r); padding: 14px 18px;
}
.footer-support img {
  height: 40px; width: auto; flex: none; margin: 0;
  background: #fff; border-radius: 6px; padding: 4px 6px;
}
/* Niente max-width: le righe sono decise dal <br> nel contenuto, cosi il box
   si stringe esattamente sulla riga piu lunga senza spazio morto a destra. */
.footer-support span {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lime); line-height: 1.5;
}
.site-footer h4 {
  color: var(--lime); font-family: var(--mono); font-weight: 400; font-size: 0.68rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; font-size: 0.92rem; color: var(--on-deep-muted); transition: color .16s ease; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 60px); padding-top: 24px; border-top: 1px solid rgba(244,246,236,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem;
}

/* ==========================================================================
   Legal page
   ========================================================================== */
.legal { max-width: 740px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 22px 0 12px; }
.legal .updated { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal p { color: var(--muted); }
.legal .back { margin-top: 46px; }

/* ==========================================================================
   Reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__panel { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .arch { width: min(72%, 320px); }
  .seal { right: 4%; bottom: auto; top: 8px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .b2b__panel, .story__panel, .contact__panel { grid-template-columns: 1fr; }
  .grant { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(1), .tile:nth-child(4) { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 10px auto 10px;
    background: var(--bg); border-radius: var(--r-lg); padding: 14px;
    box-shadow: 0 30px 70px -40px rgba(12,42,28,.85), inset 0 0 0 1px var(--line);
    transform: translateY(-140%); opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity .22s ease; z-index: 80;
    max-height: calc(100dvh - var(--header-h) - 20px); overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 14px 16px; font-size: 1.02rem; border-radius: var(--r); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }

  .products { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item:nth-child(n) { grid-column: span 1; }
  .bento__item:nth-child(1), .bento__item:nth-child(6) { grid-column: span 2; }
  .bento__item:nth-child(6) { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --r-xl: 26px; --r-lg: 18px; }
  .metrics, .process__grid, .tiles, .footer-top { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__item:nth-child(n) { grid-column: span 1; }
  .tile:nth-child(1), .tile:nth-child(4) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .field--row { grid-template-columns: 1fr; }
  .hero__cta .btn, .products-cta .btn { width: 100%; }
  .contact-card { flex-direction: column; align-items: flex-start; gap: 6px; }
  .contact-card__v { text-align: left; }
  .grant__logos img { max-height: 46px; }
}

@media print {
  .site-header, .ticker, .nav-toggle, .hero__cta, .form, .seal { display: none; }
  body { background: #fff; }
  .hero__panel, .b2b__panel, .contact__panel, .site-footer { background: #fff !important; color: #000 !important; }
}

/* ==========================================================================
   Motion layer
   Only opacity/transform are animated, so everything stays on the compositor
   and scrolling never drops frames. Everything degrades to "visible" when
   prefers-reduced-motion is on or JS is unavailable.
   ========================================================================== */

/* Cross-document view transitions (progressive enhancement) */
@view-transition { navigation: auto; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none;
  background: transparent;
}
.scroll-progress i {
  display: block; height: 100%; width: 100%; background: var(--lime);
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

/* Reveal — staggered via the --d custom property set in the markup */
.reveal { transition-delay: var(--d, 0ms); }

/* Word-by-word headings */
h2[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
h2[data-split] .w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%); transition: transform .8s cubic-bezier(.19,1,.22,1);
  transition-delay: calc(var(--wi, 0) * 32ms);
}
h2[data-split].is-in .w > i { transform: none; }
.no-js h2[data-split] .w > i { transform: none; }

/* Hero intro — plays once on load */
.intro { opacity: 0; transform: translateY(26px); }
.is-ready .intro {
  animation: rise .95s cubic-bezier(.19,1,.22,1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 60ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hero: pointer-following glow */
.hero__panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%),
              rgba(195, 224, 72, .13), rgba(195, 224, 72, 0) 62%);
  opacity: 0; transition: opacity .5s ease;
}
.hero__panel:hover::after { opacity: 1; }

/* Parallax wrapper (translated by JS, GPU only) */
[data-parallax] { will-change: transform; }

/* Magnetic buttons */
[data-magnetic] { will-change: transform; }

/* Card micro-interactions */
.product__art { transition: transform .5s cubic-bezier(.19,1,.22,1); }
.product:hover .product__art { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.metric { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.metric:hover { transform: translateY(-4px); }
.step { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.step:hover { transform: translateY(-4px); }
.step__icon { transition: transform .45s cubic-bezier(.19,1,.22,1); }
.step:hover .step__icon { transform: scale(1.12) rotate(-6deg); }
.bento__item { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.bento__item:hover { transform: translateY(-4px); }
.tile { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.tile img { transition: transform .7s cubic-bezier(.19,1,.22,1); }
.tile:hover img { transform: scale(1.05); }
.tile__art { transition: transform .5s cubic-bezier(.19,1,.22,1), opacity .3s ease; }
.tile:hover .tile__art { transform: scale(1.1) rotate(4deg); opacity: .4; }

/* FAQ answer slide */
.faq details p { animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }

/* Counting numbers keep their width stable while animating */
.metric__num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .intro { opacity: 1; transform: none; animation: none !important; }
  h2[data-split] .w > i { transform: none !important; }
  .hero__panel::after { display: none; }
  .faq details p { animation: none; }
  .scroll-progress { display: none; }
}

/* ==========================================================================
   Form: honeypot antispam + esito invio
   ========================================================================== */
.field--trap {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}
.form__status { font-size: 0.9rem; line-height: 1.5; }
.form__status:empty { display: none; }
.form__status.is-ok {
  background: var(--lime-soft); color: var(--deep);
  border-radius: var(--r); padding: 14px 16px; font-weight: 500;
}
.form__status.is-error {
  background: var(--tomato-soft); color: #93301A;
  border-radius: var(--r); padding: 14px 16px;
}
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ==========================================================================
   Avviso privacy
   Non e un gate di consenso: il sito non installa cookie di profilazione.
   Compare in basso, non blocca la navigazione, si chiude e non torna piu.
   ========================================================================== */
.cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 0 var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
  pointer-events: none;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice__inner {
  pointer-events: auto;
  max-width: var(--wrap); margin-inline: auto;
  background: var(--deep); color: var(--on-deep);
  border-radius: var(--r-lg); padding: 20px clamp(20px, 3vw, 28px);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 3vw, 40px);
  box-shadow: 0 30px 70px -30px rgba(12, 42, 28, .75);
  transform: translateY(120%);
  animation: cookie-in .55s cubic-bezier(.19, 1, .22, 1) .8s forwards;
}
@keyframes cookie-in { to { transform: none; } }
.cookie-notice strong {
  display: block; font-family: var(--display); font-size: 1.02rem;
  letter-spacing: -0.02em; color: var(--lime); margin-bottom: 6px;
}
.cookie-notice p { font-size: 0.88rem; color: var(--on-deep-muted); max-width: 72ch; }
.cookie-notice__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.cookie-notice__link { font-size: 0.85rem; color: var(--on-deep-muted); text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice__link:hover { color: var(--lime); }
.cookie-notice .btn { padding: 12px 26px; }
.cookie-notice.is-leaving .cookie-notice__inner { animation: cookie-out .35s ease forwards; }
@keyframes cookie-out { to { transform: translateY(130%); opacity: 0; } }

/* Link legali nel footer */
.footer-legal-links { display: inline-flex; gap: 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .cookie-notice__inner { transform: none; animation: none; }
}

@media (max-width: 760px) {
  .cookie-notice__inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .cookie-notice__actions { justify-content: space-between; }
  .cookie-notice .btn { flex: 1; }
}

/* Link all'informativa sotto il modulo: deve essere visibile, non nascosto */
.form__note a { color: var(--deep); text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--tomato); }

/* ==========================================================================
   Consenso marketing: facoltativo, mai preselezionato, separato dalla richiesta
   ========================================================================== */
.checkbox {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  cursor: pointer; padding: 4px 0;
}
.checkbox input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin-top: 2px; flex: none; cursor: pointer;
  border-radius: 6px; background: var(--bg-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .16s ease, box-shadow .16s ease;
}
.checkbox input:checked {
  background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 4.9 8.4 9.4 3.9' fill='none' stroke='%23C3E048' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--deep);
}
.checkbox input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.checkbox span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.checkbox em {
  display: block; font-style: normal; font-size: 0.78rem; color: var(--muted-2); margin-top: 3px;
}
