/* ============================================================
   GULLO BROTHERS CONCRETE
   A cool, mineral palette — the page is made of the material.
   Signature: the snapped chalk line, the datum every section
   is built to.
   ============================================================ */

:root {
  /* --- concrete greys, cool not warm --- */
  --ink:        #171818;   /* near-black, green-grey cast */
  --ink-2:      #242726;   /* dark slab */
  --slab:       #565853;   /* secondary text on light — AA on --paper */
  --slab-2:     #5f615a;   /* muted / supplementary — still ~AA on --paper */
  --dust:       #cfd0ca;   /* pale grey */
  --paper:      #e6e7e3;   /* lightest surface */
  --paper-2:    #dcddd7;   /* tinted section */
  --white:      #f4f4f1;   /* brightest / text on dark */

  /* --- chalk-line blue: the mark of precision --- */
  --chalk:        #2f5fa6;
  --chalk-deep:   #244c86;
  --chalk-bright: #5b8fd6; /* on dark backgrounds */

  --danger:      #b3402e;  /* form error state */
  --scrim:       rgba(15, 16, 16, 0.9); /* modal backdrop */

  --line-strong: rgba(23, 24, 24, 0.16);
  --line-soft:   rgba(23, 24, 24, 0.09);
  --line-onDark: rgba(244, 244, 241, 0.16);

  /* --- type --- */
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;

  /* --- scale --- */
  --shell: 1320px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9.5rem);

  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* the [hidden] attribute must win even on elements we give a display value */
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
::selection { background: var(--chalk); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--chalk);
  outline-offset: 3px;
  border-radius: 1px;
}
.section--dark :focus-visible,
.contact :focus-visible { outline-color: var(--chalk-bright); }

.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;
}
.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 200; background: var(--ink); color: var(--white);
  padding: 0.75rem 1.25rem; font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.2s var(--e-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* scroll progress — a chalk rule that fills across the top as you read */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  height: 2px; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--chalk-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.12s linear;
}

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

/* ------------------------------------------------------------ buttons */
.btn {
  --btn-fg: var(--white);
  --btn-bg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5ch;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  transition: background 0.2s var(--e-out), color 0.2s var(--e-out),
              border-color 0.2s var(--e-out), transform 0.2s var(--e-out);
}
.btn:hover { background: var(--chalk); border-color: var(--chalk); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--solid { --btn-bg: var(--ink); --btn-fg: var(--white); }
/* on the dark hero, an ink button vanishes — flip to a light fill */
.hero .btn--solid { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--white);
  border-color: rgba(244, 244, 241, 0.55);
}
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--lg { padding: 1.1rem 2rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(230, 231, 227, 0);
  transition: background 0.3s var(--e-out), border-color 0.3s var(--e-out),
              backdrop-filter 0.3s var(--e-out), transform 0.35s var(--e-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled {
  background: rgba(230, 231, 227, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
}
/* hero is dark: header text starts light, flips on scroll */
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 5.5rem;
  transition: min-height 0.3s var(--e-out);
}
@media (min-width: 1280px) { .site-header__inner { gap: 2rem; } }
.is-scrolled .site-header__inner { min-height: 4.25rem; }

.wordmark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--white);
  transition: color 0.3s var(--e-out);
}
.is-scrolled .wordmark { color: var(--ink); }
.wordmark__mark {
  width: 1.15rem; height: 1.15rem; flex: none;
  background: var(--chalk);
  box-shadow: 0 0 0 1px currentColor inset;
}
.wordmark__text {
  font-family: var(--display); font-weight: 800;
  font-size: 1.05rem; line-height: 1; letter-spacing: -0.01em;
  display: flex; flex-direction: column;
}
.wordmark__sub {
  font-family: var(--mono); font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase;
  margin-top: 0.2rem; opacity: 0.7;
}
.wordmark__img {
  display: block; width: auto; height: 3rem;
  transition: height 0.3s var(--e-out);
}
.is-scrolled .wordmark__img { height: 2.4rem; }
.wordmark--footer .wordmark__img { height: 3.5rem; }
@media (max-width: 640px) {
  .wordmark__img { height: 2.5rem; }
  .is-scrolled .wordmark__img { height: 2.1rem; }
}
/* white lockup over the dark hero header + footer; blue lockup once the header goes light */
.wordmark__img--dark { display: none; }
.is-scrolled .wordmark__img--light { display: none; }
.is-scrolled .wordmark__img--dark { display: block; }
.wordmark--footer .wordmark__img--dark { display: none; }

