/* ---- tokens.css ---- */
/* ==========================================================================
   AGB demo · design system "OFFICINA"
   Dark, cinematic, lime used as light. Barlow Condensed + Barlow.
   tokens.css — every colour, font, size and timing of the site.
   This is the ONLY file that may contain raw colour values.
   ========================================================================== */
:root {
  /* colour · surfaces (darkest to lightest) */
  --c-black: #070808;      /* demo bar, footer */
  --c-ink: #0e0f0f;        /* page background */
  --c-coal: #141515;       /* tinted sections, cards on ink */
  --c-graphite: #1b1c1c;   /* panels on coal */
  --c-steel: #2a2c2b;

  /* colour · text (all ≥ 4.5:1 on ink/coal/graphite) */
  --c-white: #ffffff;      /* headings */
  --c-text: #e8eae4;       /* lead and strong body */
  --c-mute: #adb1a8;       /* body copy */
  --c-dim: #8e9289;        /* small labels, fine print */

  /* colour · brand */
  --c-lime: #a2c617;       /* AGB lime */
  --c-lime-hi: #badf2c;
  --c-lime-deep: #306737;
  --c-mint: #6bc79a;       /* Coolvibe mint */
  --c-mint-hi: #86dcb1;
  --c-on-accent: #0e0f0f;  /* text on lime or mint */
  --c-plate: #ece8e0;      /* light plate behind client logos */
  --c-plate-line: #d2cdc2;

  /* colour · alphas */
  --c-line: rgba(255, 255, 255, 0.11);
  --c-line-strong: rgba(255, 255, 255, 0.24);
  --c-ink-a0: rgba(14, 15, 15, 0);
  --c-ink-a30: rgba(14, 15, 15, 0.3);
  --c-ink-a55: rgba(14, 15, 15, 0.55);
  --c-ink-a80: rgba(14, 15, 15, 0.8);
  --c-ink-a92: rgba(14, 15, 15, 0.92);
  --c-black-a60: rgba(7, 8, 8, 0.6);
  --c-lime-a08: rgba(162, 198, 23, 0.08);
  --c-lime-a16: rgba(162, 198, 23, 0.16);
  --c-lime-a45: rgba(162, 198, 23, 0.45);
  --c-mint-a08: rgba(107, 199, 154, 0.08);
  --c-mint-a16: rgba(107, 199, 154, 0.16);
  --c-mint-a45: rgba(107, 199, 154, 0.45);

  /* type */
  --ff-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ff-text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 10.9vw, 6.25rem);
  --fs-xl: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem);
  --fs-l: clamp(2rem, 1.3rem + 2.9vw, 3.5rem);
  --fs-m: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-s: 1.375rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.42vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.875rem;
  --fs-micro: 0.8125rem;
  --lh-display: 0.96;
  --lh-tight: 1.12;
  --lh-body: 1.6;
  --ls-label: 0.2em;
  --ls-button: 0.1em;

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-section: clamp(4.5rem, 2.6rem + 7.4vw, 9.5rem); /* vertical padding of a .section */
  --gutter: clamp(1.25rem, 0.3rem + 4vw, 3.5rem);      /* page side padding */

  /* sizes */
  --w-container: 82.5rem;  /* text and grids */
  --w-frame: 105rem;       /* full-bleed photo bands stop growing here */
  --w-text: 36rem;         /* measure of a paragraph */
  --w-narrow: 46rem;       /* article column */
  --h-header: 4.5rem;
  --radius: 2px;
  --radius-l: 4px;
  --radius-pill: 999px;

  /* motion (150–300 ms, transform and opacity only) */
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 300ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 68.75em) {
  :root { --h-header: 5.25rem; }
}

/* Contextual accent. Components use --accent, never --c-lime directly, so that a page (or one card) can switch
   to mint. The site chrome (demo bar, header, footer, assistant) always stays lime. */
:root,
.accent-lime,
.demo-bar,
.site-header,
.site-footer,
.assist {
  --accent: var(--c-lime);
  --accent-hi: var(--c-lime-hi);
  --accent-wash: var(--c-lime-a08);
  --accent-soft: var(--c-lime-a16);
  --accent-glow: var(--c-lime-a45);
}
.accent-mint {
  --accent: var(--c-mint);
  --accent-hi: var(--c-mint-hi);
  --accent-wash: var(--c-mint-a08);
  --accent-soft: var(--c-mint-a16);
  --accent-glow: var(--c-mint-a45);
}

/* ---- fonts.css ---- */
/* fonts.css — self-hosted Barlow (400, 500) and Barlow Condensed (500, 600, 600 italic, 700 italic), from @fontsource.
   latin + latin-ext subsets, files in public/assets/fonts/. No other font may be added (max 2 families). */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/barlow-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/barlow-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-600-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-700-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-700-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- base.css ---- */
/* base.css — reset, document defaults, focus, utilities, motion. No components here. */

/* 1 — RESET AND DOCUMENT ================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--h-header) + var(--sp-5));
  background: var(--c-ink);
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--c-ink);
  color: var(--c-text);
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
/* CO<sub>2</sub>: the subscript sits on the baseline without changing the line height */
sub { font-size: 0.62em; line-height: 0; position: relative; vertical-align: baseline; bottom: -0.18em; }
::selection { background: var(--accent); color: var(--c-on-accent); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
main:focus { outline: none; }

/* 2 — UTILITIES =========================================================== */
/* visually hidden, still read by screen readers */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-lime);
  color: var(--c-on-accent);
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 2px solid var(--c-white); outline-offset: 3px; }

/* inline icon from the sprite: <svg class="icon" aria-hidden="true"><use href="#i-arrow"/></svg> */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3 — MOTION ============================================================== */
@keyframes drop-in { from { opacity: 0; transform: translateY(-0.5rem); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes ring-sway-a { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes ring-sway-b { from { transform: rotate(12deg); } to { transform: rotate(-14deg); } }

/* Scroll reveal: add data-reveal (or data-reveal="2|3|4" for a stagger) to an element below the fold.
   site.js arms it by adding .reveal-ready to <html>; without JS, or if the script fails, everything is visible. */
.reveal-ready [data-reveal] {
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(1.25rem); }
.reveal-ready [data-reveal="2"] { --reveal-delay: 80ms; }
.reveal-ready [data-reveal="3"] { --reveal-delay: 160ms; }
.reveal-ready [data-reveal="4"] { --reveal-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rings__layer { animation: none !important; }
  .reveal-ready [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}

@media print {
  .demo-bar, .nav-toggle, .chat, .assist { display: none !important; }
}

/* ---- components.css ---- */
/* ==========================================================================
   components.css — everything reusable. Documented with snippets in DESIGN.md.
   1 Layout · 2 Type · 3 Actions · 4 Ring device · 5 Chrome (demo bar, header, footer)
   6 Photo treatments · 7 Heroes · 8 Data · 9 Surfaces · 10 Bands · 11 Assistant entry points
   Colours: var(--accent…) for anything that follows the page accent, tokens for the rest. No raw hex.
   ========================================================================== */

/* 1 — LAYOUT ============================================================== */
.container {
  width: 100%;
  max-width: calc(var(--w-container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--w-narrow) + 2 * var(--gutter)); }

.section { position: relative; padding-block: var(--sp-section); }
.section--tint { background: var(--c-coal); border-block: 1px solid var(--c-line); }
.section--line { border-top: 1px solid var(--c-line); }
.section--flush-top { padding-top: 0; }
.section--clip { overflow: hidden; overflow: clip; } /* needed around .ringed and other ring devices */

.section-head { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-7); }
.section-head--row { align-items: end; }
.section-head--row .link { justify-self: start; }
.section-head--label { margin-bottom: var(--sp-5); }
@media (min-width: 37.5em) {
  .section-head--row { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-6); }
  .section-head--row .label { grid-column: 1 / -1; }
}
@media (min-width: 56.25em) {
  .section-head { margin-bottom: var(--sp-8); }
  .section-head--label { margin-bottom: var(--sp-6); }
}

/* equal columns: .grid.grid--2 | --3 | --4 */
.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 37.5em) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 50em) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56.25em) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 68.75em) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 75em) { .grid { gap: var(--sp-6); } }

/* two columns, text + media. --split-a / --split-b set the ratio, .split--reverse puts the first child right */
.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 56.25em) {
  .split {
    grid-template-columns: minmax(0, var(--split-a, 1fr)) minmax(0, var(--split-b, 1fr));
    column-gap: var(--split-gap, clamp(3rem, 6vw, 6rem));
  }
  .split--reverse > :first-child { order: 2; }
  .split--top { align-items: start; }
}

/* vertical rhythm inside a text block: label, heading, copy, button */
.stack { display: grid; gap: var(--sp-5); justify-items: start; align-content: start; }
@media (min-width: 56.25em) { .stack--l { gap: var(--sp-6); } }

/* 2 — TYPE ================================================================ */
.display {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: 0.004em;
  text-transform: uppercase;
  color: var(--c-white);
  text-wrap: balance;
}
.display--xl { font-size: var(--fs-xl); }
.display--l { font-size: var(--fs-l); }
.display--m { font-size: var(--fs-m); line-height: 1.02; }
.is-lit { color: var(--accent); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--c-text);
  max-width: var(--w-text);
  text-wrap: pretty;
}
.copy { color: var(--c-mute); max-width: var(--w-text); text-wrap: pretty; }
.copy + .copy { margin-top: var(--sp-4); }

/* eyebrow: small caps with an accent rule */
.label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  line-height: 1.2;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
}
.label::before {
  content: "";
  flex: none;
  width: var(--sp-6);
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 0.5rem var(--accent-glow);
}
.label--plain::before { display: none; }

/* small uppercase date / meta line */
.meta {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* short statement promoted to a pull-quote */
.statement {
  justify-self: stretch;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--accent);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: var(--fs-l);
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent);
  text-wrap: balance;
}

/* quotation */
.quote {
  display: grid;
  gap: var(--sp-5);
  justify-items: start;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--accent);
}
.quote__mark { width: 2.5rem; height: 2.5rem; color: var(--accent); stroke-width: 1.5; }
.quote blockquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 3rem);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--c-white);
  max-width: 28ch;
  text-wrap: balance;
}

/* article body */
.prose { max-width: var(--w-narrow); font-size: 1.125rem; line-height: 1.65; color: var(--c-text); }
.prose > * + * { margin-top: var(--sp-5); }
.prose a { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.prose a:hover { color: var(--accent); }
.prose blockquote {
  margin-block: var(--sp-6);
  padding-left: var(--sp-5);
  border-left: 2px solid var(--accent);
  font-size: var(--fs-lead);
  color: var(--c-white);
}

/* 3 — ACTIONS ============================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 3.25rem;
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn .icon { transition: transform var(--t-base) var(--ease); }
.btn:hover .icon--move, .btn:focus-visible .icon--move { transform: translateX(0.25rem); }

.btn--primary { background: var(--accent); color: var(--c-on-accent); }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 1.75rem var(--accent-glow);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.btn--primary:hover { background: var(--accent-hi); }
.btn--primary:hover::after, .btn--primary:focus-visible::after { opacity: 1; }
.btn--primary:focus-visible { outline-color: var(--c-white); }

.btn--ghost { border-color: var(--c-line-strong); color: var(--c-white); background: var(--c-ink-a55); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { min-height: 2.75rem; padding: var(--sp-2) var(--sp-4); font-size: 1rem; }

/* text link with arrow */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding-block: var(--sp-2);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: var(--c-white);
  border-bottom: 1px solid var(--accent);
  transition: color var(--t-fast) var(--ease);
}
.link .icon { color: var(--accent); transition: transform var(--t-base) var(--ease); }
.link:hover { color: var(--accent); }
.link:hover .icon { transform: translateX(0.25rem); }
.link--back:hover .icon { transform: translateX(-0.25rem); }

