/* DATM Construction — Vistal-style one-pager
   Brand per DATM Brand Guide v1.0 (2026):
   ink black #0D0D0D stage, metallic gold #D3AF37 (light #EBCF74 / deep #9C7F28)
   as punctuation only, warm neutrals for structure, pure white type.
   Type: Oswald (display, UPPERCASE), Barlow (body), Space Mono (labels/specs).
   Shapes square and structural - built square, level, to last. */

@font-face {
  font-family: "Oswald";
  src: url("../assets/fonts/oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/spacemono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #0d0d0d;
  --ink: #0d0d0d;
  --white: #ffffff;
  --paper: #ede9e1;
  --gold: #d3af37;
  --gold-deep: #9c7f28;
  --gold-bright: #ebcf74;
  --gold-band: #d3af37;
  --panel: #161513;
  --hairline: #262320;
  --stone: #8d8578;
  --grey-display: #8d8578; /* 3.6:1 on white — lightest warm grey that passes 3:1 for large display type */
  --ondark-body: rgba(255, 255, 255, 0.68);
  --ongold-body: rgba(13, 13, 13, 0.78);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 3px;
  --wrap: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 400;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
/* Barlow ships in 400/500/600 only - map bold to the real 600 so browsers never synthesize a faux 700 */
b, strong { font-weight: 600; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--black); color: var(--white); padding: 0.75rem 1.25rem;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; display: flex; align-items: center; gap: 0.6rem;
}
.kicker::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.kicker-center { justify-content: center; }
.kicker-ondark { color: rgba(255, 255, 255, 0.75); }

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--gold); }
.display-center { text-align: center; margin-inline: auto; }
.display-grey { color: var(--grey-display); }
.display-ondark { color: var(--white); }

/* ---------- buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 1.05rem 1.5rem; border-radius: 2px;
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s;
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-glass { background: rgba(255, 255, 255, 0.14); color: var(--white); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-arrow {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 2px;
  background: rgba(127, 127, 127, 0.18); font-size: 0.85rem;
  transition: transform 0.45s var(--ease);
}
.btn-pill:hover .btn-arrow { transform: translateX(3px); }
/* arrows are inline SVG, not text - the latin font subsets have no U+2190/U+2192 glyph */
.btn-arrow svg, .c-arrow svg { display: block; }

.learn-link {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: rgba(127, 127, 127, 0.5);
  transition: text-decoration-color 0.3s;
}
.learn-link:hover { text-decoration-color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  /* 1fr | auto | 1fr keeps the link list truly centered no matter how wide
     the logo or the actions cluster are (flex space-between never did) */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 2rem; padding: 0.65rem clamp(1.25rem, 3vw, 2.5rem);
  background: var(--black);
  transform: translateY(-110%);
  transition: transform 0.6s var(--ease);
}
.nav-logo { justify-self: start; }
.nav-actions { justify-self: end; }
.nav.is-visible { transform: translateY(0); }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav-links a {
  color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.55rem;
  transition: color 0.3s;
}
.nav-links a::before { content: ""; width: 5px; height: 5px; background: currentColor; opacity: 0.7; }
.nav-links a:hover { color: var(--gold-bright); }
.btn-nav { padding: 0.85rem 1.4rem; }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; }
.lang-toggle {
  font-family: var(--mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px; padding: 0.8rem 1rem;
  transition: color 0.3s, border-color 0.3s;
}
.lang-toggle:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85); white-space: nowrap; padding: 0.5rem;
  transition: color 0.3s;
}
.nav-phone:hover { color: var(--gold-bright); }
.nav-phone svg { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.52), rgba(13, 13, 13, 0.18) 42%, rgba(13, 13, 13, 0) 62%);
}
.hero-shade-b {
  position: absolute; inset: 0; z-index: 4;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0) 55%, rgba(13, 13, 13, 0.6));
}
.hero-logo {
  height: clamp(74px, 11vw, 122px); width: auto;
  margin-bottom: 1rem; user-select: none;
}
.hero-foot {
  position: relative; z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vh, 3rem);
  animation: foot-in 1.4s 0.25s var(--ease) both;
}
@keyframes foot-in {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: none; }
}
.hero-headline {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; letter-spacing: 0.02em;
  color: var(--white); max-width: 22ch; text-wrap: balance;
}
.hero-sub { color: rgba(255, 255, 255, 0.75); max-width: 52ch; margin-top: 0.9rem; }

