/* ============================================================
   CAZARES CONSTRUCTION & REMODEL
   Industrial / contractor aesthetic — navy + mustard,
   condensed display type, blueprint-inspired details.
   Palette extracted from reference design (May 2026).
   ============================================================ */

:root {
  --ink:        #0E172B;          /* deep navy (was black) */
  --ink-2:      #1A2540;          /* secondary navy */
  --ink-3:      #2A3550;          /* tertiary navy */
  --paper:      #FAFAFA;          /* clean white */
  --paper-2:    #F4F2EC;          /* warm tint for alt sections */
  --line:       #2A3550;          /* navy-leaning hairline on dark surfaces */
  --line-soft:  rgba(255,255,255,0.10);
  --hi-vis:     #D5A756;          /* mustard gold (was hi-vis yellow) */
  --hi-vis-deep:#A78556;          /* deeper mustard for hover */
  --rust:       #C0501A;          /* warm accent (kept for variety) */
  --dim:        rgba(250,250,250,0.62);
  --dim-ink:    rgba(14,23,43,0.55);

  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --body:    "Manrope", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 2px;
  --max:   1280px;
  --pad:   clamp(20px, 4vw, 56px);

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

/* ─────────────  RESET  ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(213,167,86,0.05), transparent 40%),
    radial-gradient(ellipse at 80% 100%, rgba(213,167,86,0.04), transparent 40%);
}

/* subtle film grain for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* i18n toggling */
body.lang-en .es { display: none; }
body.lang-es .en { display: none; }

/* ─────────────  TYPOGRAPHY  ───────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.92;
  margin: 0;
  text-transform: uppercase;
}
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.dim { color: var(--dim); }
.dim-ink { color: var(--dim-ink); }

/* ─────────────  TOPBAR  ───────────── */
.topbar {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  font-size: 0.7rem;
}
.topbar__cell { display: flex; align-items: center; gap: 8px; }
.topbar__cell--center { justify-content: center; }
.topbar__cell--right { justify-content: flex-end; }
.topbar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hi-vis);
  box-shadow: 0 0 0 3px rgba(213,167,86,0.15);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(213,167,86,0.15); }
  50%     { box-shadow: 0 0 0 7px rgba(213,167,86,0.04); }
}
.topbar .link { transition: color .2s; }
.topbar .link:hover { color: var(--hi-vis); }

/* caution-stripe — diagonal hi-vis bar */
.caution-stripe {
  height: 8px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--hi-vis) 0 14px,
    var(--ink) 14px 28px
  );
}

/* ─────────────  NAV  ───────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  backdrop-filter: blur(8px);
}
.nav__logo { display: flex; align-items: baseline; gap: 8px; }
.logo__mark {
  color: var(--hi-vis);
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
}
.logo__name {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.logo__sub {
  font-size: 0.6rem;
  color: var(--dim);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__links a {
  position: relative;
  font-size: 0.72rem;
  color: var(--paper);
  transition: color .2s;
}
.nav__links a:hover { color: var(--hi-vis); }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--hi-vis);
  transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  background: var(--hi-vis);
  color: var(--ink) !important;
  padding: 10px 14px;
  font-weight: 700;
  border: 2px solid var(--hi-vis);
  transition: all .2s var(--ease);
}
.nav__cta:hover {
  background: transparent;
  color: var(--hi-vis) !important;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  padding: 2px;
  background: var(--ink-2);
}
.lang-toggle__chip {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--dim);
  transition: all .2s;
}
body.lang-en .lang-toggle__chip[data-lang="en"],
body.lang-es .lang-toggle__chip[data-lang="es"] {
  background: var(--hi-vis);
  color: var(--ink);
}

/* ─────────────  HERO  ───────────── */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 90px) var(--pad) clamp(40px, 6vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--paper);
  margin-bottom: 28px;
  font-size: 0.65rem;
}
.hero__bullet { color: var(--hi-vis); font-size: 0.7rem; }

