/* ============================================================
   SIBORG srl — Design System
   Register: Brand (corporate / consulting)
   Strategy: Committed — deep olive brand color, ochre accent,
   pure-white surface. Type: Archivo + Hanken Grotesk.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand color — the logo's blue wordmark carries the identity */
  --primary:      oklch(0.476 0.116 248);
  --primary-deep: oklch(0.38 0.10 250);
  --primary-ink:  oklch(0.30 0.078 252);
  --primary-soft: oklch(0.955 0.022 248);

  /* Orange accent — the logo's swoosh (secondary brand color) */
  --accent:       oklch(0.762 0.165 65);
  --accent-deep:  oklch(0.66 0.16 55);

  /* Green — occasional touch (sustainability / wellness) */
  --green:        oklch(0.62 0.14 153);
  --green-deep:   oklch(0.52 0.12 153);
  --green-soft:   oklch(0.955 0.03 153);

  /* Surfaces — white-led, faint blue tint */
  --bg:      oklch(1 0 0);
  --surface: oklch(0.977 0.006 248);
  --surface-2: oklch(0.956 0.01 248);

  /* Ink — blue-tinted neutrals */
  --ink:    oklch(0.24 0.022 252);
  --ink-2:  oklch(0.42 0.028 252);   /* body — ≥7:1 on white */
  --ink-3:  oklch(0.54 0.028 252);   /* meta — large/labels only */

  /* Lines */
  --line:   oklch(0.905 0.01 248);
  --line-2: oklch(0.845 0.014 248);

  /* On dark (blue footer / hero) */
  --on-dark:      oklch(0.972 0.01 248);
  --on-dark-2:    oklch(0.83 0.022 248);
  --on-dark-line: oklch(1 0 0 / 0.14);

  /* Type */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* Fluid scale (1.25 ratio) */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.24vw, 1.13rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.42vw, 1.5rem);
  --step-2:  clamp(1.56rem, 1.4rem + 0.78vw, 2rem);
  --step-3:  clamp(1.95rem, 1.68rem + 1.35vw, 2.75rem);
  --step-4:  clamp(2.44rem, 2.0rem + 2.2vw, 3.75rem);
  --step-5:  clamp(3rem, 2.3rem + 3.5vw, 5rem);

  /* Space */
  --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: 4.5rem; --sp-9: 7rem;

  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);        /* out-expo-ish */
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* Z scale */
  --z-header: 100;
  --z-menu-backdrop: 200;
  --z-menu: 210;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent-deep); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; max-width: 68ch; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.35rem, 5vw, 2.5rem);
}
.main { flex: 1 0 auto; }
.skip-link {
  position: absolute; left: 1rem; top: -100%;
  background: var(--ink); color: var(--on-dark);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  z-index: 999; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--primary);
  --_fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.72em 1.35em;
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--step--1); line-height: 1;
  letter-spacing: 0.01em;
  color: var(--_fg); background: var(--_bg);
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -12px oklch(0.38 0.10 250 / 0.55); }
.btn:active { transform: translateY(0); }
.btn--accent { --_bg: var(--accent); --_fg: var(--primary-ink); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost {
  --_bg: transparent; --_fg: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--primary); box-shadow: none; }
.btn .btn__ico { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease); }
.btn:hover .btn__ico { transform: translateX(3px); }

/* ============================================================
   HEADER
   ============================================================ */
/* ---------- Utility top bar (scrolls away; nav row stays sticky) ---------- */
.topbar {
  background: var(--primary-ink);
  color: var(--on-dark-2);
  font-size: 0.78rem;
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 42px;
}
.topbar__left { display: inline-flex; align-items: center; gap: 0.55em; letter-spacing: 0.01em; }
.topbar__left svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.topbar__right { display: none; align-items: center; gap: var(--sp-4); }
.topbar__item { display: inline-flex; align-items: center; gap: 0.45em; color: var(--on-dark-2); font-weight: 500; }
.topbar__item svg { width: 15px; height: 15px; color: var(--accent); }
.topbar__item:hover { color: var(--on-dark); }
.topbar__sep { width: 1px; height: 15px; background: oklch(1 0 0 / 0.16); }
.topbar__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.18); color: var(--on-dark-2);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.topbar__social svg { width: 15px; height: 15px; }
.topbar__social:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-ink); }
@media (min-width: 760px) { .topbar__right { display: inline-flex; } }
@media (max-width: 759px) { .topbar { display: none; } }

