/* =========================================================
   M&D S.r.l. — Prototipo restyle 2026
   Design system: "dentro la galleria"
   ========================================================= */

:root {
  --bg: #0a0b0d;
  --bg-2: #101215;
  --bg-3: #171a1e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --fg: #f3f2ee;
  --fg-2: #b8bbc1;
  --fg-3: #7b8088;
  --red: #e3241b;
  --red-2: #ff4136;
  --concrete: #9a9ea4;
  --paper: #ecebe6;
  --paper-2: #dfded8;
  --ink: #111215;
  --ink-2: #4a4d53;
  --membrane: #39c29a;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Grid lines (fixed background) ---------- */
.gridlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.gridlines span { border-left: 1px solid var(--line); }
.gridlines span:last-child { border-right: 1px solid var(--line); }
@media (max-width: 760px) {
  .gridlines { grid-template-columns: repeat(2, 1fr); }
  .gridlines span:nth-child(n+3) { display: none; }
  .gridlines span:nth-child(2) { border-right: 1px solid var(--line); }
}

main, footer { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 110px) 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .eyebrow { color: var(--ink-2); }
.section--dark2 { background: var(--bg-2); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 24px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.eyebrow--plain::before { display: none; }

.h-mega {
  font-size: clamp(44px, 9vw, 150px);
  line-height: .9;
  letter-spacing: -.03em;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  margin: 0;
}
.h-1 {
  font-size: clamp(38px, 6vw, 92px);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 .4em;
}
.h-2 {
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 .5em;
}
.h-3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -.015em;
  font-weight: 650;
  margin: 0 0 .5em;
}
.lead {
  font-size: clamp(19px, 1.7vw, 26px);
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 46ch;
  font-weight: 400;
}
.section--paper .lead { color: var(--ink-2); }
.muted { color: var(--fg-3); }
.red { color: var(--red); }
.mono { font-family: var(--f-mono); }
p { margin: 0 0 1em; }
.prose p { color: var(--fg-2); max-width: 64ch; }
.section--paper .prose p { color: var(--ink-2); }

/* Split-line reveal */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .08s; }
.split-line:nth-child(3) > span { transition-delay: .16s; }
.split-line:nth-child(4) > span { transition-delay: .24s; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 10px 0 26px;
  border-radius: 999px;
  background: var(--red); color: #fff;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, transform .3s var(--ease);
  white-space: nowrap;
}
.btn .btn__ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: grid; place-items: center;
  transition: transform .4s var(--ease), background .3s;
}
.btn:hover { background: var(--red-2); }
.btn:hover .btn__ico { transform: rotate(-45deg); background: rgba(255, 255, 255, .26); }
.btn--ghost { background: transparent; border: 1px solid var(--line-2); color: var(--fg); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); }
.btn--ghost .btn__ico { background: rgba(255, 255, 255, .08); }
.section--paper .btn--ghost { color: var(--ink); border-color: rgba(0, 0, 0, .2); }
.section--paper .btn--ghost:hover { background: rgba(0, 0, 0, .05); }
.btn--sm { height: 46px; padding: 0 8px 0 20px; font-size: 12px; }
.btn--sm .btn__ico { width: 30px; height: 30px; }

