/* ==========================================================================
   Renovmorrow — main stylesheet
   Palette, type and spacing tokens live in :root. Edit them there.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e3342f;          /* brand accent: lines, icons, wordmark */
  --red-ui: #c92b26;       /* filled surfaces & red text (AA contrast with white) */
  --red-dark: #a8221e;
  --black: #171717;
  --charcoal: #292929;
  --gray: #777777;
  --gray-text: #5c5c5c;    /* body copy on light backgrounds (AA) */
  --line: #e2e2e2;
  --light: #f5f5f5;
  --header-bg: #f2f2f2;
  --white: #ffffff;

  --font-head: "Montserrat", "Arial Black", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 136px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--black); line-height: 1.08; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--white); }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--black); color: var(--white); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--light { background: var(--light); }
.section--dark { background: var(--black); color: #d6d6d6; }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red-ui); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 40px; height: 3px; background: var(--red); flex: none; }
.section--dark .eyebrow, .on-dark .eyebrow, .eyebrow.on-dark { color: #ff8a86; }
.h-display {
  font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.01em; line-height: 1.02;
}
.h-section { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
.h-italic { font-style: italic; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.7; color: var(--gray-text); }
.section--dark .lead { color: #c9c9c9; }
.text-red { color: var(--red); }
.muted { color: var(--gray-text); }
.small { font-size: .875rem; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--red-ui);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--b); background: var(--b); color: var(--white);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); flex: none; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:hover svg { transform: translateX(4px); }
.btn--outline { background: transparent; color: var(--red-ui); }
.btn--outline:hover { background: var(--red-ui); color: var(--white); border-color: var(--red-ui); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.85); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--white:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--dark { background: var(--black); border-color: var(--black); }
.btn--dark:hover { background: var(--red-ui); border-color: var(--red-ui); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--black); text-decoration: none; padding-block: 6px; border-bottom: 2px solid var(--red);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.on-dark .link-arrow, .section--dark .link-arrow { color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 216px; height: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 34px); list-style: none; }
.nav-list > li { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 30px 0;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--black); transition: color .2s; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active { color: var(--red-ui); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after { transform: scaleX(1); }
.sub-toggle {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -4px; padding: 0;
  border: 0; background: none; cursor: pointer; color: var(--black);
}
.sub-toggle svg { width: 12px; height: 12px; transition: transform .25s; }
.has-sub { display: flex; align-items: center; }
.submenu {
  position: absolute; top: 100%; left: -24px; min-width: 300px; list-style: none;
  background: var(--white); border-top: 3px solid var(--red); box-shadow: 0 20px 50px rgba(0,0,0,.14);
  padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 24px; text-decoration: none;
  font-size: .92rem; font-weight: 500; color: var(--charcoal);
}
.submenu a span { font-family: var(--font-head); font-size: .7rem; font-weight: 800; color: var(--red-ui); }
.submenu a:hover, .submenu a:focus-visible { background: var(--light); color: var(--red-ui); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.header-cta { flex: none; min-height: 46px; padding: 10px 20px; font-size: .74rem; }
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0; border: 2px solid var(--black); background: transparent; cursor: pointer;
  position: relative; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--black); content: ""; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; 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); }
.mobile-cta { display: none; }