/* 4 — RING DEVICE ========================================================= */
/* The concentric rings of the AGB logo, drawn as an instrument bezel. Markup: {{> rings class="x__rings"}}.
   The class you pass positions and sizes it (width or height; it is always a square) inside a
   position:relative parent that clips it (overflow hidden/clip). Always decorative. */
.rings {
  position: absolute;
  aspect-ratio: 1;
  pointer-events: none;
  color: var(--accent);
}
.rings__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 50%;
}
.rings__bezel { color: var(--c-line-strong); animation: ring-spin 260s linear infinite; }
.rings__a { filter: drop-shadow(0 0 0.55rem var(--accent-glow)); animation: ring-sway-a 30s ease-in-out infinite alternate; }
.rings__b { animation: ring-sway-b 42s ease-in-out infinite alternate; }

/* 5 — CHROME: DEMO BAR, HEADER, NAV, FOOTER =============================== */
.demo-bar {
  background: var(--c-black);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-mute);
  font-size: var(--fs-micro);
  line-height: 1.35;
}
.demo-bar__inner {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
}
.demo-bar__tag {
  flex: none;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-lime);
}
.demo-bar a { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-lime); text-underline-offset: 0.2em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-ink-a92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--h-header);
}
.brand { display: block; flex: none; }
.brand img { width: 3.25rem; height: 3.25rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  min-height: 2.75rem;
  padding: var(--sp-2) var(--sp-3);
  margin-right: calc(-1 * var(--sp-3));
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: var(--c-white);
}
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; color: var(--c-lime); }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text);
  transition: color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--c-lime); }
.nav__link[aria-current] { color: var(--c-white); }
.nav__item { border-bottom: 1px solid var(--c-line); }
.nav__item--sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.nav__subtoggle { display: none; }
.nav__sub { grid-column: 1 / -1; padding-bottom: var(--sp-3); }
.nav__sub a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 2.75rem;
  padding-left: var(--sp-5);
  font-family: var(--ff-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-mute);
  transition: color var(--t-fast) var(--ease);
}
.nav__sub a:hover, .nav__sub a[aria-current] { color: var(--c-lime); }
.nav__cta { margin-top: var(--sp-5); width: 100%; }

/* small screens: stacked nav (in the page flow without JS, a collapsible panel with JS) */
@media (max-width: 68.74em) {
  .site-header__bar { flex-wrap: wrap; }
  .nav { flex-basis: 100%; padding-bottom: var(--sp-5); }
  html:not(.js) .site-header { position: static; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--h-header));
    max-height: calc(100dvh - var(--h-header));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--sp-2) var(--gutter) var(--sp-6);
    background: var(--c-coal);
    border-bottom: 1px solid var(--c-lime);
  }
  .js .nav.is-open { display: block; animation: drop-in var(--t-base) var(--ease) both; }
}

@media (min-width: 68.75em) {
  .nav { display: flex; align-items: center; gap: var(--sp-6); }
  .nav__list { flex-direction: row; align-items: center; gap: clamp(1.25rem, 2.1vw, 2.25rem); }
  .nav__item { position: relative; border: 0; }
  .nav__item--sub { display: flex; gap: var(--sp-1); }
  .nav__link {
    position: relative;
    min-height: var(--h-header);
    font-size: 1.0625rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--c-lime);
    box-shadow: 0 0 0.75rem var(--c-lime-a45);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease);
  }
  .nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
  .nav__subtoggle {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--c-mute);
  }
  .nav__subtoggle .icon { width: 1rem; height: 1rem; transition: transform var(--t-base) var(--ease); }
  .nav__subtoggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav__sub {
    position: absolute;
    left: calc(-1 * var(--sp-5));
    top: 100%;
    min-width: 13rem;
    padding: var(--sp-3) 0;
    background: var(--c-coal);
    border: 1px solid var(--c-line);
    border-top: 2px solid var(--c-lime);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.375rem);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
  }
  /* pointer: hover. Keyboard: the chevron button (site.js), closed again with Escape or when focus moves on.
     Without JS the submenu opens as soon as the focus is inside the item. */
  .nav__item--sub:hover .nav__sub,
  html:not(.js) .nav__item--sub:focus-within .nav__sub,
  .nav__sub.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav__sub a { padding-inline: var(--sp-5); font-size: 1.125rem; }
  .nav__cta { margin: 0; width: auto; }
}

.site-footer { background: var(--c-black); border-top: 1px solid var(--c-line); padding-block: var(--sp-8) var(--sp-6); }
.site-footer__grid { display: grid; gap: var(--sp-7); }
.site-footer__brand { display: grid; gap: var(--sp-5); justify-items: start; align-content: start; }
.site-footer__brand img { width: 6rem; height: 6rem; }
.site-footer__legal { font-size: var(--fs-lead); color: var(--c-white); line-height: 1.4; }
.site-footer__legal span { display: block; font-size: var(--fs-body); color: var(--c-mute); }
.site-footer__k {
  margin-bottom: var(--sp-3);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-lime);
}
.site-footer address { color: var(--c-text); }
.site-footer__links { display: grid; gap: var(--sp-1); justify-items: start; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 2.25rem;
  color: var(--c-text);
  transition: color var(--t-fast) var(--ease);
}
.site-footer__links a:hover, .site-footer__links a[aria-current] { color: var(--c-lime); }
.site-footer__links .icon { width: 1.125rem; height: 1.125rem; color: var(--c-lime); }
.site-footer__nav a {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  justify-content: space-between;
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-8); /* room for the assistant launcher */
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-micro);
  color: var(--c-dim);
}
.site-footer__base a { color: var(--c-mute); text-decoration: underline; text-decoration-color: var(--c-lime); text-underline-offset: 0.2em; }

@media (min-width: 37.5em) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68.75em) {
  .site-footer__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--sp-7); }
  .site-footer__base { padding-bottom: var(--sp-5); padding-right: 14rem; }
}

/* 6 — PHOTO TREATMENTS ==================================================== */
/* 6.1 backdrop: a wide photo that dissolves into the page behind a band or a hero.
   Mobile: a strip at the top of the parent (--backdrop-h). Desktop: fills the parent, darkened on the text side. */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--backdrop-h, 18rem);
  overflow: hidden;
  z-index: -2;
}
.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--backdrop-x, 50%) 50%;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--c-ink) 0%, var(--c-ink-a0) 30%),
    linear-gradient(0deg, var(--c-ink) 0%, var(--c-ink-a55) 34%, var(--c-ink-a0) 72%);
}
@media (min-width: 56.25em) {
  .backdrop { inset: 0; height: auto; }
  .backdrop--text-right::after {
    background:
      linear-gradient(180deg, var(--c-ink) 0%, var(--c-ink-a0) 24%),
      linear-gradient(0deg, var(--c-ink) 0%, var(--c-ink-a0) 24%),
      linear-gradient(270deg, var(--c-ink) 0%, var(--c-ink-a92) 34%, var(--c-ink-a55) 54%, var(--c-ink-a0) 80%);
  }
  .backdrop--text-left::after {
    background:
      linear-gradient(180deg, var(--c-ink) 0%, var(--c-ink-a0) 26%),
      linear-gradient(0deg, var(--c-ink) 0%, var(--c-ink-a0) 30%),
      linear-gradient(90deg, var(--c-ink) 0%, var(--c-ink-a92) 36%, var(--c-ink-a55) 70%, var(--c-ink-a30) 100%);
  }
}
/* beyond the frame width the photo dissolves on both outer edges */
@media (min-width: 105em) {
  .backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, var(--c-ink) 0%, var(--c-ink-a0) 10%, var(--c-ink-a0) 90%, var(--c-ink) 100%);
  }
}

/* 6.2 photo: a framed, slightly desaturated photograph. Size it with the column or with --photo-w. */
.photo { position: relative; overflow: hidden; background: var(--c-coal); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05) brightness(0.92); }
.photo--shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, var(--c-ink-a0) 45%, var(--c-ink-a80) 100%);
  pointer-events: none;
}
.photo--line { border: 1px solid var(--c-line-strong); }
.photo--square { aspect-ratio: 1; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--4x5 { aspect-ratio: 4 / 5; }

/* 6.3 ringed: a photo standing in front of the ring device, optionally with a second inset photo.
   The section around it needs .section--clip. --photo-w caps the width (keep it ≤ 1.3 × the native image width). */
.ringed {
  position: relative;
  width: min(100%, var(--photo-w, 30rem));
  margin-inline: auto;
}
.ringed--inset { padding: 0 var(--sp-7) var(--sp-7) 0; }
.ringed__rings {
  width: 150%;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
}
.ringed__rings .rings__b { display: none; }
.photo--inset {
  position: absolute;
  right: 0; bottom: 0;
  width: 44%;
  border: 1px solid var(--c-line-strong);
  box-shadow: 0 1.5rem 3rem var(--c-black-a60);
}

/* 7 — HEROES ============================================================== */
/* 7.1 breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.crumbs li { display: flex; align-items: center; gap: var(--sp-3); }
.crumbs li + li::before { content: "/"; color: var(--c-dim); }
.crumbs a { padding-block: var(--sp-2); transition: color var(--t-fast) var(--ease); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--c-white); }

/* 7.2 page hero (inner pages): breadcrumb, eyebrow, h1 over a header photo */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  border-bottom: 1px solid var(--c-line);
}
.page-hero__frame { position: relative; max-width: var(--w-frame); margin-inline: auto; overflow: hidden; }
.page-hero .backdrop { --backdrop-h: 15rem; }
.page-hero .backdrop img { filter: saturate(0.78) brightness(0.92); }
.page-hero__rings {
  /* small screens: the ring sits in the photo area, top right, and fades out before the eyebrow and the title */
  width: min(84vw, 21rem);
  right: -6.5rem;
  top: 6.5rem;
  transform: translateY(-50%);
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 90%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 90%);
}
.page-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
  padding-block: var(--sp-5) var(--sp-8);
}
.page-hero__crumbs { margin-bottom: 7rem; }
.page-hero__title { font-size: var(--fs-xl); max-width: 20ch; }
.page-hero .lead { max-width: 34rem; }
@media (min-width: 56.25em) {
  .page-hero__content {
    min-height: clamp(24rem, 31vw, 29rem);
    padding-block: var(--sp-6) var(--sp-8);
  }
  .page-hero__crumbs { margin-bottom: auto; padding-bottom: var(--sp-7); }
  .page-hero__rings { width: 40rem; right: -9rem; top: 50%; -webkit-mask-image: none; mask-image: none; }
}

/* 7.3 product hero (Sparclee, Coolvibe): product name as a wordmark, render on a ring stage */
.product-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  border-bottom: 1px solid var(--c-line);
  background: radial-gradient(70% 70% at 78% 46%, var(--accent-wash) 0%, var(--c-ink-a0) 70%);
}
.product-hero__grid { position: relative; display: grid; gap: var(--sp-5); padding-block: var(--sp-5) var(--sp-8); }
.product-hero__crumbs { position: relative; z-index: 3; }
.product-hero__stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: clamp(19rem, 92vw, 30rem);
  margin-top: var(--sp-4);
}
.product-hero__rings {
  height: 128%;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.product-hero__img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 96%;
  max-width: 88%;
  object-fit: contain;
  filter: drop-shadow(0 2rem 2.25rem var(--c-black-a60));
}
.product-hero__intro { position: relative; z-index: 2; display: grid; gap: var(--sp-4); justify-items: start; margin-top: var(--sp-5); }
.product-hero__text { position: relative; z-index: 2; display: grid; gap: var(--sp-5); justify-items: start; }
.product-hero__name {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(4.75rem, 1rem + 19vw, 11.5rem);
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-left: -0.03em;
}
.product-hero__claim {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--c-white);
  max-width: 30ch;
  text-wrap: balance;
}
.product-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-2); }

