/* ==========================================================================
   Max T Construction – Design system & components
   --------------------------------------------------------------------------
   1. Tokens          6. Hero / page hero     11. Projects & filters
   2. Base            7. Sections & headings  12. Before / after
   3. Layout          8. Cards & services     13. Forms
   4. Buttons         9. Stats & process      14. Lightbox
   5. Header & nav   10. Testimonials         15. Footer & utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #131518;
  --graphite: #1d2125;
  --steel: #2a2f35;
  --steel-2: #383e45;
  --line-dark: rgba(255, 255, 255, 0.12);
  --mist: #f3f4f5;
  --stone: #e6e8ea;
  --line: #dfe2e5;
  --white: #ffffff;
  --text: #24282d;
  --muted: #5a6168;
  --muted-light: #b7bdc4;

  --accent: #f2b31b;          /* construction yellow – fills & dark backgrounds */
  --accent-hover: #ffc53d;
  --accent-ink: #8a5a00;      /* bronze – accent text on light backgrounds (AA) */

  --success: #1f7a4d;
  --danger: #b42318;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 18px 40px -18px rgba(19, 21, 24, 0.28);
  --shadow-lg: 0 30px 60px -25px rgba(19, 21, 24, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--accent); color: var(--ink); padding: 0.75rem 1.25rem;
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Editable placeholder marker – find "class=\"ph\"" to locate every one */
.ph {
  background: rgba(242, 179, 27, 0.16);
  border-bottom: 1px dashed currentColor;
  padding: 0 0.15em;
  border-radius: 2px;
}

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--graphite); color: var(--muted-light); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--blueprint {
  background-color: var(--graphite);
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.stack > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--muted); }
.section--dark .lead, .hero .lead, .page-hero .lead { color: #d5d9de; }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  min-height: 52px; padding: 0.85rem 1.6rem;
  font: 600 0.95rem/1.2 var(--font-body); letter-spacing: 0.02em;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,0.55); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--steel); --btn-bd: var(--steel); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--whatsapp { --btn-bg: #1f9d55; --btn-fg: #fff; --btn-bd: #1f9d55; }
.btn--whatsapp:hover { --btn-bg: #188046; --btn-bd: #188046; }
.btn--sm { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--white); }

/* 5. Header & navigation --------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}
.site-header::before { /* subtle top fade so the nav stays legible over bright photos */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,11,13,0.6), rgba(10,11,13,0));
  transition: opacity 0.35s var(--ease);
}
.site-header.is-scrolled { --header-h: 70px; background: rgba(19, 21, 24, 0.96); box-shadow: 0 10px 30px -15px rgba(0,0,0,0.6); }
.site-header.is-scrolled::before { opacity: 0; }
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-scrolled { background: rgba(19, 21, 24, 0.86); backdrop-filter: blur(14px) saturate(1.2); }
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 2rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 44px; width: auto; }
.site-header.is-scrolled .brand img { height: 40px; }
.nav-menu { display: flex; align-items: center; gap: 2.25rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 0.5rem 0;
  font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.86); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--accent); }
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-dark);
  background: transparent; border-radius: var(--radius); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 22px; height: 2px; background: var(--white);
  transform: translateX(-50%); transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; transform: none; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-extra { display: none; }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 9rem;
  background: var(--ink);
}
.hero__media, .page-hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,14,16,0.92) 0%, rgba(13,14,16,0.72) 45%, rgba(13,14,16,0.25) 100%),
    linear-gradient(0deg, rgba(13,14,16,0.85) 0%, rgba(13,14,16,0) 40%);
}
.hero__content { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 600px; margin-bottom: 2.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font: 600 0.8rem/1.2 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--accent); flex: none; }
.hero .eyebrow, .page-hero .eyebrow, .section--dark .eyebrow, .cta-band .eyebrow { color: var(--accent); }
.text-center .eyebrow { justify-content: center; }