@media (max-width: 1340px) {
  .brand img { width: 184px; }
  .nav-list { gap: 18px; }
  .nav-link { font-size: .72rem; letter-spacing: .07em; }
  .header-cta { padding: 10px 14px; font-size: .7rem; letter-spacing: .08em; }
}
@media (max-width: 1180px) {
  .brand img { width: 160px; }
  .nav-list { gap: 14px; }
  .nav-link { font-size: .68rem; letter-spacing: .05em; }
}
@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; display: block;
    background: var(--white); overflow-y: auto; padding: 12px var(--gutter) 40px;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; padding: 18px 0; font-size: .95rem; }
  .nav-link::after { display: none; }
  .has-sub { flex-wrap: wrap; }
  .has-sub .nav-link { width: auto; flex: 1; }
  .sub-toggle { width: 48px; height: 48px; }
  .submenu {
    position: static; width: 100%; min-width: 0; box-shadow: none; border-top: 0; padding: 0 0 12px;
    opacity: 1; visibility: visible; transform: none; display: none; background: transparent;
  }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.is-open .submenu { display: block; }
  .submenu a { padding: 12px 0 12px 8px; }
  .mobile-cta { display: flex; width: 100%; margin-top: 28px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand img { width: 168px; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: max(560px, calc(84vh - var(--header-h)));
  display: flex; align-items: center; overflow: hidden; background: var(--black);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(17,17,17,.9) 0%, rgba(17,17,17,.72) 42%, rgba(17,17,17,.35) 100%),
    linear-gradient(0deg, rgba(17,17,17,.7) 0%, rgba(17,17,17,0) 40%);
}
.hero__inner { position: relative; padding-block: clamp(48px, 8vh, 110px); }
.hero__kicker {
  display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(16px, 3vh, 28px);
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #e9e9e9;
}
.hero__kicker::before { content: ""; width: 72px; height: 4px; background: var(--red); }
.hero__title {
  margin: 0 0 30px; color: var(--white);
  font-size: clamp(1.6rem, min(8.4vw, 10.5vh), 6.6rem); font-weight: 900; font-style: italic; text-transform: uppercase;
  line-height: .93; letter-spacing: -.015em;
}
.hero__title span { display: block; }
.hero__title .dot { display: inline; color: var(--red); }
.hero__text { max-width: 560px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #e4e4e4; margin-bottom: clamp(24px, 4vh, 38px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__side {
  position: absolute; right: var(--gutter); bottom: 40px; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-head); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 14px;
}
.hero__side::after { content: ""; width: 1px; height: 60px; background: rgba(255,255,255,.4); }

/* Service ticker band under hero */
.ticker { background: var(--charcoal); color: var(--white); }
.ticker ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 40px; list-style: none; padding-block: 22px;
}
.ticker li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; }
.ticker li::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: skewX(-14deg); }
.ticker a { text-decoration: none; }
.ticker a:hover { color: #ff8a86; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; color: var(--white); background: var(--black); overflow: hidden;
  min-height: clamp(380px, 54vh, 560px); display: flex; align-items: flex-end;
}
.page-hero__media, .page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero__media { z-index: -2; }
.page-hero__media img { object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(17,17,17,.9) 0%, rgba(17,17,17,.6) 60%, rgba(17,17,17,.35) 100%), linear-gradient(0deg, rgba(17,17,17,.6), transparent 50%);
}
.page-hero__inner { padding-block: clamp(56px, 7vw, 96px); width: 100%; }
.page-hero h1 {
  color: var(--white); font-size: clamp(2.3rem, 6vw, 5rem); font-weight: 900; font-style: italic; text-transform: uppercase;
  line-height: .95; letter-spacing: -.01em; margin: 0 0 18px; max-width: 15ch;
}
.page-hero p { max-width: 620px; color: #e2e2e2; font-size: clamp(1.02rem, 1.4vw, 1.18rem); margin: 0; }
.page-hero--short { min-height: clamp(300px, 40vh, 420px); }
.page-hero__num {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 6vw, 80px); z-index: -1;
  font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: clamp(6rem, 16vw, 15rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.22);
}
.breadcrumb { margin-bottom: 26px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: #cfcfcf; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--red); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================================
   Home — intro split
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.split--wide-media { grid-template-columns: 5fr 6fr; }
.media-frame { position: relative; }
.media-frame::before {
  content: ""; position: absolute; z-index: 0; width: 46%; height: 62%; right: -22px; bottom: -22px; background: var(--red);
}
.media-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.media-frame--land img { aspect-ratio: 4 / 3; }
.media-frame--left::before { right: auto; left: -22px; }
.figure-tag {
  position: absolute; z-index: 2; left: 0; bottom: 0; background: var(--black); color: var(--white);
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px;
}
.key-points { list-style: none; margin-top: 34px; border-top: 1px solid var(--line); }
.key-points li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.key-points b { font-family: var(--font-head); font-weight: 800; color: var(--red-ui); font-size: .9rem; padding-top: 2px; }
.key-points strong { display: block; font-family: var(--font-head); color: var(--black); font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }
.key-points span { color: var(--gray-text); font-size: .96rem; }

/* ==========================================================================
   Section heads
   ========================================================================== */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 60px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > div { max-width: 720px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 18px 0 0; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ==========================================================================
   Service cards
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; }
.service-card { position: relative; background: var(--white); display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.service-card:hover { box-shadow: 0 24px 50px rgba(0,0,0,.12); transform: translateY(-4px); }
.service-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--charcoal); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__num {
  position: absolute; left: 0; top: 0; background: var(--red-ui); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: .85rem; padding: 10px 14px; letter-spacing: .06em;
}
.service-card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 12px; }
.service-card h3 a { text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card p { color: var(--gray-text); font-size: .98rem; margin-bottom: 22px; }
.service-card .more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ui);
}
.service-card .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.service-card:hover .more svg { transform: translateX(6px); }
.service-card::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 4px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-card:hover::after, .service-card:focus-within::after { transform: scaleX(1); }

