/* ==========================================================================
   TCM Italia: Design System
   Brand: #F76D18 (orange) · #1F1F1F (ink) · #FFFFFF (white)
   Type: Montserrat · Layout: fluid (rem / % / vw) · Mobile-first
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Brand */
  --orange: #f76d18;
  --orange-bright: #ff7d27;
  --orange-deep: #d9550a;
  --orange-soft: #fff1e7;
  --orange-tint: rgba(247, 109, 24, 0.12);
  --ink: #1f1f1f;
  --ink-soft: #2a2a2a;
  --ink-line: #383838;
  --white: #ffffff;

  /* Neutrals */
  --paper: #ffffff;
  --paper-2: #faf8f6;
  --paper-3: #f3efea;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #ece7e1;
  --line-strong: #ddd5cc;

  /* Semantic */
  --text: #1f1f1f;
  --text-invert: #ffffff;
  --bg: #ffffff;

  /* Typographic scale (fluid) */
  --fs-300: clamp(0.78rem, 0.74rem + 0.2vw, 0.85rem);
  --fs-400: clamp(0.92rem, 0.88rem + 0.25vw, 1rem);
  --fs-500: clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem);
  --fs-600: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-700: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  --fs-800: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --fs-900: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4.5rem;
  --sp-8: 6.5rem;

  /* Structure */
  --container: 80rem;        /* 1280px */
  --container-narrow: 56rem; /* 896px  */
  --radius-s: 0.55rem;
  --radius: 1rem;
  --radius-l: 1.6rem;
  --radius-xl: 2.2rem;

  /* Effects */
  --shadow-s: 0 1px 2px rgba(31, 31, 31, 0.06), 0 2px 8px rgba(31, 31, 31, 0.05);
  --shadow: 0 10px 30px -12px rgba(31, 31, 31, 0.18);
  --shadow-l: 0 28px 60px -24px rgba(31, 31, 31, 0.28);
  --shadow-orange: 0 16px 40px -14px rgba(247, 109, 24, 0.5);
  --ring: 0 0 0 3px rgba(247, 109, 24, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.35s var(--ease);
  --t-slow: 0.6s var(--ease);

  --header-h: 5rem;
}

/* --------------------------------------------------------------- Reset/base */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

strong, b { font-weight: 700; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-s);
}

::selection { background: var(--orange); color: #fff; }

/* ------------------------------------------------------------- Layout utils */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-8); position: relative; }
.section--tight { padding-block: var(--sp-7); }

.section--dark {
  background: var(--ink);
  color: var(--text-invert);
}
.section--ink {
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(247, 109, 24, 0.18), transparent 60%),
    radial-gradient(50rem 40rem at -10% 110%, rgba(247, 109, 24, 0.1), transparent 55%),
    var(--ink);
  color: var(--text-invert);
}
.section--soft { background: var(--paper-2); }
.section--paper3 { background: var(--paper-3); }

:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .muted { color: rgba(255, 255, 255, 0.66); }

.stack > * + * { margin-top: var(--sp-3); }

/* --------------------------------------------------------------- Eyebrow/kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.kicker::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.kicker--center { justify-content: center; }

/* Headings helpers */
.h-display { font-size: var(--fs-900); }
.h1 { font-size: var(--fs-800); }
.h2 { font-size: var(--fs-700); }
.h3 { font-size: var(--fs-600); }
.lead {
  font-size: var(--fs-500);
  color: var(--muted);
  max-width: 52ch;
  font-weight: 500;
}
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .lead { color: rgba(255, 255, 255, 0.78); }

.text-accent { color: var(--orange); }
.muted { color: var(--muted); }