@media (min-width: 56.25em) {
  .product-hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr auto 1fr;
    column-gap: var(--sp-6);
    row-gap: var(--sp-6);
    min-height: clamp(40rem, calc(100vh - 7.5rem), 52rem);
    padding-block: var(--sp-6) var(--sp-8);
  }
  .product-hero__crumbs { grid-column: 1 / -1; grid-row: 1; }
  .product-hero__intro { grid-column: 1; grid-row: 2; align-self: end; margin-top: 0; gap: var(--sp-5); }
  .product-hero__name { font-size: clamp(6.5rem, 12.8vw, 11.5rem); } /* stays inside its column from 900 px up */
  .product-hero__text { grid-column: 1; grid-row: 3 / 5; align-self: start; }
  .product-hero__stage { grid-column: 2; grid-row: 2 / 5; align-self: center; height: clamp(28rem, 64vh, 40rem); margin-top: 0; }
}

/* 8 — DATA ================================================================ */
/* 8.1 gauge: technical data shown like an instrument read-out */
.gauge {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--c-line-strong);
}
.gauge__cell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-block: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}
.gauge__label {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-dim);
}
.gauge__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4em;
  row-gap: var(--sp-1);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--c-mute);
}
.gauge__value b {
  font-weight: 600;
  font-size: var(--gauge-n, 2.75rem);
  letter-spacing: 0;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.gauge__value i { font-style: normal; color: var(--c-text); }
@media (min-width: 30em) {
  .gauge { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gauge__cell:nth-child(even) { padding-left: var(--sp-5); border-left: 1px solid var(--c-line); }
  .gauge--stack { grid-template-columns: 1fr; }
  .gauge--stack .gauge__cell:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* large read-out for a "Dati tecnici" block */
.gauge--xl { --gauge-n: clamp(3.75rem, 1.6rem + 6.4vw, 6.25rem); }
.gauge--xl .gauge__cell { gap: var(--sp-5); padding-block: var(--sp-5) var(--sp-6); }
.gauge--xl .gauge__value { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); }
.gauge--xl .gauge__cell::after {
  content: "";
  height: 0.625rem;
  margin-top: var(--sp-3);
  background: repeating-linear-gradient(90deg, var(--c-line-strong) 0, var(--c-line-strong) 1px, transparent 1px, transparent 0.5rem);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, black 55%, transparent 100%);
}
.gauge--xl .gauge__value b { line-height: 0.82; text-shadow: 0 0 2.25rem var(--accent-soft); }
@media (min-width: 30em) and (max-width: 56.24em) {
  .gauge--xl { grid-template-columns: 1fr; }
  .gauge--xl .gauge__cell:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* 8.2 list with ring bullets */
.ring-list { display: grid; gap: 0; }
.ring-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-lead);
  color: var(--c-text);
}
.ring-list li:first-child { border-top: 1px solid var(--c-line-strong); }
.ring-list .icon { color: var(--accent); width: 1.375rem; height: 1.375rem; }

/* 8.3 list of short items with an icon each, set in display type */
.icon-list { display: grid; }
.icon-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--c-white);
}
.icon-list li:first-child { border-top: 1px solid var(--c-line-strong); }
.icon-list .icon { width: 1.75rem; height: 1.75rem; color: var(--accent); stroke-width: 1.5; }

/* 8.4 numbered steps (an <ol>; the numbers come from a CSS counter) */
.steps {
  display: grid;
  gap: 0 var(--sp-6);
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: var(--sp-4);
  row-gap: var(--sp-3);
  align-content: start;
  padding-block: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--c-line-strong);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 0.9;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 0 2rem var(--accent-soft);
}
.step__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--c-white);
}
.step p { grid-column: 2; color: var(--c-mute); }
@media (min-width: 37.5em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68.75em) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { grid-template-columns: 1fr; row-gap: var(--sp-4); padding-block: var(--sp-5) var(--sp-7); }
  .step::before { grid-row: auto; font-size: 3.5rem; margin-bottom: var(--sp-3); }
  .step p { grid-column: auto; }
}

/* 8.5 feature strip: four short features with an icon in a ring */
.features { display: grid; border-top: 1px solid var(--c-line-strong); }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--sp-5);
  row-gap: var(--sp-3);
  align-content: start;
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--c-line);
}
.feature__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  box-shadow: 0 0 1.25rem var(--accent-soft), inset 0 0 0.75rem var(--accent-wash);
}
.feature__icon .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }
.feature__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--c-white);
}
.feature p { color: var(--c-mute); }
@media (min-width: 37.5em) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { padding: var(--sp-6) var(--sp-6) var(--sp-6) 0; }
  .feature:nth-child(even) { padding-left: var(--sp-6); padding-right: 0; border-left: 1px solid var(--c-line); }
}
@media (min-width: 68.75em) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature, .feature:nth-child(even) {
    grid-template-columns: 1fr;
    row-gap: var(--sp-4);
    padding: var(--sp-6) var(--sp-6) var(--sp-7);
    border-left: 1px solid var(--c-line);
    border-bottom: 0;
  }
  .feature:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
  .feature:nth-child(4n) { padding-right: 0; }
  .feature:nth-child(n + 5) { border-top: 1px solid var(--c-line); }
  .feature__icon { grid-row: auto; margin-bottom: var(--sp-4); }
}

/* 9 — SURFACES ============================================================ */
/* 9.1 panel: the basic card. .panel--note is the dashed "in sviluppo" variant. */
.panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-graphite);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--accent);
}
.panel p { color: var(--c-mute); }
.panel p + p { margin-top: calc(-1 * var(--sp-1)); }
.panel__title {
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--c-white);
  text-wrap: balance;
}
h2.panel__title, h3.panel__title, h4.panel__title { margin-bottom: 0; }
.panel .panel__kicker {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.panel__icon { width: 2.25rem; height: 2.25rem; color: var(--accent); stroke-width: 1.5; }
.panel--note { border: 1px dashed var(--accent); background: var(--accent-wash); }
.panel--note p { color: var(--c-text); }
@media (min-width: 50em) { .panel { padding: var(--sp-6); } }
@media (min-width: 75em) { .panel { padding: var(--sp-7); } }
@media (min-width: 37.5em) { .panel--note { padding: var(--sp-7) var(--sp-6); } }

/* 9.2 product card (home, AGB Projects). Add .accent-mint for Coolvibe. */
.product-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 56.25em) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75em) { .product-grid { gap: var(--sp-6); } }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 70% 30%, var(--accent-wash) 0%, var(--c-ink-a0) 70%),
    var(--c-coal);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--accent);
}
.product__head {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5) 0;
}
.product__name {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3.5rem, 2rem + 6.6vw, 6.5rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--c-white);
}
.product__tag {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.product__stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: end center;
  height: clamp(17rem, 68vw, 25rem);
  margin-top: var(--sp-4);
}
.product__rings {
  height: 118%;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
}
.product__img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 92%;
  max-width: 82%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 1.5rem 1.75rem var(--c-black-a60));
}
.product__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-5) var(--sp-6);
}
.product__body .copy { max-width: none; }
.product__body .gauge { margin-top: auto; }
.product__cta { align-self: flex-start; }
@media (min-width: 37.5em) {
  .product__head { padding: var(--sp-7) var(--sp-7) 0; }
  .product__body { padding: var(--sp-6) var(--sp-7) var(--sp-7); }
}
@media (min-width: 56.25em) and (max-width: 74.99em) {
  .product__head { padding: var(--sp-6) var(--sp-6) 0; }
  .product__body { padding: var(--sp-6) var(--sp-6) var(--sp-6); }
  .product .gauge { grid-template-columns: 1fr; }
  .product .gauge__cell:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* 9.3 news card. The whole card is the link (the <a> in the title is stretched). */
.card-grid { display: grid; gap: var(--sp-7); }
@media (min-width: 37.5em) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-5); } }
@media (min-width: 56.25em) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-6); } }

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--c-coal);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.92);
  transition: transform var(--t-slow) var(--ease);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--c-ink-a55) 0%, var(--c-ink-a0) 45%);
  pointer-events: none;
}
.card:hover .card__media img { transform: scale(1.03); }
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 2px solid var(--accent);
}
.card__date {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: var(--c-white);
  text-wrap: pretty;
}
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: 2px solid var(--accent); outline-offset: 0.5rem; }
.card__more { margin-top: auto; align-self: flex-start; border-bottom-color: transparent; }
.card:hover .card__more { color: var(--accent); border-bottom-color: var(--accent); }
.card:hover .card__more .icon { transform: translateX(0.25rem); }

/* 9.4 logo plate: client logos on the light plate (the only light surface of the site).
   --logo-w on a cell sets the drawn width of that logo, --plate-cols the desktop column count. */
.plate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--c-plate);
  border-radius: var(--radius);
  overflow: hidden;
}
.plate__cell {
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  margin: 0 -1px -1px 0;
  padding: var(--sp-5) var(--sp-4);
  border-right: 1px solid var(--c-plate-line);
  border-bottom: 1px solid var(--c-plate-line);
}
.plate__cell img {
  width: var(--logo-w, 7.5rem);
  max-width: 100%;
  mix-blend-mode: multiply;
}
@media (min-width: 37.5em) {
  .plate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plate__cell { min-height: 8rem; }
}
@media (min-width: 68.75em) {
  .plate { grid-template-columns: repeat(var(--plate-cols, 6), minmax(0, 1fr)); }
  .plate__cell { min-height: 9rem; }
}

/* 9.5 contact card: big email / phone lines */
.contact-card {
  display: grid;
  gap: 0;
  align-content: start;
  padding: var(--sp-2) var(--sp-5);
  background: var(--c-ink-a80);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--accent);
}
.contact-card__line { display: grid; gap: var(--sp-1); padding-block: var(--sp-4); }
.contact-card__line + .contact-card__line { border-top: 1px solid var(--c-line); }
.contact-card__line dt {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.contact-card__line dd {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--c-white);
}
.contact-card__line dd.is-text { font-size: var(--fs-m); line-height: 1.15; }
.contact-card__line a { display: inline-block; transition: color var(--t-fast) var(--ease); }
.contact-card__line a:hover { color: var(--accent); }

/* 9.6 download row */
.download {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  padding-block: var(--sp-6);
  border-block: 1px solid var(--c-line-strong);
}
.download__meta { display: flex; align-items: center; gap: var(--sp-4); }
.download__meta p { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-4); }
.download__meta .icon { width: 2rem; height: 2rem; color: var(--accent); stroke-width: 1.5; }
.download__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--c-white);
}
.download__type {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
}
@media (min-width: 37.5em) { .download { grid-template-columns: minmax(0, 1fr) auto; } }

/* 10 — BANDS ============================================================== */
/* 10.1 horizon: a glowing arc that opens a new chapter of the page (put it first inside a .section--flush-top) */
.horizon {
  position: relative;
  height: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
  pointer-events: none;
  margin-bottom: var(--sp-6);
  -webkit-mask-image: linear-gradient(180deg, black 35%, transparent 100%);
  mask-image: linear-gradient(180deg, black 35%, transparent 100%);
}
.horizon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 260vw;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border-top: 1px solid var(--accent);
  box-shadow: 0 -0.25rem 2rem var(--accent-soft), inset 0 2.5rem 4rem -2.5rem var(--accent-soft);
}
@media (min-width: 90em) { .horizon::before { width: 220vw; } }

/* 10.2 call-to-action band: closing block of a page, over a header photo with the ring device */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  border-top: 1px solid var(--c-line);
}
.cta-band__frame { position: relative; max-width: var(--w-frame); margin-inline: auto; overflow: hidden; }
.cta-band .backdrop { --backdrop-h: 16rem; }
.cta-band .backdrop img { filter: saturate(0.75); }
.cta-band__rings {
  width: min(120vw, 46rem);
  right: -34%;
  top: calc(100% - 5rem);
  z-index: -1;
}
.cta-band__content {
  display: grid;
  gap: var(--sp-6);
  justify-items: start;
  padding-block: 11.5rem var(--sp-section);
}
.cta-band__title { font-size: var(--fs-xl); }
.cta-band__title span { display: block; }
.cta-band__content--split { gap: var(--sp-7); justify-items: stretch; }
@media (min-width: 56.25em) {
  .cta-band__content { padding-block: var(--sp-section); }
  .cta-band__rings { width: 43rem; right: -9rem; top: 50%; transform: translateY(-50%); }
  .cta-band__content--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: var(--sp-8);
  }
}