.hero__headline {
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  margin: 0 0 28px;
}
.hero__line {
  display: block;
  position: relative;
}
.hero__line.line-2 {
  color: var(--hi-vis);
  padding-left: clamp(20px, 4vw, 60px);
}
.hero__line.line-3 {
  font-size: 0.55em;
  color: var(--paper);
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.hero__line.line-3::before {
  content: "—";
  display: inline-block;
  margin-right: 14px;
  color: var(--hi-vis);
  font-family: var(--body);
}

.hero__lede {
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(250,250,247,0.78);
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__meta > div {
  display: flex; flex-direction: column;
  font-size: 0.7rem;
}
.hero__meta .num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--hi-vis);
  line-height: 1;
  letter-spacing: 0.02em;
}
.hero__meta .lbl { color: var(--dim); margin-top: 6px; }

/* hero photo */
.hero__right {
  position: relative;
  align-self: stretch;
}
.hero__photo {
  position: relative;
  border: 2px solid var(--hi-vis);
  background: var(--ink-2);
  height: 100%;
  min-height: clamp(360px, 50vw, 620px);
  overflow: hidden;
  box-shadow:
    24px 24px 0 -2px var(--ink-2),
    24px 24px 0 0 var(--hi-vis);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.05);
}
.hero__photo-tag {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--hi-vis);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.62rem;
  padding: 8px 12px;
  letter-spacing: 0.1em;
}

.hero__corner-stamp {
  position: absolute;
  top: -28px; right: -28px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--hi-vis);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  transform: rotate(15deg);
  box-shadow: 0 8px 30px rgba(213,167,86,0.35);
  animation: rotate 30s linear infinite;
}
.hero__corner-stamp span {
  position: absolute;
  inset: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 10px;
}
.hero__corner-stamp span:nth-child(1) { transform: rotate(0deg); }
.hero__corner-stamp span:nth-child(2) { transform: rotate(90deg); }
.hero__corner-stamp span:nth-child(3) { transform: rotate(180deg); }
.hero__corner-stamp span:nth-child(4) { transform: rotate(270deg); }
@keyframes rotate { to { transform: rotate(375deg); } }

.hero__scroll {
  position: absolute;
  bottom: 18px; left: var(--pad);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.6rem;
  color: var(--dim);
}
.hero__scroll-line {
  display: inline-block;
  width: 60px; height: 1px;
  background: var(--dim);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hi-vis);
  transform: translateX(-100%);
  animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* ─────────────  BUTTONS  ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--hi-vis);
  color: var(--ink);
  border-color: var(--hi-vis);
}
.btn--primary:hover {
  background: var(--ink);
  color: var(--hi-vis);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--hi-vis);
}
.btn--ghost {
  color: var(--paper);
  border-color: var(--paper);
}
.btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--hi-vis);
}
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 12px 18px; font-size: 0.7rem; }

.btn__arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ─────────────  SECTION HEAD (shared)  ───────────── */
.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 28px;
  row-gap: 8px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 60px);
}
.section-head__num {
  color: var(--hi-vis);
  font-size: 0.78rem;
  font-weight: 700;
}
.section-head__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: 0.005em;
  grid-column: 1 / -1;
}
.section-head__sub {
  grid-column: 1 / -1;
  color: var(--dim);
  max-width: 56ch;
  font-size: 1rem;
  margin: 0;
}

/* ─────────────  SERVICES  ───────────── */
.services {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
}
.services::before, .services::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--hi-vis) 0 14px,
    var(--ink) 14px 28px
  );
}
.services::before { top: 0; }
.services::after  { bottom: 0; }

.services .section-head__title { color: var(--ink); }
.services .section-head__sub   { color: var(--dim-ink); }

