/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg:        #0D0D0D;
  --surface:   #161616;
  --surface-2: #1E1E1E;
  --cream:     #F5F0E8;
  --cream-dk:  #EDE5D8;
  --gold:      #C8973A;
  --gold-lt:   #E8B860;
  --gold-dk:   #A07828;
  --orange:    #D4600A;
  --bp-blue:   #1E3355;
  --text-dk:   #1A1614;
  --text-lt:   #EDE8DF;
  --muted-dk:  #5C5040;
  --muted-lt:  #8A8070;
  --border-dk: rgba(255,255,255,.08);
  --border-lt: #D8D0C4;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-serif:   'Playfair Display', 'Georgia', serif;
  --font-sans:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --r:    8px;
  --r-lg: 14px;
  --tr:   0.22s ease;
  --trm:  0.38s ease;

  --pad-section: 100px 0;
  --container:   1200px;
  --z-nav:       100;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-lt);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
ul, ol   { list-style: none; }
a        { text-decoration: none; color: inherit; }
abbr[title] { text-decoration: none; cursor: help; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section   { padding: var(--pad-section); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.serif-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dk);
  line-height: 1.15;
}
.serif-title em     { font-style: italic; font-weight: 700; color: var(--gold-dk); }
.serif-title--light { color: var(--text-lt); }
.serif-title--light em { color: var(--gold-lt); }

.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 14px;
}
.tag--light { color: var(--gold-lt); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--tr), color var(--tr), border-color var(--tr),
              transform var(--tr), box-shadow var(--tr);
  line-height: 1;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-gold {
  background: var(--gold);
  color: #1A1614;
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(200,151,58,.3);
}
.btn-gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(200,151,58,.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-lt);
  border-color: rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn-ghost svg   { width: 16px; height: 16px; transition: transform var(--tr); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-block { width: 100%; justify-content: center; }
.btn-spin  { width: 18px; height: 18px; animation: spin .8s linear infinite; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   NAV
   ============================================================ */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  background: transparent;
  transition: background var(--tr), box-shadow var(--tr);
}
#header.scrolled {
  background: rgba(13,13,13,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav__mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .06em;
  color: var(--text-lt);
}
.nav__wordmark em { font-style: normal; color: var(--gold); margin-left: 4px; }

.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__link {
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: 8px 14px;
  border-radius: var(--r);
  transition: color var(--tr), background var(--tr);
  cursor: pointer;
}
.nav__link:hover  { color: var(--text-lt); background: rgba(255,255,255,.06); }
.nav__link.active { color: var(--gold); }
.nav__cta {
  background: var(--gold);
  color: #1A1614 !important;
  font-weight: 600;
  padding: 9px 20px;
  margin-left: 8px;
  box-shadow: 0 2px 12px rgba(200,151,58,.28);
}
.nav__cta:hover { background: var(--gold-lt) !important; color: #1A1614 !important; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-lt);
  border-radius: var(--r);
  transition: background var(--tr);
}
.nav__toggle:hover { background: rgba(255,255,255,.08); }
.nav__toggle svg   { width: 22px; height: 22px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  background: var(--bg) url('../images/referencia-constructora.png') center / cover no-repeat;
  overflow: hidden;
}
/* Dark overlay keeps text legible over the photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10,8,6,.90) 0%,
    rgba(10,8,6,.80) 45%,
    rgba(10,8,6,.60) 100%
  );
  z-index: 0;
}

.hero__bp-grid {
  position: absolute; inset: 0; pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(30,51,85,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,51,85,.14) 1px, transparent 1px),
    linear-gradient(rgba(30,51,85,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,51,85,.06) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

.hero__diagonal {
  position: absolute;
  top: -10%; right: -8%;
  width: 55%; height: 120%;
  background: linear-gradient(160deg,rgba(200,151,58,.07) 0%,rgba(200,151,58,.02) 50%,transparent 80%);
  clip-path: polygon(15% 0%,100% 0%,100% 100%,0% 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero__h1 {
  font-family: var(--font-display);
  line-height: .92;
  letter-spacing: -.01em;
}
.hero__line-a,
.hero__line-b,
.hero__line-c { display: block; font-size: clamp(5rem, 13vw, 10rem); }
.hero__line-a { color: var(--text-lt); }
.hero__line-b { color: var(--text-lt); }
.hero__line-b em { font-style: normal; color: var(--gold); }
.hero__line-c { color: var(--gold); }

.hero__rule {
  width: 100%; max-width: 520px;
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 28px 0;
  position: relative; overflow: hidden;
}
.hero__rule span {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 60%);
  width: 40%;
}

.hero__sub {
  font-size: clamp(1rem,1.8vw,1.1rem);
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__certs { display: flex; flex-direction: column; gap: 12px; }
.cert-pill {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 14px 18px;
  min-width: 180px;
  transition: background var(--tr);
}
.cert-pill:hover  { background: rgba(255,255,255,.07); }
.cert-pill svg    { width: 20px; height: 20px; stroke: var(--gold); flex-shrink: 0; }
.cert-pill strong { display: block; font-size: .88rem; color: var(--text-lt); }
.cert-pill span   { font-size: .78rem; color: var(--muted-lt); }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255,255,255,.4);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: color var(--tr);
  animation: bounce 2.4s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll svg   { width: 24px; height: 24px; }
.hero__scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* ============================================================
   SERVICES  (cream bg)
   ============================================================ */
.svc { background: var(--cream); }

.svc__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 60px;
}
.svc__head-left .tag  { display: block; }
.svc__head-desc { font-size: 1rem; color: var(--muted-dk); line-height: 1.75; }