.link-arrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; color: var(--fg);
}
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background .4s, backdrop-filter .4s, transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(10, 11, 13, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__in {
  height: 100%; display: flex; align-items: center; gap: 28px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo svg { width: 46px; height: 46px; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo__sub { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px;
  font-size: 14.5px; font-weight: 500; color: var(--fg-2); white-space: nowrap;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__tools { display: flex; align-items: center; gap: 10px; }
.wb-link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg); transition: background .3s, border-color .3s;
}
.wb-link:hover { background: var(--red); border-color: var(--red); }
.wb-link svg { width: 14px; height: 14px; }
.lang {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; height: 38px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
}
.lang a { display: grid; place-items: center; padding: 0 11px; color: var(--fg-3); transition: color .2s, background .2s; }
.lang a[aria-current="true"] { background: var(--fg); color: var(--ink); }
.lang a:not([aria-current="true"]):hover { color: var(--fg); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path .8s var(--ease-in-out);
  overflow-y: auto;
}
.menu-open .mnav { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mnav a.mnav__item {
  font-size: clamp(30px, 8vw, 44px); font-weight: 700; letter-spacing: -.02em;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.mnav a.mnav__item span { font-family: var(--f-mono); font-size: 12px; color: var(--fg-3); letter-spacing: .1em; }
.mnav__foot { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (max-width: 1320px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__tools { margin-left: auto; }
}
@media (max-width: 560px) {
  .wb-link span { display: none; }
  .wb-link { padding: 0 11px; }
  .logo__sub { display: none; }
}

/* ---------- HERO: tunnel zoom ---------- */
.hero-tunnel { position: relative; height: 260vh; }
.hero-tunnel__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-tunnel__media { position: absolute; inset: 0; }
.hero-tunnel__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transform-origin: 50% 55%; will-change: transform; }
.hero-tunnel__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,.1) 35%, rgba(10,11,13,.25) 65%, rgba(10,11,13,.9) 100%);
}
.hero-tunnel__mask { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; transform-origin: 50% 57%; pointer-events: none; }
.hero-tunnel__mask .tm path { fill: var(--bg); }
.hero-tunnel .split-line > span { transform: none; animation: lineUp 1.3s var(--ease) .25s both; }
.hero-tunnel .split-line:nth-child(2) > span { animation-delay: .37s; }
.hero-tunnel .split-line:nth-child(3) > span { animation-delay: .49s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero-tunnel__ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transform-origin: 50% 57%; will-change: transform, opacity; }

.hero-tunnel__intro {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 3vh) var(--gutter) 4vh;
  max-width: var(--maxw); margin: 0 auto;
  pointer-events: none;
}
.hero-tunnel__intro .h-mega { font-size: clamp(40px, 7.6vw, 132px); }
.hero-tunnel__intro .h-mega .row-r { display: block; text-align: right; }
.hero-tunnel__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--fg), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--red-2); animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 110%; } }

.hero-tunnel__outro {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) 9vh;
  max-width: var(--maxw); margin: 0 auto;
  opacity: 0; visibility: hidden;
}
.hero-tunnel__outro .h-1 { max-width: 13ch; }
.hero-tunnel__outro .lead { color: var(--fg); opacity: .86; }
.hero-tunnel__outro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; width: 100%; }
.hero-tunnel__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px) {
  .hero-tunnel__outro-grid { grid-template-columns: 1fr; gap: 0; }
}

/* reduced motion / no JS fallback */
.no-motion .hero-tunnel { height: auto; }
.no-motion .hero-tunnel__pin { position: relative; height: 100svh; min-height: 640px; }
.no-motion .hero-tunnel__mask, .no-motion .hero-tunnel__ring, .no-motion .hero-tunnel__intro { display: none; }
.no-motion .hero-tunnel__outro { opacity: 1; visibility: visible; }
.no-motion .hero-tunnel__media img { transform: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--header-h) + 60px) 0 clamp(48px, 7vw, 96px); }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,.6) 0%, rgba(10,11,13,.2) 40%, rgba(10,11,13,.92) 100%); }
.page-hero .wrap { width: 100%; }
.page-hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.page-hero .h-1 { margin-bottom: 0; }
.page-hero--short { min-height: 62vh; min-height: 62svh; }
.breadcrumb { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--fg); }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Manifesto ---------- */
.manifesto { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.manifesto__text { font-size: clamp(28px, 3.6vw, 56px); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; margin: 0; }
.manifesto__text .w { opacity: .14; transition: opacity .4s; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__text em { font-style: normal; color: var(--red); }
.manifesto__side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
@media (max-width: 900px) { .manifesto { grid-template-columns: 1fr; } .manifesto__side { flex-direction: row; align-items: center; } }

.spin-badge { width: 150px; height: 150px; position: relative; flex-shrink: 0; }
.spin-badge svg.spin-badge__txt { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.spin-badge text { font-family: var(--f-mono); font-size: 10.4px; letter-spacing: .32em; fill: var(--red); text-transform: uppercase; }
.spin-badge__core { position: absolute; inset: 38px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.fact { padding: 36px 24px 8px 0; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact + .fact { padding-left: 24px; }
.fact__n { font-size: clamp(52px, 6.4vw, 104px); font-weight: 800; line-height: .9; letter-spacing: -.04em; font-variation-settings: "wdth" 112; display: block; }
.fact__n sup { font-size: .38em; color: var(--red); vertical-align: top; position: relative; top: .25em; margin-left: 4px; }
.fact__l { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); margin-top: 18px; display: block; max-width: 22ch; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Horizontal services ---------- */
.hscroll { position: relative; }
.hscroll__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 4vh; }
.hscroll__head .h-2 { margin: 0; }
.hscroll__progress { width: 220px; height: 2px; background: var(--line-2); position: relative; flex-shrink: 0; }
.hscroll__progress i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.hscroll__track { display: flex; gap: 22px; padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); padding-right: var(--gutter); will-change: transform; }

.svc-card {
  position: relative; flex: 0 0 auto;
  width: clamp(300px, 34vw, 520px); height: min(64vh, 640px);
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3);
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.86) 100%); }
.svc-card:hover img { transform: scale(1); }
.svc-card__n { position: absolute; top: 22px; left: 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; color: var(--fg); background: rgba(10,11,13,.5); backdrop-filter: blur(6px); padding: 7px 12px; border-radius: 999px; }
.svc-card__body { padding: 28px; }
.svc-card__body .h-3 { font-size: clamp(26px, 2.4vw, 36px); margin-bottom: .35em; }
.svc-card__body p { color: var(--fg-2); font-size: 15.5px; max-width: 38ch; margin-bottom: 18px; }
.svc-card--intro { background: var(--red); width: clamp(280px, 26vw, 400px); padding: 30px; justify-content: space-between; }
.svc-card--intro::before { display: none; }
.svc-card--intro p { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.45; }