.services__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
.service {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--paper);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
/* 8-card grid (4 cols × 2 rows): no right border on every 4th, no bottom border on last row */
.service:nth-child(4n) { border-right: 0; }
.service:nth-last-child(-n+4) { border-bottom: 0; }
.service:last-child { border-right: 0; }
.service:hover {
  background: var(--ink);
  color: var(--paper);
}
.service:hover .service__num { color: var(--hi-vis); }

.service__num { color: var(--ink); font-weight: 700; font-size: 0.7rem; }
.service__icon {
  width: 56px; height: 56px;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.service:hover .service__icon { color: var(--hi-vis); }
.service__title {
  font-size: 1.85rem;
  letter-spacing: 0.005em;
  margin: 0;
  color: inherit;
}
.service__copy {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dim-ink);
}
.service:hover .service__copy { color: var(--dim); }

.service__list {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  font-size: 0.65rem;
  color: var(--ink);
  font-weight: 600;
}
.service:hover .service__list { color: var(--paper); border-top-color: var(--line-soft); }
.service__list li {
  display: flex; align-items: center; gap: 8px;
}
.service__list li::before {
  content: "▸";
  color: var(--hi-vis);
  font-size: 0.7rem;
}

.service--featured { background: var(--ink); color: var(--paper); }
.service--featured .service__num    { color: var(--hi-vis); }
.service--featured .service__icon   { color: var(--hi-vis); }
.service--featured .service__copy   { color: var(--dim); }
.service--featured .service__list   { color: var(--paper); border-top-color: var(--line-soft); }
.service--featured:hover { background: var(--hi-vis); color: var(--ink); }
.service--featured:hover .service__num,
.service--featured:hover .service__icon  { color: var(--ink); }
.service--featured:hover .service__copy  { color: rgba(0,0,0,0.7); }
.service--featured:hover .service__list  { color: var(--ink); }

.service__badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--hi-vis);
  color: var(--ink);
  padding: 4px 8px;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* ─────────────  PROJECT (TRANSFORMATION)  ───────────── */
.project {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--ink);
}
.project__feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.project__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.project__meta-row {
  display: flex; flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}
.project__meta-row > span:first-child {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.project__stages {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.stage {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  margin: 0;
  overflow: hidden;
}
.stage img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: contrast(1.04);
  transition: transform .6s var(--ease);
}
.stage:hover img { transform: scale(1.04); }

.stage--01 { grid-column: span 5; }
.stage--02 { grid-column: span 7; }
.stage--03 { grid-column: span 7; }
.stage--04 { grid-column: span 5; }

.stage--01 img, .stage--04 img { aspect-ratio: 4/5; }
.stage--02 img, .stage--03 img { aspect-ratio: 16/11; }

.stage__label {
  position: absolute;
  top: 14px; left: 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink);
  border: 1px solid var(--hi-vis);
  padding: 6px 10px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  z-index: 2;
}
.stage__num {
  background: var(--hi-vis);
  color: var(--ink);
  padding: 2px 6px;
  font-weight: 700;
}
.stage__name { color: var(--paper); }

.stage__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 30%);
  color: var(--paper);
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 500;
  transform: translateY(0);
  transition: opacity .3s;
}

.project__cta {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--hi-vis);
  background: rgba(213,167,86,0.04);
}
.project__cta p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 1;
}

/* ─────────────  WHY US  ───────────── */
.why {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--paper);
  color: var(--ink);
  position: relative;
}
.why .section-head__title { color: var(--ink); }
.why__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.why__item {
  padding: 32px 24px 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex; flex-direction: column;
  gap: 12px;
  transition: background .25s var(--ease);
}
.why__item:nth-child(4n) { border-right: 0; }
.why__item:hover { background: var(--hi-vis); }
.why__num {
  font-size: 0.7rem;
  color: var(--rust);
  font-weight: 700;
}
.why__item h3 {
  font-size: 1.55rem;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.why__item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--dim-ink);
}

