/* ============================================================
   Teixeirasemprogresso, Lda — Redesign 2026
   Direction: clean architectural base + technical-drawing signature
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --canvas: #f1f1ec;
  --canvas-2: #e9e9e2;
  --paper: #fbfbf8;
  --ink: #141619;
  --ink-soft: #3c3f43;
  --muted: #8a8c87;
  --line: #d7d6cd;
  --line-soft: #e2e1d8;
  --orange: #eb5a14;
  --orange-deep: #c5470a;
  --dark: #15171a;
  --dark-2: #1d2024;
  --dark-line: #2c3034;

  --ff-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "Inter", system-ui, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--ff-body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--orange); color: #fff; }
/* On orange backgrounds, use a white highlight so the selection stays visible */
.cta ::selection, .cta::selection,
.hero-alvara::selection,
.about-badge::selection, .about-badge ::selection { background: #fff; color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--orange);
}
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }

/* Prevent grid/flex children from forcing tracks wider than the viewport */
.hero-grid > *, .hero-lead > *, .hero-actions > *,
.about-grid > *, .about-content, .services-grid > *,
.faq-grid > *, .cta-inner > *, .footer-top > *,
.counter-cell, .contact-grid > * { min-width: 0; }

/* Section index marker (signature: meaningful sequence) */
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); position: relative; }
.sec-index {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 18px;
}
.sec-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.sec-title .o { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease);
}
.btn span { position: relative; z-index: 2; }
.btn svg { position: relative; z-index: 2; transition: transform 0.4s var(--ease); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: 1;
}
.btn:hover::after { transform: translateY(0); }
.btn:hover svg { transform: translate(4px, -4px); }
.btn--orange { --bg: var(--orange); }
.btn--orange::after { background: var(--ink); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { color: #fff; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 118px;
}
.brand img { height: 90px; width: auto; transition: height 0.4s var(--ease); }
.scrolled .brand img { height: 72px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.nav a .n { color: var(--orange); margin-right: 6px; font-size: 12px; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 3.4rem);
  padding: 10px 0;
  border-bottom: 1px solid var(--dark-line);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.mobile-nav a .n { font-family: var(--ff-mono); font-size: 14px; color: var(--orange); }
.mobile-nav .m-meta { margin-top: 40px; font-family: var(--ff-body); font-size: 13px; color: var(--muted); line-height: 2; }
.mobile-close { position: absolute; top: 26px; right: var(--gutter); font-family: var(--ff-mono); font-size: 13px; letter-spacing: 0.1em; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}
.hero-head { max-width: 100%; }
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero h1 .o { color: var(--orange); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
  margin-top: 8px;
}
.hero-lead p { max-width: 46ch; color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero figure with technical frame */
.hero-figure { position: relative; max-width: 420px; margin-left: auto; }
.hero-figure .img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,22,25,0.55));
}
/* measurement rule */
.measure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
  position: relative;
}
.measure::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 100%);
  background-size: 40px 100%;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.measure span { background: var(--canvas); padding: 4px 0; }
