/* ==========================================================================
   Agenzia di Investigazioni e Security
   Design tokens, base, layers, components
   ========================================================================== */

/* the page background is one colour that fades as sections with a different theme take over */
@property --page-bg {
  syntax: '<color>';
  inherits: true;
  initial-value: #0e0c0d;
}

@property --fg {
  syntax: '<color>';
  inherits: true;
  initial-value: #f3efea;
}
@property --fg-2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #b9b1ad;
}
@property --fg-3 {
  syntax: '<color>';
  inherits: true;
  initial-value: #8e8683;
}
@property --line {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(243, 239, 234, 0.1);
}
@property --line-strong {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(243, 239, 234, 0.18);
}
@property --surface {
  syntax: '<color>';
  inherits: true;
  initial-value: #1f1b1c;
}

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* palette: derived from the badge (ink ring, signal red, bone disc, tricolore) */
  --ink: #0e0c0d;
  --coal: #161314;
  --char: #1f1b1c;
  --ash: #3a3435;
  --smoke: #8e8683;
  --fog: #b9b1ad;
  --bone: #f3efea;
  --paper: #ebe5de;
  --signal: #c8161d;
  --ember: #ff3b3f;
  --verde: #009246;

  --line: rgba(243, 239, 234, 0.1);
  --line-strong: rgba(243, 239, 234, 0.18);

  /* semantic colours, re-scoped by [data-theme] */
  --fg: var(--bone);
  --fg-2: var(--fog);
  --fg-3: var(--smoke);
  --surface: var(--char);

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  --gutter: clamp(16px, 4.2vw, 72px);
  --max: 1680px;
  --r-layer: clamp(22px, 2.6vw, 40px);
  --r-card: clamp(14px, 1.4vw, 22px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --header-h: 84px;

  /* type scale */
  --fs-xxl: clamp(3.4rem, 11.5vw, 13.5rem);
  --fs-xl: clamp(2.9rem, 8vw, 9rem);
  --fs-l: clamp(2.3rem, 5.2vw, 5.6rem);
  --fs-m: clamp(1.7rem, 3vw, 3rem);
  --fs-s: clamp(1.25rem, 1.7vw, 1.65rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.78rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* film grain over everything: gives the dark surfaces material instead of flat fills */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}


/* ---------- themes ---------- */
html {
  --page-bg: var(--ink);
  background: var(--page-bg);
  transition: --page-bg 0.9s var(--ease-out), --fg 0.9s var(--ease-out), --fg-2 0.9s var(--ease-out), --fg-3 0.9s var(--ease-out),
    --line 0.9s var(--ease-out), --line-strong 0.9s var(--ease-out), --surface 0.9s var(--ease-out);
}
/* text and surfaces fade together with the page colour, so contrast holds during the change */
html[data-scheme='light'] {
  --page-bg: var(--paper);
  --fg: #0e0c0d;
  --fg-2: #4b4344;
  --fg-3: #7d7273;
  --line: rgba(14, 12, 13, 0.12);
  --line-strong: rgba(14, 12, 13, 0.22);
  --surface: #f9f6f2;
}
[data-theme='dark'], .hs__card, .shot__img {
  --fg: var(--bone);
  --fg-2: var(--fog);
  --fg-3: var(--smoke);
  --line: rgba(243, 239, 234, 0.1);
  --line-strong: rgba(243, 239, 234, 0.18);
  --surface: var(--char);
  color: var(--fg);
}
[data-theme='light'] {
  --fg: var(--ink);
  --fg-2: #4b4344;
  --fg-3: #7d7273;
  --line: rgba(14, 12, 13, 0.12);
  --line-strong: rgba(14, 12, 13, 0.22);
  --surface: #f9f6f2;
  color: var(--fg);
}
/* without JS each section paints its own background */
html:not(.js) [data-tone='light'] { background: var(--paper); --fg: #0e0c0d; --fg-2: #4b4344; --fg-3: #7d7273; --line: rgba(14, 12, 13, 0.12); --surface: #f9f6f2; color: var(--fg); }

::selection { background: var(--signal); color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10001;
  padding: 10px 16px;
  background: var(--bone);
  color: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */
.display {
  font-family: var(--font);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
}
.display--xxl { font-size: var(--fs-xxl); }
.display--xl { font-size: var(--fs-xl); }
.display--l { font-size: var(--fs-l); line-height: 0.9; }
.display--m { font-size: var(--fs-m); line-height: 0.95; }

.title {
  font-weight: 700;
  font-variation-settings: 'wdth' 75;
  font-size: var(--fs-m);
  line-height: 1;
  letter-spacing: -0.01em;
}
.title--s { font-size: var(--fs-s); line-height: 1.1; font-variation-settings: 'wdth' 82; }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-l);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.lede--m { font-size: var(--fs-m); line-height: 1.12; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-size: var(--fs-small);
  font-weight: 500;
  font-variation-settings: 'wdth' 90;
  color: var(--fg-2);
  letter-spacing: 0.01em;
}
.kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(200, 22, 29, 0.18), 0 0 18px 2px rgba(255, 59, 63, 0.55);
}

.prose { max-width: 62ch; color: var(--fg-2); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--fg); font-weight: 600; }
.muted { color: var(--fg-3); }