/* ─────────────  QUOTE FORM  ───────────── */
.quote {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--ink);
  position: relative;
}
.quote::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 8px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--hi-vis) 0 14px,
    var(--ink) 14px 28px
  );
}
.quote__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.quote__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 12px 0 18px;
}
.quote__lede {
  font-size: 1.05rem;
  color: var(--dim);
  max-width: 38ch;
  line-height: 1.55;
  margin: 0 0 36px;
}

.quote__contact {
  display: flex; flex-direction: column;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.quote__contact-item {
  display: flex; flex-direction: column;
  gap: 4px;
  font-size: 1rem;
  font-weight: 500;
}
.quote__contact-item span:first-child { font-size: 0.6rem; letter-spacing: 0.18em; }
.quote__contact-item a { color: var(--hi-vis); transition: color .2s; }
.quote__contact-item a:hover { color: var(--paper); }

/* form */
.quote__form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 40px);
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
}
.quote__form::before {
  content: "";
  position: absolute;
  inset: -2px -2px auto auto;
  width: 60px; height: 60px;
  background: var(--hi-vis);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  color: var(--paper);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 14px 14px;
  font-family: var(--body);
  font-size: 0.95rem;
  transition: border-color .2s, background .2s;
  border-radius: 0;
  width: 100%;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--hi-vis);
  background: var(--ink-3);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23FFD600' stroke-width='2'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  transition: all .15s var(--ease);
}
.chip:hover span { border-color: var(--hi-vis); color: var(--hi-vis); }
.chip input:checked + span {
  background: var(--hi-vis);
  border-color: var(--hi-vis);
  color: var(--ink);
}

.quote__fineprint {
  color: var(--dim);
  font-size: 0.6rem;
  text-align: center;
  margin: 0;
}

.quote__success {
  text-align: center;
  padding: 40px 16px;
}
.quote__success-mark {
  display: inline-flex;
  width: 64px; height: 64px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--hi-vis);
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.quote__success h3 {
  font-size: 2rem;
  margin: 0 0 8px;
}
.quote__success p { color: var(--dim); margin: 0; }