/* ==========================================================================
   Statement band
   ========================================================================== */
.statement { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--black); }
.statement__media, .statement__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.statement__media { z-index: -2; }
.statement__media img { object-fit: cover; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(17,17,17,.94) 10%, rgba(17,17,17,.7) 60%, rgba(23,23,23,.55)); }
.statement__inner { padding-block: clamp(96px, 12vw, 180px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.statement h2 {
  color: var(--white); font-size: clamp(2.3rem, 5.6vw, 4.9rem); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .95; margin: 0;
}
.statement h2 em { font-style: italic; color: var(--red); }
.statement p { color: #dcdcdc; font-size: 1.15rem; margin-bottom: 30px; }
.statement__bar { width: 80px; height: 4px; background: var(--red); margin-bottom: 30px; }

/* ==========================================================================
   Project showcase / gallery
   ========================================================================== */
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; background: var(--light); border-left: 4px solid var(--red);
  font-size: .92rem; color: var(--charcoal); margin: 0;
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--red-ui); }
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 21vw, 300px); gap: 16px; list-style: none; }
.showcase li:first-child { grid-column: span 2; grid-row: span 2; }
.showcase li:nth-child(4) { grid-column: span 2; }
.tile { position: relative; height: 100%; overflow: hidden; background: var(--charcoal); margin: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,17,17,.85) 0%, rgba(17,17,17,0) 55%); }
.tile figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px 24px; color: var(--white); }
.tile figcaption strong { display: block; font-family: var(--font-head); font-size: clamp(1rem, 1.4vw, 1.2rem); text-transform: uppercase; font-weight: 800; }
.tile figcaption span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #d3d3d3; }
.tile .cat {
  position: absolute; z-index: 1; top: 16px; left: 16px; background: var(--white); color: var(--black);
  font-family: var(--font-head); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px;
}
.tile:hover img { transform: scale(1.05); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  min-height: 46px; padding: 10px 20px; background: var(--white); border: 2px solid var(--line); cursor: pointer;
  font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--black);
  transition: border-color .2s, background .2s, color .2s;
}
.filter-btn:hover { border-color: var(--black); }
.filter-btn[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px; list-style: none; }
.gallery li { aspect-ratio: 4 / 3; }
.gallery li.is-tall { grid-row: span 2; aspect-ratio: auto; }
.gallery li[hidden] { display: none; }
.gallery button.tile { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; text-align: left; font: inherit; }
.gallery-count { font-size: .9rem; color: var(--gray-text); margin: -18px 0 26px; }