/* focus-typography: chars get their own width axis so JS can "focus" them */
.char { display: inline-block; font-variation-settings: 'wdth' var(--wd, 62); will-change: transform, filter, opacity; }
.focus-line { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  font-variation-settings: 'wdth' 88;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.5s var(--ease-out), background-color 0.4s, color 0.4s;
}
.btn__roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.25; }
.btn__roll > span { display: block; transition: transform 0.6s var(--ease-out); }
.btn__roll > span + span { position: absolute; inset: 100% 0 auto 0; }
.btn:hover .btn__roll > span,
.btn:focus-visible .btn__roll > span { transform: translateY(-100%); }

.btn--signal {
  --btn-bg: var(--signal);
  --btn-fg: var(--bone);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 10px 30px -12px rgba(200, 22, 29, 0.8);
}
.btn--signal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 140% at 50% 120%, var(--ember), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.btn--signal:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 44px -10px rgba(255, 59, 63, 0.85); }
.btn--signal:hover::before { opacity: 1; }

.btn--ghost {
  --btn-bg: rgba(243, 239, 234, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { --btn-bg: var(--line); }
.btn--bone { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--bone); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 600;
  font-variation-settings: 'wdth' 88;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.5s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 800;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: var(--gutter);
  transition: transform 0.6s var(--ease-out), background-color 0.4s, backdrop-filter 0.4s;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(14, 12, 13, 0.78), rgba(14, 12, 13, 0.4));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.5s;
  box-shadow: inset 0 -1px 0 var(--line);
}
.site-header.is-solid::before { opacity: 1; }
.site-header { color: var(--fg); transition: transform 0.6s var(--ease-out), color 0.5s; }
html[data-scheme='light']:not(.menu-open) .site-header {
  --fg: var(--ink);
  --fg-2: #4b4344;
  --line: rgba(14, 12, 13, 0.12);
  --line-strong: rgba(14, 12, 13, 0.2);
}
html[data-scheme='light']:not(.menu-open) .site-header::before {
  background: linear-gradient(to bottom, rgba(238, 233, 227, 0.85), rgba(238, 233, 227, 0.55));
}
html[data-scheme='light']:not(.menu-open) .brand__badge { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18)); }
.site-header.is-hidden { transform: translateY(-110%); }

.brand { display: inline-flex; align-items: center; gap: 14px; margin-right: auto; }
.brand__badge {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
  transition: transform 1s var(--ease-out);
}
.brand:hover .brand__badge { transform: rotate(-14deg) scale(1.04); }
.brand__name {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-variation-settings: 'wdth' 70;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.02;
  letter-spacing: 0.02em;
}
.brand__name span:last-child { color: var(--ember); }

.site-nav ul { display: flex; gap: 6px; }
.site-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  font-variation-settings: 'wdth' 88;
  color: var(--fg-2);
  transition: color 0.3s, background-color 0.3s;
}
.site-nav a:hover { color: var(--fg); background: var(--line); }
.site-nav a[aria-current='page'] { color: var(--fg); }
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
  font-size: 0.9rem;
  font-variation-settings: 'wdth' 88;
}
.menu-toggle__icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--signal);
}
.menu-toggle__icon i {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.menu-toggle__icon i:first-child { top: 12.5px; }
.menu-toggle__icon i:last-child { top: 18px; }
.menu-open .menu-toggle__icon i:first-child { top: 15.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon i:last-child { top: 15.25px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 4vh) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  overflow: hidden;
}
.menu__glow {
  position: absolute;
  width: 120vmax;
  height: 120vmax;
  left: 50%;
  top: 100%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(200, 22, 29, 0.38), transparent 70%);
  pointer-events: none;
}
.menu__nav { position: relative; display: flex; flex-direction: column; }
.menu__nav a {
  display: block;
  overflow: hidden;
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  text-transform: uppercase;
  font-size: clamp(3rem, 15vw, 7rem);
  line-height: 0.92;
}
.menu__nav a span { display: inline-block; }
.menu__nav a[aria-current='page'] { color: var(--ember); }
.menu__info { position: relative; display: grid; gap: 14px; color: var(--fg-2); font-size: var(--fs-small); }

/* ---------- curtain (page transitions + intro) ---------- */
.curtain { position: fixed; inset: 0; z-index: 9500; pointer-events: none; visibility: hidden; }
.curtain__panel { position: absolute; inset: 0; transform: translateY(100%); }
.curtain__panel--signal { background: var(--signal); }
.curtain__panel--ink {
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 50%, #221d1e, var(--ink));
}
.curtain__badge { width: clamp(192px, 24vw, 300px); height: auto; opacity: 0; }
.is-arriving .curtain, .is-intro .curtain { visibility: visible; pointer-events: auto; }
.is-arriving .curtain__panel--ink, .is-intro .curtain__panel--ink { transform: none; }
.is-arriving .curtain__badge { opacity: 1; }

/* ---------- sections ---------- */
.stack { position: relative; }
.layer {
  position: relative;
  background: var(--page-bg);
  isolation: isolate;
  overflow-x: clip;
}
/* the one sheet that stays put while the next section rises over it (the hero) */
.stack > .layer[data-stick] { position: sticky; top: var(--stick, 0px); }
/* the section rising over a pinned one brings its own soft edge instead of a hard line */
.layer[data-stick] + .layer::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 26vh;
  background: linear-gradient(to bottom, transparent, var(--page-bg) 92%);
  pointer-events: none;
}
.layer__body { position: relative; transform-origin: 50% 0; }
.layer__shade {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: #050404;
  opacity: 0;
  pointer-events: none;
}

