/* =========================================================
   GTW – Grupo Top Works · Sitio institucional
   Paleta y tipografía según manual de marca:
   #2B2B2B · #FFFFFF · #D9D9D9 · beige de soporte · Roboto
   ========================================================= */

:root {
  --ink: #2b2b2b;
  --ink-2: #1f1f1f;
  --ink-soft: #3a3a3a;
  --white: #ffffff;
  --gray: #d9d9d9;
  --gray-2: #f2f2f0;
  --sand: #e9e1d6;
  --muted: #5f5f5f;
  --muted-light: #b9b9b9;

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --text-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --text-h1: clamp(2.6rem, 1.6rem + 5vw, 6rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --cut: 28px;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  --normal: 420ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Corte en diagonal tomado del isotipo */
.cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.1rem;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 66% 40%, 100% 74%, 74% 100%, 40% 66%, 40% 100%, 0 100%);
}
.eyebrow--light { color: var(--muted-light); }
.eyebrow.center { display: flex; justify-content: center; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bg); border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform var(--fast) var(--ease), background var(--fast), color var(--fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--dark { --bg: var(--ink); --fg: var(--white); }
.btn--dark:hover { --bg: #000; }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--light:hover { --bg: var(--sand); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); clip-path: none; }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--small { min-height: 42px; padding: .55rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: color var(--normal);
}
/* El fondo va en un pseudo-elemento: un backdrop-filter en .header encerraría al menú móvil (position: fixed) dentro del header */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(0,0,0,.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity var(--normal) var(--ease);
}
.header.is-solid::before { opacity: 1; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo { display: block; position: relative; z-index: 2; }
.header__logo img { width: 150px; height: auto; }
.logo-dark { display: none; }
.header.is-solid { color: var(--ink); }
.header.is-solid .logo-light { display: none; }
.header.is-solid .logo-dark { display: block; }
.header.is-solid .nav__cta { --bg: var(--ink); --fg: var(--white); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.2rem); }
.nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 500; font-size: .95rem; padding: .25rem 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--fast) var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform var(--fast) var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--ink-2);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(31,31,31,.92) 0%, rgba(31,31,31,.7) 45%, rgba(31,31,31,.25) 100%),
    linear-gradient(0deg, rgba(31,31,31,.85) 0%, transparent 40%);
}
.hero__arrow {
  position: absolute; z-index: -1; right: -6vw; top: 12%;
  width: min(46vw, 560px); fill: rgba(255,255,255,.06);
  animation: rise 1.4s var(--ease) both;
}
.hero__content { padding-top: 140px; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: var(--text-h1); max-width: 13ch; animation: rise .9s var(--ease) both; }
.hero h1 em { font-style: normal; font-weight: 300; }
.hero__lead { max-width: 54ch; margin-top: 1.6rem; font-size: var(--text-lg); color: rgba(255,255,255,.85); animation: rise .9s .1s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; animation: rise .9s .2s var(--ease) both; }

.hero__pillars { border-top: 1px solid rgba(255,255,255,.18); background: rgba(31,31,31,.55); backdrop-filter: blur(6px); }
.hero__pillars-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__pillars a {
  display: flex; align-items: baseline; gap: .8rem;
  padding: 1.4rem 0; text-decoration: none; font-weight: 700; font-size: var(--text-lg);
  border-left: 1px solid rgba(255,255,255,.18); padding-left: 1.4rem;
  transition: background var(--fast);
}
.hero__pillars a:first-child { border-left: 0; padding-left: 0; }
.hero__pillars a span { font-size: var(--text-sm); font-weight: 400; color: var(--muted-light); }
.hero__pillars a:hover { background: rgba(255,255,255,.05); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--sand { background: var(--sand); }
.section--light { background: var(--gray-2); }
.section--dark { background: var(--ink); color: var(--white); }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section__head--row { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: end; }
.section__head--row .section__intro { margin: 0; }
.section__intro { margin-top: 1.3rem; font-size: var(--text-lg); color: var(--muted); max-width: 60ch; }

/* ---------- Pilares ---------- */
.pillars { display: grid; gap: clamp(4rem, 3rem + 5vw, 8rem); }
.pillar { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.pillar--reverse .pillar__media { order: 2; }
.pillar__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.04); }
.pillar__num {
  display: block; margin-bottom: .6rem;
  font-size: clamp(4rem, 3rem + 4vw, 7rem); font-weight: 900; line-height: .9; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.pillar h3 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin-bottom: 1rem; }