/* ---------- Sticky nav row ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: oklch(1 0 0 / 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.site-header[data-scrolled="true"] {
  background: oklch(1 0 0 / 0.93);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px oklch(0.28 0.07 252 / 0.55);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: 76px;
}

/* Brand / logo — condense via transform (no layout animation) */
.brand { display: inline-flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand__logo { transform-origin: left center; transition: transform 0.35s var(--ease); }
.site-header[data-scrolled="true"] .brand__logo { transform: scale(0.88); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.32rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand__tag {
  font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--primary); font-weight: 600; margin-top: 3px;
}

/* Desktop nav — pill hover/active */
.nav { display: none; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(0.05rem, 0.4vw, 0.25rem); list-style: none; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.5rem 0.62rem; border-radius: 999px; white-space: nowrap;
  font-size: 0.87rem; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover { color: var(--primary); background: var(--primary-soft); }
.nav__link[aria-current="page"] { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.nav__link .ext { width: 0.72em; height: 0.72em; opacity: 0.6; }

/* Dropdown submenus (desktop) */
.nav__item { position: relative; }
.nav__caret { width: 0.8em; height: 0.8em; margin-left: 0.05em; opacity: 0.65; transition: transform 0.3s var(--ease); }
.has-sub:hover .nav__caret,
.has-sub:focus-within .nav__caret { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 250px; max-width: 330px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.4rem;
  box-shadow: 0 22px 48px -24px oklch(0.28 0.07 252 / 0.5);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 10;
}
.nav__panel--right { left: auto; right: 0; }
.nav__panel::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 14px; }
.has-sub:hover .nav__panel,
.has-sub:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav__panel a {
  display: block; padding: 0.6rem 0.7rem; border-radius: var(--radius-sm);
  font-size: 0.86rem; font-weight: 500; color: var(--ink-2); line-height: 1.3;
  transition: background-color 0.2s, color 0.2s;
}
.nav__panel a:hover { background: var(--primary-soft); color: var(--primary); }

.header__divider { display: none; width: 1px; height: 28px; background: var(--line); flex-shrink: 0; }
.header__cta { display: none; flex-shrink: 0; }

/* Quick call / email buttons — only where the full nav is collapsed (mobile/tablet) */
.header__quick { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header__quick-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-2); color: var(--primary); background: var(--bg);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.header__quick-btn svg { width: 19px; height: 19px; }
.header__quick-btn:hover { background: var(--primary-soft); border-color: var(--primary); transform: translateY(-1px); }
.header__quick-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--primary-ink); }
.header__quick-btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--primary-ink); }
@media (max-width: 380px) { .header__quick-btn { width: 40px; height: 40px; } .header__quick { gap: 0.4rem; } }
@media (min-width: 1160px) { .header__quick { display: none; } }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex; flex-direction: column;
  justify-content: center; gap: 5px; width: 46px; height: 46px;
  align-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.nav-toggle__bar { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.2s; }