/* ─────────────  FOOTER  ───────────── */
.footer { background: var(--ink); border-top: 1px solid var(--line); }
.footer__top {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(20px, 4vw, 50px);
}
.footer__col h4 { color: var(--paper); }
.footer__heading {
  margin-bottom: 14px;
  font-weight: 700;
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer__col ul a:hover { color: var(--hi-vis); }
.footer__name {
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.footer__motto {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.005em;
  color: var(--hi-vis);
  text-transform: uppercase;
  margin: 18px 0 0;
  line-height: 1;
}
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.62rem;
  color: var(--dim);
  flex-wrap: wrap;
}

/* ─────────────  RESPONSIVE  ───────────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__right { min-height: 400px; order: 2; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2n) { border-right: 0; }
  .service { border-bottom: 1px solid var(--ink); }
  .service:nth-last-child(-n+2) { border-bottom: 0; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__item:nth-child(2n) { border-right: 0; }
  .quote__wrap { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .stage--01, .stage--02, .stage--03, .stage--04 { grid-column: span 6; }
}

@media (max-width: 720px) {
  .topbar__inner { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .topbar__cell, .topbar__cell--center, .topbar__cell--right { justify-content: center; }
  .nav { flex-wrap: wrap; padding-bottom: 10px; }
  .nav__links { gap: 14px; flex-wrap: wrap; }
  .nav__links a:not(.nav__cta) { font-size: 0.65rem; }
  .nav__links a:not(.nav__cta):not(:hover)::after { display: none; }
  .logo__sub { display: none; }
  .hero__photo { box-shadow: 12px 12px 0 0 var(--hi-vis); }
  .hero__corner-stamp { width: 88px; height: 88px; top: -16px; right: -16px; }
  .services__grid { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--ink); }
  .service:last-child { border-bottom: 0; }
  .why__grid { grid-template-columns: 1fr; }
  .why__item { border-right: 0; }
  .field-row { grid-template-columns: 1fr; }
  .project__meta { grid-template-columns: 1fr; }
  .stage--01, .stage--02, .stage--03, .stage--04 { grid-column: span 12; }
  .stage--01 img, .stage--02 img, .stage--03 img, .stage--04 img { aspect-ratio: 4/3; }
  .project__cta { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .hero__corner-stamp { display: none; }
}

/* ─────────────  REVEAL ANIMATIONS (only when JS-ready)  ───────────── */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
body.js-ready .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
body.js-ready .reveal.delay-1 { transition-delay: 0.08s; }
body.js-ready .reveal.delay-2 { transition-delay: 0.16s; }
body.js-ready .reveal.delay-3 { transition-delay: 0.24s; }

/* hero specific intro */
.hero__line { opacity: 0; transform: translateY(40px); animation: heroLine .8s var(--ease) forwards; }
.hero__line.line-1 { animation-delay: 0.1s; }
.hero__line.line-2 { animation-delay: 0.25s; }
.hero__line.line-3 { animation-delay: 0.4s; }
.hero__tag, .hero__lede, .hero__actions, .hero__meta {
  opacity: 0; transform: translateY(20px);
  animation: heroLine .7s var(--ease) forwards;
}
.hero__tag    { animation-delay: 0.0s; }
.hero__lede   { animation-delay: 0.55s; }
.hero__actions{ animation-delay: 0.7s; }
.hero__meta   { animation-delay: 0.85s; }
.hero__photo  { opacity: 0; animation: heroLine .9s var(--ease) 0.3s forwards; }
@keyframes heroLine {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   LIGHT MODE OVERRIDES — extracted from reference (May 2026)
   White page bg, navy text, mustard accent.
   Footer kept dark navy as visual end-cap.
   ============================================================ */

:root {
  --hairline: #E5E2D8;
}

/* page-level: light bg, navy text */
body {
  background: var(--paper);
  color: var(--ink);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(213,167,86,0.04), transparent 40%),
    radial-gradient(ellipse at 80% 100%, rgba(213,167,86,0.03), transparent 40%);
}
body::before { mix-blend-mode: multiply; opacity: 0.025; }

::selection { background: var(--ink); color: var(--paper); }

/* topbar — light */
.topbar { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--hairline); }
.topbar .dim { color: rgba(14,23,43,0.55); }
.topbar .link { color: var(--ink); }
.topbar .link:hover { color: var(--hi-vis-deep); }

/* nav — light */
.nav { background: var(--paper); border-bottom: 1px solid var(--hairline); }
.logo__name { color: var(--ink); }
.logo__sub { color: rgba(14,23,43,0.55); }
.nav__links a { color: var(--ink); }
.nav__links a:hover { color: var(--hi-vis-deep); }