/* ---------- bands ---------- */
.band { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.band-gold { background: var(--gold-band); color: var(--ink); }
.band-white { background: var(--white); }
.band-light { background: var(--paper); }
.band-black { background: var(--black); color: var(--white); }
.band-ink { background: var(--black); color: var(--white); }
.band-ink .kicker { color: var(--gold); }
.band-ink .band-sub { color: var(--ondark-body); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold .btn-arrow { background: rgba(13, 13, 13, 0.15); }

.band-sub {
  max-width: 46ch; margin: 1.6rem auto 0; text-align: center; color: var(--ongold-body);
}
.band-sub-left { max-width: 46ch; margin-top: 1.4rem; color: var(--ongold-body); }

/* ---------- about (gold) ---------- */
.about { text-align: center; overflow: hidden; }
.about .display { max-width: 18ch; margin: 1.6rem auto 0; }
.about .btn-gold { margin-top: 2.2rem; }

.scatter {
  position: relative; height: clamp(24rem, 44vw, 34rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.scatter-card {
  position: absolute; left: 50%; top: 50%;
  width: clamp(16rem, 24vw, 21rem);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px; padding: 0.8rem;
  box-shadow: 0 30px 60px rgba(13, 13, 13, 0.18);
  text-align: left;
  transform: translate(-50%, -50%) rotate(0deg) translateY(3rem);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity 0.8s var(--ease);
}
.scatter.in .scatter-card {
  opacity: 1;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
}
.scatter.in .scatter-card:nth-child(1) { transition-delay: 0s; }
.scatter.in .scatter-card:nth-child(2) { transition-delay: 0.12s; }
.scatter.in .scatter-card:nth-child(3) { transition-delay: 0.24s; }
.scatter-card img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.scatter-card h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 0.75rem; color: var(--ink); }
.scatter-card p { font-size: 0.86rem; color: rgba(13, 13, 13, 0.65); line-height: 1.45; margin: 0.25rem 0 0.4rem; }

/* ---------- projects (white) ---------- */
.projects .display { margin-top: 1.4rem; }
.projects .section-intro { margin-top: 1.2rem; color: rgba(13, 13, 13, 0.65); max-width: 46ch; }

.carousel {
  display: flex; gap: 1.4rem;
  overflow-x: auto; scroll-snap-type: x proximity;
  scroll-padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) 0.5rem;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: 0 0 auto; }

.project-card {
  position: relative; width: clamp(17rem, 22vw, 20rem); aspect-ratio: 0.86;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  isolation: isolate; color: var(--white); text-align: center;
}
.project-card img {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  object-fit: cover; transition: transform 1s var(--ease);
}
.project-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(13, 13, 13, 0.5); transition: background 0.4s;
}
.project-card:hover img { transform: scale(1.05); }
.project-card:hover::before { background: rgba(13, 13, 13, 0.34); }
.project-loc {
  position: absolute; top: 1.1rem; font-family: var(--mono); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); text-shadow: 0 1px 8px rgba(13, 13, 13, 0.6);
}
/* white + shadow, not gold: the gold title vanished against sunlit OSB/sheathing photos */
.project-card h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem); color: var(--white);
  text-shadow: 0 2px 14px rgba(13, 13, 13, 0.55);
}
.project-tags {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  display: flex; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
  text-shadow: 0 1px 8px rgba(13, 13, 13, 0.6);
}

.featured {
  position: relative; margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
}
.featured img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.featured figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: clamp(1.25rem, 2.5vw, 2.2rem);
  background: linear-gradient(180deg, transparent, rgba(13, 13, 13, 0.72));
  color: var(--white);
}
.featured p { max-width: 56ch; font-size: 0.95rem; }

/* ---------- services (black) ---------- */
.services-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-top: 1.4rem;
}
.services-head .display { max-width: 16ch; }

.service-rows { margin-top: clamp(3rem, 6vw, 5rem); }
.service-rows li {
  display: grid; grid-template-columns: 4rem 1fr 1fr;
  gap: 2rem; align-items: start;
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--hairline);
}
.service-num { font-family: var(--mono); font-weight: 700; font-size: 0.72rem; color: var(--stone); padding-top: 0.9rem; }
.service-rows h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(1.7rem, 2.9vw, 2.5rem); line-height: 1.05; color: var(--white);
}
.service-detail p { color: var(--ondark-body); max-width: 44ch; }
.service-detail .learn-link { display: inline-block; margin-top: 1.1rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- commitment (black) ---------- */
.commitment { padding-top: 0; }
.commitment-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 2rem;
  align-items: start;
}
.commitment-body .display { font-size: clamp(2rem, 3.6vw, 3.2rem); max-width: 20ch; }
.commitment-body p { color: var(--ondark-body); max-width: 60ch; margin-top: 1.6rem; }
.commitment-media { grid-column: 2; margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: var(--radius); overflow: hidden; }
.commitment-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- testimonials (light) ---------- */
.testimonials { text-align: center; }
.testimonials .display { margin-top: 1.4rem; }
.cards-carousel { text-align: left; }