/* ---------- Mobile menu overlay ---------- */
.menu-backdrop {
  position: fixed; inset: 0; z-index: var(--z-menu-backdrop);
  background: oklch(0.28 0.07 252 / 0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-menu);
  width: min(86vw, 400px);
  background: var(--bg);
  padding: 1.25rem clamp(1.25rem, 5vw, 2rem) 2rem;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.45s var(--ease);
  overflow-y: auto;
}
body[data-menu-open="true"] .menu-backdrop { opacity: 1; visibility: visible; }
body[data-menu-open="true"] .mobile-menu { transform: translateX(0); }
body[data-menu-open="true"] { overflow: hidden; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.mobile-menu__close { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__item > a, .mnav__row > a {
  display: flex; align-items: center; gap: 0.4em;
  padding: 0.9rem 0.25rem; font-family: var(--font-display);
  font-size: var(--step-1); font-weight: 600; color: var(--ink);
}
.mnav__item > a[aria-current="page"], .mnav__row > a[aria-current="page"] { color: var(--primary); }
.mnav__row { display: flex; align-items: center; justify-content: space-between; }
.mnav__row > a { flex: 1; }
.mnav__toggle {
  width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--ink-2); border-radius: var(--radius-sm); flex-shrink: 0;
}
.mnav__toggle .nav__caret { width: 20px; height: 20px; opacity: 1; transition: transform 0.3s var(--ease); }
.mnav__item.is-open .mnav__toggle .nav__caret { transform: rotate(180deg); }
.mnav__sub { list-style: none; margin: 0 0 0.6rem; padding: 0 0 0.2rem 0.9rem; display: flex; flex-direction: column; gap: 0.1rem; border-left: 1px solid var(--line); }
/* [hidden] must win over display:flex, otherwise the accordion is always open */
.mnav__sub[hidden] { display: none; }
.mnav__sub a { display: block; padding: 0.5rem 0.25rem; font-size: var(--step-0); font-weight: 500; color: var(--ink-2); }
.mnav__sub a:hover { color: var(--primary); }
.mnav__item .ext { width: 0.8em; height: 0.8em; opacity: 0.5; }
.mobile-menu__foot { margin-top: auto; padding-top: var(--sp-5); }
.mobile-menu__foot .btn { width: 100%; justify-content: center; }
.mobile-menu__contact { margin-top: var(--sp-4); font-size: var(--step--1); color: var(--ink-2); }
.mobile-menu__contact a { color: var(--primary); font-weight: 600; }

/* ============================================================
   PAGE HERO (skeleton pages)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(120% 90% at 88% -10%, var(--primary-soft), transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--step--1); font-weight: 600; color: var(--primary);
  letter-spacing: 0.04em;
}
.page-hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.page-hero h1 { font-size: var(--step-5); margin: var(--sp-4) 0 var(--sp-4); max-width: 16ch; }
.page-hero__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 56ch; }
.page-hero__crumbs { font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--sp-5); }
.page-hero__crumbs a:hover { color: var(--primary); }

.placeholder-note {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.placeholder-note__box {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 3rem); background: var(--surface);
  color: var(--ink-2);
}
.placeholder-note__box strong { color: var(--ink); font-family: var(--font-display); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  flex-shrink: 0;
  background: var(--primary-deep);
  color: var(--on-dark-2);
  margin-top: auto;
  overflow: hidden;
}
.site-footer::before { /* brand accent rule — logo's three colours */
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--green) 100%);
}
.site-footer::after { /* soft brand glow — top-centred, fixed size, symmetric on both sides */
  content: ""; position: absolute; top: -150px; left: 50%;
  width: min(680px, 92%); height: 360px; transform: translateX(-50%);
  pointer-events: none; opacity: 0.55;
  background: radial-gradient(closest-side, oklch(0.5 0.12 250 / 0.45), transparent);
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer a { color: var(--on-dark-2); transition: color 0.2s; }
.site-footer a:hover { color: var(--on-dark); }

.footer__top {
  display: grid; gap: var(--sp-7) var(--sp-6);
  grid-template-columns: 1fr;
  padding: clamp(3.25rem, 7vw, 5rem) 0 var(--sp-7);
}
.footer__brand { max-width: 36ch; }
.footer__brand .brand--text { margin-bottom: var(--sp-4); }
.footer__brand .brand__name { color: var(--on-dark); font-size: 1.5rem; }
.footer__brand .brand__tag { color: var(--accent); }
.footer__logo {
  display: inline-flex; background: #fff;
  padding: 0.7rem 1rem; border-radius: var(--radius);
  margin-bottom: var(--sp-5);
  box-shadow: 0 14px 32px -20px oklch(0 0 0 / 0.55);
}
.footer__logo img { height: 40px; width: auto; }
.footer__blurb { font-size: var(--step--1); line-height: 1.75; color: var(--on-dark-2); }

.footer__social { display: flex; gap: 0.6rem; margin-top: var(--sp-5); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--on-dark-line); color: var(--on-dark-2);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-ink); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

.footer__badge {
  display: inline-flex; align-items: center; gap: 0.5em; margin-top: var(--sp-5);
  padding: 0.5em 0.9em; border-radius: 999px;
  background: oklch(0.62 0.14 153 / 0.16); border: 1px solid oklch(0.62 0.14 153 / 0.42);
  color: oklch(0.85 0.1 153); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.01em;
}
.footer__badge:hover { color: oklch(0.9 0.09 153); }
.footer__badge svg { width: 15px; height: 15px; }