.hero__strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid var(--line-dark);
  background: rgba(13,14,16,0.55);
}
@supports (backdrop-filter: blur(8px)) { .hero__strip { background: rgba(13,14,16,0.35); backdrop-filter: blur(8px); } }
.hero__strip ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.hero__strip li {
  display: flex; align-items: center; gap: 0.9rem; padding: 1.5rem 1.25rem;
  border-left: 1px solid var(--line-dark); font-size: 0.92rem; color: #d5d9de;
}
.hero__strip li:first-child { border-left: 0; padding-left: 0; }
.hero__strip strong { display: block; color: var(--white); font-family: var(--font-head); font-stretch: 112%; font-size: 1.05rem; }
.hero__strip svg { width: 30px; height: 30px; color: var(--accent); flex: none; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: var(--white); background: var(--ink); overflow: hidden;
  padding: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,14,16,0.92) 0%, rgba(13,14,16,0.7) 55%, rgba(13,14,16,0.45) 100%);
}
.page-hero__content { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
.page-hero .lead { max-width: 620px; margin: 0; }
.breadcrumb { position: relative; z-index: 1; margin-top: 2.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; font-size: 0.875rem; color: var(--muted-light); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--accent); }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 7. Section headings ------------------------------------------------------ */
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.text-center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section--dark .section-head p { color: var(--muted-light); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.section-head--row > div { max-width: 680px; }

/* 8. About intro, cards & services ---------------------------------------- */
.media-stack { position: relative; padding: 0 12% 14% 0; }
.media-stack__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.media-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__sub {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1;
  border: 8px solid var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.media-stack__sub img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__badge {
  position: absolute; left: -1.5rem; bottom: 22%;
  background: var(--accent); color: var(--ink); padding: 1.4rem 1.6rem; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 190px;
}
.media-stack__badge strong { display: block; white-space: nowrap; font: 800 2.5rem/1 var(--font-head); font-stretch: 112%; }
.media-stack__badge > span { font-size: 0.85rem; font-weight: 600; line-height: 1.35; display: block; margin-top: 0.35rem; }

.check-list { list-style: none; display: grid; gap: 0.85rem; margin: 1.75rem 0 2.25rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131518' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check-list--2 { grid-template-columns: 1fr 1fr; gap: 0.85rem 1.75rem; }

/* Service cards */
.service-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--stone); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { padding: 1.6rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; position: relative; }
.service-card__num {
  position: absolute; right: 1.25rem; top: -1.6rem; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); font: 700 0.95rem/1 var(--font-head); border-radius: var(--radius);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; padding-right: 2.5rem; }
.service-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.25rem; flex: 1; }
.service-card .link-arrow { align-self: flex-start; font-size: 0.875rem; }

/* Feature (why choose us) */
.feature { padding: 2rem 1.75rem; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); transition: background 0.35s var(--ease), border-color 0.35s var(--ease); }
.feature:hover { background: rgba(255,255,255,0.03); border-color: rgba(242,179,27,0.45); }
.feature__icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 1.4rem;
  border-radius: var(--radius); background: rgba(242,179,27,0.12); color: var(--accent);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature p { font-size: 0.95rem; margin: 0; }
.section:not(.section--dark) .feature { border-color: var(--line); background: var(--white); }
.section:not(.section--dark) .feature:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.section:not(.section--dark) .feature__icon { color: var(--accent-ink); background: rgba(242,179,27,0.18); }
.section:not(.section--dark) .feature p { color: var(--muted); }

/* Value / pillar card */
.pillar { background: var(--white); padding: 2.25rem 2rem; border-radius: var(--radius-lg); border-top: 4px solid var(--accent); box-shadow: var(--shadow); }
.pillar h3 { margin-bottom: 0.75rem; }
.pillar p { color: var(--muted); margin: 0; }
.pillar .feature__icon { color: var(--accent-ink); background: rgba(242,179,27,0.18); }