.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; gap: 1.15rem; list-style: none; padding: 0; }
@media (min-width: 1280px) { .site-nav__list { gap: 2rem; } }
.site-nav__list a {
  font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
  padding-block: 0.4rem; position: relative;
  transition: color 0.3s var(--e-out);
}
.is-scrolled .site-nav__list a { color: var(--ink); }
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--chalk);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--e-out);
}
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 1.15rem; }
@media (min-width: 1280px) { .site-header__actions { gap: 1.5rem; } }
.phone-link {
  display: flex; flex-direction: column; text-decoration: none;
  color: var(--white); transition: color 0.3s var(--e-out);
}
.is-scrolled .phone-link { color: var(--ink); }
.phone-link__label {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.65;
}
.phone-link__number {
  font-family: var(--mono); font-size: 0.95rem; letter-spacing: -0.01em;
}
.phone-link:hover .phone-link__number { color: var(--chalk-bright); }
.is-scrolled .phone-link:hover .phone-link__number { color: var(--chalk); }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem; margin-inline-start: auto;
  position: relative;
  border: 1px solid rgba(244, 244, 241, 0.3);
  transition: border-color 0.3s var(--e-out), background 0.2s var(--e-out);
}
.is-scrolled .nav-toggle { border-color: var(--line-strong); }
.nav-toggle:hover { background: rgba(244, 244, 241, 0.08); }
.is-scrolled .nav-toggle:hover { background: rgba(23, 24, 24, 0.05); }
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: ""; position: absolute; left: 50%; width: 1.6rem; height: 2px;
  background: var(--white); transform: translateX(-50%);
  transition: transform 0.25s var(--e-out), background 0.3s var(--e-out), top 0.25s var(--e-out);
}
.is-scrolled .nav-toggle__bar,
.is-scrolled .nav-toggle__bar::before,
.is-scrolled .nav-toggle__bar::after { background: var(--ink); }
.nav-toggle__bar { top: 50%; margin-top: -1px; }
.nav-toggle__bar::before { top: -8px; }
.nav-toggle__bar::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] { border-color: var(--line-strong); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: translateX(-50%) rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { top: 0; transform: translateX(-50%) rotate(-45deg); background: var(--ink); }

/* ------------------------------------------------------------ mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  padding: 7rem var(--gutter) 3rem;
  display: flex;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--e-out);
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav__inner { display: flex; flex-direction: column; gap: 0.35rem; margin-top: auto; width: 100%; }
.mobile-nav__inner a {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 11vw, 3rem); letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
  padding-block: 0.35rem; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav__inner a.mobile-nav__phone {
  font-family: var(--mono); font-weight: 400;
  font-size: 1.5rem; color: var(--chalk);
  margin-top: 1rem; border-bottom: 0;
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 7rem 3.5rem;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  margin-top: -5.5rem; /* pull under the transparent sticky header */
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img,
.hero__media video {
  width: 100%; height: 120%; object-fit: cover;
  filter: grayscale(0.15) contrast(1.03) brightness(0.92);
  will-change: transform;
}
.hero__video { display: block; background: var(--ink, #171818); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,24,24,0.5) 0%, rgba(23,24,24,0.12) 34%, rgba(23,24,24,0.55) 74%, rgba(23,24,24,0.9) 100%);
}
.hero__body { position: relative; z-index: 1; width: 100%; }
.hero__title {
  font-weight: 800;
  font-size: clamp(2.3rem, 8.4vw, 6.75rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 16ch;
  overflow-wrap: break-word;
}
@media (max-width: 360px) { .hero__title { font-size: 1.95rem; } }
.hero__title .line { display: block; }
.hero__title .line > span { display: block; }
.hero__lede {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  color: rgba(244,244,241,0.9);
}
.hero__rule {
  height: 2px; background: var(--chalk-bright);
  margin-top: 2.5rem;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s var(--e-out) 0.15s;
}
.hero__rule.is-drawn { transform: scaleX(1); }
.hero__spec {
  font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244,244,241,0.72);
  margin-top: 1rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 2.25rem; z-index: 1;
  width: 1.5rem; height: 3rem;
  display: none;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 0; width: 1px; height: 100%;
  background: rgba(244,244,241,0.4); overflow: hidden;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 0; top: -60%;
  width: 100%; height: 60%; background: var(--chalk-bright);
  animation: drop 1.9s var(--e-out) infinite;
}
@keyframes drop { to { top: 120%; } }
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* ------------------------------------------------------------ trust */
.trust {
  background: var(--ink);
  color: var(--white);
  border-block: 1px solid var(--line-onDark);
}
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust__item {
  padding: 2.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  text-align: center;
  border-left: 1px solid var(--line-onDark);
}
.trust__item:first-child { border-left: 0; }
.trust__num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.03em;
}
.trust__label {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,244,241,0.6);
  white-space: nowrap;
}