.t-card {
  width: clamp(19rem, 24vw, 22rem);
  background: var(--white); border-radius: var(--radius);
  padding: 1rem; box-shadow: 0 12px 30px rgba(13, 13, 13, 0.06);
  display: flex; flex-direction: column;
}
.t-card img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.t-meta { font-family: var(--mono); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(13, 13, 13, 0.55); margin-top: 1rem; }
.t-card blockquote {
  font-family: var(--body); font-weight: 500;
  font-size: 1.08rem; line-height: 1.5; margin-top: 0.5rem; flex: 1;
}
.t-attrib { font-size: 0.85rem; color: rgba(13, 13, 13, 0.6); margin-top: 1rem; }
.t-attrib b { display: block; color: var(--ink); font-weight: 600; }

.carousel-nav { display: flex; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
.c-arrow {
  width: 3.2rem; height: 3.2rem; border-radius: 2px;
  display: inline-grid; place-items: center;
  border: 1px solid rgba(13, 13, 13, 0.2); font-size: 1.1rem;
  transition: background 0.3s, color 0.3s, transform 0.45s var(--ease);
}
.c-arrow:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

/* ---------- process (white) ---------- */
.process-rows { margin-top: clamp(2.5rem, 5vw, 4rem); }
.process-rows li {
  display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem; align-items: start;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid rgba(141, 133, 120, 0.35);
}
.process-num {
  font-family: var(--mono); font-weight: 700; font-size: 0.72rem;
  color: var(--gold-deep); padding-top: 0.55rem;
}
.process-rows h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.05;
}
.process-rows p { color: rgba(13, 13, 13, 0.65); max-width: 58ch; margin-top: 0.5rem; }
.process-note {
  text-align: center; font-family: var(--mono); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(13, 13, 13, 0.6);
  margin-top: clamp(2rem, 4vw, 3rem); padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- cta (gold) ---------- */
.cta-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.cta .display { margin-top: 1.4rem; }
.cta-direct { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 2rem; }
.contact-role {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(13, 13, 13, 0.6);
  margin-top: 0.9rem;
}
.cta-direct .contact-role:first-child { margin-top: 0; }
.cta-direct a {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  width: fit-content; border-bottom: 2px solid rgba(13, 13, 13, 0.25);
  transition: border-color 0.3s;
}
.cta-direct a:hover { border-color: var(--black); }

.bid-form {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 0 30px 60px rgba(13, 13, 13, 0.14);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid transparent; border-radius: 10px;
  padding: 0.8rem 0.95rem; transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold-deep); outline-offset: 2px;
  border-color: var(--gold); background: var(--white);
}
.field textarea { resize: vertical; }
.field .error { display: none; font-size: 0.8rem; color: #a33; margin-top: 0.3rem; }
.field.invalid .error { display: block; }
.field.invalid input { border-color: #a33; }
.hidden-field { position: absolute; left: -9999px; }
.form-done, .form-fail { display: none; margin-top: 1.1rem; font-size: 0.95rem; }
.form-fail { color: #a33; }
.bid-form.sent .form-done { display: block; }
.bid-form.failed .form-fail { display: block; }

/* ---------- footer (black) ---------- */
.footer {
  background: var(--black); color: var(--white);
  padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden;
}
.footer-top {
  display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
}
.footer-brand img { height: 60px; width: auto; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); max-width: 40ch; margin-top: 1.2rem; font-size: 0.95rem; }
.footer-brand address { font-style: normal; margin-top: 0.8rem; font-size: 0.95rem; }
.footer-brand address a { color: rgba(255, 255, 255, 0.75); transition: color 0.3s; }
.footer-brand address a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.social-icon {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--gold); color: var(--black);
  transition: background 0.3s, transform 0.3s;
}
.social-icon:hover { background: var(--gold-bright); transform: translateY(-2px); }
.social-icon svg { display: block; }
.footer-cols { display: flex; gap: clamp(2.5rem, 6vw, 5rem); }
.footer-cols div { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-cols a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; transition: color 0.3s; }
.footer-cols a:hover { color: var(--gold-bright); }
.footer-legal {
  color: rgba(255, 255, 255, 0.55); font-family: var(--mono); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-wordmark {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(10rem, 30vw, 30rem); line-height: 0.78;
  letter-spacing: -0.02em; text-align: center; white-space: nowrap;
  margin-top: clamp(1rem, 3vw, 2.5rem); margin-bottom: -0.06em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* ---------- projects gallery page (/projects/) ---------- */
/* no hero on this page: the nav is authored with .is-visible, so the first
   band clears the fixed bar with extra top padding */
.gallery-hero { padding-top: calc(77px + clamp(3rem, 6vw, 5rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.gallery-hero .display { margin-top: 1.4rem; }
.gallery-hero .band-sub-left { color: var(--ondark-body); }
.gallery-body { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
/* masonry wall: CSS columns keep every photo at its natural aspect, no crops */
.g-wall { columns: 2; column-gap: 0.9rem; }
.g-item {
  display: block; width: 100%; padding: 0; margin: 0 0 0.9rem;
  break-inside: avoid; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; transition: transform 0.45s var(--ease);
}
.g-item:hover { transform: translateY(-3px); }
.g-item:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.g-item img { width: 100%; height: auto; }
@media (min-width: 701px) { .g-wall { columns: 3; } }
@media (min-width: 1100px) { .g-wall { columns: 4; } }

.gallery-cta { text-align: center; }
.gallery-cta .display { margin-top: 1.4rem; margin-inline: auto; max-width: 20ch; }
.gallery-cta .btn { margin-top: 2.2rem; }
.gallery-link { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

[data-project] { cursor: zoom-in; }
[data-project]:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* margin:auto restores the UA centering that the global `* { margin: 0 }` reset removes -
   without it the open dialog pins to the top-left of the viewport */
.lightbox { border: none; padding: 0; background: transparent; max-width: min(92vw, 1200px); margin: auto; }
.lightbox::backdrop { background: rgba(13, 13, 13, 0.88); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox figcaption { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; text-align: center; margin-top: 0.8rem; }
.lightbox-nav { display: flex; justify-content: center; gap: 0.8rem; margin-top: 1rem; }
.lightbox .c-arrow { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.lightbox .c-arrow:hover { background: var(--white); color: var(--black); }
body:has(dialog[open]) { overflow: hidden; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(2.2rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .scatter-card, .hero-foot { animation: none; transition: none; opacity: 1; transform: none; }
  .scatter .scatter-card { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); }
  .nav { transition: none; }
}

/* ---------- responsive ---------- */
/* 981-1359: links + actions share the bar - icon-only phone and the compact
   CTA keep it airy (and the Spanish CTA on one line) */
@media (min-width: 981px) and (max-width: 1359px) {
  .nav-phone span { display: none; }
  .btn-nav { padding: 0.8rem 1rem; font-size: 0.85rem; line-height: 1.2; white-space: nowrap; }
  .lang-toggle { padding: 0.75rem 0.85rem; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  /* links hidden: centering column serves nothing, and its fixed gaps
     squeeze the actions cluster until the CTA wraps - back to flex */
  .nav { display: flex; justify-content: space-between; }
  .service-rows li { grid-template-columns: 3rem 1fr; }
  .service-detail { grid-column: 2; }
  .commitment-grid { grid-template-columns: 1fr; }
  .commitment-media { grid-column: 1; }
  .cta-grid { grid-template-columns: 1fr; }
  .services-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .hero-foot { flex-direction: column; align-items: flex-start; }
  /* keep the longer Spanish nav CTA on one line on phones */
  .nav { gap: 0.75rem; }
  .btn-nav { padding: 0.8rem 1rem; font-size: 0.85rem; line-height: 1.2; }
  .lang-toggle { padding: 0.75rem 0.85rem; }
  /* icon-only phone link on phones: the number text does not fit */
  .nav-phone span { display: none; }
  .nav-phone svg { width: 17px; height: 17px; }
  /* 44px-minimum tap targets for link lists */
  .cta-direct { gap: 0.1rem; }
  .cta-direct a { padding-block: 0.5rem; }
  .footer-cols div { gap: 0.3rem; }
  .footer-cols a, .footer-brand address a { display: inline-block; padding-block: 0.6rem; }
  .scatter { height: auto; display: flex; flex-direction: column; gap: 1.2rem; align-items: center; }
  .scatter-card { position: static; transform: rotate(var(--r)); opacity: 1; width: min(21rem, 86vw); }
  .scatter.in .scatter-card { transform: rotate(var(--r)); }
  .featured img { aspect-ratio: 4 / 3; }
  .featured figcaption { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 360px) {
  /* the narrowest phones cannot fit even the icon without wrapping the CTA;
     the number is still one tap away in the contact band and footer */
  .nav-phone { display: none; }
}