/* 11 — ASSISTANT ENTRY POINTS ============================================= */
/* Page content that opens the assistant. The widget itself lives in chat.css / chat.js / partials/chat.html.
   [data-chat-open] opens it, [data-chat-ask="question"] opens it and sends the question. Always lime, always
   labelled "Assistente AI · demo". Hidden when JavaScript is off (the assistant needs it). */
html:not(.js) .assist { display: none; }

/* question button: a row in the band, a chip in the strip */
.ask {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  min-height: 4rem;
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-s);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--c-white);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ask .icon { width: 1.375rem; height: 1.375rem; color: var(--accent); }
.ask .ask__go { color: var(--c-dim); transition: transform var(--t-base) var(--ease), color var(--t-fast) var(--ease); }
.ask:hover { background: var(--accent-wash); color: var(--accent); }
.ask:hover .ask__go, .ask:focus-visible .ask__go { color: var(--accent); transform: translateX(0.25rem); }
.ask:focus-visible { outline-offset: -2px; }

/* 11.1 band (home): heading on the left, a console of questions on the right */
.assist--band {
  position: relative;
  padding-block: var(--sp-section);
  background:
    radial-gradient(60% 120% at 88% 50%, var(--accent-wash) 0%, var(--c-ink-a0) 70%),
    var(--c-coal);
  border-top: 1px solid var(--c-line);
}
.assist__grid { display: grid; gap: var(--sp-7); align-items: center; }
.assist__intro { display: grid; gap: var(--sp-5); justify-items: start; }
.assist__intro .display { max-width: 22ch; }
.assist__console {
  position: relative;
  background: var(--c-graphite);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--accent);
  box-shadow: 0 1.5rem 4rem var(--c-black-a60), 0 0 4rem var(--accent-wash);
}
.assist__console li + li { border-top: 1px solid var(--c-line); }
/* instrument scale under the console */
.assist__console::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: calc(100% + var(--sp-4));
  height: 0.625rem;
  background: repeating-linear-gradient(90deg, var(--c-line-strong) 0, var(--c-line-strong) 1px, transparent 1px, transparent 0.5rem);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 40%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, black 40%, transparent 100%);
}
@media (min-width: 56.25em) {
  .assist__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(3rem, 6vw, 6rem); }
}

/* 11.2 strip (inner pages): one line with the label and a few questions */
.assist--strip {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  padding-block: var(--sp-5);
  border-block: 1px solid var(--c-line-strong);
}
.assist__chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.assist__chips li { display: flex; flex: 1 1 100%; max-width: 100%; }
.ask--chip {
  display: inline-flex;
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-ink-a55);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}
.ask--chip .icon { width: 1.125rem; height: 1.125rem; }
.ask--chip:hover { border-color: var(--accent); }
.ask--chip:focus-visible { outline-offset: 3px; }
@media (min-width: 37.5em) {
  .assist__chips li { flex: 0 1 auto; }
  .ask--chip { width: auto; }
}
@media (min-width: 68.75em) {
  .assist--strip { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-7); }
  .assist__chips { justify-content: flex-end; }
}

/* ---- pages/agb-projects.css ---- */
/* pages/agb-projects.css — rules used only by /agb-projects/. Everything here is prefixed .agb-projects-. */

/* hero: photo position, a slightly narrower title so it breaks into even lines */
.agb-projects-hero .backdrop { --backdrop-x: 62%; }
.agb-projects-hero .page-hero__title { max-width: 19ch; }

/* intro: label + lead, a pair of photos in front of the ring device, then the remaining paragraphs.
   Small screens read lead → photos → text; from 900 px the photos stand in a column on the right. */
.agb-projects-intro__grid { display: grid; gap: var(--sp-7); }
.agb-projects-intro__lead { display: grid; gap: var(--sp-5); justify-items: start; }
.agb-projects-intro__lead .lead { max-width: 39rem; }
.agb-projects-intro__more { display: grid; gap: var(--sp-6); justify-items: start; }
.agb-projects-intro__more .statement { max-width: 39rem; font-size: var(--fs-m); line-height: 1.08; }

.agb-projects-collage { position: relative; width: min(100%, 33rem); margin-inline: auto; }
.agb-projects-collage__rings { width: 132%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.agb-projects-collage__rings .rings__b { display: none; }
.agb-projects-collage .photo { position: relative; }
.agb-projects-collage__a { width: 62%; }
.agb-projects-collage__b {
  width: 80%;
  margin: -10% 0 0 auto;
  border: 1px solid var(--c-line-strong);
  box-shadow: 0 1.5rem 3rem var(--c-black-a60);
}

@media (min-width: 56.25em) {
  .agb-projects-intro__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "lead media" "more media";
    grid-template-rows: auto 1fr;
    column-gap: clamp(3rem, 7vw, 7rem);
    row-gap: var(--sp-7);
  }
  .agb-projects-intro__lead { grid-area: lead; gap: var(--sp-6); }
  .agb-projects-intro__more { grid-area: more; align-content: start; }
  .agb-projects-collage { grid-area: media; align-self: center; margin-inline: auto 0; }
}

/* products: two wide rows, the render on one side and the data on the other, mirrored for the second */
.agb-projects-item {
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--sp-7);
  border-top: 1px solid var(--c-line);
}
.agb-projects-showcase .section-head + .agb-projects-item { padding-top: 0; border-top: 0; }
.agb-projects-item__stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.agb-projects-item__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(120%, 40rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft) 0%, var(--accent-wash) 55%, var(--c-ink-a0) 100%);
}
.agb-projects-item__stage img { width: min(76%, 27rem); filter: saturate(0.92); }
.agb-projects-item__body { display: grid; gap: var(--sp-5); justify-items: start; align-content: center; }
.agb-projects-item__head { display: grid; gap: var(--sp-3); }
.agb-projects-item__body .gauge { justify-self: stretch; }
.agb-projects-item__body .btn { margin-top: var(--sp-2); }
@media (min-width: 56.25em) {
  .agb-projects-item {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    padding-block: var(--sp-8);
  }
  .agb-projects-item--flip .agb-projects-item__stage { order: 2; }
  .agb-projects-item__body { gap: var(--sp-6); }
}
@media (min-width: 56.25em) and (max-width: 74.99em) {
  .agb-projects-item .gauge { grid-template-columns: 1fr; }
  .agb-projects-item .gauge__cell:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* assistant strip after the two products */
.agb-projects-showcase .assist { margin-top: var(--sp-5); }
@media (min-width: 56.25em) { .agb-projects-showcase .assist { margin-top: var(--sp-7); } }

/* closing band: photo position */
.agb-projects-closing .backdrop { --backdrop-x: 30%; }

/* ---- pages/agb-service.css ---- */
/* pages/agb-service.css — rules used only by /agb-service/.
   Every selector is scoped under .page-agb-service and every class is prefixed .agb-service-. */

/* hero photo position */
.page-agb-service .agb-service-hero .backdrop { --backdrop-x: 34%; }
@media (min-width: 56.25em) { .page-agb-service .agb-service-hero .backdrop { --backdrop-x: 50%; } }

/* 1 — the four areas: they continue the page title, so they sit closer to the hero than a normal section */
@media (min-width: 56.25em) { .page-agb-service .agb-service-areas { padding-top: var(--sp-9); } }

/* 2 — workflow, the centrepiece: one step per row, read from top to bottom.
   .steps / .step (components.css) give the counter, the numerals and the type; this block replaces the
   multi-column layout with a single sequence and adds the progress line (one eighth more per step). */
.page-agb-service .agb-service-flow__steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line-strong);
}
.page-agb-service .agb-service-flow__steps .step {
  position: relative;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  row-gap: var(--sp-2);
  padding-block: var(--sp-5) var(--sp-6);
  border-top: 0;
  border-bottom: 1px solid var(--c-line);
}
.page-agb-service .agb-service-flow__steps .step::before {
  grid-row: span 2;
  margin-bottom: 0;
}
.page-agb-service .agb-service-flow__steps .step p { grid-column: 2; max-width: var(--w-text); text-wrap: pretty; }
/* progress line with its marker, drawn over the hairline under the step */
.page-agb-service .agb-service-flow__steps .step::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(-0.5 * var(--sp-2) - 0.5px);
  width: var(--flow-progress, 100%);
  height: var(--sp-2);
  background:
    radial-gradient(circle at calc(100% - var(--sp-1)) 50%, var(--accent) 0, var(--accent) 0.1875rem, transparent 0.25rem) no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 50% / calc(100% - var(--sp-1)) 1px no-repeat;
  filter: drop-shadow(0 0 0.375rem var(--accent-glow));
  pointer-events: none;
}
.page-agb-service .agb-service-flow__steps .step:nth-child(1) { --flow-progress: 12.5%; }
.page-agb-service .agb-service-flow__steps .step:nth-child(2) { --flow-progress: 25%; }
.page-agb-service .agb-service-flow__steps .step:nth-child(3) { --flow-progress: 37.5%; }
.page-agb-service .agb-service-flow__steps .step:nth-child(4) { --flow-progress: 50%; }
.page-agb-service .agb-service-flow__steps .step:nth-child(5) { --flow-progress: 62.5%; }
.page-agb-service .agb-service-flow__steps .step:nth-child(6) { --flow-progress: 75%; }
.page-agb-service .agb-service-flow__steps .step:nth-child(7) { --flow-progress: 87.5%; }
.page-agb-service .agb-service-flow__steps .step:nth-child(8) { --flow-progress: 100%; }

@media (min-width: 37.5em) {
  .page-agb-service .agb-service-flow__steps .step { grid-template-columns: 5.5rem minmax(0, 1fr); padding-block: var(--sp-6); }
}
@media (min-width: 56.25em) {
  .page-agb-service .agb-service-flow__steps .step {
    grid-template-columns: 6.5rem minmax(0, 5fr) minmax(0, 6fr);
    column-gap: var(--sp-6);
    align-items: baseline;
    padding-block: var(--sp-6);
  }
  .page-agb-service .agb-service-flow__steps .step::before { grid-row: auto; font-size: var(--fs-l); }
  .page-agb-service .agb-service-flow__steps .step__title { font-size: var(--fs-l); line-height: 1; }
  .page-agb-service .agb-service-flow__steps .step p { grid-column: 3; }
}
.page-agb-service .agb-service-flow__assist { margin-top: var(--sp-8); }

/* 3 — mission, reliability, future: three text + photo blocks, each photo framed in its own way */
.page-agb-service .agb-service-block { --split-a: 6fr; --split-b: 5fr; gap: var(--sp-7); }
.page-agb-service .agb-service-block.split--reverse { --split-a: 5fr; --split-b: 6fr; }
.page-agb-service .agb-service-block .display { max-width: 22ch; }
.page-agb-service .agb-service-block__photo { width: min(100%, var(--agb-service-photo-w)); margin-inline: auto; }
.page-agb-service .agb-service-block__photo--square { --agb-service-photo-w: 28rem; aspect-ratio: 1; }   /* file: 523 px */
.page-agb-service .agb-service-block__photo--tall { --agb-service-photo-w: 24rem; aspect-ratio: 428 / 611; } /* file: 428 px */
.page-agb-service .agb-service-future .btn { margin-top: var(--sp-3); }
@media (min-width: 56.25em) and (max-width: 74.99em) {
  .page-agb-service .agb-service-mission .ringed__rings { width: 126%; } /* narrow column: the rings stay inside the page */
}
@media (min-width: 56.25em) {
  .page-agb-service .agb-service-block { gap: var(--sp-8); }
  .page-agb-service .agb-service-reliability .agb-service-block { --split-a: 5fr; --split-b: 6fr; }
  /* the framed photos line up with the container edges */
  .page-agb-service .agb-service-reliability .agb-service-block__photo { margin-inline: 0 auto; }
  .page-agb-service .agb-service-future .agb-service-block__photo { margin-inline: auto 0; }
}