/* ------------------------------------------------------------ section shell */
.section { padding-block: var(--section-y); background: var(--paper); position: relative; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--white); }

/* section seam — a chalk rule snaps full-bleed across every boundary as it
   scrolls in, the same mark as the datum. Solid line with JS off. */
.section::before,
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--chalk);
  transform-origin: left;
}
.section--dark::before,
.site-footer::before { background: var(--chalk-bright); }
.js .section::before,
.js .site-footer::before { transform: scaleX(0); }
.js .section.is-seam::before,
.js .site-footer.is-seam::before { animation: chalk-snap 0.8s var(--e-out) forwards; }
.section::before, .site-footer::before { z-index: 2; }

/* giant section numeral — sits behind the content and drifts on scroll (JS) */
.section { overflow: hidden; }
.section > .shell { position: relative; z-index: 1; }
.section__ghost {
  position: absolute; top: -0.16em; right: -0.04em; z-index: 0;
  margin: 0; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(6rem, 34vw, 21rem); line-height: 0.8;
  letter-spacing: -0.05em; color: var(--ink); opacity: 0.045;
  will-change: transform;
}
.section--tint .section__ghost { opacity: 0.05; }
.section--dark .section__ghost { color: var(--white); opacity: 0.06; }

.section__title {
  font-family: var(--display); font-weight: 700; line-height: 1.05;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.section__lede {
  margin-top: 1.1rem; max-width: 52ch;
  color: var(--slab);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
}
.section--dark .section__lede { color: rgba(244,244,241,0.72); }

/* ------------------------------------------------------------ datum (the chalk line) */
.datum {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.datum__no {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--chalk);
}
.datum--onDark .datum__no { color: var(--chalk-bright); }
.datum__label {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.datum--onDark .datum__label { color: var(--white); }
.datum__rule {
  flex: 1; height: 2px; background: var(--chalk);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--e-out);
}
.datum--onDark .datum__rule { background: var(--chalk-bright); }
.datum.is-drawn .datum__rule { transform: scaleX(1); }
.datum__no { font-variant-numeric: tabular-nums; }

/* kinetic datum — the flourish headings on alternating sections.
   Number ticks up (JS), chalk rule snaps taut, label is wiped in behind it. */
.js .datum--kinetic .datum__no {
  opacity: 0; transform: translateX(-0.4rem);
  transition: opacity 0.5s var(--e-out), transform 0.5s var(--e-out);
}
.js .datum--kinetic.is-drawn .datum__no { opacity: 1; transform: none; }
.js .datum--kinetic .datum__label {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s var(--e-out) 0.12s;
}
.js .datum--kinetic.is-drawn .datum__label { clip-path: inset(0 0 0 0); }
.js .datum--kinetic .datum__rule { transition: none; }
.js .datum--kinetic.is-drawn .datum__rule { animation: chalk-snap 0.8s var(--e-out) forwards; }
@keyframes chalk-snap {
  0%   { transform: scaleX(0); }
  70%  { transform: scaleX(1.03); }
  85%  { transform: scaleX(0.99) translateY(1px); }
  100% { transform: scaleX(1) translateY(0); }
}

/* ------------------------------------------------------------ work */
.work__intro { margin-bottom: 2.75rem; }

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.filters__btn {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  color: var(--slab);
  border: 1px solid var(--line-strong);
  transition: color 0.2s var(--e-out), background 0.2s var(--e-out), border-color 0.2s var(--e-out);
}
.filters__btn:hover { color: var(--ink); border-color: var(--ink); }
.filters__btn.is-active {
  color: var(--white); background: var(--ink); border-color: var(--ink);
}
.filters__back {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55rem 0.6rem 0.55rem 0;
  margin-right: 0.35rem;
  color: var(--chalk);
  border: 0; border-right: 1px solid var(--line-strong);
  transition: color 0.2s var(--e-out);
}
.filters__back:hover { color: var(--chalk-deep); }

/* auto-preview slideshow */
.work-preview {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  margin-bottom: 1rem;
}
.work-preview__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .work-preview__stage { aspect-ratio: 4 / 3; } }
.work-preview__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; cursor: pointer;
  transition: opacity 0.6s var(--e-out);
}
.work-preview__slide.is-current { opacity: 1; }
.work-preview__slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.2) contrast(1.03);
  transform: scale(1.015);
  will-change: transform;
}
/* slow Ken Burns push on whichever slide is showing (restarts with .is-current) */
.work-preview__slide.is-current img {
  animation: wp-kenburns var(--wp-interval, 3400ms) ease-out both;
}
@keyframes wp-kenburns {
  from { transform: scale(1.015); }
  to   { transform: scale(1.09); }
}
.work-preview__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3.5rem 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.2rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244, 244, 241, 0.82);
  background: linear-gradient(180deg, rgba(23,24,24,0) 0%, rgba(23,24,24,0.82) 100%);
  opacity: 0; transform: translateY(0.55rem);
  transition: opacity 0.5s var(--e-out) 0.12s, transform 0.5s var(--e-out) 0.12s;
}
.work-preview__slide.is-current .work-preview__label { opacity: 1; transform: none; }
.work-preview__label em {
  font-family: var(--display); font-style: normal; font-weight: 700;
  font-size: 1.1rem; letter-spacing: -0.01em; text-transform: none;
  color: var(--white);
}
/* time-to-next chalk rule along the bottom of the stage */
.work-preview__progress {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  height: 2px; width: 100%;
  background: var(--chalk-bright);
  transform: scaleX(0); transform-origin: left;
}
.work-preview__progress.is-run {
  animation: wp-progress var(--wp-interval, 3400ms) linear forwards;
}
@keyframes wp-progress { to { transform: scaleX(1); } }
.work-preview__bar {
  position: absolute; top: 0.9rem; right: 0.9rem;
  display: flex; gap: 0.4rem; z-index: 3;
}
.work-preview__btn {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  color: var(--white); font-size: 1.05rem; line-height: 1;
  background: rgba(23, 24, 24, 0.55);
  border: 1px solid var(--line-onDark);
  transition: background 0.2s var(--e-out);
}
.work-preview__btn:hover { background: var(--chalk); }
.work-preview__hint {
  margin-bottom: 2.5rem;
  font-family: var(--mono); font-size: 0.8rem; color: var(--slab);
}
.work-preview__hint strong { color: var(--ink); font-weight: 500; }