.nav__cta { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.nav__cta:hover { background: var(--paper); color: var(--ink) !important; border-color: var(--ink); }

.lang-toggle { background: var(--paper); border-color: var(--hairline); }
.lang-toggle__chip { color: rgba(14,23,43,0.5); }
body.lang-en .lang-toggle__chip[data-lang="en"],
body.lang-es .lang-toggle__chip[data-lang="es"] {
  background: var(--ink); color: var(--paper);
}

/* hero — light */
.hero__tag { background: var(--paper); border-color: var(--hairline); color: var(--ink); }
.hero__line.line-3 { color: var(--ink); }
.hero__lede { color: rgba(14,23,43,0.72); }
.hero__meta { border-top-color: var(--hairline); }
.hero__meta .lbl { color: rgba(14,23,43,0.55); }
.hero__scroll { color: rgba(14,23,43,0.55); }
.hero__scroll-line { background: rgba(14,23,43,0.3); }

/* buttons — adjust for light bg */
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* services — already light, just confirm featured card stays inverted */
.service--featured { background: var(--ink); color: var(--paper); }
.service--featured .service__num,
.service--featured .service__icon { color: var(--hi-vis); }

/* project section — light */
.project { background: var(--paper); }
.project__meta { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.project__cta { background: rgba(213,167,86,0.06); border-color: var(--hi-vis-deep); }
.project__cta p { color: var(--ink); }
.stage { background: var(--paper); border-color: var(--hairline); }
.stage__name { color: var(--ink); }
.stage__caption {
  background: linear-gradient(transparent, rgba(250,250,250,0.92) 35%);
  color: var(--ink);
}
.stage__label { background: var(--paper); border-color: var(--hi-vis-deep); }

/* quote section — light */
.quote { background: var(--paper); }
.quote__title { color: var(--ink); }
.quote__lede { color: rgba(14,23,43,0.72); }
.quote__contact { border-top-color: var(--hairline); }
.quote__contact-item span:first-child { color: rgba(14,23,43,0.55); }
.quote__contact-item a { color: var(--hi-vis-deep); }
.quote__contact-item a:hover { color: var(--ink); }

.quote__form { background: #FFFFFF; border: 1px solid var(--hairline); box-shadow: 0 6px 24px -12px rgba(14,23,43,0.12); }
.quote__form label { color: var(--ink); }
.quote__form .field input,
.quote__form .field select,
.quote__form .field textarea {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--hairline);
}
.quote__form .field input::placeholder,
.quote__form .field textarea::placeholder { color: rgba(14,23,43,0.4); }
.quote__form .field input:focus,
.quote__form .field select:focus,
.quote__form .field textarea:focus { border-color: var(--hi-vis); background: #FFFFFF; }
.quote__form .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23D5A756' stroke-width='2'><path d='M1 1l5 5 5-5'/></svg>");
}
.chip span { background: var(--paper); border-color: var(--hairline); color: var(--ink); }
.chip:hover span { border-color: var(--hi-vis-deep); color: var(--hi-vis-deep); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.quote__fineprint { color: rgba(14,23,43,0.55); }

/* footer — keep DARK navy as visual end-cap */
/* (already styled with var(--ink) bg — works as-is) */

/* ─────  LOGO IMAGE (replaces text wordmark)  ───── */
.brand__logo {
  height: 64px;
  width: auto;
  display: block;
  transition: opacity .25s var(--ease);
}
.nav__logo:hover .brand__logo { opacity: 0.82; }
.brand__logo--footer {
  height: 110px;
  margin-bottom: 14px;
}

/* Two-phone topbar layout */
.topbar__cell--right { gap: 10px; flex-wrap: wrap; }
.topbar__sep { color: var(--hi-vis-deep); }

@media (max-width: 720px) {
  .brand__logo { height: 50px; }
  .brand__logo--footer { height: 80px; }
}

/* ─────────────  LIGHTBOX (photo carousel)  ───────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lbFade 0.18s ease-out;
}
.lightbox.is-open { display: flex; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__stage {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.lightbox__stage figcaption {
  color: rgba(255,255,255,0.82);
  text-align: center;
  font-size: 0.96rem;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  max-width: 70ch;
  line-height: 1.4;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: white;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s, background .2s;
  opacity: 0.6;
  font-family: Georgia, "Times New Roman", serif;
}
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; background: rgba(255,255,255,0.06); }

.lightbox__close {
  top: 18px; right: 22px;
  font-size: 2.6rem;
  padding: 4px 14px;
  border-radius: 50%;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 14px 24px;
  border-radius: 4px;
}
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }

.lightbox__counter {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 720px) {
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__prev { left: 0; padding: 14px 16px; font-size: 2.4rem; }
  .lightbox__next { right: 0; padding: 14px 16px; font-size: 2.4rem; }
  .lightbox__counter { font-size: 0.66rem; }
}