.no-motion .hscroll__pin, .is-mobile .hscroll__pin { position: relative; height: auto; padding: clamp(80px, 12vw, 160px) 0; }
.no-motion .hscroll__track, .is-mobile .hscroll__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
.no-motion .hscroll__track::-webkit-scrollbar, .is-mobile .hscroll__track::-webkit-scrollbar { display: none; }
.no-motion .svc-card, .is-mobile .svc-card { scroll-snap-align: start; }
.is-mobile .svc-card { width: 82vw; height: 520px; }
.is-mobile .hscroll__progress { display: none; }

/* ---------- Tunnel section (interactive) ---------- */
.xsec { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.xsec__fig { position: relative; aspect-ratio: 1 / .92; }
.xsec__fig svg { width: 100%; height: 100%; overflow: visible; }
.xsec .layer { transition: opacity .5s, filter .5s; }
.xsec.has-active .layer { opacity: .18; }
.xsec.has-active .layer.on { opacity: 1; filter: drop-shadow(0 0 14px rgba(227,36,27,.25)); }
.xsec .draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.2s var(--ease); }
.xsec.is-in .draw { stroke-dashoffset: 0; }
.xsec .fadein { opacity: 0; transition: opacity 1.2s var(--ease) 1.2s; }
.xsec.is-in .fadein { opacity: 1; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--fg);
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  display: grid; place-items: center;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
  z-index: 2;
}
.hotspot::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); animation: ping 2.4s var(--ease) infinite; }
.hotspot:hover, .hotspot.on { background: var(--red); border-color: var(--red); transform: translate(-50%, -50%) scale(1.12); }
.hotspot.on::before { border-color: var(--red); }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

.xsec__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.xsec__item { border-bottom: 1px solid var(--line); }
.xsec__btn { width: 100%; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 12px; padding: 20px 0; text-align: left; }
.xsec__btn .n { font-family: var(--f-mono); font-size: 12px; color: var(--fg-3); }
.xsec__btn .t { font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.01em; transition: color .3s; }
.xsec__btn .p { width: 14px; height: 14px; position: relative; justify-self: end; }
.xsec__btn .p::before, .xsec__btn .p::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.xsec__btn .p::after { transform: rotate(90deg); }
.xsec__item.on .xsec__btn .t { color: var(--red-2); }
.xsec__item.on .xsec__btn .n { color: var(--red-2); }
.xsec__item.on .xsec__btn .p::after { transform: rotate(0); }
.xsec__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.xsec__panel > div { overflow: hidden; }
.xsec__panel p { color: var(--fg-2); padding: 0 0 22px 56px; margin: 0; max-width: 52ch; }
.xsec__item.on .xsec__panel { grid-template-rows: 1fr; }
@media (max-width: 980px) { .xsec { grid-template-columns: 1fr; } }