.work-grid {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.work-card { grid-column: span 1; }
.work-card[hidden] { display: none; }

/* bare image, before JS wraps it in the lightbox button (also the no-JS view) */
.work-card > img,
.work-card__btn img {
  width: 100%; aspect-ratio: 4 / 3; height: auto;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.02);
}

.work-card__btn {
  display: block; width: 100%;
  position: relative; overflow: hidden;
  background: var(--dust);
  text-align: left;
}
.work-card__btn img {
  transition: transform 0.6s var(--e-out), filter 0.6s var(--e-out);
}
.work-card__btn:hover img,
.work-card__btn:focus-visible img { transform: scale(1.04); filter: grayscale(0); }
.work-card__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 2.75rem 1.25rem 1.1rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244, 244, 241, 0.82);
  background: linear-gradient(180deg, rgba(23,24,24,0) 0%, rgba(23,24,24,0.78) 62%, rgba(23,24,24,0.88) 100%);
}
.work-card__meta em {
  font-family: var(--display); font-style: normal; font-weight: 700;
  font-size: 1.05rem; letter-spacing: -0.01em; text-transform: none;
  color: var(--white);
  transition: transform 0.35s var(--e-out);
}
.work-card__btn:hover .work-card__meta em { transform: translateY(-0.15rem); }

.work__empty {
  margin-top: 2rem; font-family: var(--mono); font-size: 0.85rem;
  color: var(--slab);
}