.footer__col h3 {
  color: var(--on-dark); font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; margin-bottom: var(--sp-5);
}
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; font-size: var(--step--1); }
.footer__col ul a { display: inline-flex; align-items: center; gap: 0.4em; }
.footer__col ul a .ext { width: 0.78em; height: 0.78em; opacity: 0.55; }

.footer__contact { display: flex; flex-direction: column; gap: var(--sp-4); font-size: var(--step--1); font-style: normal; }
.footer__contact-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer__contact-row > svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer__contact .label { display: block; color: oklch(0.72 0.03 248); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px; }
.footer__legal-ids { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: var(--sp-4); font-size: 0.72rem; color: oklch(0.72 0.025 248); }

.footer__bottom {
  border-top: 1px solid var(--on-dark-line);
  padding: var(--sp-5) 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  font-size: var(--step--1);
}
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); list-style: none; padding: 0; }
.footer__copy { color: var(--on-dark-2); }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; align-items: start; }
  .footer__brand { grid-column: auto; }
}
/* Phone footer: tidy two-up link lists + balanced spacing (uniform side gutters) */
@media (max-width: 599px) {
  .footer__top { gap: var(--sp-6); padding-block: clamp(2.75rem, 9vw, 3.5rem) var(--sp-6); }
  .footer__col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.25rem; }
  .footer__brand { max-width: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}
@media (min-width: 1160px) {
  .nav, .header__cta { display: flex; }
  .header__divider { display: block; }
  .nav-toggle { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Entrance-safe defaults: content is visible by default; JS only enhances */
.js-anim-ready [data-animate] { will-change: transform, opacity; }

/* ============================================================
   BRAND LOGO (real logo.png in header / mobile menu)
   ============================================================ */
.brand__logo { height: clamp(30px, 3.6vw, 40px); width: auto; }
.brand--text { gap: 0.55rem; }
.brand--text .brand__star { width: 30px; height: 30px; flex-shrink: 0; }

/* ============================================================
   HOME — additional button variant
   ============================================================ */
.btn--ghost-light {
  --_bg: transparent; --_fg: var(--on-dark);
  border: 1.5px solid var(--on-dark-line);
}
.btn--ghost-light:hover {
  background: oklch(1 0 0 / 0.08);
  border-color: var(--on-dark-2);
  box-shadow: none; transform: translateY(-2px);
}

/* ============================================================
   HOME — HERO (drenched olive, single-purpose viewport)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--primary-deep);
  color: var(--on-dark-2);
  isolation: isolate;
}
.hero::before { /* soft brand light */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 55% at 82% 8%, oklch(0.55 0.13 250 / 0.55), transparent 60%),
    radial-gradient(60% 60% at 6% 100%, oklch(0.72 0.16 65 / 0.16), transparent 55%);
}
.hero::after { /* faint grid texture — energy/systems motif */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 85%);
          mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 85%);
}
.hero__inner {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.03em;
  color: var(--accent);
}
.hero__star {
  width: 14px; height: 14px; flex-shrink: 0; background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.hero h1 {
  color: var(--on-dark); font-weight: 900;
  font-size: clamp(2.9rem, 2.1rem + 3.9vw, 5.25rem); line-height: 0.98;
  letter-spacing: -0.035em;
  margin: var(--sp-5) 0 var(--sp-5); max-width: 16ch;
}
.hero h1 .accent { color: var(--accent); }
.hero__lead {
  font-size: var(--step-1); line-height: 1.6;
  color: var(--on-dark-2); max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Signature comet-swoosh (from the logo mark) */
.hero__visual { position: relative; display: grid; place-items: center; }
.comet { width: min(100%, 520px); height: auto; overflow: visible; }
.comet__star path { fill: var(--accent); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
}

/* ============================================================
   HOME — SECTION scaffolding
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--surface { background: var(--surface); }
.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section__kicker {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: var(--step--1); font-weight: 600; color: var(--primary);
  letter-spacing: 0.02em; margin-bottom: var(--sp-3);
}
.section__kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.section__title { font-size: var(--step-3); }
.section__lead { font-size: var(--step-1); color: var(--ink-2); margin-top: var(--sp-4); }

/* ---------- Stats band ---------- */
.stats {
  background: var(--primary-soft);
  border-block: 1px solid var(--line);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--step-4); color: var(--primary-ink); line-height: 0.95;
  letter-spacing: -0.03em;
}
.stat__num .u { color: var(--accent-deep); }
.stat--green .stat__num .u { color: var(--green-deep); }
.stat--green .stat__label a { color: var(--green-deep); }
.stat__label { color: var(--ink-2); margin-top: var(--sp-2); font-size: var(--step--1); max-width: 26ch; }
.stat__label a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- I nostri mondi (bento, varied — not identical grid) ---------- */
.worlds { display: grid; gap: var(--sp-4); }
.world {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.world:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -30px oklch(0.28 0.07 252 / 0.45);
  border-color: var(--line-2);
}
.world__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.world__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.world:hover .world__media img { transform: scale(1.06); }
.world__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.4rem, 3vw, 2rem); }
.world__ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: var(--sp-4);
  background: var(--primary-soft); color: var(--primary);
}
.world__ico svg { width: 26px; height: 26px; }
.world h3 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
.world p { color: var(--ink-2); font-size: var(--step-0); flex: 1; }
.world__link {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--sp-5);
  font-weight: 600; color: var(--primary); font-size: var(--step--1);
}
.world__link svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.world:hover .world__link svg { transform: translateX(4px); }