.lightbox { border: 0; padding: 0; max-width: min(1200px, 94vw); width: 100%; background: transparent; }
.lightbox::backdrop { background: rgba(10,10,10,.92); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; background: #111; }
.lightbox figcaption { color: #e6e6e6; padding: 14px 4px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
.lightbox figcaption a { color: #fff; }
.lightbox__close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border: 0; background: var(--red-ui); color: var(--white);
  cursor: pointer; display: grid; place-items: center;
}
.lightbox__close svg { width: 20px; height: 20px; }

/* ==========================================================================
   Process timeline (home: horizontal)
   ========================================================================== */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 37px; height: 2px; background: #d4d4d4; }
.timeline li { position: relative; padding-right: 32px; }
.timeline__num {
  position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 28px;
  background: var(--white); border: 2px solid var(--black);
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; font-style: italic; color: var(--black);
  transition: background .3s, color .3s, border-color .3s;
}
.timeline li:hover .timeline__num { background: var(--red-ui); border-color: var(--red-ui); color: var(--white); }
.timeline li:first-child .timeline__num { background: var(--black); color: var(--white); }
.timeline h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.timeline p { color: var(--gray-text); font-size: .98rem; margin: 0; }

/* Process page: vertical stages */
.stages { list-style: none; }
.stage { display: grid; grid-template-columns: 220px 1fr 1fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); align-items: start; }
.stage:last-child { border-bottom: 1px solid var(--line); }
.stage__num { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--black); }
.stage__num small { display: block; -webkit-text-stroke: 0; color: var(--red-ui); font-size: .78rem; font-style: normal; letter-spacing: .2em; margin-top: 16px; text-transform: uppercase; }
.stage h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); text-transform: uppercase; }
.stage__list { list-style: none; margin-top: 4px; }
.stage__list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.stage__list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 2px; background: var(--red); }
.stage__aside { background: var(--light); padding: 28px; }
.stage__aside h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red-ui); margin-bottom: 10px; }
.stage__aside p:last-child { margin: 0; }
.stage__img { margin-top: 28px; }
.stage__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ==========================================================================
   Why / features
   ========================================================================== */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.why__media { position: relative; padding: 0 0 70px 0; }