/* ---- pages/chi-siamo.css ---- */
/* pages/chi-siamo.css — rules used only by /chi-siamo/.
   Every selector is scoped under .page-chi-siamo and every class is prefixed .chi-siamo-. */

/* hero: keep the workwear and the hands in the visible part of the photo on small screens */
.page-chi-siamo .chi-siamo-hero .backdrop { --backdrop-x: 72%; }
@media (min-width: 56.25em) { .page-chi-siamo .chi-siamo-hero .backdrop { --backdrop-x: 50%; } }

/* 1 — the story: the portrait dissolves into the ring device, the three paragraphs sit on a two-point time line */
.page-chi-siamo .chi-siamo-story__grid { --split-a: 5fr; --split-b: 7fr; gap: var(--sp-8); }
.page-chi-siamo .chi-siamo-story__media { --photo-w: 19rem; }
.page-chi-siamo .chi-siamo-story__media .ringed__rings { width: 132%; } /* phones: the rings stay inside the section */
@media (min-width: 37.5em) {
  .page-chi-siamo .chi-siamo-story__media { --photo-w: 22rem; } /* 352 px: the file is 358 px wide */
  .page-chi-siamo .chi-siamo-story__media .ringed__rings { width: 150%; }
}
@media (min-width: 56.25em) and (max-width: 74.99em) {
  .page-chi-siamo .chi-siamo-story__media .ringed__rings { width: 126%; } /* narrow column: the rings stay inside the page */
}
.page-chi-siamo .chi-siamo-story__photo { background: none; }
.page-chi-siamo .chi-siamo-story__photo img {
  /* the studio background of the photo is as dark as the page: let its edges fade so the rings show around the portrait */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 62%, transparent 100%);
}
.page-chi-siamo .chi-siamo-story__text { display: grid; gap: var(--sp-7); align-content: start; }

.page-chi-siamo .chi-siamo-timeline { display: grid; gap: var(--sp-7); }
.page-chi-siamo .chi-siamo-timeline__item {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  padding-left: var(--sp-6);
}
/* spine and node */
.page-chi-siamo .chi-siamo-timeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-3) / 2);
  top: var(--sp-5);
  bottom: calc(-1 * var(--sp-7));
  width: 1px;
  background: var(--c-line-strong);
}
.page-chi-siamo .chi-siamo-timeline__item:last-child::before {
  bottom: 0;
  background: linear-gradient(180deg, var(--c-line-strong) 0%, var(--c-ink-a0) 100%);
}
.page-chi-siamo .chi-siamo-timeline__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: var(--sp-3);
  width: var(--sp-3);
  height: var(--sp-3);
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--c-ink);
  box-shadow: 0 0 0.75rem var(--accent-glow);
}
.page-chi-siamo .chi-siamo-timeline__year {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 0.82;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 0 2.25rem var(--accent-soft);
}
.page-chi-siamo .chi-siamo-timeline__item .copy { margin-top: calc(-1 * var(--sp-2)); }
@media (min-width: 56.25em) {
  .page-chi-siamo .chi-siamo-story__media { margin-inline: 0; justify-self: center; }
  .page-chi-siamo .chi-siamo-timeline { gap: var(--sp-8); }
  .page-chi-siamo .chi-siamo-timeline__item { padding-left: var(--sp-7); }
  .page-chi-siamo .chi-siamo-timeline__item::before { bottom: calc(-1 * var(--sp-8)); }
  .page-chi-siamo .chi-siamo-timeline__item:last-child::before { bottom: 0; }
}

/* 2 — the quote: one wide statement across the band */
.page-chi-siamo .chi-siamo-vision { padding-block: var(--sp-8); }
.page-chi-siamo .chi-siamo-vision__cta { margin-top: var(--sp-6); }
@media (min-width: 56.25em) {
  .page-chi-siamo .chi-siamo-vision { padding-block: var(--sp-9); }
  .page-chi-siamo .chi-siamo-vision__quote { gap: var(--sp-6); }
  .page-chi-siamo .chi-siamo-vision__quote blockquote { max-width: none; font-size: var(--fs-l); line-height: 1; }
  .page-chi-siamo .chi-siamo-vision__cta { margin-top: var(--sp-7); }
}

/* 3 — the four values: a strip of four photographs, numbered 01–04 */
.page-chi-siamo .chi-siamo-values__list {
  display: grid;
  gap: var(--sp-7) var(--sp-5);
  counter-reset: valore;
}
.page-chi-siamo .chi-siamo-value { display: grid; align-content: start; counter-increment: valore; }
.page-chi-siamo .chi-siamo-value__photo { aspect-ratio: 16 / 9; }
.page-chi-siamo .chi-siamo-value__photo::before {
  content: counter(valore, decimal-leading-zero);
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-3);
  z-index: 2;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-l);
  line-height: 0.82;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 0 1.5rem var(--c-black-a60);
}
/* which part of each photo survives the crop */
.page-chi-siamo .chi-siamo-value--serieta .chi-siamo-value__photo img { object-position: 50% 38%; }
.page-chi-siamo .chi-siamo-value--passione .chi-siamo-value__photo img { object-position: 50% 30%; }
.page-chi-siamo .chi-siamo-value--sostenibilita .chi-siamo-value__photo img { object-position: 50% 55%; }
.page-chi-siamo .chi-siamo-value--ordine .chi-siamo-value__photo img { object-position: 50% 40%; }
.page-chi-siamo .chi-siamo-value__body { display: grid; gap: var(--sp-3); padding-top: var(--sp-5); }
.page-chi-siamo .chi-siamo-value__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--c-white);
}
.page-chi-siamo .chi-siamo-value__body p { color: var(--c-mute); max-width: var(--w-text); text-wrap: pretty; }
@media (min-width: 37.5em) {
  .page-chi-siamo .chi-siamo-values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-chi-siamo .chi-siamo-value__photo { aspect-ratio: 3 / 2; }
}
@media (min-width: 68.75em) {
  .page-chi-siamo .chi-siamo-values__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
  .page-chi-siamo .chi-siamo-value__photo { aspect-ratio: 4 / 5; }
  .page-chi-siamo .chi-siamo-value__photo::before { left: var(--sp-5); bottom: var(--sp-4); }
  .page-chi-siamo .chi-siamo-value__body { padding: var(--sp-6) var(--sp-6) 0 0; gap: var(--sp-4); }
  .page-chi-siamo .chi-siamo-value--serieta .chi-siamo-value__photo img,
  .page-chi-siamo .chi-siamo-value--passione .chi-siamo-value__photo img,
  .page-chi-siamo .chi-siamo-value--sostenibilita .chi-siamo-value__photo img,
  .page-chi-siamo .chi-siamo-value--ordine .chi-siamo-value__photo img { object-position: 50% 50%; }
}

/* 4 — the three sectors: an instrument cluster of three cells */
.page-chi-siamo .chi-siamo-sectors__list { display: grid; border-top: 1px solid var(--c-line-strong); }
.page-chi-siamo .chi-siamo-sector {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sp-5);
  row-gap: var(--sp-3);
  align-content: start;
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--c-line);
}
.page-chi-siamo .chi-siamo-sector__icon { grid-row: span 2; margin-bottom: 0; }
.page-chi-siamo .chi-siamo-sector__name {
  align-self: end;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--c-white);
}
.page-chi-siamo .chi-siamo-sector__caption {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-wrap: balance;
}
@media (min-width: 56.25em) {
  .page-chi-siamo .chi-siamo-sectors__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-chi-siamo .chi-siamo-sector {
    grid-template-columns: 1fr;
    row-gap: var(--sp-4);
    padding: var(--sp-6) var(--sp-6) var(--sp-7);
    border-bottom: 1px solid var(--c-line);
    border-left: 1px solid var(--c-line);
  }
  .page-chi-siamo .chi-siamo-sector:first-child { padding-left: 0; border-left: 0; }
  .page-chi-siamo .chi-siamo-sector:last-child { padding-right: 0; }
  .page-chi-siamo .chi-siamo-sector__icon { grid-row: auto; margin-bottom: var(--sp-4); }
  .page-chi-siamo .chi-siamo-sector__name { align-self: start; }
}
.page-chi-siamo .chi-siamo-sectors__assist { margin-top: var(--sp-8); }

/* 5 — closing band: a long sentence, so the section-heading size instead of the band size */
.page-chi-siamo .chi-siamo-closing .backdrop { --backdrop-x: 22%; }
.page-chi-siamo .chi-siamo-closing .cta-band__title { font-size: var(--fs-l); max-width: 22ch; }
.page-chi-siamo .chi-siamo-closing__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
@media (min-width: 37.5em) { .page-chi-siamo .chi-siamo-closing .cta-band__title { max-width: 26ch; } }
@media (min-width: 56.25em) { .page-chi-siamo .chi-siamo-closing .backdrop { --backdrop-x: 30%; } }

/* ---- pages/clienti.css ---- */
/* pages/clienti.css — rules used only by /clienti/.
   Every selector is scoped under .page-clienti and every class is prefixed .clienti-. */

/* hero photo position */
.page-clienti .clienti-hero .backdrop { --backdrop-x: 40%; }
@media (min-width: 56.25em) { .page-clienti .clienti-hero .backdrop { --backdrop-x: 50%; } }

/* the wall: 2 columns on phones (the 21st logo closes the wall on a full-width cell), 3 from 600 px, 7 × 3 from 1100 px.
   Its heading is one sentence of the page paragraph, set as a single line where the width allows it. */
@media (max-width: 37.49em) {
  .page-clienti .clienti-wall__plate .plate__cell { min-height: 6rem; }
  .page-clienti .clienti-wall__plate .plate__cell:last-child { grid-column: 1 / -1; }
}
.page-clienti .clienti-wall__assist { margin-top: var(--sp-8); }

/* closing band: photo position */
.page-clienti .clienti-closing .backdrop { --backdrop-x: 46%; }

/* ---- pages/contatti.css ---- */
/* pages/contatti.css — rules used only by /contatti/. Everything here is prefixed .contatti-. */

/* hero: each sentence of the heading on its own line, "Scrivici" under it */
.contatti-hero .backdrop { --backdrop-x: 78%; }
.contatti-hero .page-hero__title span { display: block; }
.contatti-hero__cta { margin-top: var(--sp-2); }
@media (min-width: 56.25em) {
  .contatti-hero .backdrop { --backdrop-x: 60%; }
  .contatti-hero .page-hero__content { min-height: clamp(27rem, 34vw, 32rem); }
}

/* contacts on the left (two big lines), the address plate on the right */
.contatti-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 56.25em) {
  .contatti-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

.contatti-lines { border-top: 1px solid var(--c-line-strong); }
.contatti-lines li { border-bottom: 1px solid var(--c-line); }
.contatti-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: var(--sp-5);
  row-gap: var(--sp-2);
  padding-block: var(--sp-5);
  transition: color var(--t-fast) var(--ease);
}
.contatti-line__k {
  grid-column: 1 / -1;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.contatti-line__v {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-l);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--c-white);
  overflow-wrap: anywhere;
  transition: color var(--t-fast) var(--ease);
}
.contatti-line .icon {
  align-self: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  stroke-width: 1.5;
  transition: transform var(--t-base) var(--ease);
}
.contatti-line:hover .contatti-line__v { color: var(--accent); }
.contatti-line:hover .icon { transform: translateX(0.25rem); }
.contatti-channels__social { margin-top: var(--sp-6); }
.contatti-channels__social .icon:last-child { width: 1rem; height: 1rem; color: var(--c-mute); }
@media (min-width: 56.25em) {
  .contatti-line { padding-block: var(--sp-6); }
}