/* 9. Stats & process ------------------------------------------------------- */
.stats-band { background: var(--accent); color: var(--ink); padding-block: clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.stats-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12;
  background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(19,21,24,0.6) 22px 24px);
  mask-image: linear-gradient(90deg, transparent 55%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 55%, #000);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.stat { padding: 0.5rem 1.5rem; border-left: 1px solid rgba(19,21,24,0.18); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { display: block; font: 800 clamp(2.5rem, 5vw, 3.75rem)/1 var(--font-head); font-stretch: 112%; letter-spacing: -0.03em; }
.stat__label { display: block; margin-top: 0.6rem; font-weight: 600; font-size: 0.95rem; }
.stats-note { position: relative; z-index: 1; margin: 1.75rem 0 0; font-size: 0.82rem; opacity: 0.8; }

.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.process::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px); opacity: 0.6;
}
.process__step { position: relative; }
.process__step::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.5rem;
  background: var(--ink); color: var(--accent); border: 2px solid var(--accent); border-radius: 50%;
  font: 700 1rem/1 var(--font-head); position: relative;
}
.section--dark .process__step::before { background: var(--graphite); }
.process__step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.process__step p { font-size: 0.95rem; margin: 0; }

/* 10. Testimonials --------------------------------------------------------- */
.testimonial {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border-radius: var(--radius-lg); padding: 2.25rem 2rem; box-shadow: 0 0 0 1px var(--line);
  position: relative;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 0.75rem; right: 1.5rem;
  font: 800 6rem/1 Georgia, serif; color: var(--accent); opacity: 0.35;
}
.testimonial__stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 1.25rem; }
.testimonial__stars svg { width: 18px; height: 18px; }
.testimonial blockquote { margin: 0 0 1.75rem; font-size: 1.02rem; color: var(--text); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 0.9rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ink); color: var(--accent); font: 700 1rem/1 var(--font-head);
}
.testimonial cite { font-style: normal; font-weight: 600; display: block; color: var(--ink); }
.testimonial figcaption div > span { font-size: 0.875rem; color: var(--muted); }