.section-head {
  max-width: 60rem;
  margin-bottom: var(--sp-6);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head .lead { margin-top: var(--sp-3); }
.section-head--center .lead { margin-inline: auto; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-size: var(--fs-400);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 100px;
  border: 2px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.1em; height: 1.1em; }

.btn--primary {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  box-shadow: var(--shadow-orange);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: none;
  background: var(--orange-soft);
}
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}
.btn--light:hover { box-shadow: var(--shadow-l); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: var(--fs-500); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row--center { justify-content: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--orange);
  transition: gap var(--t);
}
.arrow-link:hover { gap: 0.85rem; }
.arrow-link::after { content: "→"; }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
.site-header.is-scrolled {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 28px rgba(0, 0, 0, 0.3);
}
.site-header__inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { height: 2.6rem; width: auto; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(0.4rem, 1.4vw, 1.3rem); }
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  padding: 0.4rem 0.2rem;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.15rem;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--orange); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: none; align-items: center; gap: var(--sp-3); }

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.8rem; height: 2.8rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}
.burger span {
  display: block;
  width: 1.25rem; height: 2px;
  margin-inline: auto;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background:
    radial-gradient(40rem 30rem at 110% -10%, rgba(247,109,24,0.25), transparent 60%),
    var(--ink);
  color: #fff;
  display: grid;
  align-content: center;
  padding: var(--header-h) 2rem 2rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t-slow), opacity var(--t), visibility var(--t);
}
body.nav-open .mobile-nav { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav__list { display: grid; gap: 0.2rem; }
.mobile-nav__link {
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  transition: color var(--t-fast), transform var(--t);
}
.mobile-nav__link:hover { color: var(--orange-bright); transform: translateX(8px); }
.mobile-nav__link span { font-size: 0.9rem; color: var(--orange); font-weight: 700; }
.mobile-nav__foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-300);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 50%; top: 0.5rem;
  transform: translate(-50%, -200%);
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  z-index: 200;
  transition: transform var(--t);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------- Hero base */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: var(--sp-7);
  overflow: hidden;
}
.hero--ink {
  background:
    radial-gradient(46rem 36rem at 88% 12%, rgba(247,109,24,0.22), transparent 58%),
    radial-gradient(40rem 30rem at -6% 96%, rgba(247,109,24,0.12), transparent 55%),
    var(--ink);
  color: #fff;
}
.hero__grid {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
.hero__title { font-size: var(--fs-900); }
.hero__sub {
  margin-top: var(--sp-4);
  font-size: var(--fs-500);
  color: rgba(255,255,255,0.8);
  max-width: 46ch;
  font-weight: 500;
}
.hero--light .hero__sub { color: var(--muted); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-l); box-shadow: var(--shadow-l); }

/* Page hero (interior pages, image background) */
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(20rem, 46vh, 32rem);
  padding-top: calc(var(--header-h) + var(--sp-5));
  padding-bottom: var(--sp-6);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31,31,31,0.45) 0%, rgba(31,31,31,0.55) 40%, rgba(31,31,31,0.85) 100%);
}
.page-hero__title { font-size: var(--fs-900); }
.page-hero__title em { color: var(--orange-bright); font-style: normal; }
.page-hero__sub { margin-top: var(--sp-3); max-width: 54ch; color: rgba(255,255,255,0.85); font-size: var(--fs-500); }
.breadcrumb { font-size: var(--fs-300); color: rgba(255,255,255,0.7); margin-bottom: var(--sp-3); letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--orange-bright); }

/* ----------------------------------------------------------------- Cards */
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--sp-5);
  box-shadow: var(--shadow-s);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: var(--line-strong); }
.card__icon {
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem;
  border-radius: 0.9rem;
  background: var(--orange-soft);
  color: var(--orange);
  margin-bottom: var(--sp-3);
}
.card__icon img { width: 1.9rem; height: 1.9rem; }
.card__icon svg { width: 1.7rem; height: 1.7rem; }
.card__title { font-size: var(--fs-500); font-weight: 700; }
.card__title + p { margin-top: 0.5rem; color: var(--muted); font-size: var(--fs-400); }
.card--dark {
  background: var(--ink-soft);
  border-color: var(--ink-line);
  color: #fff;
}
.card--dark .card__title + p { color: rgba(255,255,255,0.7); }

/* Numbered/feature card with top accent */
.card--accent::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-bright), var(--orange-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.card--accent:hover::before { transform: scaleX(1); }

/* Media card (image + caption tile) */
.tile {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.tile:hover img { transform: scale(1.06); }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(31,31,31,0.85));
}
.tile__label {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: var(--sp-4);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-500);
  letter-spacing: 0.01em;
}
.tile__label::before {
  content: "";
  display: block;
  width: 2rem; height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

/* ----------------------------------------------------- Split (media + text) */
.split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
.split__media img { border-radius: var(--radius-l); box-shadow: var(--shadow); width: 100%; }
.split__media { position: relative; }
.split--reverse .split__media { order: -1; }

/* Decorative frame for split media */
.framed { position: relative; }
.framed::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 2px solid var(--orange);
  border-radius: var(--radius-l);
  z-index: -1;
  opacity: 0.55;
}