/* address plate: a panel with a small locator (ring device + pin) in its corner */
.contatti-plate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: var(--sp-6);
  justify-items: start;
  padding: var(--sp-6) var(--sp-5);
  background:
    radial-gradient(70% 70% at 100% 0%, var(--accent-wash) 0%, var(--c-ink-a0) 70%),
    var(--c-graphite);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--accent);
}
.contatti-plate__locator {
  position: absolute;
  z-index: -1;
  top: -4.5rem;
  right: -4.5rem;
  display: grid;
  place-items: center;
  width: 15rem;
  height: 15rem;
}
.contatti-plate__rings { inset: 0; width: 100%; }
.contatti-plate__rings .rings__b { display: none; }
.contatti-plate__locator .icon {
  position: relative;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 0.5rem var(--accent-glow));
}
.contatti-plate__address {
  padding-right: 5.5rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--c-white);
}
.contatti-plate__company {
  justify-self: stretch;
  display: grid;
  gap: var(--sp-2);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
}
.contatti-plate__k {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.contatti-plate__name { font-size: var(--fs-lead); line-height: 1.4; color: var(--c-white); }
.contatti-plate__name span { display: block; font-size: var(--fs-body); color: var(--c-mute); }
@media (min-width: 37.5em) {
  .contatti-plate { padding: var(--sp-7) var(--sp-6); }
  .contatti-plate__locator { top: -3.5rem; right: -3.5rem; width: 17rem; height: 17rem; }
  .contatti-plate__address { padding-right: 7rem; }
}

/* assistant: heading on the left, the question on the right. Always lime, hidden without JavaScript (.assist) */
.contatti-assist {
  padding-block: var(--sp-section);
  background:
    radial-gradient(60% 120% at 88% 50%, var(--accent-wash) 0%, var(--c-ink-a0) 70%),
    var(--c-coal);
  border-top: 1px solid var(--c-line);
}
.contatti-assist__grid { display: grid; gap: var(--sp-7); align-items: center; }
.contatti-assist__intro { display: grid; gap: var(--sp-5); justify-items: start; }
.contatti-assist__intro .display { max-width: 20ch; }
@media (min-width: 56.25em) {
  .contatti-assist__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); }
}

/* ---- pages/coolvibe.css ---- */
/* pages/coolvibe.css — rules used only by /agb-projects/coolvibe/. Everything here is prefixed .coolvibe-.
   The page accent is mint (front matter "accent": "mint"); the assistant strip stays lime. */

/* hero: the COOLVIBE wordmark is the <h1>; four key points close the hero like a status line */
.coolvibe-hero__name { width: 100%; margin: 0; line-height: 0; }
.coolvibe-hero__name img { width: min(94%, 21rem); }
.coolvibe-hero .product-hero__grid { padding-bottom: var(--sp-7); }
.coolvibe-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--c-line-strong);
}
.coolvibe-keys li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text);
}
.coolvibe-keys .icon { width: 1.25rem; height: 1.25rem; color: var(--accent); }
@media (min-width: 37.5em) {
  .coolvibe-hero__name img { width: min(100%, 28rem); }
  .coolvibe-keys li { font-size: var(--fs-body); }
}
@media (min-width: 56.25em) {
  .coolvibe-hero__name img { width: min(100%, 38rem); }
  .coolvibe-hero .product-hero__grid {
    min-height: clamp(38rem, calc(100vh - 12.5rem), 50rem);
    padding-bottom: var(--sp-7);
  }
  .coolvibe-hero .product-hero__text .copy { max-width: 29rem; } /* stays clear of the ring device */
  .coolvibe-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; padding-block: 0; }
  .coolvibe-keys li { padding: var(--sp-5) var(--sp-5); border-left: 1px solid var(--c-line); }
  .coolvibe-keys li:first-child { padding-left: 0; border-left: 0; }
}

/* inside Coolvibe: the detail render (a disc, with a soft glow behind it) next to the parts list */
.coolvibe-inside__grid { display: grid; gap: var(--sp-7); }
.coolvibe-inside__media {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  width: min(100%, 27rem);
  margin-inline: auto;
}
.coolvibe-inside__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12%;
  background: radial-gradient(closest-side, var(--accent-soft) 0%, var(--accent-wash) 60%, var(--c-ink-a0) 100%);
}
.coolvibe-inside__media img { width: 88%; filter: saturate(0.9); }

.coolvibe-parts { display: grid; border-top: 1px solid var(--c-line-strong); }
.coolvibe-part {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sp-5);
  row-gap: var(--sp-2);
  align-items: center;
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}
.coolvibe-part .icon { width: 1.75rem; height: 1.75rem; color: var(--accent); stroke-width: 1.5; }
.coolvibe-part__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-m);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--c-white);
}
.coolvibe-part p { grid-column: 2; color: var(--c-mute); }
@media (min-width: 56.25em) {
  .coolvibe-inside__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
}
@media (min-width: 75em) {
  /* name and description side by side, like the rows of a parts table */
  .coolvibe-part { grid-template-columns: auto minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--sp-5); padding-block: var(--sp-5); }
  .coolvibe-part p { grid-column: 3; }
}

/* how it works: three passages on one line of flow (vertical on small screens), then the result */
.coolvibe-flow { display: grid; counter-reset: flow; }
.coolvibe-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: var(--sp-5);
  align-items: start;
  align-content: start;
  padding-bottom: var(--sp-7);
  counter-increment: flow;
}
/* the line that carries the flow to the next passage, ending in an arrowhead */
.coolvibe-flow__step::before {
  content: "";
  position: absolute;
  left: calc(1.75rem - 0.5px);
  top: 3.5rem;
  bottom: 0.375rem;
  width: 1px;
  background: var(--accent);
  opacity: 0.55;
}
.coolvibe-flow__step::after {
  content: "";
  position: absolute;
  left: calc(1.75rem - 0.3125rem);
  bottom: 0.375rem;
  width: 0.625rem;
  height: 0.625rem;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
}
/* the third passage is the last one stated: no line leaves it */
.coolvibe-flow__step:last-child::before,
.coolvibe-flow__step:last-child::after { display: none; }
.coolvibe-flow__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--c-ink);
  box-shadow: 0 0 1.25rem var(--accent-soft), inset 0 0 0.75rem var(--accent-wash);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-s);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.coolvibe-flow__node::before { content: counter(flow, decimal-leading-zero); }
.coolvibe-flow__step--lit .coolvibe-flow__node { background: var(--accent); color: var(--c-on-accent); box-shadow: 0 0 1.75rem var(--accent-glow); }
.coolvibe-flow__step p { padding-top: var(--sp-3); font-size: var(--fs-lead); line-height: 1.5; color: var(--c-text); text-wrap: pretty; }
.coolvibe-flow__step b {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.2em;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
@media (min-width: 68.75em) {
  .coolvibe-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-7); }
  .coolvibe-flow__step { grid-template-columns: 1fr; row-gap: var(--sp-5); padding-bottom: var(--sp-8); }
  .coolvibe-flow__step::before {
    left: 3.5rem;
    right: calc(-1 * var(--sp-7));
    top: calc(1.75rem - 0.5px);
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .coolvibe-flow__step::after {
    left: auto;
    right: calc(-1 * var(--sp-7) + 0.125rem);
    top: calc(1.75rem - 0.3125rem);
    bottom: auto;
    transform: rotate(-45deg);
  }
  .coolvibe-flow__step p { padding-top: 0; max-width: 24rem; }
}

/* the result line, set like the main read-out of an instrument */
.coolvibe-result {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-5) var(--sp-7);
  background:
    radial-gradient(90% 140% at 12% 0%, var(--accent-soft) 0%, var(--c-ink-a0) 60%),
    var(--c-coal);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--accent);
}
.coolvibe-result::after {
  content: "";
  position: absolute;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: var(--sp-5);
  height: 0.625rem;
  background: repeating-linear-gradient(90deg, var(--c-line-strong) 0, var(--c-line-strong) 1px, transparent 1px, transparent 0.5rem);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, black 55%, transparent 100%);
}
.coolvibe-result__q {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
}
.coolvibe-result__figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-5);
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1;
  color: var(--c-text);
}
.coolvibe-result__n { display: inline-flex; align-items: baseline; gap: 0.3em; font-size: var(--fs-m); color: var(--c-white); white-space: nowrap; }
.coolvibe-result__n b {
  font-weight: 600;
  font-size: clamp(5rem, 2.6rem + 9vw, 10rem);
  line-height: 0.8;
  color: var(--accent);
  text-shadow: 0 0 2.5rem var(--accent-soft);
  font-variant-numeric: lining-nums tabular-nums;
}
.coolvibe-result__n i { font-style: normal; }
.coolvibe-result__mid { flex: 1 1 100%; font-size: var(--fs-s); line-height: 1.2; letter-spacing: 0.01em; color: var(--c-mute); }
.coolvibe-result__eq { font-size: var(--fs-xl); line-height: 0.8; color: var(--c-dim); }
@media (min-width: 37.5em) {
  .coolvibe-result { padding: var(--sp-7) var(--sp-7) var(--sp-8); }
  .coolvibe-result::after { left: var(--sp-7); right: var(--sp-7); bottom: var(--sp-6); }
}
@media (min-width: 68.75em) {
  .coolvibe-result { gap: var(--sp-6); padding: var(--sp-7) var(--sp-8) var(--sp-8); }
  .coolvibe-result::after { left: var(--sp-8); right: var(--sp-8); }
  .coolvibe-result__figure { flex-wrap: nowrap; justify-content: space-between; gap: var(--sp-6); }
  .coolvibe-result__mid { flex: 0 1 auto; min-width: 11rem; text-wrap: balance; }
}

/* spec sheet: dati tecnici + perfetto per, then the assistant strip (same structure as the Sparclee page) */
.coolvibe-specs { display: grid; gap: var(--sp-8); }
.coolvibe-specs + .assist { margin-top: var(--sp-8); }
.coolvibe-specs .gauge--xl { --gauge-n: clamp(3.5rem, 1.5rem + 4.6vw, 5.75rem); }
/* the tick scales of two cells in a row stay on one line, also when a unit wraps */
.coolvibe-specs .gauge--xl .gauge__cell::after { margin-top: auto; }
@media (min-width: 68.75em) {
  .coolvibe-specs { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--sp-8); }
}

/* air evaporator: the cut-out on the ring device, the heading as a statement */
.coolvibe-evap__grid { display: grid; gap: var(--sp-7); align-items: center; }
.coolvibe-evap__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 24rem);
  margin-inline: auto;
}
.coolvibe-evap__rings { width: 128%; left: 50%; top: 47%; transform: translate(-50%, -50%); }
.coolvibe-evap__rings .rings__b { display: none; }
.coolvibe-evap__stage img {
  position: relative;
  z-index: 1;
  width: min(74%, 19rem);
  filter: drop-shadow(0 1.75rem 2rem var(--c-black-a60));
}
.coolvibe-evap__title span { display: block; }
@media (min-width: 56.25em) {
  .coolvibe-evap__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 7vw, 7rem);
  }
  .coolvibe-evap__stage { width: min(100%, 27rem); }
  .coolvibe-evap__stage img { width: min(74%, 21rem); }
}

/* services + "in fase di sviluppo" note, then the brochure row */
.coolvibe-services { display: grid; gap: var(--sp-8); }
.coolvibe-services + .download { margin-top: var(--sp-8); }
.coolvibe-note p { font-size: var(--fs-lead); line-height: 1.5; }
@media (min-width: 68.75em) {
  .coolvibe-services { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--sp-8); align-items: start; }
}

/* closing band: photo position */
.coolvibe-closing .backdrop { --backdrop-x: 40%; }