.pillar p { color: var(--muted); font-size: var(--text-lg); }
.ticks { display: grid; gap: .55rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--gray); }
.ticks li { position: relative; padding-left: 1.7rem; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 66% 40%, 100% 74%, 74% 100%, 40% 66%, 40% 100%, 0 100%);
}

/* ---------- Servicios complementarios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(43,43,43,.2); }
.services li {
  display: grid; gap: .4rem; padding: 1.8rem 1.8rem 1.8rem 0;
  border-bottom: 1px solid rgba(43,43,43,.2);
}
.services li:not(:nth-child(3n+1)) { padding-left: 1.8rem; border-left: 1px solid rgba(43,43,43,.2); }
.services strong { font-size: 1.2rem; }
.services span { color: #545048; }

/* ---------- Citas ---------- */
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.quotes blockquote {
  margin: 0; padding: 2rem 1.6rem 2.4rem; background: var(--ink);
  font-size: 1.15rem; font-weight: 300; line-height: 1.45; color: rgba(255,255,255,.88);
}
.quotes__answer { max-width: 48ch; margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); line-height: 1.3; font-weight: 300; }
.quotes__answer strong { font-weight: 700; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.steps li { position: relative; padding: 0 1.4rem 0 0; counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block; margin-bottom: 1.4rem; padding-bottom: 1rem;
  font-weight: 900; font-size: 1rem; letter-spacing: .08em;
  border-bottom: 2px solid var(--ink);
}
.steps li::after {
  content: ""; position: absolute; right: 1.4rem; top: calc(1.6rem + 1px); width: 12px; height: 12px;
  background: var(--ink); transform: translateY(-50%); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.steps p { color: var(--muted); font-size: .98rem; }

/* ---------- Obras ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  min-height: 42px; padding: .5rem 1.1rem; border: 1.5px solid var(--ink); background: transparent;
  border-radius: 999px; font-weight: 500; font-size: .92rem; cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.filter:hover { background: rgba(43,43,43,.08); }
.filter.is-active { background: var(--ink); color: var(--white); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, .6rem + 1.4vw, 1.8rem); }
.works:not(.is-filtered) .work--featured { grid-column: span 1; }
.works:not(.is-filtered) .work--featured:first-child { grid-column: span 2; grid-row: span 2; }
.work { background: var(--white); }
.work[hidden] { display: none; }
.work__open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.work__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray); }
.work--featured:first-child .work__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work__open:hover .work__media img, .work__open:focus-visible .work__media img { transform: scale(1.05); }
.work__count {
  position: absolute; left: .8rem; bottom: .8rem; padding: .3rem .65rem;
  background: rgba(31,31,31,.85); color: var(--white); font-size: .78rem; font-weight: 500; letter-spacing: .04em;
}
.work__body { padding: 1.3rem 1.4rem 1.9rem; }
.work__place { margin: 0 0 .3rem; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.work h3 { font-size: 1.2rem; }
.work__desc { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }
.work__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.work__tags li { padding: .2rem .6rem; background: var(--gray-2); font-size: .78rem; font-weight: 500; }

/* ---------- Beneficios ---------- */
.benefits { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 1rem + 5vw, 6rem); }
.benefits__intro { position: sticky; top: 110px; align-self: start; }
.benefits__intro h2 { margin-bottom: 2rem; }
.benefits__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.benefits__list li { padding: 1.6rem 0; border-top: 1px solid var(--gray); }
.benefits__list h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.benefits__list p { margin: 0; color: var(--muted); }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: clamp(.6rem, .4rem + .8vw, 1.2rem); align-items: center; margin-top: 1.5rem; }
.clients li { display: flex; align-items: center; justify-content: center; height: 104px; padding: .8rem; background: var(--white); }
.clients img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: filter var(--normal), opacity var(--normal); }
.clients li:hover img { filter: none; opacity: 1; }