.hero-tags {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-tags .tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: rgba(251,251,248,0.92);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius);
}
.hero-alvara {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  padding: 9px 15px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(235,90,20,0.45);
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--canvas);
  overflow: hidden;
  padding-block: 22px;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  padding-inline: 32px;
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}
.marquee-track span::after { content: "✳"; color: var(--orange); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about-media { position: relative; display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.about-media figure { overflow: hidden; border-radius: var(--radius); }
.about-media .a1 { aspect-ratio: 3/4; margin-top: 48px; }
.about-media .a2 { aspect-ratio: 3/4.4; }
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.about-media figure:hover img { transform: scale(1.05); }
.about-badge {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--orange);
  color: #fff;
  padding: 20px 22px;
  border-radius: var(--radius);
  max-width: 200px;
}
.about-badge b { font-family: var(--ff-display); font-size: 2.6rem; line-height: 1; display: block; }
.about-badge small { font-family: var(--ff-body); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.vm-block { padding: 26px 0; border-top: 1px solid var(--line); }
.vm-block:first-of-type { border-top: none; padding-top: 0; }
.vm-block h4 {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.vm-block p { color: var(--ink-soft); max-width: 52ch; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.about-stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--paper); }
.about-stat .num { font-family: var(--ff-display); font-weight: 700; font-size: 2.8rem; line-height: 1; }
.about-stat .num sup { color: var(--orange); font-size: 0.5em; vertical-align: super; }
.about-stat small { font-family: var(--ff-body); font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 8px; }

/* ============================================================
   Services
   ============================================================ */
.services { background: var(--canvas-2); }
.services-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left 0.4s var(--ease), color 0.3s var(--ease);
}
.svc-row .svc-n { font-family: var(--ff-mono); font-size: 13px; color: var(--muted); transition: color 0.3s var(--ease); }
.svc-row h3 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; transition: transform 0.4s var(--ease); }
.svc-row .svc-arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: 0.4s var(--ease);
}
.svc-row:hover, .svc-row.active { padding-left: 16px; }
.svc-row:hover .svc-n, .svc-row.active .svc-n { color: var(--orange); }
.svc-row.active h3 { color: var(--orange); }
.svc-row:hover .svc-arrow, .svc-row.active .svc-arrow { background: var(--orange); border-color: var(--orange); color: #fff; transform: rotate(-45deg); }
.svc-desc {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  color: var(--ink-soft);
  transition: max-height 0.5s var(--ease), margin 0.4s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}
.svc-row.active .svc-desc { max-height: 200px; margin-top: 16px; opacity: 1; }

.svc-media { position: sticky; top: 110px; }
.svc-media .frame { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.svc-media img.active { opacity: 1; transform: scale(1); }
.svc-media .frame-label {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(20,22,25,0.6); padding: 6px 12px; border-radius: var(--radius);
}

/* ============================================================
   Projects
   ============================================================ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.proj-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 6;
  aspect-ratio: 16/11;
}
.proj-card.tall { aspect-ratio: 16/13; }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.proj-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,25,0.05) 0%, rgba(20,22,25,0.18) 32%, rgba(20,22,25,0.58) 66%, rgba(20,22,25,0.92) 100%); opacity: 0.95; transition: opacity 0.5s var(--ease); }
.proj-card:hover img { transform: scale(1.06); }
.proj-meta {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 26px;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.45);
  transform: translateY(14px);
  transition: transform 0.5s var(--ease);
}
.proj-card:hover .proj-meta { transform: translateY(0); }
.proj-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; color: rgba(255,255,255,0.92); }
.proj-top .loc { display: inline-flex; align-items: center; gap: 6px; }
.proj-top .cat { color: var(--orange); }
.proj-meta h3 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; }
.proj-meta p { font-size: 0.95rem; color: rgba(255,255,255,0.78); max-height: 0; overflow: hidden; opacity: 0; transition: 0.5s var(--ease); }
.proj-card:hover .proj-meta p { max-height: 80px; opacity: 1; margin-top: 8px; }

/* ============================================================
   Counter band (dark)
   ============================================================ */
.counter {
  background: var(--dark);
  color: var(--canvas);
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 88px);
}
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.counter-cell { padding: 14px clamp(16px, 3vw, 40px); text-align: center; }

/* Measuring-tape ruler: 12 equal major divisions (orange) so BOTH ends land on orange,
   60 minor divisions (every 5th coincides with a major). Orange end-caps close the ends. */
.counter-ruler {
  position: relative; height: 14px; margin-top: clamp(20px, 3.5vw, 38px);
  border-top: 1px solid rgba(255,255,255,0.28);
  border-left: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
}
.counter-ruler::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.3) 0, rgba(255,255,255,0.3) 1px, transparent 1px, transparent calc(100% / 60));
}
.counter-ruler::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--orange) 0, var(--orange) 2px, transparent 2px, transparent calc(100% / 12));
}
.counter-caption {
  margin-top: 60px; text-align: center;
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem); letter-spacing: -0.01em; line-height: 1.2;
  color: var(--canvas);
}
.counter-caption .o { color: var(--orange); }
.counter-cell .num { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.counter-cell .num sup,
.counter-cell .num .u { color: var(--orange); font-family: var(--ff-mono); font-weight: 700; font-size: 0.3em; vertical-align: super; line-height: 0; letter-spacing: 0; }
.counter-cell .num .u { margin-left: 3px; }
.counter-cell small { font-family: var(--ff-body); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 14px; }

/* ============================================================
   FAQ + Clients
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.faq-figure { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.faq-figure img { width: 100%; height: 100%; object-fit: cover; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.01em;
}
.faq-q .ic { flex: 0 0 auto; width: 26px; height: 26px; position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--orange); transition: transform 0.4s var(--ease); }
.faq-q .ic::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-q .ic::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-item.open .faq-q .ic::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a p { padding-bottom: 24px; color: var(--ink-soft); max-width: 58ch; }

.clients { margin-top: clamp(50px, 7vw, 90px); border-top: 1px solid var(--line); padding-top: 40px; }
.clients-label { font-family: var(--ff-body); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 28px; }
.clients-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px); }
.clients-row .client { flex: 0 0 auto; width: 150px; height: 60px; display: grid; place-items: center; }
.clients-row img { max-width: 130px; max-height: 44px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: 0.5; transition: 0.4s var(--ease); }
.clients-row .client:hover img { filter: grayscale(0); opacity: 1; }

/* ============================================================
   Onde atuamos (service areas)
   ============================================================ */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.areas-text { color: var(--ink-soft); max-width: 48ch; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; }
.areas-list li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--orange); border-radius: var(--radius);
  padding: 11px 16px; background: var(--paper);
  font-weight: 600; font-size: 0.96rem; color: var(--ink);
}
.areas-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
}

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 60px);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; }
.cta h2 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.03em; }
.cta .eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 22px; }
.cta .eyebrow::before { background: #fff; }
.cta-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.cta-side a { font-family: var(--ff-mono); font-size: 14px; letter-spacing: 0.02em; text-align: right; }
.cta .btn { --bg: var(--ink); color: #fff; align-self: flex-start; margin-top: 30px; }
.cta .btn::after { background: #fff; }
.cta .btn:hover { color: var(--ink); }

/* ============================================================
   Construction motifs (blueprint grid, hazard tape, obra band)
   ============================================================ */
/* Blueprint / graph-paper grid behind light sections */
.blueprint-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.hero, .services { position: relative; }
.hero > .container, .services > .container { position: relative; z-index: 2; }

/* Hazard / caution-tape accent */
.hazard {
  height: 10px; width: 100%;
  background-image: repeating-linear-gradient(-45deg, var(--orange) 0 16px, var(--ink) 16px 32px);
}

/* Obra statement band (full-bleed construction photo) */
.statement { position: relative; overflow: hidden; color: #fff; padding-block: clamp(84px, 13vw, 168px); }
.statement::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; z-index: 3;
  background-image: repeating-linear-gradient(-45deg, var(--orange) 0 16px, rgba(20,22,25,0.9) 16px 32px); }
.statement-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.statement-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,20,23,0.93) 0%, rgba(18,20,23,0.72) 55%, rgba(18,20,23,0.5) 100%); }
.statement::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 64px); }
.statement .container { position: relative; z-index: 2; }
.statement .eyebrow { color: rgba(255,255,255,0.82); }
.statement .eyebrow::before { background: var(--orange); }
.statement h2 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2.1rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; margin-top: 22px; }
.statement h2 .o { color: var(--orange); }
.statement p { margin-top: 22px; max-width: 54ch; color: rgba(255,255,255,0.82); font-size: clamp(1rem, 1.5vw, 1.15rem); }