/* ---- pages/home.css ---- */
/* pages/home.css — rules used only by the home page (/). Everything here is prefixed .home-. */

/* hero: headline on the left, CAD photo and ring device on the right */
.home-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  border-bottom: 1px solid var(--c-line);
}
.home-hero__frame {
  position: relative;
  max-width: var(--w-frame);
  margin-inline: auto;
}
.home-hero__media {
  position: relative;
  height: clamp(16rem, 76vw, 30rem);
  overflow: hidden;
}
.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
  filter: saturate(0.82) contrast(1.06) brightness(0.86);
}
.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--c-ink-a55) 0%, var(--c-ink-a0) 28%),
    linear-gradient(0deg, var(--c-ink) 0%, var(--c-ink-a92) 12%, var(--c-ink-a0) 52%);
}
.home-hero__rings {
  width: min(84vw, 34rem);
  left: 60%;
  top: 46%;
  transform: translate(-50%, -50%);
}
.home-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: var(--sp-5);
  margin-top: calc(-1 * var(--sp-6));
  padding-bottom: var(--sp-8);
}
.home-hero__title { font-size: var(--fs-hero); line-height: 0.94; }
.home-hero__title span { display: block; white-space: nowrap; }
.home-hero__lead { max-width: 34rem; }
.home-hero__cta { margin-top: var(--sp-2); }

@media (min-width: 56.25em) {
  .home-hero__frame {
    display: grid;
    align-items: center;
    min-height: clamp(36rem, calc(100vh - 7.5rem), 50rem);
  }
  .home-hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 60%;
    height: auto;
    overflow: visible;
  }
  .home-hero__media img { object-position: 58% 45%; }
  .home-hero__media::after {
    background:
      linear-gradient(90deg, var(--c-ink) 0%, var(--c-ink-a92) 14%, var(--c-ink-a55) 38%, var(--c-ink-a0) 70%),
      linear-gradient(0deg, var(--c-ink) 0%, var(--c-ink-a0) 26%),
      linear-gradient(180deg, var(--c-ink-a80) 0%, var(--c-ink-a0) 22%),
      linear-gradient(270deg, var(--c-ink-a55) 0%, var(--c-ink-a0) 12%);
  }
  .home-hero__rings {
    z-index: 1;
    width: min(58rem, 110%);
    left: auto;
    right: -6.5%;
    top: 50%;
    transform: translateY(-50%);
  }
  .home-hero__content {
    margin-top: 0;
    padding-block: var(--sp-8);
    gap: var(--sp-6);
  }
  .home-hero__title { font-size: clamp(3.5rem, 6.4vw, 6.25rem); }
  .home-hero__lead { max-width: 31rem; }
}
/* beyond the frame width the photo dissolves into the page on its outer edge */
@media (min-width: 105em) {
  .home-hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, var(--c-ink) 0%, var(--c-ink-a0) 18%);
  }
}

/* "Pneumoidraulica": photo band with the text block on the right */
.home-band { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.home-band__frame {
  position: relative;
  max-width: var(--w-frame);
  margin-inline: auto;
}
.home-band .backdrop { --backdrop-h: 19rem; --backdrop-x: 34%; }
.home-band__content { padding-block: 13.5rem var(--sp-8); }
.home-band__text { display: grid; gap: var(--sp-5); }
.home-band__title { max-width: 24ch; }
.home-band__foot {
  display: grid;
  gap: var(--sp-5);
  justify-items: start;
  margin-top: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-strong);
}
@media (min-width: 56.25em) {
  .home-band__frame {
    display: grid;
    align-items: center;
    min-height: clamp(31rem, 40vw, 38rem);
  }
  .home-band .backdrop { --backdrop-x: 30%; }
  .home-band__content { padding-block: var(--sp-8); }
  .home-band__text { width: min(100%, 39rem); margin-left: auto; }
}

/* "Passione per l'innovazione": text + ringed photo pair */
.home-duo { --split-a: 6fr; --split-b: 5fr; --split-gap: clamp(3rem, 8vw, 8rem); gap: var(--sp-8); }
.home-duo .display { max-width: 18ch; }
.home-duo .btn { margin-top: var(--sp-3); }
@media (min-width: 56.25em) {
  .home-duo .ringed { --photo-w: 32rem; margin-inline: 0; justify-self: end; }
}

/* "I nostri clienti": a ruled label above the logo plate */
.home-clients { padding-top: 0; padding-bottom: clamp(4.5rem, 2.6rem + 5vw, 7rem); }
.home-clients__head { display: flex; align-items: center; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.home-clients__title {
  flex: none;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
}
.home-clients__head::after { content: ""; flex: 1; height: 1px; background: var(--c-line-strong); }

/* contact band: photo position */
.home-contact .backdrop { --backdrop-x: 22%; }
@media (min-width: 56.25em) { .home-contact .backdrop { --backdrop-x: 30%; } }

/* ---- pages/news.css ---- */
/* pages/news.css — rules used only by /news/ and the three article pages under it.
   Everything here is prefixed .news-. */

/* ---- list page (/news/) ------------------------------------------------- */
.news-hero .backdrop { --backdrop-x: 62%; }
.news-hero .page-hero__title { max-width: 14ch; }

/* the three articles: stacked cards on phones, wide rows (image | date, title) from 600 px */
.news-list { display: grid; gap: var(--sp-7); }
@media (min-width: 37.5em) {
  .news-list { gap: 0; border-top: 1px solid var(--c-line-strong); }
  .news-item {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-6);
    padding-block: var(--sp-6);
    border-bottom: 1px solid var(--c-line);
  }
  .news-item .card__media { flex: 0 0 38%; }
  .news-item .card__body {
    flex: 1 1 auto;
    gap: var(--sp-4);
    padding-top: 0;
    border-top: 0;
  }
  .news-item .card__more { margin-top: var(--sp-2); }
  .news-item:focus-within { outline-offset: -1px; }
}
@media (min-width: 56.25em) {
  .news-item { gap: clamp(3rem, 6vw, 6rem); padding-block: var(--sp-7); }
  .news-item .card__media { flex-basis: 34%; }
  .news-item .card__body { gap: var(--sp-5); }
  .news-item .card__title { max-width: 26ch; font-size: var(--fs-m); line-height: 1.1; }
}
/* wide screens: image | date and a larger title | "Leggi di più" at the end of the row */
@media (min-width: 68.75em) {
  .news-item .card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--sp-7);
    row-gap: var(--sp-5);
    align-items: center;
  }
  .news-item .card__date { grid-column: 1; grid-row: 1; align-self: end; }
  .news-item .card__title {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    max-width: 24ch;
    font-size: clamp(2rem, 0.9rem + 1.6vw, 2.5rem);
    line-height: 1.08;
    text-wrap: balance;
  }
  .news-item .card__more { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; }
}

/* ---- article pages -------------------------------------------------------- */
.news-article-hero .backdrop { --backdrop-x: 62%; }
.news-article__title {
  max-width: 48rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-l);
  line-height: 1.04;
  letter-spacing: 0.004em;
  color: var(--c-white);
  text-wrap: balance;
}
/* between 900 and 1200 px the ring device of the hero comes close: keep the title clear of it */
@media (min-width: 56.25em) and (max-width: 74.99em) {
  .news-article__title { max-width: 32rem; }
}
/* the breadcrumb shows the start of the article title */
.news-crumb {
  display: inline-block;
  max-width: min(40vw, 26rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* image and text: the image first on phones, in a column on the right from 900 px */
.news-article__grid { display: grid; gap: var(--sp-7); }
.news-article__figure { width: 100%; max-width: 40rem; }
.news-article__body { max-width: 40rem; }
.news-article__body .news-article__lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-white); }
.news-article__body .news-article__quote {
  margin-block: var(--sp-6);
  padding-left: var(--sp-5);
  border-left: 2px solid var(--accent);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--c-white);
}
.news-article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  max-width: 40rem;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-strong);
}
@media (min-width: 56.25em) {
  .news-article__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .news-article__main { grid-column: 1; grid-row: 1; }
  .news-article__figure {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--h-header) + var(--sp-6));
    max-width: none;
  }
}

/* the other two articles: compact rows, two columns from 800 px */
.news-more__grid { display: grid; gap: var(--sp-6); }
.news-more__item { flex-direction: row; align-items: center; gap: var(--sp-5); }
.news-more__item .card__media { flex: 0 0 34%; aspect-ratio: 1; }
.news-more__item .card__body { gap: var(--sp-3); padding-top: 0; border-top: 0; }
.news-more__item .card__title { font-size: var(--fs-s); line-height: 1.16; }
@media (min-width: 37.5em) {
  .news-more__item .card__media { flex-basis: 30%; aspect-ratio: 3 / 2; }
}
@media (min-width: 50em) {
  .news-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7); }
  .news-more__item { gap: var(--sp-6); }
  .news-more__item .card__media { flex-basis: 38%; }
}

/* ---- pages/sparclee.css ---- */
/* pages/sparclee.css — rules used only by /agb-projects/sparclee/. Everything here is prefixed .sparclee-. */

/* feature strip: a little less air under it on desktop */
@media (min-width: 68.75em) { .sparclee-features { padding-bottom: var(--sp-9); } }

/* description: studio render that fades into the tinted section */
.sparclee-story__media { position: relative; overflow: hidden; aspect-ratio: 1209 / 1080; background: var(--c-graphite); }
.sparclee-story__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9) contrast(1.04); }
.sparclee-story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--c-coal) 0%, var(--c-ink-a0) 28%),
    linear-gradient(90deg, var(--c-ink-a55) 0%, var(--c-ink-a0) 30%);
}
.sparclee-story .statement { margin-top: var(--sp-3); }

/* spec sheet: dati tecnici + perfetto per, then the assistant strip */
.sparclee-specs { display: grid; gap: var(--sp-8); }
.sparclee-specs + .assist { margin-top: var(--sp-8); }
@media (min-width: 68.75em) {
  .sparclee-specs { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--sp-8); }
}

/* machine sections: two independent columns of panels (cards, no sequence implied) */
.sparclee-parts { display: grid; gap: var(--sp-4); }
.sparclee-parts__col { display: flex; flex-direction: column; gap: var(--sp-4); }
.sparclee-parts__col .panel:last-child { flex: 1; }
@media (min-width: 50em) {
  .sparclee-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
  .sparclee-parts__col { gap: var(--sp-5); }
}
@media (min-width: 75em) {
  .sparclee-parts, .sparclee-parts__col { gap: var(--sp-6); }
}

/* services + "in sviluppo" note, then the brochure row */
.sparclee-services { display: grid; gap: var(--sp-8); }
.sparclee-services + .download { margin-top: var(--sp-8); }
@media (min-width: 68.75em) {
  .sparclee-services { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--sp-8); align-items: start; }
}

/* closing band: photo position */
.sparclee-closing .backdrop { --backdrop-x: 40%; }

/* ---- chat.css ---- */
/* ==========================================================================
   chat.css — "Assistente AGB", the assistant widget: launcher, panel, messages, request card.
   Markup: src/partials/chat.html · behaviour: src/js/chat.js · API: ASSISTANT.md.
   Fixed bottom-right, z-index 120 (above the sticky header at 100). Always lime (--c-lime…, never the page
   accent), tokens only (no raw hex), motion 150–300 ms on transform/opacity (the typing dots loop is the only
   exception); prefers-reduced-motion is handled in base.css and at the end of this file.
   Two layouts: a floating panel above the launcher, and a near full-screen sheet on phones and on very low
   windows (the same media query is in chat.js: SHEET_QUERY).
   The entry points inside the pages (.assist, .ask) are NOT here: they are in components.css.
   ========================================================================== */
html:not(.js) .chat { display: none; } /* the assistant needs JavaScript */

.chat {
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: var(--sp-3);
  pointer-events: none;
}
.chat > * { pointer-events: auto; }
.chat [hidden] { display: none !important; }