/* ambient lights: non-flat surfaces */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
}
.glow--signal { background: radial-gradient(closest-side, rgba(200, 22, 29, 0.34), rgba(200, 22, 29, 0.08) 55%, transparent); }
.glow--bone { background: radial-gradient(closest-side, rgba(243, 239, 234, 0.08), transparent); }

.section-pad { padding-block: clamp(80px, 9vw, 150px); }

/* ---------- HERO (home + inner) ---------- */
.hero {
  --layer-bg: var(--ink);
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}
.hero { background: var(--ink); }
.hero .layer__body { height: 100%; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.35) contrast(1.1);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
.hero__canvas.is-ready { opacity: 1; }
.hero__canvas.is-ready + img, .hero__media.has-gl img { visibility: hidden; }
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(14, 12, 13, 0.95) 0%, rgba(14, 12, 13, 0.35) 38%, transparent 60%),
    linear-gradient(to bottom, rgba(14, 12, 13, 0.7), transparent 22%);
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  --aside-w: clamp(280px, 26vw, 400px);
  --col-gap: clamp(24px, 4vw, 80px);
  --title-w: calc(min(100vw, var(--max)) - 2 * var(--gutter) - var(--aside-w) - var(--col-gap));
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 32px var(--col-gap);
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(var(--r-layer) + clamp(20px, 2.4vw, 36px));
  max-width: var(--max);
  margin-inline: auto;
  pointer-events: none;
}
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__title { grid-column: 1; grid-row: 1; align-self: end; min-width: 0; }
.hero__title .display {
  /* --em: width of the longest word in em, so the headline always fits its column */
  font-size: clamp(2.8rem, calc(var(--title-w) / var(--em, 5.6)), 13.5rem);
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}
.hero__aside { grid-column: 2; grid-row: 1; align-self: end; display: grid; gap: 22px; color: var(--fg-2); }
.hero__aside p { max-width: 38ch; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 4px 30px rgba(0, 0, 0, 0.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__foot {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--fg-2);
}
.hero__index { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.hero__index a { position: relative; transition: color 0.3s; }
.hero__index a:hover { color: var(--fg); }
.hero__index a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0;
  transform: scale(0);
  transition: 0.4s var(--ease-out);
}
.hero__index a:hover::before { opacity: 1; transform: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ember);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* inner page hero */
.page-hero { height: auto; min-height: 92svh; }
.page-hero .hero__content { min-height: 92svh; }
.page-hero .hero__aside p { max-width: 44ch; }
.page-hero .hero__crumb { font-size: var(--fs-small); color: var(--fg-2); margin-bottom: 18px; display: flex; gap: 10px; }
.page-hero .hero__crumb a:hover { color: var(--fg); }

/* ---------- ABOUT (home) ---------- */
.about { overflow-x: clip; }
.about__glow-a { width: 70vw; height: 70vw; right: -25vw; top: -30vw; }
.about__glow-b { width: 50vw; height: 50vw; left: -20vw; bottom: -10vw; }
.about__inner { position: relative; z-index: 1; }
.about__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.about__intro .kicker { grid-column: 1 / span 3; padding-top: 1.2em; }
.about__statement { grid-column: 4 / -1; max-width: 22ch; }
.about__statement .w { opacity: 0.16; transition: none; }
.about__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(48px, 6vw, 96px);
}
.about__body .prose { grid-column: 4 / span 4; }
.about__body .prose + .prose { grid-column: 8 / span 4; }
.about__claim {
  margin-top: clamp(64px, 8vw, 128px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: end;
}
.about__claim h3 { grid-column: 1 / span 7; }
.about__claim p { grid-column: 9 / span 4; color: var(--fg-2); }

/* pillars: two cards floating at different depths */
.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(48px, 6vw, 96px);
}
.pillar { position: relative; grid-column: span 6; }
.pillar:nth-child(2) { margin-top: clamp(60px, 10vw, 160px); }
.pillar__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); }
.pillar__media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 1.2s var(--ease-out), transform 1.4s var(--ease-out);
}
.pillar:hover .pillar__media img { filter: grayscale(0); transform: scale(1.03); }
.pillar__body { position: relative; padding-top: 28px; }
.pillar__body h3 { margin-bottom: 18px; }
.pillar__body p { color: var(--fg-2); max-width: 46ch; }
.pillar__en { margin-top: 16px; font-size: var(--fs-small); color: var(--fg-3); font-style: italic; }
.pillar__body .link-arrow { margin-top: 26px; }
.pillar__link::after { content: ''; position: absolute; inset: 0; z-index: 2; }

/* marquee of disciplines */
.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 96px) 0;
  user-select: none;
}
.marquee__track { display: flex; flex-shrink: 0; gap: 0.4em; padding-right: 0.4em; will-change: transform; }
.marquee__track span {
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--fg);
}
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--fg-3); }
.marquee__track b { color: var(--signal); font-weight: 800; align-self: center; font-size: clamp(1.4rem, 3vw, 3rem); }