/* Feature (large) tile */
.world--feature .world__body {
  background:
    radial-gradient(120% 130% at 100% 0%, oklch(0.55 0.13 250 / 0.16), transparent 55%),
    var(--primary-soft);
}
.world--feature .world__ico { background: var(--primary); color: var(--on-dark); }
.world--feature h3 { font-size: var(--step-3); }
.world--feature .world__tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--sp-5);
}
.world--feature .tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.32em 0.7em; border-radius: 999px;
  background: oklch(1 0 0 / 0.7); color: var(--primary-ink);
  border: 1px solid var(--line);
}
/* Ochre-tinted energy tile */
.world--energy .world__body { background: oklch(0.965 0.038 70); }
.world--energy .world__ico { background: var(--accent); color: var(--primary-ink); }
/* Green-tinted wellness tile (a touch of green) */
.world--wellness .world__body { background: var(--green-soft); }
.world--wellness .world__ico { background: var(--green); color: oklch(0.99 0 0); }
.world--wellness .world__link { color: var(--green-deep); }

@media (min-width: 720px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .world--feature { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .world--feature .world__media { flex: 0 0 44%; aspect-ratio: auto; min-height: 300px; }
  .world--feature .world__body { flex: 1; }
}
@media (min-width: 1040px) {
  .worlds { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .world--feature { grid-column: span 3; }
}

/* ---------- Certifications marquee ---------- */
.certs { background: var(--primary-ink); color: var(--on-dark-2); overflow: hidden; }
.certs__head {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) var(--sp-5);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
}
.certs__head h2 { color: var(--on-dark); font-size: var(--step-2); }
.certs__head p { color: var(--on-dark-2); max-width: 46ch; font-size: var(--step--1); }
.marquee { position: relative; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: var(--sp-3); width: max-content; will-change: transform; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.7em 1.2em; border-radius: 999px;
  border: 1px solid var(--on-dark-line); background: oklch(1 0 0 / 0.03);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  color: var(--on-dark); white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- Metodo (ordered process — numbers are meaningful here) ---------- */
.method__grid { display: grid; gap: var(--sp-5); counter-reset: step; }
.step {
  position: relative; padding-top: var(--sp-5);
  border-top: 2px solid var(--line);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-1);
  color: var(--accent-deep); display: block; margin-bottom: var(--sp-3);
}
.step h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.step p { color: var(--ink-2); font-size: var(--step-0); }
.step.is-active { border-top-color: var(--primary); }
@media (min-width: 720px) { .method__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .method__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Final CTA (drenched bookend) ---------- */
.cta-final { position: relative; overflow: hidden; background: var(--primary); color: var(--on-dark); isolation: isolate; }
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 100% at 88% 0%, oklch(0.62 0.14 153 / 0.4), transparent 62%),
    radial-gradient(50% 90% at 10% 100%, oklch(0.72 0.16 65 / 0.28), transparent 60%);
}
.cta-final__inner {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  display: grid; gap: var(--sp-6); align-items: center;
}
.cta-final h2 { color: var(--on-dark); font-size: var(--step-4); max-width: 18ch; }
.cta-final p { color: var(--on-dark-2); font-size: var(--step-1); margin-top: var(--sp-4); max-width: 46ch; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cta-final__phone {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
  color: var(--on-dark);
}
.cta-final__phone:hover { color: var(--accent); }
@media (min-width: 860px) {
  .cta-final__inner { grid-template-columns: 1.3fr 1fr; gap: var(--sp-8); }
  .cta-final__aside { justify-self: end; text-align: right; }
}

/* Reveal defaults: visible by default; JS sets hidden only when motion is allowed */
.js-anim-ready [data-reveal] { will-change: transform, opacity; }

/* ============================================================
   INNER PAGES — shared content sections
   (chi-siamo, certificazioni, mondo-energia, …)
   ============================================================ */

/* Two-column intro: heading/lead beside supporting prose or aside */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.split__lead { font-size: var(--step-1); color: var(--ink); }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: var(--sp-4); }
.prose strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* Aside / highlight panel */
.aside-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: clamp(1.5rem, 4vw, 2.25rem);
}
.aside-card__kicker {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--step--1); font-weight: 600; color: var(--primary);
  letter-spacing: 0.03em; margin-bottom: var(--sp-4);
}
.aside-card__kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.aside-card h3 { font-size: var(--step-1); margin-bottom: var(--sp-4); }
.aside-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.aside-list li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--step-0); color: var(--ink-2); }
.aside-list svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.aside-list strong { color: var(--ink); font-weight: 600; }