/* ---------- Arch mask images ---------- */
.arch { clip-path: url(#arch-clip); -webkit-clip-path: url(#arch-clip); }
.arch-frame { position: relative; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Split feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; aspect-ratio: 4 / 5; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.feature__media.arch img { border-radius: 0; }
.feature__tag { position: absolute; left: 20px; bottom: 20px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; background: rgba(10,11,13,.7); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 999px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature--rev .feature__media { order: 0; } }

/* ---------- Tech cards ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tech-card { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease); }
.tech-card:hover { border-color: rgba(227,36,27,.6); transform: translateY(-6px); }
.tech-card__media { aspect-ratio: 16 / 11; overflow: hidden; }
.tech-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tech-card:hover .tech-card__media img { transform: scale(1.05); }
.tech-card__body { padding: 26px 26px 30px; }
.tech-card__body p { color: var(--fg-2); font-size: 15.5px; margin: 0; }
.pill { display: inline-block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-2); border: 1px solid rgba(227,36,27,.45); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
@media (max-width: 980px) { .tech-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { columns: 3 320px; column-gap: 18px; }
.gallery__item { break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--bg-3); display: block; width: 100%; }
.gallery__item img { width: 100%; transition: transform 1s var(--ease), filter .6s; filter: saturate(.92); }
.gallery__item:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; opacity: 0; transform: translateY(10px); transition: .5s var(--ease); text-align: left; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
.gallery__item.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); transition: .25s; }
.filter:hover { color: var(--fg); border-color: var(--fg-3); }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }

/* Strip gallery (home) */
.strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.strip__a { grid-column: 1 / span 5; aspect-ratio: 4/5; }
.strip__b { grid-column: 6 / span 4; aspect-ratio: 3/4; margin-top: 16vh; }
.strip__c { grid-column: 10 / span 3; aspect-ratio: 3/4; margin-top: 4vh; }
.strip figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.strip figure.arch { border-radius: 0; }
.strip img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.strip figcaption { position: absolute; left: 14px; bottom: 14px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; background: rgba(10,11,13,.65); backdrop-filter: blur(6px); padding: 6px 11px; border-radius: 999px; }
@media (max-width: 900px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip__a { grid-column: 1 / -1; aspect-ratio: 4/3; }
  .strip__b { grid-column: 1; margin-top: 0; }
  .strip__c { grid-column: 2; margin-top: 8vh; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,6,7,.94); display: grid; place-items: center; padding: 60px var(--gutter); opacity: 0; visibility: hidden; transition: .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 10px; }
.lightbox__cap { margin-top: 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); text-align: center; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(10,11,13,.6); }
.lightbox__btn:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Rental split ---------- */
.hire { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hire__card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(26px, 3vw, 44px); isolation: isolate; }
.hire__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.hire__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.85)); }
.hire__card:hover img { transform: scale(1.05); }
.hire__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red-2); margin-bottom: 10px; }
.hire__card .h-2 { margin-bottom: .3em; }
.hire__card p { color: var(--fg-2); max-width: 40ch; }
@media (max-width: 900px) { .hire { grid-template-columns: 1fr; } .hire__card { min-height: 440px; } }