/* ---------- Nosotros ---------- */
.about { overflow: hidden; }
.about__arrow { position: absolute; left: -8vw; bottom: -14vw; width: min(52vw, 640px); fill: rgba(255,255,255,.04); pointer-events: none; }
.about__inner { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 1rem + 5vw, 6rem); }
.about__text p { font-size: var(--text-lg); color: rgba(255,255,255,.82); }
.about__text strong { color: var(--white); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); }
.facts dt { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.facts dd { margin: .5rem 0 0; color: var(--muted-light); font-size: .92rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.contact__info > p { font-size: var(--text-lg); color: var(--muted); margin-top: 1.3rem; }
.contact__list { display: grid; margin-top: 2rem; border-top: 1px solid var(--gray); }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gray); }
.contact__list span { font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact__list a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { text-decoration: underline; }

.form { display: grid; gap: 1.2rem; padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); background: var(--gray-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label { display: grid; gap: .45rem; font-size: .9rem; font-weight: 500; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid #c9c9c9; border-radius: var(--radius);
  background: var(--white); font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color var(--fast);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { resize: vertical; min-height: 110px; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { margin-bottom: .55rem; font-size: .9rem; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .55rem 1rem; border: 1.5px solid #c9c9c9; border-radius: 999px;
  background: var(--white); font-weight: 500; font-size: .9rem; transition: all var(--fast);
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form__error { margin: 0; padding: .7rem 1rem; background: #fbe9e7; color: #8a1c10; font-weight: 500; font-size: .92rem; }
.form__note { margin: -.4rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-2); color: var(--muted-light); padding-block: 3rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.footer img { width: 160px; height: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer p { margin: 0; font-size: .88rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px;
  background: var(--ink); color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform var(--fast) var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,20,20,.96); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; }
.lightbox figcaption { margin-top: 1rem; text-align: center; color: var(--muted-light); font-size: .95rem; }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; background: rgba(255,255,255,.08); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; transition: background var(--fast); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__nav { display: none; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .steps li:nth-child(3)::after { display: none; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .benefits__intro { position: static; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--ink); color: var(--white);
    opacity: 0; visibility: hidden; transition: opacity var(--normal) var(--ease), visibility var(--normal);
  }
  .nav a:not(.btn) { font-size: 1.6rem; font-weight: 700; }
  .nav .nav__cta { --bg: var(--white); --fg: var(--ink); margin-top: 1rem; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .header { color: var(--white); }
  .nav-open .header::before { opacity: 0; }
  .nav-open .header .logo-light { display: block; }
  .nav-open .header .logo-dark { display: none; }
  .nav-open { overflow: hidden; }

  .section__head--row, .pillar, .about__inner, .contact { grid-template-columns: 1fr; }
  .pillar--reverse .pillar__media { order: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .services li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .services li:nth-child(even) { padding-left: 1.4rem; border-left: 1px solid rgba(43,43,43,.2); }
  .works { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --cut: 20px; }
  .header__logo img { width: 124px; }
  .hero__content { padding-top: 110px; }
  .hero__actions .btn { width: 100%; }
  .hero__pillars-inner { grid-template-columns: 1fr; }
  .hero__pillars a { padding: .85rem 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 1rem; }
  .hero__pillars a:first-child { border-top: 0; }
  .services, .works, .benefits__list, .form__row, .quotes { grid-template-columns: 1fr; }
  .services li:nth-child(even) { padding-left: 0; border-left: 0; }
  .services li { padding-right: 0; }
  .works:not(.is-filtered) .work--featured:first-child { grid-column: auto; grid-row: auto; }
  .work--featured:first-child .work__media { aspect-ratio: 4 / 3; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .clients li { height: 72px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .facts dd { font-size: .8rem; }
  .contact__list li { grid-template-columns: 1fr; gap: .2rem; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