/* Team */
.team-card { text-align: left; }
.team-card__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem;
  background:
    radial-gradient(circle at 50% 38%, #4a5159 0 17%, transparent 17.5%),
    radial-gradient(ellipse at 50% 100%, #4a5159 0 38%, transparent 38.5%),
    linear-gradient(160deg, var(--steel), var(--ink));
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 1rem;
}
.team-card__photo span { font-size: 0.75rem; color: var(--muted-light); background: rgba(0,0,0,0.45); padding: 0.3rem 0.6rem; border-radius: 3px; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.team-card p { margin: 0; color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; }

/* 11. Projects ------------------------------------------------------------- */
.featured-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; gap: 1.25rem; }
.featured-grid > :nth-child(1) { grid-column: span 7; grid-row: span 2; }
.featured-grid > :nth-child(2) { grid-column: span 5; }
.featured-grid > :nth-child(3) { grid-column: span 5; }
.featured-grid > :nth-child(4) { grid-column: span 6; }
.featured-grid > :nth-child(5) { grid-column: span 6; }

.project-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--steel); color: var(--white); text-decoration: none; min-height: 260px;
  border: 0; padding: 0; width: 100%; text-align: left; font: inherit; cursor: pointer;
}
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,14,16,0.92) 0%, rgba(13,14,16,0.35) 45%, rgba(13,14,16,0) 75%);
  transition: background 0.4s var(--ease);
}
.project-tile:hover img, .project-tile:focus-visible img { transform: scale(1.06); }
.project-tile:hover::after { background: linear-gradient(0deg, rgba(13,14,16,0.95) 0%, rgba(13,14,16,0.55) 60%, rgba(13,14,16,0.15) 100%); }
.project-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.75rem; }
.project-tile__cat {
  display: inline-block; margin-bottom: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 3px;
  background: var(--accent); color: var(--ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.project-tile h3 { color: var(--white); font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin-bottom: 0.35rem; }
.project-tile__meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: #d5d9de; }
.project-tile__meta svg { width: 15px; height: 15px; color: var(--accent); }
.project-tile__zoom {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,0.14); color: var(--white);
  opacity: 0; transform: scale(0.85); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
@supports (backdrop-filter: blur(6px)) { .project-tile__zoom { backdrop-filter: blur(6px); } }
.project-tile__zoom svg { width: 20px; height: 20px; }
.project-tile:hover .project-tile__zoom, .project-tile:focus-visible .project-tile__zoom { opacity: 1; transform: scale(1); }

/* Portfolio grid with filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn {
  min-height: 44px; padding: 0.55rem 1.15rem; border-radius: 999px; cursor: pointer;
  font: 500 0.92rem/1 var(--font-body); color: var(--text); background: var(--white); border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-btn .count { margin-left: 0.4rem; font-size: 0.78rem; opacity: 0.65; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.project-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-card[hidden] { display: none; }
.project-card .project-tile { border-radius: 0; aspect-ratio: 4 / 3; min-height: 0; }
.project-card .project-tile::after { background: linear-gradient(0deg, rgba(13,14,16,0.55), rgba(13,14,16,0) 50%); }
.project-card__count {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; background: rgba(13,14,16,0.7); padding: 0.35rem 0.65rem; border-radius: 3px;
}
.project-card__count svg { width: 14px; height: 14px; }
.project-card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.project-card__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.5rem; }
.project-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.project-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.25rem; flex: 1; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
.project-facts dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.project-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.empty-state { display: none; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state.is-visible { display: block; }

/* 12. Before / after ------------------------------------------------------- */
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); background: var(--steel); user-select: none; touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__label {
  position: absolute; top: 1rem; z-index: 2; padding: 0.35rem 0.75rem; border-radius: 3px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(13,14,16,0.75); color: var(--white);
}
.ba__label--before { left: 1rem; }
.ba__label--after { right: 1rem; background: var(--accent); color: var(--ink); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; margin-left: -1.5px;
  background: var(--white); pointer-events: none;
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131518' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__handle::after { outline: 3px solid var(--white); outline-offset: 3px; }
.ba-caption { margin-top: 1.25rem; }
.ba-caption h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.ba-caption p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Services detail page */
.service-nav { position: sticky; top: 70px; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.service-nav ul { display: flex; gap: 0.25rem; list-style: none; overflow-x: auto; scrollbar-width: none; padding-block: 0.6rem; }
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a {
  display: block; white-space: nowrap; padding: 0.55rem 0.9rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: background 0.2s, color 0.2s;
}
.service-nav a:hover { color: var(--ink); background: var(--mist); }
.service-nav a.is-active { background: var(--ink); color: var(--white); }
.service-detail { padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.service-detail:nth-of-type(even) { background: var(--mist); }
.service-detail:nth-of-type(even) .service-detail__media { order: 2; }
.service-detail__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.service-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail__num {
  position: absolute; left: 0; top: 0; padding: 0.9rem 1.2rem; background: var(--accent); color: var(--ink);
  font: 800 1.25rem/1 var(--font-head); border-bottom-right-radius: var(--radius-lg);
}
.service-detail h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.service-detail h3 { font-size: 0.82rem; font-family: var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin: 1.75rem 0 0; }
.service-detail .check-list { margin: 1rem 0 2rem; }

/* 13. Forms ---------------------------------------------------------------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow-lg); color: var(--text); }
.form-card h2, .form-card h3 { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label, .field legend { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.85rem 1rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324282d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c4c9ce; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242,179,27,0.45); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fff6f5; }
.field-error { font-size: 0.82rem; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: 0.8rem; color: var(--muted); }
.check-field { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.875rem; color: var(--muted); }
.check-field input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--ink); flex: none; }
.check-field a { color: var(--ink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--radius); font-size: 0.95rem; align-items: flex-start; gap: 0.75rem; }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.form-status.is-success { display: flex; background: #ecf7f1; color: var(--success); border: 1px solid #b7e0c9; }
.form-status.is-error { display: flex; background: #fdf0ef; color: var(--danger); border: 1px solid #f3c2bd; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn-label::after { content: "…"; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(19,21,24,0.25); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { font-size: 0.8rem; color: var(--muted); margin: 1rem 0 0; }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: calc(-1 * clamp(2.5rem, 5vw, 4rem)); position: relative; z-index: 2; }
.contact-card {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 1.75rem 1.5rem; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text);
  border-bottom: 3px solid transparent; transition: border-color 0.25s, transform 0.25s var(--ease);
}
a.contact-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.contact-card .feature__icon { margin-bottom: 0.9rem; color: var(--accent-ink); background: rgba(242,179,27,0.18); }
.contact-card h3 { font-size: 1rem; margin: 0; font-family: var(--font-body); font-stretch: 100%; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.contact-card strong { font-size: 1.05rem; color: var(--ink); word-break: break-word; }
.contact-card > span { font-size: 0.875rem; color: var(--muted); }
.hours { list-style: none; display: grid; gap: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark); }
.hours li span:last-child { color: var(--white); font-weight: 600; text-align: right; }
.hours li.is-today span:first-child { color: var(--accent); font-weight: 600; }
.open-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.open-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted-light); }
.open-status.is-open::before { background: #34c27a; box-shadow: 0 0 0 4px rgba(52,194,122,0.2); }
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; height: 100%; background: var(--stone); box-shadow: var(--shadow); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; position: relative;
  font: 600 1.075rem/1.4 var(--font-head); font-stretch: 108%; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; max-width: 760px; }

/* CTA band */
.cta-band { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,16,0.95) 0%, rgba(13,14,16,0.82) 50%, rgba(13,14,16,0.6) 100%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: #d5d9de; }
.cta-contacts { list-style: none; display: grid; gap: 1.25rem; margin: 2rem 0 0; }
.cta-contacts a { display: inline-flex; align-items: center; gap: 1rem; color: var(--white); text-decoration: none; }
.cta-contacts a:hover strong { text-decoration: underline; text-decoration-color: var(--accent); }
.cta-contacts .feature__icon { margin: 0; width: 50px; height: 50px; }
.cta-contacts small { display: block; color: var(--muted-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.cta-contacts strong { font-size: 1.05rem; }
.cta-strip { background: var(--ink); color: var(--white); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-strip h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0 0 0.4rem; }
.cta-strip p { color: var(--muted-light); margin: 0; }

/* 14. Lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center;
  background: rgba(10, 11, 13, 0.96); padding: 4.5rem 4.5rem 6rem;
}
.lightbox.is-open { display: flex; animation: fadeIn 0.25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; max-width: 1200px; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: calc(100% - 3rem); object-fit: contain; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,0.6); transition: opacity 0.25s; }
.lightbox__img.is-loading { opacity: 0.2; }
.lightbox__caption { margin-top: 1.1rem; color: #d5d9de; text-align: center; font-size: 0.95rem; }
.lightbox__caption strong { color: var(--white); }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: var(--white); transition: background 0.2s, color 0.2s;
}
.lightbox__btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; top: 1.6rem; left: 1.5rem; color: var(--muted-light); font-size: 0.875rem; letter-spacing: 0.1em; }
.lightbox__thumbs { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; max-width: calc(100% - 2rem); overflow-x: auto; padding: 4px; }
.lightbox__thumbs button { width: 64px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; cursor: pointer; opacity: 0.55; background: var(--steel); flex: none; }
.lightbox__thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* 15. Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--muted-light); font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(4rem, 7vw, 5.5rem) 3.5rem; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { max-width: 340px; }
.site-footer h2 { font-size: 0.82rem; font-family: var(--font-body); font-stretch: 100%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 1.4rem; }
.footer-links { list-style: none; display: grid; gap: 0.7rem; }
.footer-links a, .footer-contact a { color: var(--muted-light); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { list-style: none; display: grid; gap: 1rem; }
.footer-contact li { display: flex; gap: 0.8rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 0.3rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.75rem; list-style: none; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--white); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 1.5rem; font-size: 0.85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted-light); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom ul { display: flex; gap: 1.5rem; list-style: none; }

/* Floating actions */
.float-whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #1f9d55; color: #fff; box-shadow: 0 12px 30px -8px rgba(0,0,0,0.45);
  transition: transform 0.25s var(--ease), background 0.2s;
}
.float-whatsapp:hover { transform: scale(1.07); background: #188046; }
.float-whatsapp svg { width: 30px; height: 30px; }
.float-whatsapp__label {
  position: absolute; right: calc(100% + 0.75rem); white-space: nowrap; background: var(--ink); color: var(--white);
  font-size: 0.82rem; font-weight: 600; padding: 0.45rem 0.8rem; border-radius: var(--radius);
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.float-whatsapp:hover .float-whatsapp__label, .float-whatsapp:focus-visible .float-whatsapp__label { opacity: 1; transform: none; }
.to-top {
  position: fixed; right: 1.25rem; bottom: 5.75rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: var(--white); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); border-color: var(--accent); }
.to-top svg { width: 20px; height: 20px; }

/* Prose (privacy etc.) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.4rem; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-phone { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: block; z-index: 2; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; background: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { font: 600 1.6rem/1.2 var(--font-head); font-stretch: 112%; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  .nav-phone { display: inline-flex; justify-content: center; padding: 0.75rem; }
  .nav-mobile-extra { display: block; color: var(--muted-light); font-size: 0.9rem; }
  .split, .split--wide-left { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .process::before { display: none; }
  .hero__strip ul { grid-template-columns: repeat(2, 1fr); }
  .hero__strip li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__strip li { padding-block: 1.1rem; }
  .hero { padding-bottom: 12rem; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; }
  .featured-grid > :nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .featured-grid > :nth-child(1) { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .service-detail:nth-of-type(even) .service-detail__media { order: 0; }
  .media-stack { max-width: 560px; }
  .service-nav { top: 74px; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .portfolio-grid, .form-grid, .check-list--2 { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .featured-grid > :nth-child(1) { grid-column: span 1; }
  .hero { padding-bottom: 0; min-height: 0; padding-top: calc(var(--header-h) + 4rem); }
  .hero__strip { position: relative; }
  .hero { flex-direction: column; align-items: stretch; }
  .hero__strip { margin-top: 3rem; }
  .hero__strip ul { grid-template-columns: 1fr 1fr; }
  .hero__strip li { padding: 1rem 0.75rem; font-size: 0.82rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; border-left: 1px solid var(--line-dark); }
  .hero__strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero__strip li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .btn-row .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 0 0.75rem; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .process { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .media-stack { padding: 0 8% 18% 0; }
  .media-stack__badge { left: 0.75rem; bottom: auto; top: 1rem; padding: 1rem 1.15rem; }
  .media-stack__badge strong { font-size: 2rem; }
  .lightbox { padding: 4rem 0.75rem 5.5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; width: 46px; height: 46px; }
  .lightbox__thumbs { display: none; }
  .section-head--row { align-items: flex-start; }
  .map-wrap { min-height: 340px; }
  .float-whatsapp__label { display: none; }
}

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

@media print {
  .site-header, .float-whatsapp, .to-top, .lightbox, .nav-toggle { display: none !important; }
  .hero, .page-hero { min-height: 0; padding: 2rem 0; }
}

/* Refinements */
.brand { position: relative; z-index: 2; }
.service-detail { scroll-margin-top: calc(var(--header-h) + 64px); }
.contact-card strong { font-size: 1rem; overflow-wrap: anywhere; }