.why__media .main { width: 82%; aspect-ratio: 3 / 4; object-fit: cover; }
.why__media .inset { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover; border: 10px solid var(--white); }
.section--light .why__media .inset { border-color: var(--light); }
.why__media .stripe { position: absolute; left: -18px; top: 40px; width: 6px; height: 160px; background: var(--red); }
.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 36px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.feature:last-child { grid-column: 1 / -1; }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--black); color: var(--white); }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; margin: 2px 0 6px; }
.feature p { font-size: .95rem; color: var(--gray-text); margin: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--red-ui); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; z-index: -1; right: -6%; top: -40%; width: 46%; height: 180%;
  background: var(--red-dark); transform: skewX(-18deg); opacity: .55;
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; right: 30%; top: -40%; width: 4%; height: 180%; background: rgba(255,255,255,.07); transform: skewX(-18deg);
}
.cta-band__inner { display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; padding-block: clamp(72px, 8vw, 112px); }
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .98; margin-bottom: 18px; }
.cta-band p { font-size: 1.15rem; margin: 0; max-width: 620px; color: #fff; }

/* ==========================================================================
   About page
   ========================================================================== */
.pull { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; text-transform: uppercase; color: var(--black); margin: 0; }
.pull em { font-style: italic; color: var(--red-ui); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.values { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #333; border: 1px solid #333; }
.values li { background: var(--black); padding: 40px 32px 44px; }
.values b { display: block; font-family: var(--font-head); font-style: italic; font-weight: 900; font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1.5px var(--red); line-height: 1; margin-bottom: 26px; }
.values h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.values p { font-size: .95rem; color: #bdbdbd; margin: 0; }
.plan-list { list-style: none; counter-reset: p; margin-top: 30px; }
.plan-list li { counter-increment: p; position: relative; padding: 20px 0 20px 64px; border-top: 1px solid var(--line); }
.plan-list li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 1.4rem; color: var(--red-ui); }
.plan-list strong { display: block; font-family: var(--font-head); text-transform: uppercase; color: var(--black); font-size: 1rem; margin-bottom: 4px; }
.plan-list span { color: var(--gray-text); font-size: .97rem; }

/* ==========================================================================
   Services directory (servicios/)
   ========================================================================== */
.svc-rows { list-style: none; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.svc-row:first-child { border-top: 1px solid var(--line); }
.svc-row__media { position: relative; overflow: hidden; min-height: 380px; }
.svc-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-row:hover .svc-row__media img { transform: scale(1.04); }
.svc-row__body { padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.svc-row:nth-child(even) .svc-row__media { order: 2; }
.svc-row__num { font-family: var(--font-head); font-size: .8rem; font-weight: 800; letter-spacing: .2em; color: var(--red-ui); margin-bottom: 14px; }
.svc-row h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; margin-bottom: 14px; }
.svc-row p { color: var(--gray-text); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 28px; }
.tags li { font-size: .78rem; font-weight: 600; padding: 7px 12px; background: var(--light); color: var(--charcoal); }

/* ==========================================================================
   Service detail
   ========================================================================== */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 28px); background: var(--black); color: #d6d6d6; padding: 36px 32px; }
.svc-aside h2 { color: var(--white); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }
.svc-aside dl { margin: 0 0 28px; }
.svc-aside dt { font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #ff6b66; margin-top: 18px; }
.svc-aside dd { margin: 4px 0 0; font-size: .95rem; }
.svc-aside .btn { width: 100%; }
.svc-aside .alt { display: block; margin-top: 16px; font-size: .88rem; color: #cfcfcf; }
.svc-aside .alt a { color: var(--white); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; margin-top: 0; }
.prose h3 { font-size: 1.1rem; text-transform: uppercase; margin-top: 1.8em; }
.prose p, .prose li { color: #3f3f3f; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.scope { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 28px 0 0; }
.scope li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: .98rem; color: var(--charcoal); }
.scope svg { width: 22px; height: 22px; color: var(--red-ui); margin-top: 2px; }
.considerations { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: c; }
.considerations li { counter-increment: c; background: var(--white); padding: 34px 28px; border-top: 4px solid var(--black); }
.considerations li::before { content: counter(c, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 2rem; color: var(--red-ui); margin-bottom: 14px; }
.considerations h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }
.considerations p { font-size: .95rem; color: var(--gray-text); margin: 0; }
.trio { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(180px, 260px)); gap: 16px; list-style: none; }
.trio li:first-child { grid-row: span 2; }
.trio .tile { height: 100%; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 28px); }
.faq-contact { margin-top: 32px; padding: 28px; background: var(--black); color: #d0d0d0; }
.faq-contact h2 { color: var(--white); font-size: 1.05rem; text-transform: uppercase; }
.faq-contact a:not(.btn) { color: var(--white); word-break: break-all; }
.accordion { border-top: 2px solid var(--black); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { margin: 0; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left;
  padding: 26px 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 700; color: var(--black); line-height: 1.35;
}
.acc-btn:hover { color: var(--red-ui); }
.acc-icon { position: relative; flex: none; width: 36px; height: 36px; border: 2px solid currentColor; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] { color: var(--red-ui); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { padding: 0 60px 26px 0; color: var(--gray-text); }
.acc-panel p:last-child { margin: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrap { display: grid; grid-template-columns: 5fr 7fr; background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.08); }
.contact-info { background: var(--black); color: #d6d6d6; padding: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.contact-info::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border: 30px solid rgba(227,52,47,.18); transform: rotate(45deg); }
.contact-info h2 { color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2rem); text-transform: uppercase; font-style: italic; font-weight: 900; }
.contact-list { list-style: none; margin: 36px 0; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid #333; }
.contact-list li:last-child { border-bottom: 1px solid #333; }
.contact-list .ic { width: 48px; height: 48px; display: grid; place-items: center; background: var(--red-ui); color: #fff; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-family: var(--font-head); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 4px; }
.contact-list a, .contact-list address { color: var(--white); font-style: normal; word-break: break-word; }
.contact-form { padding: clamp(32px, 5vw, 64px); }
.contact-form h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--black); }
.field label .req { color: var(--red-ui); }
.field label .opt { color: var(--gray-text); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border: 1.5px solid #cfcfcf; border-radius: 0; background: var(--white);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(227,52,47,.25); }
.field [aria-invalid="true"] { border-color: var(--red-ui); }
.field-error { font-size: .85rem; color: var(--red-ui); font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--gray-text); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red-ui); }
.check a { color: var(--black); font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.form-note { font-size: .82rem; color: var(--gray-text); margin: 0; }
.form-status { margin-top: 24px; padding: 18px 20px; border-left: 4px solid; font-size: .96rem; }
.form-status[hidden] { display: none; }
.form-status.is-success { border-color: #1f8a4c; background: #edf7f1; color: #14532d; }
.form-status.is-error { border-color: var(--red-ui); background: #fdf0ef; color: #7a1714; }
.form-status strong { display: block; margin-bottom: 4px; }
.map-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--white); font-weight: 600; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 28px); border-top: 3px solid var(--black); padding-top: 18px; }
.legal-toc h2 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.legal-toc ol { list-style: none; counter-reset: t; }
.legal-toc li { counter-increment: t; }
.legal-toc a { display: block; padding: 7px 0; font-size: .9rem; color: var(--gray-text); text-decoration: none; }
.legal-toc a::before { content: counter(t, decimal-leading-zero) "  "; font-weight: 700; color: var(--red-ui); }
.legal-toc a:hover { color: var(--black); }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 1.3rem; text-transform: uppercase; margin-top: 2.2em; padding-top: 6px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #3f3f3f; }
.legal-body ul { padding-left: 1.2em; margin-bottom: 1.1em; }
.legal-body li { margin-bottom: .45em; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: .92rem; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--light); font-family: var(--font-head); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.updated { display: inline-block; font-size: .85rem; background: var(--light); padding: 8px 14px; margin-bottom: 28px; }

/* ==========================================================================
   404
   ========================================================================== */
.error-page { position: relative; isolation: isolate; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; color: #fff; background: var(--black); overflow: hidden; }
.error-page .page-hero__media { z-index: -2; position: absolute; inset: 0; }
.error-page .page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.error-code { font-family: var(--font-head); font-size: clamp(7rem, 22vw, 16rem); font-weight: 900; font-style: italic; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--red); margin: 0 0 24px; }
.error-page h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); font-style: italic; text-transform: uppercase; font-weight: 900; }
.error-page p { color: #d6d6d6; max-width: 560px; }
.error-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--charcoal); color: #bdbdbd; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 48px; padding-block: clamp(64px, 7vw, 96px) 56px; }
.footer-brand img { width: 220px; margin-bottom: 24px; }
.footer-brand p { color: #b5b5b5; max-width: 340px; }
.footer-tagline { font-family: var(--font-head); font-weight: 800; font-style: italic; text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.site-footer h2 { color: var(--white); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.site-footer h2::before { content: ""; width: 18px; height: 3px; background: var(--red); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #c9c9c9; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 16px; }
.footer-contact small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #a8a8a8; font-weight: 600; }
.footer-contact a, .footer-contact address { color: var(--white); font-style: normal; word-break: break-word; }
.footer-note { border-top: 1px solid #3a3a3a; padding-block: 22px; font-size: .82rem; color: #a3a3a3; }
.footer-note p { margin: 0; }
.footer-note a { color: #d0d0d0; }
.footer-bottom { background: var(--black); padding-block: 22px; font-size: .84rem; color: #9a9a9a; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.legal-links a, .legal-links button { color: #c9c9c9; text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: .84rem; }
.legal-links a:hover, .legal-links button:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Cookie consent
   ========================================================================== */
.cookie-banner {
  position: fixed; z-index: 200; left: 20px; bottom: 20px; width: min(460px, calc(100vw - 40px));
  background: var(--black); color: #d6d6d6; padding: 26px 26px 22px; border-top: 4px solid var(--red);
  box-shadow: 0 24px 60px rgba(0,0,0,.35); font-size: .9rem; line-height: 1.6;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.cookie-banner a { color: #fff; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cookie-actions .btn { min-height: 46px; padding: 10px 14px; font-size: .7rem; white-space: normal; text-align: center; }
.cookie-actions .full { grid-column: 1 / -1; }
.cookie-prefs { margin-top: 16px; border-top: 1px solid #333; }
.cookie-prefs[hidden] { display: none; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #333; }
.pref strong { color: #fff; display: block; font-size: .88rem; }
.pref span { font-size: .8rem; color: #aaa; }
.switch { position: relative; width: 48px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: #444; transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--red-ui); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid #fff; outline-offset: 2px; }
.switch input:disabled + i { opacity: .55; }

/* ==========================================================================
   Reveal animation (only with JS and motion allowed)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-delay-1 { transition-delay: .1s; }
  .js .reveal-delay-2 { transition-delay: .2s; }
  .js .reveal-delay-3 { transition-delay: .3s; }
  .hero__title span { animation: rise 1s var(--ease) both; }
  .hero__title span:nth-child(2) { animation-delay: .08s; }
  .hero__title span:nth-child(3) { animation-delay: .16s; }
  .hero__title span:nth-child(4) { animation-delay: .24s; }
  .hero__media img { animation: settle 2.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .svc-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .timeline::before { display: none; }
  .statement__inner, .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why__media { max-width: 560px; }
  .stage { grid-template-columns: 140px 1fr; }
  .stage__aside-wrap { grid-column: 2; }
  .considerations { grid-template-columns: minmax(0, 1fr); }
  .svc-layout, .faq-layout, .legal { grid-template-columns: minmax(0, 1fr); }
  .svc-aside, .faq-side, .legal-toc { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .split, .split--wide-media, .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .split .media-frame { margin-right: 22px; }
  .showcase { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .showcase li:first-child { grid-column: span 2; grid-row: span 1; }
  .showcase li:nth-child(4) { grid-column: span 1; }
  .showcase li:last-child { grid-column: span 2; }
  .svc-row { grid-template-columns: minmax(0, 1fr); }
  .svc-row:nth-child(even) .svc-row__media { order: 0; }
  .svc-row__media { min-height: 0; aspect-ratio: 16 / 10; }
  .hero__side { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .service-grid, .features, .values, .gallery, .scope, .form-grid, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .feature:last-child { grid-column: auto; }
  .gallery li.is-tall { grid-row: auto; aspect-ratio: 4 / 3; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { padding: 0 0 36px 96px; min-height: 76px; }
  .timeline__num { position: absolute; left: 0; top: 0; margin: 0; width: 68px; height: 68px; }
  .timeline li:not(:last-child)::after { content: ""; position: absolute; left: 34px; top: 76px; bottom: 6px; width: 2px; background: #d4d4d4; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .stage__aside-wrap { grid-column: auto; }
  .trio { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .trio li { aspect-ratio: 4 / 3; }
  .trio li:first-child { grid-row: auto; }
  .showcase { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
  .showcase li:first-child, .showcase li:nth-child(4), .showcase li:last-child { grid-column: auto; }
  .hero { min-height: calc(100svh - var(--header-h)); align-items: flex-end; }
  .hero__actions .btn { width: 100%; }
  .ticker ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .acc-panel { padding-right: 0; }
  .cta-band .btn, .statement .btn { width: 100%; }
  .footer-brand img { width: 200px; }
  .media-frame::before { right: -14px; bottom: -14px; }
  .split .media-frame { margin-right: 14px; }
  .why__media .stripe { left: -10px; }
  .contact-form, .contact-info { padding: 28px 20px; }
  .cookie-banner { left: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 22px 18px 18px; }
}
@media (max-width: 360px) {
  .cookie-actions { grid-template-columns: minmax(0, 1fr); }
  .btn { padding-inline: 18px; letter-spacing: .08em; }
}

@media print {
  .site-header, .cookie-banner, .cta-band, .site-footer { display: none; }
}

/* Gallery button captions (no <figcaption> inside <button>) */
.tile__cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 20px 22px; color: var(--white); }
.tile__cap strong { display: block; font-family: var(--font-head); font-size: clamp(.95rem, 1.3vw, 1.1rem); text-transform: uppercase; font-weight: 800; }
.tile__cap span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #d3d3d3; }

/* Long e-mail addresses and URLs must never force horizontal scroll */
.svc-aside a, .faq-contact a, .legal-body a, .contact-list a, .footer-contact a, .notice span { overflow-wrap: anywhere; }
.legal-body, .prose, .stage > div { min-width: 0; }

@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}

@media (max-width: 760px) { .ticker ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ticker li { white-space: normal; } }
@media (max-width: 420px) { .ticker ul { grid-template-columns: minmax(0, 1fr); } }

/* pt-BR: room for descenders such as the cedilla (Ç) in tight display headings */
html[lang="pt-BR"] .hero__title { line-height: 1.02; }
html[lang="pt-BR"] .page-hero h1,
html[lang="pt-BR"] .statement h2,
html[lang="pt-BR"] .cta-band h2,
html[lang="pt-BR"] .error-page h1 { line-height: 1.06; }
html[lang="pt-BR"] .h-display { line-height: 1.08; }