.svc__list { width: 100%; }

.svc-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-lt);
  cursor: pointer;
  border-left: 3px solid transparent;
  padding-left: 0;
  transition: background var(--tr), padding-left var(--tr), border-left-color var(--tr);
}
.svc-row:first-child { border-top: 1px solid var(--border-lt); }
.svc-row:hover       { background: var(--cream-dk); padding-left: 16px; border-left-color: var(--gold); }
.svc-row:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: 2px; }

.svc-row__n {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  opacity: .55;
  transition: opacity var(--tr);
}
.svc-row:hover .svc-row__n { opacity: 1; }

.svc-row__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dk);
  margin-bottom: 6px;
}
.svc-row__desc { font-size: .9rem; color: var(--muted-dk); line-height: 1.6; }

.svc-row__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.svc-row__tags span {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted-dk);
  border: 1px solid var(--border-lt);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  transition: border-color var(--tr), color var(--tr);
}
.svc-row:hover .svc-row__tags span { border-color: var(--gold-dk); color: var(--gold-dk); }

.svc-row__arrow {
  width: 20px; height: 20px;
  stroke: var(--gold-dk);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--tr), transform var(--tr);
}
.svc-row:hover .svc-row__arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   STATS  (dark + diagonal cuts)
   ============================================================ */
.stats {
  position: relative;
  padding: 80px 0;
  background: var(--bg);
  overflow: visible;
}

.stats__cut-top {
  position: absolute; top: -1px; left: 0; right: 0; height: 60px;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.stats__cut-bot {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: #111111;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.stats__bp-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,151,58,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,151,58,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.stats__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
}

.stat { text-align: center; padding: 20px 32px; }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.stat__n sup { font-size: .5em; vertical-align: super; color: var(--gold-lt); }
.stat__l {
  font-size: .82rem;
  color: var(--muted-lt);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat__sep { width: 1px; height: 80px; background: rgba(255,255,255,.1); justify-self: center; }

/* ============================================================
   PROJECTS  (dark)
   ============================================================ */
.projects { background: #111111; }

.projects__head { margin-bottom: 48px; }
.projects__head .tag { display: block; }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 12px;
}

.pcard {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
}
.pcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.pcard--feat { grid-column: span 2; grid-row: span 2; }

.pcard__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .55s ease;
}
.pcard:hover .pcard__img { transform: scale(1.06); }
.pcard__img::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg,rgba(0,0,0,.04) 0px,rgba(0,0,0,.04) 2px,transparent 2px,transparent 10px);
}