/* ---------- HORIZONTAL services ---------- */
.hs { --layer-bg: var(--ink); }
.hs > .layer__body, .tunnel > .layer__body { height: 100%; }
.hs__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hs__glow { width: 80vw; height: 80vw; left: 30%; top: 30%; }
.hs__track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  padding-inline: var(--gutter) 12vw;
  will-change: transform;
}
.hs__intro {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  width: min(34vw, 500px);
  display: grid;
  gap: 28px;
  will-change: transform;
}
.hs:not(.hs--gallery) .hs__track { padding-left: calc(var(--gutter) + min(34vw, 500px) + clamp(32px, 4vw, 72px)); }
.hs__intro p { color: var(--fg-2); max-width: 40ch; }
.hs__panel {
  position: relative;
  flex: 0 0 auto;
  width: min(58vw, 980px);
  height: min(66svh, 640px);
  transform-style: preserve-3d;
}
.hs__card {
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--char);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.95), inset 0 0 0 1px var(--line);
  transform-origin: 50% 50%;
  will-change: transform;
}
.hs__card img {
  position: absolute;
  inset: 0 -12%;
  width: 124%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.1) brightness(0.62);
  transition: filter 1s var(--ease-out);
  will-change: transform;
}
.hs__panel:hover .hs__card img { filter: grayscale(0) contrast(1.05) brightness(0.75); }
.hs__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 12, 13, 0.92) 0%, rgba(14, 12, 13, 0.25) 45%, transparent 70%),
    radial-gradient(80% 60% at 100% 0%, rgba(200, 22, 29, 0.25), transparent 60%);
}
.hs__copy {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 3vw, 48px);
  right: clamp(22px, 3vw, 48px);
  bottom: clamp(22px, 3vw, 44px);
  display: grid;
  gap: 18px;
}
.hs__copy h3 { font-size: clamp(2.6rem, 5.4vw, 6rem); }
.hs__copy p { color: var(--fg-2); font-size: var(--fs-small); line-height: 1.55; max-width: 46ch; }
.hs__tag {
  position: absolute;
  z-index: 2;
  top: clamp(18px, 2.4vw, 32px);
  left: clamp(22px, 3vw, 48px);
}
.hs__go {
  position: absolute;
  z-index: 3;
  top: clamp(14px, 2vw, 28px);
  right: clamp(14px, 2vw, 28px);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(243, 239, 234, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.4s, transform 0.6s var(--ease-out);
}
.hs__go svg { width: 20px; height: 20px; }
.hs__panel:hover .hs__go { background: var(--signal); transform: rotate(-45deg); }
.hs__go::after { content: ''; position: absolute; inset: -2000px; }
.hs__progress {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 4vh, 44px);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.hs__progress i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--signal), var(--ember));
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px var(--ember);
}

/* ---------- TUNNEL (3D fly-through) ---------- */
.tunnel { --layer-bg: #0b0a0a; overflow: clip; }
.tunnel__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  perspective: 900px;
  perspective-origin: 50% 50%;
}
.tunnel__world { position: absolute; inset: 0; transform-style: preserve-3d; }
.tunnel__item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w, 26vw);
  aspect-ratio: var(--ar, 4 / 3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.tunnel__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.08) brightness(0.9); }
.tunnel__words { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tunnel__text {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(90vw, 1100px);
  text-align: center;
  will-change: transform, opacity;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}
.tunnel__text .display { font-size: clamp(3.4rem, 12vw, 13rem); line-height: 0.85; }
.tunnel__text .lede { font-size: clamp(1.6rem, 3.4vw, 3.4rem); }
.tunnel__hud {
  position: absolute;
  z-index: 5;
  inset: auto var(--gutter) clamp(24px, 4vh, 44px) var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-size: var(--fs-small);
  color: var(--fg-2);
  pointer-events: none;
}
.tunnel__hud p { max-width: 40ch; }
.tunnel__light {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70vmin;
  height: 70vmin;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 59, 63, 0.26), rgba(200, 22, 29, 0.1) 45%, transparent 75%);
  pointer-events: none;
}
.tunnel__fog {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(70% 60% at 50% 50%, transparent 40%, var(--page-bg) 100%);
}

/* ---------- ACCADEMIA teaser (paper sheet) ---------- */
.academy { overflow-x: clip; }
.academy__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}
.academy__head { grid-column: 1 / span 6; display: grid; gap: 28px; align-content: start; }
.academy__head p { max-width: 44ch; }
.academy-logo { display: block; width: clamp(96px, 9vw, 140px); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18)); }
.academy-logo--l { width: clamp(128px, 13vw, 200px); margin-bottom: 32px; }
.academy__grid > .academy__media:first-child { grid-column: 1 / span 6; grid-row: 1; }
.academy__head--right { grid-column: 8 / -1; }
.academy__media {
  grid-column: 7 / -1;
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 60px 120px -50px rgba(30, 20, 20, 0.6);
}
.academy__media img { width: 100%; height: 115%; object-fit: cover; }
.notice {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r-card);
  background: var(--ink);
  color: var(--fg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.notice__pin {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 10px rgba(200, 22, 29, 0.15), 0 0 40px rgba(255, 59, 63, 0.6);
}
.notice__pin svg { width: 26px; height: 26px; }
.notice h3 { font-size: var(--fs-s); line-height: 1.15; font-weight: 600; font-variation-settings: 'wdth' 82; }
.notice p { color: var(--fg-2); margin-top: 6px; font-size: var(--fs-small); }

/* ---------- TRUST (clients + ISO) ---------- */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}
.trust__clients { grid-column: 1 / span 7; }
.trust__iso { grid-column: 9 / span 4; }
.client-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.client {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: background-color 0.5s;
}
.client img { width: 58%; opacity: 0.78; transition: opacity 0.5s, transform 0.8s var(--ease-out); }
.client:hover img { opacity: 1; transform: scale(1.04); }
html[data-scheme='light'] .client img { filter: invert(1); }
.client::before {
  content: '';
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(200, 22, 29, 0.28), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.client:hover::before { opacity: 1; }
.client-row > .client { aspect-ratio: auto; min-height: 220px; }
.crests { display: grid; gap: 18px; align-content: start; }
.crests__label { font-size: var(--fs-micro); font-weight: 600; color: var(--fg-3); letter-spacing: 0.02em; font-variation-settings: 'wdth' 90; }
.crests__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
.crests__grid li { display: grid; justify-items: center; gap: 10px; text-align: center; }
.crests__grid img { width: auto; height: clamp(84px, 8vw, 116px); transition: transform 0.8s var(--ease-out); }
.crests__grid li:hover img { transform: translateY(-4px) scale(1.04); }
.crests__grid span { font-size: var(--fs-small); color: var(--fg-2); }
.iso-card {
  height: 100%;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.iso-card img { width: 120px; mix-blend-mode: multiply; }
.iso-card ul { display: grid; gap: 4px; }
.iso-card a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-weight: 600;
  font-variation-settings: 'wdth' 88;
  border-bottom: 1px solid var(--line);
}
.iso-card a svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }
.iso-card a:hover svg { transform: translate(3px, -3px); }