/* Phase ruler — the obra process, as a measuring rule */
.phase-ruler { margin-top: clamp(40px, 5vw, 60px); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,0.32); }
.phase { position: relative; padding: 20px 14px 0 0; }
.phase::before { content: ""; position: absolute; top: -1px; left: 0; width: 16px; height: 3px; background: var(--orange); }
.phase .pn { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--orange); display: block; }
.phase .pt { font-family: var(--ff-display); font-weight: 600; font-size: clamp(0.95rem, 1.5vw, 1.25rem); margin-top: 8px; display: block; }
@media (min-width: 900px) { .statement-bg { background-attachment: fixed; } }
@media (max-width: 768px) {
  .phase-ruler { grid-template-columns: 1fr 1fr; gap: 0; }
  .phase { border-bottom: 1px solid rgba(255,255,255,0.16); padding: 16px 12px 14px 0; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); padding-top: clamp(60px, 8vw, 100px); border-top: 1px solid var(--line); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; z-index: 2;
  background-image: repeating-linear-gradient(-45deg, var(--orange) 0 16px, var(--ink) 16px 32px); }
/* Subtle construction skyline along the bottom of the footer */
.footer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 0; pointer-events: none;
  background: url(../assets/images/background/pattern-3.png) repeat-x center bottom;
  background-size: auto 190px;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%);
          mask-image: linear-gradient(180deg, transparent, #000 55%);
}
.footer .container { position: relative; z-index: 1; }
.footer-credit a { color: var(--ink-soft); font-weight: 600; transition: color 0.3s var(--ease); }
.footer-credit a:hover { color: var(--orange); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(30px, 5vw, 60px); padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer-logo { display: inline-block; margin-bottom: 24px; }
.footer-logo img { height: 88px; width: auto; display: block; }
.footer-about { color: var(--ink-soft); max-width: 36ch; }
.footer h5 { font-family: var(--ff-body); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.footer-links a { display: block; padding: 8px 0; color: var(--ink-soft); transition: color 0.3s var(--ease), padding-left 0.3s var(--ease); font-size: 0.98rem; }
.footer-links a:hover { color: var(--orange); padding-left: 8px; }
.footer-contact li { display: flex; gap: 12px; padding: 9px 0; color: var(--ink-soft); font-size: 0.96rem; }
.footer-contact li svg { flex: 0 0 auto; margin-top: 4px; color: var(--orange); }
.footer-contact a:hover { color: var(--orange); }
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.footer-socials a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: 0.35s var(--ease); }
.footer-socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 28px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.footer-bottom a { transition: color 0.3s; }
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom .legal { display: flex; gap: 24px; }

/* ============================================================
   Inner pages (contact + legal)
   ============================================================ */
.page-hero {
  padding-top: 160px;
  padding-bottom: clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 0.95; letter-spacing: -0.03em; }
.page-hero p { margin-top: 22px; color: var(--ink-soft); max-width: 52ch; }
.crumb { font-family: var(--ff-body); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 30px; }
.crumb a:hover { color: var(--orange); }
.crumb .sep { color: var(--orange); margin-inline: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--paper); transition: 0.4s var(--ease); position: relative; overflow: hidden; }
.contact-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.contact-card .ic { width: 50px; height: 50px; border-radius: 50%; background: var(--canvas-2); display: grid; place-items: center; color: var(--orange); margin-bottom: 22px; transition: 0.4s var(--ease); }
.contact-card:hover .ic { background: var(--orange); color: #fff; }
.contact-card h4 { font-family: var(--ff-body); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-card p { font-size: 1.05rem; line-height: 1.5; }
.contact-card a:hover { color: var(--orange); }
.map { margin-top: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 460px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* Legal */
.legal { max-width: 820px; }
.legal .updated { font-family: var(--ff-body); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-bottom: 40px; }
.legal-item { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 20px; }
.legal-item:first-of-type { border-top: none; }
.legal-item .n { font-family: var(--ff-mono); font-size: 13px; color: var(--orange); padding-top: 5px; }
.legal-item h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.legal-item p { color: var(--ink-soft); }
.legal-item a { color: var(--orange); }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

/* Back to top with scroll-progress ring */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  width: 56px; height: 56px;
  background: transparent; color: #fff;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top-progress { position: absolute; inset: 0; width: 56px; height: 56px; transform: rotate(-90deg); z-index: 1; }
.to-top-track { fill: none; stroke: rgba(20, 22, 25, 0.14); stroke-width: 3; }
.to-top-bar {
  fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 157; stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.12s linear;
}
.to-top-icon {
  position: relative; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center;
  transition: background 0.35s var(--ease);
}
.to-top:hover .to-top-icon { background: var(--orange); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; align-items: stretch; }
  .hero-figure { max-width: none; margin-left: 0; }
  .hero-figure .img-wrap { aspect-ratio: 16 / 9; }
  .hero-lead { grid-template-columns: 1fr; }
  .about-grid, .services-grid, .faq-grid, .cta-inner, .areas-grid { grid-template-columns: 1fr; }
  .svc-media { position: static; max-width: 480px; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .counter-cell { border-top: 1px solid var(--dark-line); padding: 26px 0; }
  .counter-cell:nth-child(odd) { border-left: none; padding-right: 20px; }
  .counter-cell:nth-child(even) { padding-left: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { height: 90px; }
  .brand img, .scrolled .brand img { height: 64px; }
  .hero { padding-top: 120px; }
  .page-hero { padding-top: 124px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { justify-content: center; }
  .measure { font-size: 9px; letter-spacing: 0.05em; gap: 6px; }
  .hero-tags .tag { font-size: 10px; padding: 5px 9px; }
  .about-media .a1 { margin-top: 24px; }
  .about-badge { padding: 16px 16px; max-width: 160px; }
  .about-badge b { font-size: 2rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .proj-card { grid-column: span 12 !important; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-logo img { height: 72px; }
  .cta-inner { gap: 28px; }
  .legal-item { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .sec-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .about-stats { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: 1fr; }
  .counter-cell:nth-child(n) { border-left: none; padding: 22px 0; }
  .hero-figure .img-wrap { aspect-ratio: 4/3; }
}