/* 1 — LAUNCHER =========================================================== */
.chat__launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 3rem;
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-3);
  border-radius: var(--radius-pill);
  background: var(--c-lime);
  color: var(--c-on-accent);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0.75rem 2rem var(--c-black-a60), 0 0 0 1px var(--c-ink), 0 0 1.75rem var(--c-lime-a45);
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chat__launcher:hover { background: var(--c-lime-hi); transform: translateY(-2px); }
.chat__launcher:focus-visible { outline-color: var(--c-white); border-radius: var(--radius-pill); }
.chat__launcher .icon { width: 1.375rem; height: 1.375rem; }
.chat__launcher .icon--close { display: none; }
.chat__launcher[aria-expanded="true"] .icon--open { display: none; }
.chat__launcher[aria-expanded="true"] .icon--close { display: block; }

/* 2 — PANEL ============================================================== */
.chat__scrim { display: none; }

.chat__panel {
  display: flex;
  flex-direction: column;
  width: min(24.5rem, calc(100vw - 2 * var(--sp-3)));
  height: min(42.5rem, calc(100vh - 6.5rem));
  height: min(42.5rem, calc(100dvh - 6.5rem));
  background: var(--c-graphite);
  border: 1px solid var(--c-line-strong);
  border-top: 2px solid var(--c-lime);
  border-radius: var(--radius-l);
  box-shadow: 0 1.5rem 4rem var(--c-black-a60), 0 0 3rem var(--c-lime-a08);
  overflow: hidden;
  animation: chat-in var(--t-base) var(--ease) both;
}
.chat__panel:focus, .chat__panel:focus-visible { outline: none; }
.chat--still .chat__panel, .chat--still .chat__scrim { animation: none; } /* restored after a page change: no entrance */

.chat__head {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--c-coal);
  border-bottom: 1px solid var(--c-line);
}
.chat__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--c-ink);
  border: 1px solid var(--c-line-strong);
  color: var(--c-lime);
}
.chat__avatar .icon { width: 1.5rem; height: 1.5rem; stroke-width: 2; }
.chat__id { flex: 1; min-width: 0; display: grid; gap: var(--sp-1); }
.chat__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-white);
}
.chat__tag {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lime);
}
.chat__tag::before {
  content: "";
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 0.5rem var(--c-lime);
}
.chat__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: calc(-1 * var(--sp-2));
  color: var(--c-mute);
  border-radius: var(--radius);
  transition: color var(--t-fast) var(--ease);
}
.chat__close:hover { color: var(--c-white); }

/* the conversation fades out under the header and above the input, so a cut bubble reads as "there is more" */
.chat__head::after,
.chat__form::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.chat__head::after { top: calc(100% + 1px); height: var(--sp-3); background: linear-gradient(to bottom, var(--c-graphite), var(--c-ink-a0)); }
.chat__form::before {
  left: calc(-1 * var(--sp-4) - 1px);
  right: calc(-1 * var(--sp-4) - 1px);
  bottom: calc(100% + 1px);
  height: var(--sp-4);
  background: linear-gradient(to top, var(--c-graphite), var(--c-ink-a0));
}
/* not over the focus ring of the log */
.chat__panel:has(.chat__log:focus-visible) .chat__head::after,
.chat__panel:has(.chat__log:focus-visible) .chat__form::before { display: none; }

/* 3 — CONVERSATION ======================================================= */
.chat__log {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-steel) transparent;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.chat__log:focus-visible { outline-offset: -2px; }

/* one turn = a bubble and what belongs to it (buttons, the request card, a status line) */
.turn { flex: none; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; max-width: 88%; }
.turn--bot { align-self: flex-start; align-items: flex-start; }
.turn--user { align-self: flex-end; align-items: flex-end; }
.turn--wide { align-self: stretch; max-width: none; }
.turn--wide > .msg { max-width: 88%; }

.msg { max-width: 100%; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-l); overflow-wrap: anywhere; }
.msg--bot {
  background: var(--c-coal);
  border: 1px solid var(--c-line);
  border-left: 2px solid var(--c-lime);
  color: var(--c-text);
}
.msg--user {
  background: var(--c-lime);
  color: var(--c-on-accent);
  font-weight: 500;
  white-space: pre-wrap;
}
/* the two AGB contacts inside a reply */
.msg__link {
  color: var(--c-white);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--c-lime);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--t-fast) var(--ease);
}
.msg__link:hover { color: var(--c-lime); }

/* a question that got no answer: it stays in the log and goes back into the input */
.turn--failed .msg--user { background: var(--c-lime-a16); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-lime-a45); }
.turn__status {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mute);
}

/* typing indicator */
.msg--typing { display: flex; align-items: center; min-height: 2.875rem; }
.dots { display: inline-flex; align-items: center; gap: 0.3125rem; }
.dots i {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--c-lime);
  opacity: 0.3;
  animation: chat-dot 1.2s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 160ms; }
.dots i:nth-child(3) { animation-delay: 320ms; }

/* buttons under a reply: phone and email (handoff), pages and brochures (links) */
.turn__actions { align-self: stretch; display: grid; gap: var(--sp-2); max-width: 100%; }
.chat-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 2.75rem;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.chat-btn .icon { width: 1.125rem; height: 1.125rem; color: var(--c-lime); }
.chat-btn .icon--end { margin-left: auto; transition: transform var(--t-base) var(--ease); }
.chat-btn:hover { border-color: var(--c-lime); color: var(--c-lime); }
.chat-btn:hover .icon--end { transform: translateX(0.1875rem); }
.chat-btn--contact { border-color: var(--c-lime-a45); background: var(--c-lime-a08); }
.chat-btn--contact:hover { background: var(--c-lime-a16); }

/* request card (action "request_ready"): what the visitor gave, labelled as demo, not sent */
.req {
  align-self: stretch;
  background: var(--c-ink);
  border: 1px solid var(--c-line-strong);
  border-top: 2px solid var(--c-lime);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.req__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
}
.req__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
}
.req__tag {
  flex: none;
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--c-lime-a45);
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lime);
}
.req__list { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.req__row { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: var(--sp-3); align-items: baseline; }
.req__row--wide { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-1); margin-top: var(--sp-1); padding-top: var(--sp-3); border-top: 1px solid var(--c-line); }
.req__row dt {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-dim);
}
.req__row dd { color: var(--c-text); overflow-wrap: anywhere; }
.req__note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-lime-a08);
  border-block: 1px dashed var(--c-lime-a45);
  font-size: var(--fs-label);
  line-height: 1.4;
  color: var(--c-text);
}
.req__note .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.0625rem; color: var(--c-lime); }

/* quick replies: the last thing in the log, under the latest reply */
.chat__chips { flex: none; display: flex; flex-wrap: wrap; gap: 0.625rem var(--sp-2); padding-top: var(--sp-1); }
.chip {
  position: relative;
  min-height: 2.25rem;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-label);
  line-height: 1.1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  color: var(--c-text);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip::after { content: ""; position: absolute; inset: -0.3125rem 0; } /* 44 px tall tap target, 36 px pill */
.chip:hover { border-color: var(--c-lime); color: var(--c-lime); }
.chip:focus-visible { border-radius: var(--radius-pill); }

/* 4 — INPUT AND FOOTER =================================================== */
.chat__form {
  position: relative;
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  margin: 0 var(--sp-4);
  padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-4);
  background: var(--c-ink);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-l);
}
.chat__form:focus-within { border-color: var(--c-lime); }
.chat__form textarea {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  max-height: 6.5rem;
  margin: 0;
  padding: 0.65rem 0;
  background: none;
  border: 0;
  resize: none;
  overflow-y: hidden;
  scrollbar-width: thin;
  font-size: 1rem; /* 16 px: no zoom on focus on iOS */
  line-height: 1.4;
  color: var(--c-white);
}
.chat__form textarea::placeholder { color: var(--c-dim); opacity: 1; }
.chat__form textarea:focus-visible { outline: none; }
.chat__send {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--c-lime);
  color: var(--c-on-accent);
  transition: background-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.chat__send:hover { background: var(--c-lime-hi); }
.chat__send:focus-visible { outline-color: var(--c-white); }
.chat__send[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.chat__send[aria-disabled="true"]:hover { background: var(--c-lime); }

.chat__note {
  flex: none;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-micro);
  line-height: 1.45;
  color: var(--c-dim);
}
.chat__reset {
  position: relative;
  color: var(--c-text);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--c-lime);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--t-fast) var(--ease);
}
.chat__reset::after { content: ""; position: absolute; inset: -0.875rem -0.5rem; } /* 44 px tall tap target */
.chat__reset:hover { color: var(--c-lime); }

/* narrow phones: a slightly smaller launcher, clear of a call to action on its left */
@media (max-width: 24.99em) {
  .chat__launcher { padding-right: var(--sp-3); font-size: 0.9375rem; letter-spacing: 0.06em; }
  .chat__launcher .icon { width: 1.25rem; height: 1.25rem; }
}

/* 5 — DESKTOP: a larger launcher (the footer keeps 14rem free for it from 1100 px) ====================== */
@media (min-width: 68.75em) {
  .chat { right: var(--sp-4); bottom: var(--sp-4); }
  .chat__launcher { gap: var(--sp-3); min-height: 3.5rem; padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-4); font-size: 1.125rem; }
  .chat__launcher .icon { width: 1.5rem; height: 1.5rem; }
  .chat__panel { width: min(24.5rem, calc(100vw - 2 * var(--sp-4))); height: min(42.5rem, calc(100vh - 7.5rem)); height: min(42.5rem, calc(100dvh - 7.5rem)); }
}

/* Phones: once the page is scrolled (chat.js sets .chat--compact) the launcher is the icon alone, so it covers
   less of the content. The label stays in the page for screen readers. */
@media (max-width: 37.49em) {
  .chat--compact .chat__launcher { width: 3rem; padding: 0; justify-content: center; }
  .chat--compact .chat__launcher > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* 6 — SHEET: phones, and windows too low for a floating panel =============
   The panel covers the screen except a strip at the top, the page behind is dimmed and does not scroll
   (html.chat-lock, set by chat.js). chat.js writes the height and the top of the visible area (--chat-vh,
   --chat-vt, from visualViewport), so the input stays above the on-screen keyboard. */
@media (max-width: 37.49em), (max-height: 30em) {
  .chat.is-open .chat__launcher { display: none; }
  .chat__scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--c-ink-a80);
    animation: chat-fade var(--t-base) var(--ease) both;
  }
  .chat__panel {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--chat-vt, 0px) + var(--sp-3));
    width: auto;
    height: calc(var(--chat-vh, 100vh) - var(--sp-3));
    border-width: 2px 0 0;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    animation-name: chat-up;
  }
  .chat__log { font-size: 1rem; }
  .chat__chips { gap: var(--sp-3) var(--sp-2); }
  /* little room left (keyboard open on a small phone, landscape): the conversation comes first */
  .chat.is-tight .chat__head { padding-block: var(--sp-2); }
  .chat.is-tight .chat__avatar { display: none; }
  .chat.is-tight .chat__note { display: none; }
  .chat.is-tight .chat__form { margin-bottom: var(--sp-3); }

  html.chat-lock, html.chat-lock body { overflow: hidden; }
  html.chat-lock body { position: fixed; left: 0; right: 0; top: var(--chat-lock-y, 0px); }
}

/* 7 — MOTION ============================================================= */
@keyframes chat-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes chat-up { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
@keyframes chat-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chat-dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-0.1875rem); } }

@media (prefers-reduced-motion: reduce) {
  .chat__panel, .chat__scrim { animation: none; }
  .chat__launcher:hover { transform: none; }
  .chat-btn:hover .icon--end { transform: none; }
  /* the dots stand still, lit from left to right */
  .dots i { animation: none; opacity: 0.95; }
  .dots i:nth-child(2) { opacity: 0.6; }
  .dots i:nth-child(3) { opacity: 0.3; }
}