/* --------------------------------------------------------------- Checklist */
.checklist { display: grid; gap: var(--sp-2); }
.checklist li {
  position: relative;
  padding-left: 2.2rem;
  font-size: var(--fs-400);
  color: var(--text);
}
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .checklist li { color: rgba(255,255,255,0.85); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--orange-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f76d18' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.checklist li strong { color: inherit; }

/* Diamond bullet variant */
.checklist--diamond li::before {
  border-radius: 3px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  background-image: none;
  width: 0.85rem; height: 0.85rem;
  left: 0.3rem; top: 0.45rem;
}

/* ----------------------------------------------------------------- Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.stat {
  text-align: center;
  padding: var(--sp-4) var(--sp-3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.section--soft .stat,
.section:not(.section--dark):not(.section--ink) .stat {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: var(--shadow-s);
}
.stat__icon { width: 2.6rem; height: 2.6rem; margin: 0 auto 0.6rem; object-fit: contain; }
.stat__num {
  font-size: var(--fs-800);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat__label { margin-top: 0.4rem; font-size: var(--fs-300); color: var(--muted); }
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .stat__label { color: rgba(255,255,255,0.7); }

/* ------------------------------------------------------------- Feature row */
.feature-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
.feature {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__ico {
  flex: none;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 0.8rem;
  background: var(--orange-soft);
}
.feature__ico img { width: 1.7rem; height: 1.7rem; }
.feature__t { font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; }
.feature__t + p { color: var(--muted); font-size: var(--fs-400); margin-top: 0.25rem; }

/* ----------------------------------------------------------------- Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 100px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: transform var(--t-fast), background var(--t), color var(--t), border-color var(--t);
}
.pill::before { content: "◆"; color: var(--orange); font-size: 0.7em; }
.pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .pill { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.16); color: #fff; }
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .pill:hover { background: var(--orange); border-color: var(--orange); }

/* --------------------------------------------------------------- Accordion */
.accordion { display: grid; gap: var(--sp-2); }
.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.acc.is-open { border-color: var(--orange); box-shadow: var(--shadow); }
.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  text-align: left;
  padding: var(--sp-4);
  font-weight: 700;
  font-size: var(--fs-500);
}
.acc__icon {
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  position: relative;
  transition: background var(--t), color var(--t), transform var(--t);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.acc__icon::before { width: 0.85rem; height: 2px; }
.acc__icon::after { width: 2px; height: 0.85rem; transition: transform var(--t); }
.acc.is-open .acc__icon { background: var(--orange); color: #fff; }
.acc.is-open .acc__icon::after { transform: scaleY(0); }
.acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__body p { padding: 0 var(--sp-4) var(--sp-4); color: var(--muted); }

/* ----------------------------------------------------------- Testimonials */
.tcarousel { position: relative; }
.tcarousel__track {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--sp-3);
  scrollbar-width: none;
}
.tcarousel__track::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: center;
  flex: 0 0 min(85%, 24rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--sp-5);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .quote { background: var(--ink-soft); border-color: var(--ink-line); }
.quote__mark {
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--orange);
  height: 1.6rem;
}
.quote__text { font-size: var(--fs-500); font-weight: 500; }
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .quote__text { color: rgba(255,255,255,0.9); }
.quote__author { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.quote__avatar {
  width: 2.8rem; height: 2.8rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  color: #fff; font-weight: 800;
}
.quote__name { font-weight: 700; }
.quote__role { font-size: var(--fs-300); color: var(--muted); }
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .quote__role { color: rgba(255,255,255,0.6); }
.carousel-ctrl { display: flex; gap: 0.7rem; margin-top: var(--sp-4); justify-content: center; }
.carousel-ctrl button {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t-fast);
}
.carousel-ctrl button:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-2px); }
:is(.section--dark, .section--ink, .hero--ink, .page-hero, .cta-band) .carousel-ctrl button { border-color: rgba(255,255,255,0.25); color: #fff; }

/* --------------------------------------------------------------- Marquee */
.marquee {
  background: var(--ink);
  color: #fff;
  padding-block: var(--sp-4);
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--ink-line);
}
.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-size: clamp(1.3rem, 1rem + 2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.marquee__track .dot { color: var(--orange); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------- CTA band */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 5vw, 4.5rem);
  background:
    radial-gradient(40rem 30rem at 90% -20%, rgba(247,109,24,0.3), transparent 60%),
    linear-gradient(135deg, #262626, var(--ink));
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-band__title { font-size: var(--fs-800); }
.cta-band .lead { margin-inline: auto; color: rgba(255,255,255,0.8); }

/* --------------------------------------------------------------- Contact */
.info-row { display: grid; gap: var(--sp-3); }
.info-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.info-item__ico {
  flex: none;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 0.8rem;
  background: var(--orange-soft);
  color: var(--orange);
}
.info-item__label { display: block; margin-bottom: 0.25rem; font-size: var(--fs-300); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.info-item__value { display: block; }
.info-item__value { font-weight: 700; font-size: var(--fs-500); }
.info-item a.info-item__value:hover { color: var(--orange); }

/* Form */
.form { display: grid; gap: var(--sp-3); }
.form__row { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: var(--fs-300); letter-spacing: 0.02em; }
.field label .req { color: var(--orange); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: var(--ring);
  outline: none;
}
.field textarea { min-height: 8rem; resize: vertical; }
.form__note { font-size: var(--fs-300); color: var(--muted); }
.form__status { font-weight: 600; font-size: var(--fs-400); min-height: 1.2rem; }
.form__status.is-ok { color: #1c7c3c; }
.form__status.is-err { color: #c0392b; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; }
.field--check label { font-weight: 500; font-size: var(--fs-300); color: var(--muted); }

/* ----------------------------------------------------------------- Blog */
.post-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform var(--t), box-shadow var(--t);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: var(--sp-5); display: grid; gap: var(--sp-2); align-content: start; }
.post-meta { font-size: var(--fs-300); color: var(--muted); letter-spacing: 0.04em; display: flex; gap: 0.6rem; align-items: center; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.post-card__title { font-size: var(--fs-600); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

/* Article body */
.article { max-width: var(--container-narrow); margin-inline: auto; }
.article__head { margin-bottom: var(--sp-5); }
.prose { font-size: var(--fs-500); line-height: 1.8; color: #313131; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--fs-600); margin-top: var(--sp-6); }
.prose h3 { font-size: var(--fs-500); margin-top: var(--sp-5); color: var(--orange-deep); }
.prose ul { display: grid; gap: 0.5rem; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.7rem;
  width: 0.5rem; height: 0.5rem;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--orange);
}
.prose strong { color: var(--ink); }
.prose .note {
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  padding: var(--sp-4);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* ----------------------------------------------------------------- Footer */
.site-footer {
  position: relative;
  background:
    radial-gradient(50rem 30rem at 12% -10%, rgba(247,109,24,0.16), transparent 55%),
    var(--ink);
  color: rgba(255,255,255,0.82);
  padding-top: var(--sp-7);
}
.footer-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
.footer-brand img { height: 3rem; margin-bottom: var(--sp-3); }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 32ch; font-size: var(--fs-400); }
.footer-col h4 {
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: var(--sp-3);
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.75); transition: color var(--t-fast), padding var(--t-fast); }
.footer-col a:hover { color: #fff; padding-left: 0.3rem; }
.footer-contact { display: grid; gap: 0.4rem; font-size: var(--fs-400); }
.footer-contact strong { color: #fff; }
.footer-bottom {
  margin-top: var(--sp-6);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-300);
  color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: var(--orange-bright); }

/* ----------------------------------------------------- Scroll reveal anim */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Floating WhatsApp/contact button */
.fab {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  z-index: 80;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  color: #fff;
  box-shadow: var(--shadow-orange);
  transition: transform var(--t);
}
.fab:hover { transform: scale(1.08) translateY(-2px); }

/* --------------------------------------------------------- Responsive up */
@media (min-width: 48rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .hero__grid--split { grid-template-columns: 1.1fr 0.9fr; }
  .post-card--feature { grid-template-columns: 1.2fr 1fr; }
  .post-card--feature .post-card__media { aspect-ratio: auto; height: 100%; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 64rem) {
  .nav { display: block; }
  .header-actions { display: inline-flex; }
  .burger { display: none; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(5, 1fr); }
  .feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

@media (min-width: 80rem) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------- Motion-reduce */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ===================== Web-app polish & contrast fixes ===================== */
/* Pills always legible on light surfaces (dark surfaces handled by :is() rule). */
.pill { color: var(--ink); }

/* Remove 300ms tap delay; cleaner taps on touch devices. */
a, button, .btn, .pill, .nav__link, .acc__head, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* App-like press feedback. */
.pill:active, .card:active, .tile:active, .post-card:active { transform: scale(0.985); }

/* 16px inputs on mobile to prevent iOS auto-zoom. */
.field input, .field textarea, .field select { font-size: max(1rem, 16px); }

/* Dynamic viewport height for mobile browser chrome. */
@supports (height: 100dvh) {
  .mobile-nav { min-height: 100dvh; }
}

/* Comfier touch targets on touch / coarse pointers. */
@media (hover: none) and (pointer: coarse) {
  .nav__link { padding-block: 0.55rem; }
  .footer-col a { display: inline-block; padding-block: 0.25rem; }
  .arrow-link { padding-block: 0.3rem; }
}

/* Guard against accidental horizontal overflow on small screens. */
html, body { max-width: 100%; }
.framed::before { max-width: 100%; }
@media (max-width: 30rem) {
  .framed::before { inset: 0.6rem -0.4rem -0.6rem 0.4rem; }
}

/* ============================== Glassmorphism ==============================
   Frosted surfaces + soft colour depth. Text contrast preserved (dark on
   light glass, white on dark glass). Reduced-transparency fallback included.
   ========================================================================== */
:root {
  --glass-light: rgba(255, 255, 255, 0.66);
  --glass-border-light: rgba(255, 255, 255, 0.75);
  --glass-dark: rgba(40, 40, 40, 0.55);
  --glass-border-dark: rgba(255, 255, 255, 0.16);
  --glass-blur: blur(14px) saturate(165%);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --glass-hi-dark: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Soft colour orbs behind sections so glass has something to refract. */
.section--soft, .section--paper3 { position: relative; overflow: hidden; }
.section--soft::before, .section--paper3::before {
  content: "";
  position: absolute;
  top: -12%; right: -6%;
  width: 34rem; height: 34rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 109, 24, 0.16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.section--soft::after {
  content: "";
  position: absolute;
  bottom: -16%; left: -10%;
  width: 30rem; height: 30rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 31, 31, 0.06), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.section--soft > .container,
.section--paper3 > .container { position: relative; z-index: 1; }

/* Light frosted surfaces. */
.card,
.feature,
.info-item,
.acc {
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--shadow), var(--glass-hi);
}
.card:hover,
.feature:hover { border-color: rgba(255, 255, 255, 0.9); }

/* Frosty icon chips. */
.card__icon, .feature__ico, .info-item__ico {
  background: rgba(247, 109, 24, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Pills as frosted glass on light surfaces. */
.pill {
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border-light);
}

/* Frosted inputs. */
.field input, .field textarea, .field select {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Dark frosted surfaces (over ink + orange gradients = strongest effect). */
:is(.section--dark, .section--ink) .card,
:is(.section--dark, .section--ink) .stat,
:is(.section--dark, .section--ink) .quote,
.card--dark {
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-dark);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55), var(--glass-hi-dark);
}

/* Header gets a brighter frosted edge when scrolled. */
.site-header.is-scrolled {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 28px rgba(0, 0, 0, 0.34);
}

/* Graceful fallback where backdrop-filter is unsupported: stay readable. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card, .feature, .info-item, .acc, .pill { background: rgba(255, 255, 255, 0.95); }
  :is(.section--dark, .section--ink) .card,
  :is(.section--dark, .section--ink) .stat,
  :is(.section--dark, .section--ink) .quote,
  .card--dark { background: rgba(38, 38, 38, 0.94); }
}

/* ============================ Partner logo marquee ========================= */
.logo-marquee {
  position: relative;
  overflow: hidden;
  margin-top: var(--sp-5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-marquee__track {
  display: flex;
  width: max-content;
  align-items: stretch;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  animation: logo-scroll 60s linear infinite;
}
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__item {
  flex: 0 0 auto;
  width: clamp(8.5rem, 16vw, 11.5rem);
  height: clamp(4.2rem, 9vw, 5.6rem);
  display: grid;
  place-items: center;
  padding: 0.8rem 1.3rem;
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s), var(--glass-hi);
  transition: transform var(--t), box-shadow var(--t);
}
.logo-marquee__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-marquee__item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
@keyframes logo-scroll { to { transform: translateX(calc(-50% - clamp(0.9rem, 2vw, 1.5rem) / 2)); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--sp-3);
  }
  .logo-marquee__item[aria-hidden="true"] { display: none; }
}

/* ===================== Audit fixes: responsive polish ===================== */
.stat { min-width: 0; }
.stat__label { overflow-wrap: anywhere; }
.hero__title, .hero__sub,
.page-hero__title, .page-hero__sub,
.cta-band__title, .cta-band .lead,
.tile__label, .card__title { overflow-wrap: break-word; }

@media (max-width: 30rem) {
  /* Stats: keep two columns readable, shrink the big number so nothing clips. */
  .stats { gap: var(--sp-2); }
  .stat { padding: var(--sp-3) var(--sp-2); }
  .stat__num { font-size: var(--fs-700); }
  /* Dense 4-up grids stack to one column on small phones. */
  .grid--4 { grid-template-columns: 1fr; }
  /* CTA band fits without clipping the centered title. */
  .cta-band { padding: 2rem 1.25rem; }
  .cta-band__title { font-size: var(--fs-700); }
}

/* page-hero is a grid: constrain its column so long text wraps instead of
   forcing the container to max-content width (which clipped under overflow:hidden). */
.page-hero { grid-template-columns: minmax(0, 1fr); }
.page-hero > .container { min-width: 0; }