/* ---------- CONTACT ---------- */
.contact { overflow-x: clip; }
.contact__glow { width: 90vw; height: 90vw; left: -30vw; bottom: -45vw; }
.contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.contact__head { grid-column: 1 / span 5; display: grid; gap: 28px; }
.contact__head .lede { font-size: var(--fs-m); color: var(--fg-2); }
.contact__direct { display: grid; gap: 4px; margin-top: 12px; }
.contact__direct a, .contact__direct p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s;
}
.contact__direct a span:first-child, .contact__direct p span:first-child { color: var(--fg-3); }
.contact__direct a span:last-child { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.contact__head { min-width: 0; }
.contact__direct a:hover { color: var(--ember); }
.form-card {
  grid-column: 7 / -1;
  position: relative;
  padding: clamp(24px, 3vw, 48px);
  border-radius: calc(var(--r-card) + 6px);
  background: linear-gradient(160deg, rgba(243, 239, 234, 0.07), rgba(243, 239, 234, 0.02) 60%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 60px 120px -50px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: grid; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  padding: 26px 18px 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(14, 12, 13, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font-size: 1rem;
  transition: box-shadow 0.3s, background-color 0.3s;
  resize: vertical;
}
.field textarea { min-height: 170px; }
.field label {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 1rem;
  color: var(--fg-3);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  background: rgba(14, 12, 13, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 59, 63, 0.7), 0 0 0 4px rgba(200, 22, 29, 0.18);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(0.76);
  color: var(--fg-2);
}
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { box-shadow: inset 0 0 0 1px var(--ember); }
.choice { grid-column: 1 / -1; min-width: 0; margin: 0 0 4px; padding: 0; border: 0; }
.choice legend { margin-bottom: 12px; padding: 0; font-size: var(--fs-small); color: var(--fg-2); }
.choice__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-radius: 16px; }
.choice__opt { position: relative; display: grid; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(14, 12, 13, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-2);
  line-height: 1.25;
  transition: box-shadow 0.3s, background-color 0.3s, color 0.3s;
}
.choice__opt span::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow 0.3s;
}
.choice__opt:hover span { color: var(--fg); }
.choice__opt input:checked + span {
  color: var(--fg);
  background: rgba(200, 22, 29, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 59, 63, 0.7);
}
.choice__opt input:checked + span::before { box-shadow: inset 0 0 0 5px var(--signal); }
.choice__opt input:focus-visible + span { box-shadow: inset 0 0 0 1px rgba(255, 59, 63, 0.7), 0 0 0 4px rgba(200, 22, 29, 0.18); }
.choice[aria-invalid='true'] .choice__opts { box-shadow: 0 0 0 1px var(--ember); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--fg-2); margin-top: 6px; }
.check input {
  appearance: none;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border-radius: 7px;
  background: rgba(14, 12, 13, 0.55);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}