/* ------------------------------------------------------------ about */
.about__grid {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.about__portrait { position: relative; }
.about__portrait::before {
  content: ""; position: absolute; left: -0.75rem; top: -0.75rem;
  width: 4rem; height: 4rem;
  border-top: 2px solid var(--chalk-bright);
  border-left: 2px solid var(--chalk-bright);
  z-index: 1;
}
.about__portrait img {
  width: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.03);
  aspect-ratio: 4 / 5;
  display: block;
}
/* hover caption — "Founder — Pietro Gullo" */
.about__portrait-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.75rem 1.25rem 1rem;
  font-family: var(--mono); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.01em; color: var(--white);
  background: linear-gradient(180deg, rgba(23,24,24,0) 0%, rgba(23,24,24,0.9) 100%);
  opacity: 0; transform: translateY(0.6rem);
  transition: opacity 0.35s var(--e-out), transform 0.35s var(--e-out);
  pointer-events: none;
}
.about__portrait-cap span {
  display: block;
  font-family: var(--mono); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--chalk-bright);
  margin-bottom: 0.2rem;
}
.about__portrait:hover .about__portrait-cap,
.about__portrait:focus-within .about__portrait-cap { opacity: 1; transform: none; }
@media (hover: none) {
  .about__portrait-cap { opacity: 1; transform: none; }
}
.about__pull {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.75rem;
}
.about__copy p + p { margin-top: 1.1rem; color: rgba(244,244,241,0.78); }
.about__copy > p:not(.about__pull) { color: rgba(244,244,241,0.78); }
.about__facts {
  list-style: none; padding: 0; margin-top: 2rem;
  display: grid; gap: 0.75rem;
  border-top: 1px solid var(--line-onDark); padding-top: 1.75rem;
}
.about__facts li {
  font-family: var(--mono); font-size: 0.82rem;
  letter-spacing: 0.04em; color: rgba(244,244,241,0.7);
}
.about__facts span { color: var(--white); }

/* ------------------------------------------------------------ process */
.process {
  list-style: none; padding: 0;
  position: relative;
  display: grid; gap: clamp(2rem, 4vw, 3.25rem);
  max-width: 60rem;
}
.process::before {
  content: ""; position: absolute; left: 1.4rem; top: 0.6rem; bottom: 0.6rem;
  width: 2px; background: var(--line-strong);
}
.process__step {
  display: grid; grid-template-columns: 2.8rem 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start;
  position: relative;
}
.process__no {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  color: var(--white); background: var(--chalk);
  width: 2.8rem; height: 2.8rem; flex: none;
  display: grid; place-items: center;
  position: relative; z-index: 1;
}
.process__text h3 {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.process__text p { color: var(--slab); max-width: 48ch; }

/* hover backdrop — a grayscale jobsite photo ghosts into the open space
   beside the ladder. Pointer + wide viewports only; killed under
   reduced-motion. Text never overlaps the photo (it starts at 42%). */
.process__bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.55s var(--e-out);
}
.process__bg.is-active { opacity: 1; }
.process__bg-img {
  position: absolute; inset: 0 0 0 42%;
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 88%, transparent);
}
@media (max-width: 1024px), (hover: none) {
  .process__bg { display: none; }
}
@media (hover: hover) {
  .process__text h3 { transition: color 0.2s var(--e-out); }
  .process__step:hover .process__text h3 { color: var(--chalk); }
  .process__no { transition: background 0.2s var(--e-out); }
  .process__step:hover .process__no { background: var(--chalk-deep); }
}

/* ------------------------------------------------------------ quotes */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.quote {
  position: relative;
  padding-top: 1.5rem;
}
.quote::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--chalk);
  transform-origin: left;
  transition: transform 0.8s var(--e-out);
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.quote p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.5rem);
  line-height: 1.28; letter-spacing: -0.015em;
}
.quote cite {
  display: block; margin-top: 1.25rem;
  font-family: var(--mono); font-style: normal;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slab);
}

/* live Google reviews */
.reviews__rating {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.85rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--slab);
}
.reviews__rating b {
  font-weight: 500; font-size: 1.15rem; letter-spacing: 0;
  color: var(--ink);
}
.reviews__rating .stars { color: var(--chalk); letter-spacing: 0.1em; font-size: 0.9rem; }
.reviews__rating a { color: var(--chalk); text-decoration: none; }
.reviews__rating a:hover { text-decoration: underline; }

.quote__stars {
  color: var(--chalk); font-size: 0.95rem; letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
}
.quote--google p { font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.3rem); }
.quote--google cite {
  text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem;
  line-height: 1.5;
}
.quote--google cite a { color: var(--ink); text-decoration: none; }
.quote--google cite a:hover { text-decoration: underline; }
.quote--google .quote__src { color: var(--slab-2); }