/* ---------- Clients marquee ---------- */
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__logo { width: 200px; height: 104px; flex-shrink: 0; background: #fff; border-radius: 14px; display: grid; place-items: center; padding: 18px 26px; border: 1px solid rgba(0,0,0,.06); }
.marquee__logo img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; transition: .4s; }
.marquee__logo:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Certifications ---------- */
.cert-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cert-strip a { background: #fff; border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; padding: 16px; border: 1px solid rgba(0,0,0,.07); transition: transform .4s var(--ease), box-shadow .4s; }
.cert-strip a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
.cert-strip img { max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 900px) { .cert-strip { grid-template-columns: repeat(3, 1fr); } }

.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.doc { display: grid; grid-template-columns: 112px 1fr; gap: 24px; padding: 26px; border-radius: var(--radius); background: #fff; color: var(--ink); border: 1px solid rgba(0,0,0,.07); transition: transform .4s var(--ease), box-shadow .4s; }
.doc:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.4); }
.doc__badge { width: 112px; height: 112px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); padding: 10px; }
.doc__badge img { max-height: 100%; width: auto; object-fit: contain; }
.doc__badge--txt { font-family: var(--f-mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-align: center; color: var(--ink); line-height: 1.3; }
.doc__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.doc h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 10px; }
.doc p { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.doc dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13.5px; margin: 0 0 18px; }
.doc dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8a8d93; padding-top: 2px; }
.doc dd { margin: 0; color: var(--ink); font-weight: 500; }
.doc__dl { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--red); padding-bottom: 3px; }
.doc__dl small { color: #8a8d93; letter-spacing: .06em; }
.doc__note { font-size: 12.5px; color: #8a8d93; font-style: italic; margin-top: 10px; }
@media (max-width: 980px) { .docs { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .doc { grid-template-columns: 1fr; } }

/* ---------- Lists / services detail ---------- */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; padding: clamp(70px, 9vw, 130px) 0; border-top: 1px solid var(--line); }
.svc-detail:first-child { border-top: 0; }
.svc-detail__media { position: sticky; top: calc(var(--header-h) + 30px); aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__n { font-family: var(--f-mono); font-size: 13px; color: var(--red-2); letter-spacing: .16em; margin-bottom: 18px; display: block; }
.checklist { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.checklist li { padding: 15px 0 15px 34px; border-bottom: 1px solid var(--line); position: relative; color: var(--fg-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 23px; width: 18px; height: 2px; background: var(--red); }
.section--paper .checklist { border-color: rgba(0,0,0,.1); }
.section--paper .checklist li { border-color: rgba(0,0,0,.1); color: var(--ink-2); }
.faq-mini { margin-top: 10px; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.faq-mini h3 { font-size: 16px; margin: 0 0 8px; }
.faq-mini p { font-size: 15px; color: var(--fg-2); margin: 0; }
@media (max-width: 900px) { .svc-detail { grid-template-columns: 1fr; } .svc-detail__media { position: relative; top: 0; aspect-ratio: 4/3; } }

/* fleet grid */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.fleet__item { padding: 26px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: background .35s; }
.fleet__item:hover { background: var(--bg-2); }
.fleet__item .n { font-family: var(--f-mono); font-size: 11.5px; color: var(--fg-3); letter-spacing: .14em; }
.fleet__item h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.fleet__item--atex { background: linear-gradient(135deg, rgba(227,36,27,.18), transparent 60%); }
.fleet__item--atex .n { color: var(--red-2); }
@media (max-width: 980px) { .fleet { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fleet { grid-template-columns: 1fr; } }

/* timeline */
.timeline { position: relative; display: grid; gap: 0; border-left: 1px solid var(--line-2); margin-left: 8px; }
.tl { position: relative; padding: 0 0 64px 44px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--red); }
.tl__y { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; color: var(--red-2); margin-bottom: 8px; display: block; }
.tl h3 { font-size: clamp(22px, 2.2vw, 32px); margin: 0 0 10px; letter-spacing: -.015em; }
.tl p { color: var(--fg-2); max-width: 56ch; margin: 0; }

/* values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(0,0,0,.12); }
.value { padding: 32px 24px 8px 0; }
.value + .value { padding-left: 24px; border-left: 1px solid rgba(0,0,0,.1); }
.value .n { font-family: var(--f-mono); font-size: 12px; color: var(--red); letter-spacing: .14em; }
.value h3 { font-size: 26px; margin: 14px 0 10px; letter-spacing: -.015em; }
.value p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } .value:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid rgba(0,0,0,.1); } }

/* group */
.group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.group__item { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg-2); }
.group__item--lead { background: var(--red); border-color: var(--red); }
.group__item .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.group__item--lead .k { color: rgba(255,255,255,.75); }
.group__item h3 { font-size: 18px; font-weight: 600; margin: 16px 0 0; line-height: 1.25; }
@media (max-width: 980px) { .group { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.office { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 250px; transition: border-color .35s, background .35s; background: rgba(10,11,13,.4); }
.office:hover { border-color: var(--red); background: var(--bg-2); }
.office__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-2); }
.office h3 { font-size: 24px; margin: 0; letter-spacing: -.015em; }
.office address { font-style: normal; color: var(--fg-2); font-size: 15.5px; line-height: 1.5; }
.office__geo { margin-top: auto; font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.office__geo a { color: var(--fg); border-bottom: 1px solid var(--line-2); }
.office__geo a:hover { border-color: var(--red); }
@media (max-width: 1100px) { .offices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offices { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px;
  background: #15181c; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(22px, 3.2vw, 44px);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.8);
}
.section--dark2 .form { background: #1a1d22; }
.form__title { grid-column: 1 / -1; font-size: 22px; font-weight: 650; letter-spacing: -.01em; margin: 0 0 4px; }
.form__hint { grid-column: 1 / -1; font-size: 14px; color: var(--fg-3); margin: -10px 0 4px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; background: #0d0f12; color: var(--fg);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  padding: 14px 16px; font: inherit; font-size: 16.5px; line-height: 1.4;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #6c7178; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-2); background: #111317; box-shadow: 0 0 0 4px rgba(227,36,27,.18); }
.field select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: #15181c; color: var(--fg); }
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] { padding: 10px; font-size: 15px; color: var(--fg-2); }
.field input[type="file"]::file-selector-button { margin-right: 14px; border: 0; border-radius: 8px; background: var(--fg); color: var(--ink); padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.radios legend { margin-bottom: 10px; width: 100%; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; }
.radio span { display: inline-flex; height: 46px; align-items: center; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: #0d0f12; font-size: 15px; cursor: pointer; transition: .25s; }
.radio input:checked + span { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.radio input:focus-visible + span { outline: 2px solid var(--red-2); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.check input { margin-top: 2px; accent-color: var(--red); width: 20px; height: 20px; flex-shrink: 0; }
.check a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.form__ok { grid-column: 1 / -1; padding: 18px 20px; border-radius: 12px; background: rgba(57,194,154,.12); border: 1px solid rgba(57,194,154,.4); color: var(--fg); display: none; }
.form.is-sent .form__ok { display: block; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 110px); align-items: start; }
.contact-big { font-size: clamp(26px, 3vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; display: block; transition: color .3s; word-break: break-word; }
.contact-big:hover { color: var(--red-2); }
.contact-block { padding: 26px 0; border-top: 1px solid var(--line); }
.contact-block .eyebrow { margin-bottom: 12px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Whistleblowing ---------- */
.wb-hero-card { border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(140deg, rgba(227,36,27,.16), rgba(16,18,21,.6) 55%); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.wb-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.wb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.wb-step { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.wb-step img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: #fff; }
.wb-step div { padding: 20px; }
.wb-step .n { font-family: var(--f-mono); font-size: 11px; color: var(--red-2); letter-spacing: .16em; }
.wb-step h3 { font-size: 18px; margin: 10px 0 8px; }
.wb-step p { font-size: 14.5px; color: var(--fg-2); margin: 0; }
.acc { border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--f-mono); color: var(--red-2); font-size: 22px; line-height: 1; transition: transform .3s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details > div { padding: 0 0 24px; color: var(--fg-2); max-width: 72ch; }
.acc details > div p { color: var(--fg-2); }
@media (max-width: 980px) { .wb-hero-card { grid-template-columns: 1fr; } .wb-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wb-steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 70vh; display: flex; align-items: center; isolation: isolate; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 50%, rgba(10,11,13,.35), rgba(10,11,13,.88)); }
.cta-band__in { padding: clamp(32px, 6vw, 96px); max-width: 980px; }

/* ---------- Footer ---------- */
.footer { background: #060708; border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 110px) 0 28px; position: relative; z-index: 2; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer h4.mt-m { margin-top: 40px; }
.footer h4 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 20px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--fg-2); transition: color .2s; }
.footer a:hover { color: var(--fg); }
.footer address { font-style: normal; color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.footer address b { color: var(--fg); font-weight: 600; display: block; font-size: 13px; font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.footer__addr { display: grid; gap: 16px; }
.footer__claim { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 22px 0 26px; max-width: 14ch; }
.footer__wb { margin-top: 26px; padding: 20px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); }
.footer__wb p { font-size: 14px; color: var(--fg-2); margin: 6px 0 14px; }
.footer__wb strong { font-size: 16px; }
.footer__wb-links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__certs { padding: 40px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.footer__certs-list { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.fcert { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 14px 8px 8px; transition: transform .3s var(--ease); }
.fcert:hover { transform: translateY(-3px); }
.fcert img { width: 50px; height: 50px; object-fit: contain; }
.fcert span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; }
.fcert span b { display: block; font-size: 12px; letter-spacing: .04em; }
.footer__bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--fg-3); }
.footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__bottom a { color: var(--fg-3); }
.footer__bottom a:hover { color: var(--fg); }
@media (max-width: 1000px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* Prototype ribbon */
.proto-note { position: fixed; left: 14px; bottom: 14px; z-index: 150; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; background: rgba(10,11,13,.85); border: 1px solid var(--line-2); color: var(--fg-2); padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.proto-note b { color: var(--red-2); font-weight: 600; }
.ph { background: rgba(255, 196, 0, .14); outline: 1px dashed rgba(255, 196, 0, .6); border-radius: 4px; padding: 0 4px; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 72px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
  .manifesto__text .w { opacity: 1; }
}

@media (max-width: 560px) {
  .hero-tunnel__meta > span:last-child { display: none; }
  .proto-note { font-size: 9.5px; padding: 6px 10px; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 140;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(16,18,21,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); color: var(--fg);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, background .3s, border-color .3s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); border-color: var(--red); }
.to-top svg.to-top__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--red-2); stroke-width: 2; stroke-linecap: round; }
.to-top:hover .to-top__ring circle { stroke: #fff; }
.to-top__arrow { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.to-top:hover .to-top__arrow { transform: translateY(-3px); }
.menu-open .to-top { opacity: 0; visibility: hidden; }

/* ---------- Legal text ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.015em; margin: 2.2em 0 .6em; line-height: 1.2; }
.legal > h2:first-child, .legal > h3:first-child { margin-top: 0; }
.legal h3 { font-size: 19px; margin: 1.8em 0 .5em; line-height: 1.25; }
.legal p, .legal li { color: var(--fg-2); font-size: 16.5px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.legal li { margin-bottom: .45em; }
.legal li p { margin: 0; }
.legal strong, .legal b { color: var(--fg); font-weight: 600; }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 2em; font-size: 14.5px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--fg-2); }
.legal th { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); font-weight: 500; white-space: nowrap; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.legal-meta span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); }
.legal-note { padding: 18px 20px; border-radius: 14px; border: 1px dashed rgba(255,196,0,.55); background: rgba(255,196,0,.07); color: var(--fg); font-size: 15px; margin: 0 0 36px; max-width: 860px; }
.legal-note p { margin: 0; color: var(--fg); }
.legal-note p + p { margin-top: 8px; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.legal-toc p { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-2); }
.legal-toc a { display: block; padding: 7px 0 7px 16px; font-size: 14px; color: var(--fg-3); margin-left: -1px; border-left: 2px solid transparent; transition: .2s; line-height: 1.35; }
.legal-toc a:hover { color: var(--fg); border-left-color: var(--red); }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 6vw, 90px); }
@media (max-width: 980px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }

.footer__bottom { padding-right: 76px; }
@media (max-width: 560px) { .footer__bottom { padding-right: 0; padding-bottom: 64px; } }

/* ---------- Background: registration crosses instead of grid lines ---------- */
.gridlines { display: none; }
:root {
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M7.5 0v15M0 7.5h15' stroke='%23ffffff' stroke-opacity='.32' stroke-width='1'/%3E%3C/svg%3E");
  --cross-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M7.5 0v15M0 7.5h15' stroke='%23111215' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E");
}
.section, .footer { position: relative; }
.section::before, .footer::before {
  content: ""; position: absolute; top: -7.5px; height: 15px; pointer-events: none; z-index: 2;
  left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  margin: 0 -7.5px;
  background-image: var(--cross), var(--cross), var(--cross), var(--cross), var(--cross);
  background-repeat: no-repeat;
  background-position: 0 0, 25% 0, 50% 0, 75% 0, 100% 0;
}
.section--paper::before { background-image: var(--cross-ink), var(--cross-ink), var(--cross-ink), var(--cross-ink), var(--cross-ink); }
@media (max-width: 760px) {
  .section::before, .footer::before { background-image: var(--cross), var(--cross), var(--cross); background-position: 0 0, 50% 0, 100% 0; }
  .section--paper::before { background-image: var(--cross-ink), var(--cross-ink), var(--cross-ink); }
}

/* ---------- Interactive site map ---------- */
.smap__counters { display: flex; gap: 34px; }
.smap__counters div { display: flex; flex-direction: column; }
.smap__counters b { font-size: clamp(40px, 4vw, 64px); font-weight: 800; line-height: .9; letter-spacing: -.03em; font-variation-settings: "wdth" 112; }
.smap__counters span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); margin-top: 10px; }
.smap { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
.smap__side { display: flex; flex-direction: column; gap: 18px; }
.smap__legend { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.smap__legend span { display: inline-flex; align-items: center; gap: 8px; }
.smap__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.smap__dot--on { background: var(--red-2); box-shadow: 0 0 0 4px rgba(255,65,54,.2); }
.smap__dot--done { background: var(--fg); }
.smap__dot--office { background: transparent; border: 2px solid var(--concrete); border-radius: 3px; }
.smap__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); max-height: 520px; overflow-y: auto; }
.smap__item { width: 100%; display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; text-align: left; padding: 16px 10px 16px 4px; border-bottom: 1px solid var(--line); transition: background .25s; border-radius: 8px; }
.smap__item .smap__dot { margin-top: 7px; grid-row: span 2; }
.smap__item-t { font-weight: 600; font-size: 16px; line-height: 1.3; }
.smap__item-p { font-size: 13px; color: var(--fg-3); margin-top: 3px; }
.smap__item:hover, .smap__item.on { background: var(--bg-2); }
.smap__item.on .smap__item-t { color: var(--red-2); }
.smap__note { font-size: 12.5px; color: var(--fg-3); margin: 0; }
.smap__stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); min-height: 640px; background: #0e1013; }
.smap__map { position: absolute; inset: 0; }
.smap__reset { position: absolute; left: 16px; bottom: 16px; z-index: 500; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(10,11,13,.82); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(8px); }
.smap__reset:hover { background: var(--red); border-color: var(--red); }
/* leaflet skin */
.smap .leaflet-container { background: #0e1013; font-family: var(--f-display); }
.smap .leaflet-control-zoom { border: 0 !important; margin: 16px !important; }
.smap .leaflet-control-zoom a { background: rgba(10,11,13,.85) !important; color: var(--fg) !important; border: 1px solid var(--line-2) !important; width: 38px !important; height: 38px !important; line-height: 36px !important; }
.smap .leaflet-control-zoom a:first-child { border-radius: 10px 10px 0 0 !important; }
.smap .leaflet-control-zoom a:last-child { border-radius: 0 0 10px 10px !important; border-top: 0 !important; }
.smap .leaflet-control-attribution { background: rgba(10,11,13,.7) !important; color: var(--fg-3) !important; font-size: 10px; }
.smap .leaflet-control-attribution a { color: var(--fg-2) !important; }
.smap .leaflet-tooltip.smap-tip { background: rgba(10,11,13,.92); color: var(--fg); border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; box-shadow: none; }
.smap .leaflet-tooltip.smap-tip::before { display: none; }
.smap-pin { position: relative; width: 34px; height: 34px; }
.smap-pin__core { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: #fff; background: var(--red); border: 2px solid #fff; box-shadow: 0 6px 18px -4px rgba(0,0,0,.7); transition: transform .3s var(--ease); }
.smap-pin--done .smap-pin__core { background: #f3f2ee; color: var(--ink); border-color: #0e1013; }
.smap-pin--on::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--red-2); animation: ping 2.2s var(--ease) infinite; }
.smap-pin:hover .smap-pin__core, .smap-pin.is-active .smap-pin__core { transform: scale(1.18); }
.smap-pin.is-active .smap-pin__core { box-shadow: 0 0 0 6px rgba(227,36,27,.35), 0 6px 18px -4px rgba(0,0,0,.7); }
.smap-office { width: 14px; height: 14px; border: 2px solid var(--concrete); background: #0e1013; border-radius: 3px; transform: rotate(45deg); }
/* card */
.smap__card { position: absolute; top: 16px; right: 16px; bottom: 16px; z-index: 600; width: min(380px, calc(100% - 32px)); background: rgba(16,18,21,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; animation: cardIn .5s var(--ease); }
.smap__card[hidden] { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.smap__card-media { position: relative; height: 170px; flex-shrink: 0; }
.smap__card-media img { width: 100%; height: 100%; object-fit: cover; }
.smap__card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(16,18,21,.95)); }
.smap__card-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(10,11,13,.75); border: 1px solid var(--line-2); display: grid; place-items: center; }
.smap__card-close:hover { background: var(--red); border-color: var(--red); }
.smap__card-demo { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: #ffc400; color: #111; padding: 5px 9px; border-radius: 999px; font-weight: 600; }
.smap__card-body { padding: 4px 22px 22px; overflow-y: auto; }
.smap__card-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); display: flex; justify-content: space-between; gap: 10px; }
.smap__card h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.015em; margin: 10px 0 6px; }
.smap__card-place { font-size: 14px; color: var(--fg-3); margin: 0 0 12px; }
.smap__card-work { font-size: 15px; color: var(--fg-2); margin: 0 0 18px; }
.smap__stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); margin-bottom: 18px; }
.smap__stat { padding: 14px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.smap__stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variation-settings: "wdth" 108; }
.smap__stat b small { font-size: 13px; font-weight: 600; color: var(--fg-2); margin-left: 3px; letter-spacing: 0; }
.smap__stat span { display: block; font-size: 12px; color: var(--fg-3); margin-top: 6px; line-height: 1.3; }
.smap__prog-h { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; }
.smap__prog { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.smap__prog i { display: block; height: 100%; background: var(--red); border-radius: 99px; width: 0; transition: width 1.2s var(--ease) .2s; }
.smap__prog--done i { background: var(--fg); }
@media (max-width: 980px) {
  .smap { grid-template-columns: 1fr; }
  .smap__side { order: 2; }
  .smap__list { max-height: none; }
  .smap__stage { min-height: 560px; }
  .smap__card { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 72%; }
  .smap__card-media { height: 120px; }
  .smap__counters { gap: 22px; }
}