.check input::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--bone);
  border-bottom: 2px solid var(--bone);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.3s var(--ease-out);
}
.check input:checked { background: var(--signal); box-shadow: none; }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.form__status { font-size: var(--fs-small); color: var(--fg-2); min-height: 1.5em; }
.form__status.is-error { color: var(--ember); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FOOTER ---------- */
.site-footer { overflow: clip; }
.site-footer::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 110vw;
  height: 60vw;
  left: 50%;
  bottom: -30vw;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(200, 22, 29, 0.22), transparent);
  pointer-events: none;
}
.site-footer .layer__body { z-index: 1; padding-top: clamp(48px, 5vw, 80px); }
.site-footer__top { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; }
.site-footer__badge { width: clamp(88px, 9vw, 132px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.site-footer__claim { flex: 1 1 300px; font-family: var(--serif); font-style: italic; font-size: var(--fs-m); line-height: 1.08; max-width: 22ch; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.65fr) minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: clamp(56px, 7vw, 110px);
  font-size: var(--fs-small);
  color: var(--fg-2);
}
.site-footer__label {
  font-size: var(--fs-micro);
  font-weight: 600;
  font-variation-settings: 'wdth' 90;
  color: var(--fg-3);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.site-footer address { color: var(--fg); line-height: 1.6; }
.site-footer__muted { margin-top: 12px; color: var(--fg-3); }
.site-footer__list { display: grid; gap: 8px; }
.site-footer__list li { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.site-footer__list span { color: var(--fg-3); min-width: 96px; }
.site-footer__list a { color: var(--fg); transition: color 0.3s; word-break: break-word; }
.site-footer__list a:hover { color: var(--ember); }
.site-footer__list--links li { display: block; }
.site-footer__list--stack { gap: 12px; }
.site-footer__list--stack li { display: grid; gap: 2px; }
.site-footer__quality img { width: 92px; border-radius: 8px; margin-bottom: 16px; }
.site-footer__mark {
  --mx: 50%;
  --my: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(56px, 7vw, 110px);
  font-weight: 900;
  font-variation-settings: 'wdth' 62;
  text-transform: uppercase;
  line-height: 0.8;
  font-size: clamp(3.4rem, 14.2vw, 16rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  background: radial-gradient(28vw 28vw at var(--mx) var(--my), rgba(255, 59, 63, 0.95), rgba(200, 22, 29, 0.4) 40%, rgba(243, 239, 234, 0.13) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 28px max(28px, env(safe-area-inset-bottom));
  margin-top: clamp(24px, 3vw, 40px);
  font-size: var(--fs-micro);
  color: var(--fg-3);
}
.site-footer__legal p:last-child { display: flex; gap: 22px; }
.site-footer__legal a:hover { color: var(--fg); }

/* ---------- COOKIE ---------- */
.cookie {
  position: fixed;
  z-index: 850;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  translate: -50% 0;
  width: min(calc(100% - 32px), 680px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 14px 14px 22px;
  border-radius: 20px;
  background: rgba(22, 19, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  font-size: var(--fs-small);
  color: var(--fg-2);
}
.cookie a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn { flex-shrink: 0; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* quote block */
.quote { overflow-x: clip; }
.quote__glow { width: 70vw; height: 70vw; right: -30vw; top: -20vw; }
.quote blockquote { position: relative; z-index: 1; }
.quote blockquote p { font-size: var(--fs-l); max-width: 24ch; }
.quote__mark {
  display: block;
  font-family: var(--serif);
  font-size: clamp(6rem, 14vw, 14rem);
  line-height: 0.6;
  color: var(--signal);
  height: 0.45em;
}
.quote__en { position: relative; z-index: 1; margin-top: 40px; color: var(--fg-3); max-width: 60ch; font-size: var(--fs-small); }

/* dossier list (investigazioni) */
.dossier { counter-reset: none; }
.dossier__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 90px); }
.dossier__head h2 { grid-column: 1 / span 7; }
.dossier__head p { grid-column: 9 / span 4; color: var(--fg-2); }
.dossier__list { position: relative; }
.case {
  position: relative;
  border-top: 1px solid var(--line);
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case__btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 2.8vw, 40px) 0;
  text-align: left;
}
.case__title {
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 5.2rem);
  line-height: 0.92;
  transition: color 0.4s, transform 0.7s var(--ease-out);
}
.case__btn:hover .case__title { transform: translateX(14px); }
.case.is-open .case__title { color: var(--ember); }
.case__icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.4s, box-shadow 0.4s, transform 0.6s var(--ease-out);
}
.case__icon::before, .case__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  background: currentColor;
  transition: transform 0.6s var(--ease-out);
}
.case__icon::after { transform: rotate(90deg); }
.case.is-open .case__icon { background: var(--signal); box-shadow: none; transform: rotate(180deg); }
.case.is-open .case__icon::after { transform: rotate(0); }
.case__panel { overflow: hidden; height: 0; }
.case__panel-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: clamp(28px, 3.6vw, 56px);
}
.case__panel-inner .case__text { grid-column: 1 / span 6; color: var(--fg-2); font-size: 1.1rem; }
.case__panel-inner .case__en { grid-column: 8 / span 5; color: var(--fg-3); font-size: var(--fs-small); font-style: italic; }
.case__preview {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  width: clamp(220px, 22vw, 380px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.case__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.case__preview img.is-on { opacity: 1; }

/* stacked service cards (sicurezza) */
.cards__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 90px); }
.cards__head h2 { grid-column: 1 / span 7; }
.cards__head p { grid-column: 9 / span 4; color: var(--fg-2); }
.scard {
  position: sticky;
  top: calc(var(--header-h) + 12px + var(--i, 0) * 18px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(76svh, 720px);
  margin-bottom: 4vh;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 -24px 60px -30px rgba(30, 20, 20, 0.35), inset 0 0 0 1px var(--line);
  transform-origin: 50% 0;
}
.scard:last-child { margin-bottom: 0; }
.scard__media { position: relative; overflow: hidden; min-height: 280px; }
.scard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.04); }
.scard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, var(--surface)); }
.scard__body { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(26px, 3.4vw, 56px); }
.scard__body h3 { font-size: clamp(2.4rem, 5vw, 5rem); }
.scard__body p { color: var(--fg-2); max-width: 48ch; }
.scard__en { margin-top: 18px; color: var(--fg-3) !important; font-size: var(--fs-small); font-style: italic; }
.scard__norm {
  align-self: flex-start;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: var(--fs-micro);
  font-weight: 600;
  font-variation-settings: 'wdth' 88;
  background: rgba(200, 22, 29, 0.1);
  color: var(--signal);
  box-shadow: inset 0 0 0 1px rgba(200, 22, 29, 0.3);
}