.reviews__more {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line-soft);
}

/* ------------------------------------------------------------ services */
.services__head { margin-bottom: 2.75rem; }
.spec-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 6vw, 5rem);
  border-top: 2px solid var(--ink);
}
.spec-list ul { list-style: none; padding: 0; }
.spec-list li {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.01em;
}
.spec-list li::before {
  content: ""; width: 0.5rem; height: 0.5rem; flex: none;
  background: var(--chalk); transform: translateY(-0.1rem);
}

/* ------------------------------------------------------------ areas */
.areas__list {
  list-style: none; padding: 0; margin-top: 0.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
  border-top: 2px solid var(--ink);
}
.areas__list li {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 0.88rem; letter-spacing: 0.01em;
}
.areas__list li::before {
  content: ""; width: 0.45rem; height: 0.45rem; flex: none;
  background: var(--chalk); transform: translateY(-0.1rem);
  transition: transform 0.25s var(--e-out);
}
.areas__list li:hover::before { transform: translateY(-0.1rem) scale(1.5); }
.areas__note {
  margin-top: 1.9rem;
  font-family: var(--mono); font-size: 0.85rem; color: var(--slab);
}
.areas__note a { color: var(--chalk); text-underline-offset: 2px; }

/* ------------------------------------------------------------ faq */
.faq {
  max-width: 62rem;
  border-top: 2px solid var(--ink);
}
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  list-style: none;
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.35rem);
  line-height: 1.28; letter-spacing: -0.015em;
  transition: color 0.2s var(--e-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; margin-left: auto; flex: none;
  font-family: var(--mono); font-weight: 400;
  font-size: 1.5rem; line-height: 1; color: var(--chalk);
  transition: transform 0.25s var(--e-out);
}
.faq__item[open] > .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--chalk); }
.faq__a { padding: 0 0 1.6rem; max-width: 54ch; }
.faq__a p { color: var(--slab); }
.faq__a p + p { margin-top: 0.9rem; }

/* ------------------------------------------------------------ contact */
.contact__grid {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem); align-items: start;
}
.contact__kicker {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,244,241,0.6);
}
.contact__phones {
  margin: 0.9rem 0 0.6rem;
  display: grid; gap: 0.7rem;
}
.contact__phone {
  display: block; white-space: nowrap;
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.6rem, 0.9rem + 2.3vw, 2.6rem);
  letter-spacing: -0.04em; line-height: 1;
  color: var(--white); text-decoration: none;
  transition: color 0.2s var(--e-out);
}
.contact__phone-name {
  display: block;
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244, 244, 241, 0.5);
  margin-bottom: 0.25rem;
}
.contact__phone:hover { color: var(--chalk-bright); }
.contact__phone:hover .contact__phone-name { color: rgba(244, 244, 241, 0.7); }
.contact__hours {
  font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.08em; color: rgba(244,244,241,0.6);
}
.contact__meta {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-onDark); padding-top: 1.75rem;
  display: grid; gap: 1.25rem;
}
.contact__meta dt {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244,244,241,0.5); margin-bottom: 0.3rem;
}
.contact__meta dd { font-size: 0.95rem; color: rgba(244,244,241,0.88); }
.contact__meta a { color: var(--chalk-bright); text-decoration: none; }
.contact__meta a:hover { text-decoration: underline; }
.contact__social { display: flex; gap: 1.25rem; }

/* form */
.estimate-form {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.hp { position: absolute !important; left: -9999px !important; opacity: 0; }
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slab);
}
.field__opt { color: var(--slab-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 2px solid var(--line-strong);
  padding: 0.7rem 0;
  font-size: 1rem;
  transition: border-color 0.2s var(--e-out);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-bottom-color: var(--chalk);
}
.field select { padding-right: 1.25rem; }
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-bottom-color: var(--danger); }
.field__hint {
  margin-top: 0.4rem; font-size: 0.8rem; color: var(--slab);
}
.field__error {
  margin-top: 0.4rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em;
  color: var(--danger);
}
.field-row + .field, .field + .field-row { margin-top: 0; }