/* Generic icon-card grid (services, values) */
.card-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.info-card {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
a.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -30px oklch(0.28 0.07 252 / 0.45);
  border-color: var(--line-2);
}
.info-card__ico {
  width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: var(--sp-4);
  background: var(--primary-soft); color: var(--primary);
}
.info-card__ico svg { width: 25px; height: 25px; }
.info-card h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.info-card p { color: var(--ink-2); font-size: var(--step-0); flex: 1; }
.info-card__link {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--sp-4);
  font-weight: 600; color: var(--primary); font-size: var(--step--1);
}
.info-card__link svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
a.info-card:hover .info-card__link svg { transform: translateX(4px); }
.info-card--accent .info-card__ico { background: var(--accent); color: var(--primary-ink); }
.info-card--green .info-card__ico { background: var(--green-soft); color: var(--green-deep); }
.info-card--green .info-card__link { color: var(--green-deep); }

/* Certification cards (code + family + description) */
.cert-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 560px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert-card {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.3rem, 3vw, 1.75rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -28px oklch(0.28 0.07 252 / 0.45);
  border-color: var(--line-2);
}
.cert-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.cert-card__code { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: var(--primary-ink); letter-spacing: -0.01em; }
.cert-card__fam {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-deep); padding: 0.32em 0.72em; border-radius: 999px;
  background: oklch(0.965 0.038 70); white-space: nowrap; flex-shrink: 0;
}
.cert-card p { font-size: var(--step--1); color: var(--ink-2); margin: 0; }

/* Timeline (company history) */
.timeline { position: relative; display: grid; gap: var(--sp-7); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-left: var(--sp-6); }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: var(--primary); letter-spacing: -0.01em; }
.tl-item h3 { font-size: var(--step-1); margin: var(--sp-1) 0 var(--sp-2); }
.tl-item p { color: var(--ink-2); font-size: var(--step-0); }
@media (min-width: 760px) { .tl-item { padding-left: var(--sp-7); } }

/* Pull quote / highlight */
.highlight {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-2); color: var(--ink); line-height: 1.25; max-width: 34ch;
}
.highlight::before {
  content: ""; display: block; width: 40px; height: 3px;
  background: var(--accent); border-radius: 2px; margin-bottom: var(--sp-4);
}

/* ============================================================
   RESPONSIVE FINE-TUNING (small screens — all pages incl. home)
   ============================================================ */
