/* Meridiana Costruzioni Edili — stile
   Direzione: solidità tranquilla. Vedi DIREZIONE.md */

:root {
  --bg: #F2F0EB;
  --surface: #FFFFFF;
  --ink: #14171C;
  --ink-2: #5D626B;
  --line: rgba(20, 23, 28, .12);
  --accent: #2F7FC1;
  --stone: #C9B9A0;
  --night: #0E1115;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --logo: "Source Serif 4", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgba(20, 23, 28, .04), 0 12px 32px -12px rgba(20, 23, 28, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 12vw, 168px) 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.h-xl { font-size: clamp(40px, 6.4vw, 104px); line-height: .98; letter-spacing: -.035em; font-weight: 500; font-stretch: 92%; }
.h-lg { font-size: clamp(34px, 4.6vw, 72px); line-height: 1; letter-spacing: -.03em; font-weight: 500; font-stretch: 92%; }
.h-xl em, .h-lg em { font-size: 1.08em; letter-spacing: -.01em; }
.muted { color: var(--ink-2); max-width: 46ch; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .4s var(--ease), background-color .3s, color .3s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #262b33; }
.btn--light { background: #fff; color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__word { display: flex; flex-direction: column; font-family: var(--logo); font-style: italic; font-weight: 800; color: #1C2B6E; line-height: .95; font-size: 17px; letter-spacing: -.01em; }
.brand__word span + span { padding-left: .9em; }
.brand--light .brand__word { color: #fff; }

/* LOADER */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__mark { width: 88px; height: 88px; margin: 0 auto 22px; animation: rise 1.6s var(--ease) both; }
.loader__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.loader__pct { font-size: 44px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.no-js .loader { display: none; }

/* HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px var(--gutter); pointer-events: none; }
.header__bar { pointer-events: auto; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 24px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-radius: 18px; padding: 8px 8px 8px 14px; box-shadow: var(--shadow); }
.nav { display: flex; gap: 28px; margin: 0 auto; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { min-height: 42px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: var(--ink); border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: 40px; letter-spacing: -.03em; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* HERO */
.hero { position: relative; height: 560vh; background: #cfd9e2; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { opacity: 0; transition: opacity .6s; }
.is-static .hero__poster { opacity: 1; }
.is-static .hero__canvas { display: none; }
.hero__grain { position: absolute; inset: -50%; opacity: .05; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10, 12, 16, .55), rgba(10, 12, 16, 0) 38%); }

.hero__intro { position: absolute; left: 0; right: 0; top: clamp(110px, 17vh, 170px); padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; will-change: opacity, transform; }
.hero__title { font-size: clamp(46px, 8.2vw, 136px); line-height: .94; letter-spacing: -.045em; font-weight: 500; font-stretch: 88%; max-width: 11ch; }
.hero__title em { font-size: 1.06em; }
.hero__lead { margin-top: 22px; max-width: 40ch; font-size: clamp(16px, 1.25vw, 19px); color: #2b3038; }
.hero__scroll { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero__scroll span { width: 1.5px; height: 34px; background: rgba(20, 23, 28, .25); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--ink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.chapters { position: absolute; left: var(--gutter); bottom: clamp(24px, 6vh, 56px); width: min(420px, calc(100% - 2 * var(--gutter))); }
.chapter { position: absolute; left: 0; bottom: 0; width: 100%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius); padding: 22px 24px 24px; box-shadow: var(--shadow); opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.chapter.is-on { opacity: 1; transform: none; pointer-events: auto; }
.chapter__n { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.chapter__t { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -.03em; font-weight: 500; margin: 6px 0 8px; }
.chapter__d { color: var(--ink-2); font-size: 15px; }
.chapter .btn { margin-top: 16px; background: var(--ink); color: #fff; }

.rail { position: absolute; right: var(--gutter); bottom: clamp(24px, 6vh, 56px); display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 10px 18px; font-size: 13px; box-shadow: var(--shadow); }
.rail__bar { width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.rail__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.rail__label b { font-variant-numeric: tabular-nums; }
.is-static .hero { height: auto; }
.is-static .hero__stage { position: relative; }
.is-static .chapters, .is-static .rail, .is-static .hero__scroll { display: none; }

/* IMPRESA */
.intro__head { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: end; }
.intro__text { display: grid; gap: 16px; color: var(--ink-2); max-width: 46ch; }
.intro__text p:first-child { color: var(--ink); font-size: 1.12em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(56px, 8vw, 104px); }
.stat { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; outline: none; transition: transform .6s var(--ease); }
.stat__k { font-size: 14px; color: var(--ink-2); max-width: 18ch; }
.stat__n { font-size: clamp(56px, 5.6vw, 88px); line-height: .9; letter-spacing: -.05em; font-weight: 500; font-stretch: 85%; transition: transform .6s var(--ease); }
.stat__n small { display: block; font-size: 16px; letter-spacing: 0; font-weight: 500; margin-top: 8px; font-stretch: 100%; }
.stat__more { position: absolute; left: 22px; right: 22px; bottom: 22px; font-size: 14.5px; line-height: 1.5; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.stat:hover .stat__n, .stat:focus-visible .stat__n { transform: translateY(-110px); }
.stat:hover .stat__more, .stat:focus-visible .stat__more { opacity: 1; transform: none; }
.stat--dark { background: var(--ink); color: #fff; }
.stat--dark .stat__k { color: rgba(255, 255, 255, .65); }

/* SERVIZI */
.section__head { display: flex; flex-direction: column; margin-bottom: clamp(40px, 6vw, 80px); }
.svc { border-top: 1px solid var(--line); }
.svc__item { position: relative; display: grid; grid-template-columns: 80px 1.1fr 1fr; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); cursor: default; }
.svc__n { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.svc__t { font-size: clamp(24px, 2.4vw, 38px); line-height: 1.08; letter-spacing: -.025em; font-weight: 500; transition: transform .6s var(--ease); }
.svc__d { color: var(--ink-2); max-width: 44ch; }
.svc__thumb { display: none; }
.svc__item:hover .svc__t { transform: translateX(14px); }
.svc__float { position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 5; border-radius: var(--radius-s); overflow: hidden; pointer-events: none; z-index: 20; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .35s var(--ease); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); }
.svc__float.is-on { opacity: 1; }
.svc__float img { width: 100%; height: 100%; object-fit: cover; }

/* SLIDER (finiture e materiali) */
.gallery { overflow: hidden; }
.gallery__grid { display: grid; grid-template-columns: minmax(280px, .62fr) 1.6fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.gallery__copy .muted { margin-top: 20px; }
.arrows { display: flex; gap: 10px; margin-top: 30px; }
.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; transition: background-color .3s, color .3s; }
.arrow:hover { background: var(--ink); color: #fff; }
.slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
.slider::-webkit-scrollbar { display: none; }
.card { flex: none; width: clamp(240px, 26vw, 400px); scroll-snap-align: start; }
.card--wide { width: clamp(300px, 40vw, 640px); }
.card--tall { width: clamp(220px, 20vw, 320px); }
.card picture, .card img { width: 100%; height: clamp(340px, 42vw, 600px); object-fit: cover; border-radius: var(--radius); }
.card__cap { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* GARANZIE */
.promise { background: var(--surface); }
.promise__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 7vw, 140px); align-items: start; }
.promise__aside { position: sticky; top: 120px; }
.promise__aside .muted { margin-top: 20px; }
.promise__count { margin-top: 40px; font-size: clamp(120px, 15vw, 240px); line-height: .8; letter-spacing: -.06em; font-weight: 500; font-stretch: 80%; color: var(--ink); font-variant-numeric: tabular-nums; }
.promise__count small { font-size: .22em; letter-spacing: 0; color: var(--ink-2); margin-left: 8px; }
.promise__list { counter-reset: g; }
.promise__item { counter-increment: g; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity .6s var(--ease); }
.promise__item.is-on { opacity: 1; }
.promise__item h3 { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -.025em; font-weight: 500; display: flex; gap: 16px; align-items: baseline; }
.promise__item h3::before { content: "0" counter(g); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.promise__item p { margin-top: 12px; color: var(--ink-2); max-width: 52ch; }

/* METODO */
.method { background: var(--bg); padding: clamp(40px, 6vw, 72px) 0 clamp(88px, 12vw, 160px); }
.method__pin { overflow: hidden; padding-top: 112px; }
.method__head { margin-bottom: clamp(40px, 5vw, 64px); }
.method__track { display: flex; gap: 14px; padding: 0 var(--gutter); width: max-content; }
.phase { width: clamp(300px, 28vw, 420px); min-height: 380px; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.phase__n { font-size: clamp(64px, 6vw, 96px); line-height: .9; letter-spacing: -.05em; font-weight: 500; font-stretch: 80%; color: var(--stone); }
.phase h3 { margin-top: 48px; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.1; letter-spacing: -.02em; font-weight: 500; }
.phase p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.phase--last { background: var(--ink); color: #fff; }
.phase--last p { color: rgba(255, 255, 255, .7); }
.phase--last .phase__n { color: var(--accent); }
.phase--last .btn { margin-top: 22px; background: #fff; color: var(--ink); align-self: flex-start; }
.method__progress { margin-top: 36px; }
.method__progress::before { content: ""; display: block; height: 2px; background: var(--line); }
.method__bar { display: block; height: 2px; margin-top: -2px; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* SHOWROOM */
.showroom__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { font-size: 13px; font-weight: 500; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.mat { flex: none; width: clamp(220px, 21vw, 320px); scroll-snap-align: start; }
.mat picture, .mat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.mat__t { margin-top: 14px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.mat__d { font-size: 14px; color: var(--ink-2); }
.showroom__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.showroom__foot .arrows { margin-top: 0; }

/* PERSONE */
.people__card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); background: linear-gradient(115deg, var(--surface) 40%, #e9e5dd); border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 72px); box-shadow: var(--shadow); }
.people__copy .muted { margin-top: 20px; }
.people__list { margin: 36px 0 0; display: grid; gap: 22px; }
.people__list dt { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.people__list dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.people__list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.people__list a:hover { border-color: var(--ink); }
.people__media { margin: 0; grid-row: span 2; }
.people__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.people__media figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-2); text-align: right; }
.people__media--small { position: absolute; width: clamp(150px, 15vw, 220px); left: calc(50% - clamp(90px, 9vw, 140px)); bottom: clamp(-60px, -4vw, -30px); grid-row: auto; }
.people__media--small img { aspect-ratio: 3 / 4; border: 6px solid var(--surface); box-shadow: var(--shadow); }
.people__media--small figcaption { display: none; }

/* CONTATTI */
.cta { position: relative; padding: clamp(120px, 15vw, 220px) 0 clamp(88px, 10vw, 140px); overflow: hidden; }
.cta__tiles { position: absolute; inset: 0; pointer-events: none; }
.tile { position: absolute; left: var(--x); top: var(--y); width: clamp(84px, 10vw, 150px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; transform: rotate(var(--r)) scale(var(--s)); box-shadow: 0 24px 44px -18px rgba(20, 23, 28, .35); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.cta__inner { position: relative; max-width: 940px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__inner .eyebrow::before { display: none; }
.cta__lead { margin-top: 22px; color: var(--ink-2); max-width: 52ch; font-size: 1.08em; }
.form { width: 100%; margin-top: 44px; text-align: left; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 16px; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.form textarea { resize: vertical; }
.form select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2314171C' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form__check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; font-weight: 400 !important; color: var(--ink-2); }
.form__check input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form__note { font-size: 14px; color: #a1301f; min-height: 1em; }

/* FOOTER */
.footer { background: var(--night); color: rgba(255, 255, 255, .72); padding: clamp(64px, 8vw, 110px) 0 28px; font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; }
.footer__brand p { margin-top: 18px; max-width: 32ch; }
.footer__brand .brand__mark { width: 48px; height: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a, .footer__col span { overflow-wrap: anywhere; }
.footer__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 6px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Animazioni di entrata (attive solo con JS e movimento consentito) */
.has-motion .reveal { opacity: 0; transform: translateY(28px); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header { padding: 10px 12px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__word { font-size: 15px; }
  .hero { height: 480vh; }
  .hero__intro { top: 96px; }
  .hero__lead { max-width: 30ch; }
  .chapters { bottom: 76px; }
  .chapter { padding: 18px 18px 20px; }
  .rail { left: var(--gutter); right: var(--gutter); bottom: 20px; justify-content: space-between; }
  .rail__bar { flex: 1; }
  .intro__head, .gallery__grid, .promise__grid, .showroom__head, .people__card { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { min-height: 0; gap: 18px; }
  .stat__more { position: static; opacity: 1; transform: none; color: inherit; }
  .stat:hover .stat__n, .stat:focus-visible .stat__n { transform: none; }
  .stat--dark .stat__more { color: rgba(255, 255, 255, .8); }
  .stat:not(.stat--dark) .stat__more { color: var(--ink-2); }
  .svc__item { grid-template-columns: 1fr 88px; gap: 8px 16px; padding: 24px 0; }
  .svc__n { grid-column: 1; }
  .svc__t { grid-column: 1; }
  .svc__d { grid-column: 1 / -1; }
  .svc__thumb { display: block; grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .svc__thumb img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
  .svc__item:hover .svc__t { transform: none; }
  .card picture, .card img { height: 420px; }
  .card, .card--wide { width: 80vw; }
  .card--tall { width: 66vw; }
  .promise__aside { position: static; }
  .promise__count { display: none; }
  .promise__item { opacity: 1; }
  .method__track { flex-direction: column; width: auto; }
  .phase { width: 100%; min-height: 0; }
  .phase h3 { padding-top: 24px; }
  .method__progress { display: none; }
  .mat { width: 66vw; }
  .people__media--small { display: none; }
  .cta { padding-top: 150px; }
  .tile { width: 64px; border-radius: 12px; --y: 30px !important; }
  .tile:nth-child(1) { --x: 8% !important; }
  .tile:nth-child(2) { --x: 72% !important; }
  .tile:nth-child(n+3) { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