.form-status {
  margin-top: 1rem; font-family: var(--mono); font-size: 0.85rem;
  line-height: 1.5; min-height: 1.2em;
}
.form-status.is-ok { color: var(--chalk-deep); }
.form-status.is-err { color: var(--danger); }
.form-fineprint {
  margin-top: 1rem; font-size: 0.8rem; color: var(--slab);
}
.estimate-form .btn { margin-top: 0.5rem; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: var(--white); padding-block: 4.5rem 3rem; position: relative; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem 3rem;
  align-items: start;
}
.wordmark--footer { color: var(--white); }
.site-footer__nav {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.site-footer__nav a { text-decoration: none; color: rgba(244,244,241,0.7); }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__contact {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.9rem;
  grid-column: 2; grid-row: 1 / span 2;
  text-align: right;
}
.site-footer__contact a { color: var(--chalk-bright); text-decoration: none; }
.site-footer__contact a:hover { text-decoration: underline; }
.site-footer__legal {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  border-top: 1px solid var(--line-onDark); padding-top: 1.75rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.08em; color: rgba(244,244,241,0.5);
}

/* ------------------------------------------------------------ quickbar (mobile) */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-onDark);
}
.quickbar__btn {
  padding: 1.05rem 1rem; text-align: center; text-decoration: none;
  font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.quickbar__btn--call { background: var(--ink); color: var(--white); }
.quickbar__btn--quote { background: var(--chalk); color: var(--white); }

/* ------------------------------------------------------------ lightbox */
.lightbox {
  width: min(1100px, 92vw);
  max-width: 92vw;
  max-height: 92vh;
  /* the global `* { margin: 0 }` reset kills the UA `dialog { margin: auto }`
     that centres a modal dialog — put it back */
  margin: auto;
  padding: 0; border: 0; background: transparent;
  color: var(--white);
  overflow: visible;
}
.lightbox::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.lightbox__figure { margin: 0; position: relative; min-height: 4rem; }
.lightbox__figure img {
  width: 100%; max-height: 78vh; object-fit: contain;
  background: var(--ink);
  transition: opacity 0.2s var(--e-out);
}
.lightbox.is-loading .lightbox__figure img { opacity: 0; }
.lightbox.is-loading .lightbox__figure::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 2rem; height: 2rem; margin: -1rem 0 0 -1rem;
  border: 2px solid rgba(244, 244, 241, 0.3);
  border-top-color: var(--chalk-bright); border-radius: 50%;
  animation: lb-spin 0.7s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox__figure figcaption {
  margin-top: 0.9rem;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244,244,241,0.75);
}
.lightbox__close,
.lightbox__nav {
  position: absolute; z-index: 2;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  color: var(--white); font-size: 1.6rem; line-height: 1;
  background: rgba(23, 24, 24, 0.7);
  border: 1px solid var(--line-onDark);
  transition: background 0.2s var(--e-out);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--chalk); }
.lightbox__close { top: -1.25rem; right: -1.25rem; border-radius: 50%; }
.lightbox__nav--prev { left: -1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: -1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__close { top: 0.5rem; right: 0.5rem; }
  .lightbox__nav--prev { left: 0.25rem; }
  .lightbox__nav--next { right: 0.25rem; }
}

/* ------------------------------------------------------------ reveal animation
   Only hides content when JS is present (.js on <html>). No-JS => visible. */
.js [data-reveal] {
  opacity: 0; transform: translateY(1.75rem);
  transition: opacity 0.7s var(--e-out), transform 0.7s var(--e-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js [data-reveal-lines] .line > span {
  opacity: 0; transform: translateY(0.6em);
  transition: opacity 0.7s var(--e-out), transform 0.7s var(--e-out);
}
.js [data-reveal-lines].is-visible .line > span { opacity: 1; transform: none; }
.js [data-reveal-lines].is-visible .line:nth-child(2) > span { transition-delay: 0.12s; }

.js [data-reveal-group] > * {
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity 0.6s var(--e-out), transform 0.6s var(--e-out);
  transition-delay: calc(var(--i, 0) * 0.06s);
}
.js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }

/* ------------------------------------------------------------ section motion
   Scroll-driven flourishes layered on the reveal system. Every rule that
   hides something is .js-scoped (page is whole with scripting off) and is
   switched off again in the reduced-motion block below. */

/* trust strip — figures count up (JS); tabular so the width never jitters */
.trust__num { font-variant-numeric: tabular-nums; }

/* work grid — cascade in on first view, re-cascade on filter change, lift on hover */
@keyframes card-in {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: none; }
}
.work-card.is-filtering {
  animation: card-in 0.5s var(--e-out) both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}