@media (max-width: 640px) {
  /* Home hero — compact, evenly distributed on phones (no dead space at the bottom) */
  .hero__inner { padding-block: clamp(1.75rem, 7vw, 2.5rem) clamp(1.25rem, 5vw, 1.75rem); gap: clamp(0.85rem, 4vw, 1.4rem); }
  .hero h1 { font-size: clamp(2.4rem, 1.7rem + 3.4vw, 3.4rem); line-height: 1.03; margin: var(--sp-4) 0 var(--sp-4); }
  .hero__lead { font-size: var(--step-0); }
  .hero__actions { margin-top: var(--sp-5); gap: var(--sp-3); }
  .hero__visual { justify-items: center; margin-top: var(--sp-1); }
  .comet { width: min(62%, 230px); margin-bottom: -7%; }   /* trim the SVG's empty lower band */
  /* Inner page-hero — trim top/bottom padding */
  .page-hero { padding: clamp(2.25rem, 9vw, 3.5rem) 0 clamp(2rem, 7vw, 3rem); }
  .page-hero__crumbs { margin-bottom: var(--sp-4); }
  .page-hero h1 { margin: var(--sp-3) 0 var(--sp-4); }
  .cta-final__aside { text-align: left; }
}
/* Stats — single, well-spaced column on phones (dividers give rhythm) */
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: 1fr; gap: 0; padding-block: clamp(1.75rem, 7vw, 2.75rem); }
  .stat { padding: var(--sp-5) 0; border-top: 1px solid var(--line); }
  .stat:first-child { padding-top: 0; border-top: 0; }
  .stat:last-child { padding-bottom: 0; }
  .stat__label { max-width: none; }
}
@media (max-width: 520px) {
  .hero__actions .btn,
  .cta-final__actions .btn { width: 100%; }   /* thumb-friendly full-width CTAs */
  .cert-card__top { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .certs__head { flex-direction: column; }
  .footer__top { gap: var(--sp-6); padding-top: clamp(2.5rem, 8vw, 3.25rem); }
  .footer__bottom { justify-content: flex-start; }
}
@media (max-width: 400px) {
  .page-hero h1 { font-size: var(--step-4); }
}

/* ============================================================
   CONTACT FORM + INFO
   ============================================================ */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.field .req { color: var(--accent-deep); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--step-0); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.form__check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-2); }
.form__check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.form__check a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form__submit { justify-self: start; margin-top: var(--sp-2); }
@media (max-width: 520px) { .form__submit { width: 100%; } }
.form__note { font-size: var(--step--1); color: var(--ink-3); }

.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-row { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.contact-row__ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.contact-row__ico svg { width: 22px; height: 22px; }
.contact-row .label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 3px; }
.contact-row a { color: var(--primary); font-weight: 600; }
.contact-row .val { color: var(--ink-2); }
.contact-map {
  margin-top: var(--sp-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.2); }

/* ============================================================
   LEGAL / LONG-FORM DOCUMENT (privacy, cookie)
   ============================================================ */
.legal { max-width: 74ch; }
.legal__updated { font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--sp-6); }
.legal h2 { font-size: var(--step-2); margin: var(--sp-7) 0 var(--sp-3); }
.legal > h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: var(--step-1); margin: var(--sp-5) 0 var(--sp-2); }
.legal p, .legal li { color: var(--ink-2); font-size: var(--step-0); }
.legal p { margin-bottom: var(--sp-3); }
.legal ul { margin: 0 0 var(--sp-4) 1.15rem; display: flex; flex-direction: column; gap: var(--sp-2); }
.legal a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal__note {
  margin-top: var(--sp-7); padding: var(--sp-4) var(--sp-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--step--1); color: var(--ink-3);
}
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-4); font-size: var(--step--1); }
.legal th, .legal td { text-align: left; padding: 0.7rem 0.8rem; border: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal th { background: var(--surface); color: var(--ink); font-weight: 700; }
.legal .table-wrap { overflow-x: auto; }

/* ============================================================
   PAGE IMAGERY (real photos from the current site)
   ============================================================ */
.figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  box-shadow: 0 26px 50px -36px oklch(0.28 0.07 252 / 0.5);
}
.figure img { display: block; width: 100%; height: auto; object-fit: cover; }
.figure--wide img { aspect-ratio: 16 / 9; }        /* uniform cinematic crop for cover photos */
.figure figcaption {
  padding: 0.65rem 1rem; font-size: var(--step--1); color: var(--ink-3);
  background: var(--bg); border-top: 1px solid var(--line);
}
/* Cover photo sitting at the top of the first content section */
.section-figure { margin-bottom: clamp(2rem, 5vw, 3rem); }