/* draggable gallery strip */
.strip { overflow-x: clip; }
.strip__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 64px); flex-wrap: wrap; }
.strip__head p { color: var(--fg-2); font-size: var(--fs-small); }
.strip__viewport { overflow: hidden; cursor: grab; touch-action: pan-y; padding-inline: var(--gutter); }
.strip__viewport.is-dragging { cursor: grabbing; }
.strip__track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; will-change: transform; }
.shot { position: relative; flex: 0 0 auto; width: clamp(260px, 30vw, 520px); user-select: none; }
.shot__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.shot__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: grayscale(0.6) contrast(1.06) brightness(0.85); transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.shot:hover .shot__img img { filter: none; transform: scale(1.04); }
.shot figcaption { margin-top: 14px; font-size: var(--fs-small); color: var(--fg-2); display: flex; justify-content: space-between; gap: 12px; }
.shot figcaption b { color: var(--fg); font-weight: 600; }

/* CTA band */
.cta-band { overflow-x: clip; }
.cta-band__glow { width: 80vw; height: 80vw; right: -20vw; top: -10vw; }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 36px; }
.cta-band .display { max-width: 12ch; }
.cta-band p { color: var(--fg-2); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* steps (accademia) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 380px;
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--r-card);
  background: linear-gradient(170deg, rgba(243, 239, 234, 0.07), rgba(243, 239, 234, 0.015));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  font-size: clamp(5rem, 8vw, 8rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 234, 0.35);
}
.step h3 { margin-top: auto; }
.step p { color: var(--fg-2); }
.step .link-arrow { margin-top: 6px; color: var(--ember); }

.facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.facts__text { grid-column: 1 / span 6; }
.facts__aside { grid-column: 8 / span 5; display: grid; gap: 18px; align-content: start; }
.fact {
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}
.fact b { display: block; font-weight: 700; font-variation-settings: 'wdth' 80; font-size: 1.2rem; margin-bottom: 6px; }

/* contacts page */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ccard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.ccard h2 { font-size: var(--fs-micro); font-weight: 600; color: var(--fg-3); letter-spacing: 0.02em; font-variation-settings: 'wdth' 90; }
.ccard address, .ccard ul { font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.4; font-weight: 500; font-variation-settings: 'wdth' 85; }
.ccard ul { display: grid; gap: 10px; }
.ccard li { display: grid; }
.ccard li span { font-size: var(--fs-small); color: var(--fg-3); font-weight: 400; }
.ccard a:hover { color: var(--ember); }
.ccard .link-arrow { font-size: var(--fs-small); color: var(--fg-2); }
.brochure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 64px);
  border-radius: var(--r-card);
  background: var(--ink);
  color: var(--fg);
  overflow: hidden;
  position: relative;
}
.brochure p { color: var(--fg-2); margin-top: 10px; }

/* legal pages */
.legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.legal__toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; font-size: var(--fs-small); }
.legal__toc ol { display: grid; gap: 8px; color: var(--fg-2); }
.legal__toc a:hover { color: var(--fg); }
.legal__body { grid-column: 5 / span 7; color: var(--fg-2); }
.legal__body h2 { color: var(--fg); font-size: var(--fs-s); font-weight: 700; font-variation-settings: 'wdth' 80; line-height: 1.15; margin: 2.4em 0 0.8em; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body h3 { color: var(--fg); font-size: 1.05rem; font-weight: 600; margin: 1.8em 0 0.5em; }
.legal__body p + p { margin-top: 1em; }
.legal__body ul { display: grid; gap: 10px; margin: 1em 0; }
.legal__body li { padding-left: 22px; position: relative; }
.legal__body li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.legal__body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.legal__meta { color: var(--fg-3); font-size: var(--fs-small); }
.legal table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: var(--fs-small); }
.legal th, .legal td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--fg); font-weight: 600; }