.work-card__btn { transition: transform 0.45s var(--e-out); }
.work-card__btn:hover,
.work-card__btn:focus-visible { transform: translateY(-4px); }

/* process — the datum line drops in, the numbered tags pop up the ladder */
.js .process::before {
  transform: scaleY(0); transform-origin: top;
  transition: transform 1s var(--e-out);
}
.js .process.is-drawn::before { transform: scaleY(1); }
.js [data-process] .process__no {
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.45s var(--e-out), transform 0.5s var(--e-out);
  transition-delay: calc(var(--i, 0) * 0.09s + 0.1s);
}
.js [data-process].is-drawn .process__no { opacity: 1; transform: none; }

/* testimonials — the chalk rule over each quote snaps taut, staggered */
.js .quote::before { transform: scaleX(0); }
.js .quotes.is-visible .quote::before { transform: scaleX(1); }

/* services — bullet ticks out on hover */
.spec-list li { transition: color 0.2s var(--e-out); }
.spec-list li:hover { color: var(--ink); }
.spec-list li::before { transition: transform 0.25s var(--e-out); }
.spec-list li:hover::before { transform: translateY(-0.1rem) scale(1.5); }

/* about — the portrait wipes up under its bracket, the bracket fades in after */
.js .about__portrait img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--e-out) 0.15s;
}
.js .about__portrait.is-visible img { clip-path: inset(0 0 0 0); }
.js .about__portrait::before {
  opacity: 0; transform: translate(0.4rem, 0.4rem);
  transition: opacity 0.6s var(--e-out) 0.45s, transform 0.6s var(--e-out) 0.45s;
}
.js .about__portrait.is-visible::before { opacity: 1; transform: none; }

/* ============================================================ responsive */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__portrait { max-width: 22rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 2rem; }
}

/* header: switch to the hamburger + fixed quick-bar early enough that the
   inline nav never has to cram (it carries seven items now) */
@media (max-width: 1120px) {
  .site-nav, .site-header__actions { display: none; }
  .nav-toggle { display: block; }
  .quickbar { display: grid; }
  body { padding-bottom: 4rem; }
}

@media (max-width: 900px) {
  .trust__item { padding: 1.75rem 0.75rem; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}

/* trust strip: below the four-up row, stack it so each stat stays on one line */
@media (max-width: 720px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item {
    flex-direction: row; align-items: baseline; justify-content: flex-start;
    gap: 0.85rem; text-align: left;
    padding: 1.05rem 0;
    border-left: 0; border-top: 1px solid var(--line-onDark);
  }
  .trust__item:first-child { border-top: 0; }
  .trust__num {
    flex: none; min-width: 4.75rem;
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  }
  .trust__label { white-space: nowrap; }
}

@media (max-width: 560px) {
  .hero { margin-top: -5.5rem; padding-block: 7rem 3.5rem; }
  .hero__cta .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .spec-list { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__contact { grid-column: 1; grid-row: auto; text-align: left; }
}

/* ============================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal],
  .js [data-reveal-lines] .line > span,
  .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .datum__rule, .hero__rule { transform: scaleX(1) !important; }
  .js .section::before,
  .js .site-footer::before { transform: scaleX(1) !important; animation: none !important; }
  .js .process::before { transform: scaleY(1) !important; }
  .js [data-process] .process__no { opacity: 1 !important; transform: none !important; }
  .js .quote::before { transform: scaleX(1) !important; }
  .js .about__portrait img { clip-path: none !important; }
  .js .about__portrait::before { opacity: 1 !important; transform: none !important; }
  .work-card.is-filtering { animation: none !important; }
  .js .datum--kinetic .datum__label { clip-path: none !important; }
  .js .datum--kinetic .datum__no { opacity: 1 !important; transform: none !important; }
  .js .datum--kinetic.is-drawn .datum__rule { animation: none !important; }
  .hero__media img,
  .hero__media video { height: 100% !important; transform: none !important; }
  .section__ghost { transform: none !important; }
  .site-header.is-hidden { transform: none !important; }
  .work-preview__slide img { animation: none !important; transform: none !important; }
  .work-preview__progress { animation: none !important; }
  .work-preview__slide .work-preview__label { opacity: 1 !important; transform: none !important; }
}