/* Photo gallery — real project / event photos in a uniform mosaic */
.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
/* Inline figure inside a timeline item */
.tl-figure { margin-top: var(--sp-4); max-width: 520px; }
/* Client / partner logo wall (a single supplied graphic on white) */
.logos {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.5rem);
}
.logos img { display: block; width: 100%; height: auto; }

/* ============================================================
   ALTERNATIVE LAYOUTS (used on selected pages to break the
   cover → split → card-grid → cta monotony)
   ============================================================ */

/* Image that fills its split column instead of a top cover band */
.split--media { align-items: stretch; }
.figure--fill { height: 100%; }
.figure--fill img { height: 100%; min-height: 260px; aspect-ratio: auto; object-fit: cover; }

/* Centered section head + supporting feature strip */
.section__head--center { margin-inline: auto; text-align: center; max-width: 62ch; }
.section__head--center .section__kicker { justify-content: center; }
.head-cta { display: flex; justify-content: center; margin-top: var(--sp-6); }
.stat-strip {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-5) clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3.25rem); padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.stat-strip__item strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: var(--step-2); color: var(--primary-ink); letter-spacing: -0.02em; margin-bottom: 0.15em;
}
.stat-strip__item span { color: var(--ink-2); font-size: var(--step--1); }
@media (min-width: 680px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }

/* Big numbered index list (hub pages linking to sub-pages) */
.index-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.index-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(0.9rem, 3vw, 2rem); padding: clamp(1.15rem, 3vw, 1.85rem) 0;
  border-bottom: 1px solid var(--line); color: inherit;
  transition: padding-left 0.35s var(--ease);
}
a.index-item:hover { padding-left: clamp(0.4rem, 1.5vw, 0.9rem); }
.index-item__n { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.index-item__body h3 { font-size: var(--step-2); margin-bottom: 0.15em; }
.index-item__body p { margin: 0; color: var(--ink-2); font-size: var(--step-0); max-width: 60ch; }
.index-item__arrow {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--primary);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.index-item__arrow svg { width: 20px; height: 20px; }
a.index-item:hover .index-item__arrow { background: var(--primary); border-color: var(--primary); color: var(--on-dark); transform: translateX(2px); }
@media (max-width: 620px) {
  .index-item { grid-template-columns: auto 1fr; column-gap: var(--sp-4); }
  .index-item__arrow { display: none; }
  .index-item__n { align-self: start; }
}

/* Horizontal row-cards (icon left, text right) — alt to the vertical card grid */
.rowlist { display: flex; flex-direction: column; gap: var(--sp-4); }
.rowcard {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 1.6rem); align-items: start;
  padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
a.rowcard { color: inherit; }
a.rowcard:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px oklch(0.28 0.07 252 / 0.45); border-color: var(--line-2); }
.rowcard__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.rowcard__ico svg { width: 26px; height: 26px; }
.rowcard--accent .rowcard__ico { background: var(--accent); color: var(--primary-ink); }
.rowcard__body h3 { font-size: var(--step-1); margin-bottom: var(--sp-1); }
.rowcard__body p { margin: 0; color: var(--ink-2); font-size: var(--step-0); }
.rowcard__link { display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--sp-3); font-weight: 600; color: var(--primary); font-size: var(--step--1); }
.rowcard__link svg { width: 1.05em; height: 1.05em; }

/* Two-column checklist — alt to a card grid for “what we cover” lists */
.checklist { display: grid; gap: var(--sp-5) clamp(1.5rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .checklist { grid-template-columns: 1fr 1fr; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.check__ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep); flex-shrink: 0; margin-top: 2px; }
.check__ico svg { width: 17px; height: 17px; }
.check h3 { font-size: var(--step-1); margin-bottom: 3px; }
.check p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