/* reveal media: images slowly come into light */
[data-light] { --light: 0; }
[data-light] img { filter: grayscale(calc(1 - var(--light))) brightness(calc(0.55 + var(--light) * 0.4)) contrast(1.06); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand__badge { width: 44px; height: 44px; }
  .brand__name { font-size: 0.8rem; }
  .hero__content, .page-hero .hero__content { --title-w: calc(100vw - 2 * var(--gutter)); grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; }
  .hero__title { grid-row: 1; }
  .hero__aside { grid-column: 1; grid-row: 2; }
  .hero__foot { grid-row: 3; }
  .hero__index { display: none; }
  .about__intro, .about__body, .about__claim, .pillars, .academy__grid, .trust__grid, .contact__grid,
  .dossier__head, .cards__head, .facts, .legal { grid-template-columns: minmax(0, 1fr); }
  .about__intro > *, .about__body > *, .about__claim > *, .pillars > *, .academy__grid > *, .trust__grid > *,
  .contact__grid > *, .dossier__head > *, .cards__head > *, .facts > *, .legal > * { grid-column: 1 / -1 !important; }
  .about__statement { max-width: none; }
  .pillar:nth-child(2) { margin-top: 0; }
  .contact__head { position: relative; top: 0; }
  .hs__pin { position: relative; height: auto; padding-block: 72px 56px; }
  .hs__track { align-items: stretch; }
  .hs__track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; transform: none !important; }
  .hs__track::-webkit-scrollbar { display: none; }
  .hs__intro { position: static; translate: none; width: auto; padding: 0 var(--gutter) 28px; transform: none !important; }
  .hs:not(.hs--gallery) .hs__track { padding-left: var(--gutter); }
  .hs__panel { width: 82vw; height: 60svh; max-height: 500px; min-height: 420px; scroll-snap-align: center; }
  .hs__copy { gap: 12px; }
  .hs__progress { display: none; }
  .scard { position: relative; top: 0; grid-template-columns: 1fr; grid-template-rows: 34svh auto; min-height: 0; margin-bottom: 16px; }
  .hero__veil { background: linear-gradient(to top, rgba(14, 12, 13, 0.94) 0%, rgba(14, 12, 13, 0.78) 42%, rgba(14, 12, 13, 0.2) 72%, transparent 85%), linear-gradient(to bottom, rgba(14, 12, 13, 0.7), transparent 18%); }
  .cookie { gap: 12px; padding: 14px 16px; font-size: 0.8rem; }
  .scard__media::after { background: linear-gradient(to bottom, transparent 70%, var(--surface)); }
  .steps, .contact-cards { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice { grid-template-columns: auto 1fr; }
  .notice .btn { grid-column: 1 / -1; justify-self: start; }
  .legal__toc { position: relative; top: 0; }
  .brochure { grid-template-columns: 1fr; }
  .tunnel__item { --w: 52vw !important; }
  .tunnel__hud { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 560px) {
  .brand__name { display: none; }
  .form { grid-template-columns: 1fr; }
  .choice__opts { grid-template-columns: 1fr; gap: 10px; }
  .client-row { grid-template-columns: 1fr; gap: 28px; }
  .client-row > .client { min-height: 170px; }
  .contact__direct a { flex-wrap: wrap; gap: 2px 16px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: flex-start; }
  .case__panel-inner { grid-template-columns: 1fr; }
  .case__panel-inner > * { grid-column: 1 / -1 !important; }
  .case__icon { width: 44px; height: 44px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .about__statement .w { opacity: 1 !important; }
}

/* ghost button on light sheets */
.btn--on-paper { --btn-fg: var(--ink); --btn-bg: rgba(14, 12, 13, 0.04); box-shadow: inset 0 0 0 1px rgba(14, 12, 13, 0.22); }
.btn--on-paper:hover { --btn-bg: rgba(14, 12, 13, 0.08); }

/* plain heroes (legal) and 404 */
.page-hero--plain { min-height: 74svh; overflow: hidden; }
.page-hero--plain .hero__content { min-height: 74svh; }
.page-404__hero, .page-404__hero .hero__content { min-height: 100svh; }

/* ---------- horizontal gallery (scroll-driven slides) ---------- */
.hs--gallery .hs__pin { justify-content: center; gap: clamp(28px, 4vh, 56px); }
.hs__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.hs__head p { color: var(--fg-2); max-width: 40ch; font-size: var(--fs-small); }
.hs--gallery .hs__track { align-items: flex-start; perspective: none; padding-inline: var(--gutter) 16vw; }
.hs--gallery .shot { width: clamp(280px, 34vw, 620px); }
.hs--gallery .shot__img { aspect-ratio: 4 / 3; }
.hs--gallery .shot__img img { filter: grayscale(0.25) contrast(1.04); transition: filter 0.8s var(--ease-out); }
.hs--gallery .shot:hover .shot__img img { filter: none; }
.hs--gallery .shot:nth-child(even) { margin-top: clamp(24px, 6vh, 80px); }
.hs--gallery .hs__progress { position: relative; inset: auto; margin-inline: var(--gutter); }
@media (max-width: 900px) {
  .hs--gallery .shot { width: 78vw; scroll-snap-align: center; }
  .hs--gallery .shot:nth-child(even) { margin-top: 0; }
  .hs__head { padding-bottom: 8px; }
}

/* lights are softer on paper */
html[data-scheme='light'] .glow--signal { opacity: 0.45; }
html[data-scheme='light'] .glow--bone { display: none; }
html[data-scheme='light'] .about__statement .w { opacity: 0.18; }

/* ---------- touch carousels: visible affordance ---------- */
.swipe { display: none; }
@media (max-width: 900px) {
  .swipe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px var(--gutter) 0;
  }
  .swipe__dots { display: flex; gap: 6px; }
  .swipe__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 99px;
    background: var(--line-strong);
    transition: width 0.4s var(--ease-out), background-color 0.3s;
  }
  .swipe__dots button[aria-current='true'] { width: 26px; background: var(--signal); }
  .swipe__hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-small);
    font-weight: 600;
    font-variation-settings: 'wdth' 88;
    color: var(--fg-2);
    transition: opacity 0.4s;
  }
  .swipe__hint svg { width: 22px; height: 22px; animation: swipe-nudge 1.6s var(--ease-in-out) infinite; }
  .swipe.is-used .swipe__hint { opacity: 0.35; }
  .swipe.is-used .swipe__hint svg { animation: none; }
  @keyframes swipe-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
  }
  .hs__track { scroll-behavior: smooth; overscroll-behavior-x: contain; }
  .hs__panel { width: 84vw; }
  .hs--gallery .hs__progress, .hs__progress { display: none; }
}

/* lighter rendering on touch devices */
@media (hover: none), (pointer: coarse) {
  body::after { display: none; }
  .hs__go, .menu-toggle, .btn--ghost, .form-card, .cookie { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