.pcard__img--a { background: linear-gradient(145deg,#1A2810 0%,#2F4A18 40%,#5A8030 100%); }
.pcard__img--b { background: linear-gradient(135deg,#102030 0%,#1E4060 50%,#3A7090 100%); }
.pcard__img--c { background: linear-gradient(135deg,#201408 0%,#503010 50%,#906020 100%); }
.pcard__img--d { background: linear-gradient(135deg,#101820 0%,#203050 50%,#3A5878 100%); }
.pcard__img--e { background: linear-gradient(135deg,#180E20 0%,#3A1840 50%,#703060 100%); }

.pcard__over {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 28px 26px;
  background: linear-gradient(transparent, rgba(10,8,6,.92));
  transform: translateY(4px);
  transition: transform var(--trm);
}
.pcard--feat .pcard__over { transform: none; }
.pcard:hover .pcard__over { transform: translateY(0); }

.pcard__tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--gold); color: #1A1614;
  padding: 4px 10px; border-radius: 4px; margin-bottom: 10px;
}
.pcard__title {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.pcard--feat .pcard__title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.pcard__meta  { font-size: .82rem; color: rgba(255,255,255,.55); }
.pcard__link  { font-size: .82rem; color: var(--gold); margin-top: 12px; display: block; transition: color var(--tr); }
.pcard:hover .pcard__link { color: var(--gold-lt); }

/* ============================================================
   ABOUT  (cream dark)
   ============================================================ */
.about { background: var(--cream-dk); }

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual { position: relative; height: 500px; }
.about__frame  { position: absolute; inset: 0; }
.about__img {
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #1A2818 0%, #1E3040 50%, #2A1E10 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

/* Blueprint corner marks */
.bpc { position: absolute; width: 28px; height: 28px; display: block; }
.bpc--tl { top: -6px;    left: -6px;    border-top: 2px solid var(--gold); border-left:  2px solid var(--gold); }
.bpc--br { bottom: -6px; right: -6px;   border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.about__badge {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--bg);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 18px 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  z-index: 2;
}
.about__badge-yr  { display: block; font-family: var(--font-display); font-size: 2.8rem; color: var(--gold); line-height: 1; }
.about__badge-lbl { display: block; font-size: .8rem; color: var(--muted-lt); line-height: 1.5; margin-top: 4px; }

.about__copy .tag         { display: block; }
.about__copy .serif-title { margin-bottom: 24px; }
.about__copy p            { font-size: 1rem; color: var(--muted-dk); line-height: 1.75; margin-bottom: 16px; }

.about__checks { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 36px; }
.about__checks li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .95rem; font-weight: 500; color: var(--text-dk);
}
.about__checks li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   TESTIMONIALS  (dark)
   ============================================================ */
.testimonials { background: var(--bg); }
.testimonials__head { margin-bottom: 56px; }
.testimonials__head .tag { display: block; }

.testimonials__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.tcard {
  background: var(--surface);
  border: 1px solid var(--border-dk);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.tcard:hover { border-color: rgba(200,151,58,.4); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }

.tcard__q {
  font-family: var(--font-serif);
  font-size: 5.5rem; color: var(--gold);
  line-height: .65; margin-bottom: -8px;
  opacity: .65; font-style: italic;
}
.tcard__text { font-size: .96rem; color: rgba(255,255,255,.7); line-height: 1.75; font-style: italic; flex: 1; }

.tcard__foot {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--border-dk); padding-top: 20px;
}
.tcard__av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dk), var(--muted-lt));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .88rem; color: #1A1614; flex-shrink: 0;
}
.tcard__foot strong { display: block; font-size: .88rem; color: var(--text-lt); }
.tcard__foot span   { font-size: .78rem; color: var(--muted-lt); }

/* ============================================================
   CONTACT  (dark + blueprint)
   ============================================================ */
.contact { position: relative; background: #111111; overflow: hidden; }

.contact__bp-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(30,51,85,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,51,85,.12) 1px, transparent 1px),
    linear-gradient(rgba(30,51,85,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,51,85,.05) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

.contact__layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }

.contact__info .tag         { display: block; }
.contact__info .serif-title { margin-bottom: 20px; }
.contact__info > p          { font-size: 1rem; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 40px; }

.contact__dl  { display: flex; flex-direction: column; gap: 24px; }
.contact__di  { display: flex; flex-direction: column; gap: 5px; }
.contact__di dt {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold);
}
.contact__di dt svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact__di dd     { font-size: .93rem; color: rgba(255,255,255,.6); line-height: 1.55; padding-left: 28px; }
.contact__di dd a   { transition: color var(--tr); }
.contact__di dd a:hover { color: var(--gold); }

.contact__form {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__g   { display: flex; flex-direction: column; gap: 7px; }
.form__g label { font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.75); }
.form__g abbr  { color: var(--gold); }

.form__g input,
.form__g select,
.form__g textarea {
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text-lt);
  transition: border-color var(--tr), box-shadow var(--tr);
  width: 100%;
  appearance: none; -webkit-appearance: none;
}
.form__g input::placeholder,
.form__g textarea::placeholder { color: rgba(255,255,255,.22); }
.form__g input:focus,
.form__g select:focus,
.form__g textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,151,58,.15);
}
.form__g select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8070' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}
.form__g select option { background: var(--surface-2); }

.form__fb   { font-size: .88rem; min-height: 1.2em; }
.form__note { font-size: .78rem; color: rgba(255,255,255,.3); text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #080808; border-top: 1px solid rgba(255,255,255,.06); }

.footer__top {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 60px;
}
.footer__brand .nav__wordmark { font-size: 1.1rem; }
.footer__brand p { font-size: .88rem; color: rgba(255,255,255,.38); line-height: 1.7; max-width: 280px; margin-top: 14px; }

.footer__h {
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a  { font-size: .88rem; color: rgba(255,255,255,.45); transition: color var(--tr); cursor: pointer; }
.footer__nav a:hover { color: var(--text-lt); }

.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact p,
.footer__contact a { font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.6; transition: color var(--tr); }
.footer__contact a:hover { color: var(--gold); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer__bottom-inner p { font-size: .78rem; color: rgba(255,255,255,.22); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(9px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE ≤1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad-section: 80px 0; }
  .hero__layout   { grid-template-columns: 1fr; }
  .hero__certs    { flex-direction: row; flex-wrap: wrap; }
  .svc__head      { grid-template-columns: 1fr; gap: 20px; }
  .svc-row        { grid-template-columns: 56px 1fr auto; }
  .svc-row__tags  { display: none; }
  .stats__grid    { grid-template-columns: 1fr 1px 1fr; gap: 0; }
  .stats__grid .stat__sep:nth-child(6) { display: none; }
  .projects__grid { grid-template-rows: 220px 220px; }
  .about__layout  { grid-template-columns: 1fr; gap: 48px; }
  .about__visual  { height: 360px; order: -1; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .tcard:last-child   { grid-column: span 2; }
  .contact__layout { grid-template-columns: 1fr; gap: 48px; }
  .contact__form   { padding: 32px 24px; }
  .footer__top     { grid-template-columns: 1fr 1fr; }
  .footer__brand   { grid-column: span 2; }
}

/* ============================================================
   RESPONSIVE ≤768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad-section: 64px 0; }

  .nav__menu {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(13,13,13,.98);
    padding: 20px 16px 28px; gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    border-top: 1px solid rgba(255,255,255,.07);
    z-index: calc(var(--z-nav) - 1);
  }
  .nav__menu.open { display: flex; }
  .nav__toggle    { display: flex; }
  .nav__link      { padding: 12px 16px; }
  .nav__cta       { text-align: center; margin: 6px 0 0; }

  .hero__line-a,
  .hero__line-b,
  .hero__line-c { font-size: clamp(3.5rem, 18vw, 6rem); }
  .hero__btns   { flex-direction: column; }
  .hero__btns .btn { justify-content: center; }
  .hero__certs  { flex-direction: column; }

  .svc-row { grid-template-columns: 48px 1fr; gap: 12px; }
  .svc-row__arrow { display: none; }

  .stats__grid  { grid-template-columns: 1fr 1px 1fr; }
  .stats__grid .stat__sep:nth-child(2),
  .stats__grid .stat__sep:nth-child(4),
  .stats__grid .stat__sep:nth-child(6) { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }

  .projects__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .pcard          { min-height: 220px; }
  .pcard--feat    { grid-column: span 1; grid-row: span 1; }

  .about__visual  { height: 280px; }
  .about__badge   { left: 0; bottom: -16px; }

  .testimonials__grid { grid-template-columns: 1fr; }
  .tcard:last-child   { grid-column: span 1; }

  .form__row { grid-template-columns: 1fr; }

  .footer__top          { grid-template-columns: 1fr; gap: 36px; }
  .footer__brand        { grid-column: span 1; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   RESPONSIVE ≤480px
   ============================================================ */
@media (max-width: 480px) {
  .hero__line-a,
  .hero__line-b,
  .hero__line-c { font-size: clamp(3rem, 20vw, 5rem); }
  .stat__n { font-size: 3rem; }
  .contact__form { padding: 24px 16px; }
}
