/* ==========================================================================
   ALT PLACAS — components.css
   Navigation, buttons, cards, the sticky expertise stack, marquee, accordion,
   contact rail, footer and the persistent WhatsApp affordance.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVIGATION
   Fixed pill. Translucent bone at rest, denser and shadowed once scrolled.
   Three independent nav blocks (xl / tablet / mobile) so each breakpoint can
   carry its own logic without fighting the others.
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 1rem;
  left: 0; right: 0;
  z-index: 50;
  transition: top 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 0.75rem 0 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 18, 15, 0.07);
  background: rgba(242, 238, 231, 0.82);
  -webkit-backdrop-filter: var(--fx-supported);
          backdrop-filter: var(--fx-supported);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
              height 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav.is-scrolled { top: 0.5rem; }
.nav.is-scrolled .nav__inner {
  background: rgba(242, 238, 231, 0.96);
  box-shadow: 0 14px 40px -18px rgba(20, 18, 15, 0.34),
              0 1px 0 rgba(255, 255, 255, 0.6) inset;
  border-color: rgba(20, 18, 15, 0.1);
  height: 62px;
}

.nav__brand { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.nav__brand svg { width: 22px; height: 22px; flex: none; }
.nav__wordmark {
  display: flex; flex-direction: column; line-height: 1;
}
.nav__wordmark b {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.nav__wordmark span {
  font-family: 'Geist', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tx-mute);
  margin-top: 0.28rem;
}

.nav__links { display: none; align-items: center; gap: 0.35rem; }
@media (min-width: 1180px) { .nav__links.is-xl { display: flex; } }

.nav__link {
  position: relative;
  padding: 0.55rem 0.95rem;
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tx-soft);
  border-radius: 999px;
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(20, 18, 15, 0.05); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0.32rem;
  width: 0; height: 2px;
  background: var(--laser);
  transform: translateX(-50%);
  transition: width 0.45s var(--ease);
}
.nav__link:hover::after { width: 14px; }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

/* Tablet nav — deliberately kept as its own block outside the inner container,
   mirroring the reference's overlapping nav logic. */
.tablet-menu {
  display: none;
  position: fixed;
  z-index: 49;
  left: 0; right: 0;
  top: calc(1rem + var(--nav-h) + 0.5rem);
  pointer-events: none;
}
@media (min-width: 768px) and (max-width: 1179px) { .tablet-menu { display: block; } }
.tablet-menu__strip {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 18, 15, 0.07);
  background: rgba(242, 238, 231, 0.78);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
          backdrop-filter: blur(10px) saturate(1.2);
}
.tablet-menu__strip a {
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--tx-soft);
  border-radius: 999px;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}
.tablet-menu__strip a:hover { color: var(--ink); background: rgba(20,18,15,0.05); }

/* Mobile burger + panel */
.nav__burger {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(20, 18, 15, 0.1);
  transition: background 0.4s var(--ease);
}
.nav__burger:hover { background: rgba(20, 18, 15, 0.05); }
@media (min-width: 1180px) { .nav__burger { display: none; } }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  padding: 1.5rem var(--gutter) 2.25rem;
  transform: translateY(-100%);
  visibility: hidden;
}
.mobile-panel.is-open { visibility: visible; }
.mobile-panel__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-panel__nav { margin-top: auto; display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-panel__nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 9vw, 2.9rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--bone);
  border-bottom: 1px solid var(--line-dark-2);
  padding: 0.5rem 0;
  display: flex; align-items: baseline; justify-content: space-between;
}
.mobile-panel__nav a i {
  font-family: 'Syncopate', sans-serif;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--tx-inv-mute);
}
.mobile-panel__foot { margin-top: 2rem; display: grid; gap: 0.9rem; }

/* --------------------------------------------------------------------------
   2. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-family: 'Geist', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.55s var(--ease), color 0.55s var(--ease),
              border-color 0.55s var(--ease), transform 0.55s var(--ease);
}
.btn iconify-icon { font-size: 1.05em; }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--ink); color: var(--bone); }
.btn--primary:hover { background: var(--green); }

.btn--ghost {
  border: 1px solid rgba(20, 18, 15, 0.16);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.85); border-color: rgba(20, 18, 15, 0.3); }

.btn--ghost-inv {
  border: 1px solid var(--line-dark);
  color: var(--bone);
  background: rgba(241, 237, 230, 0.04);
}
.btn--ghost-inv:hover { background: rgba(241, 237, 230, 0.1); border-color: rgba(241, 237, 230, 0.28); }

.btn--wa { background: var(--green); color: #fff; }
.btn--wa:hover { background: var(--green-deep); }

.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.76rem; }
.btn--lg { padding: 1.15rem 2rem; font-size: 0.9rem; }

/* Shiny CTA — a cursor-tracked radial glow plus shimmer hairlines top and
   bottom. Coordinates are fed in from JS as --mx / --my. */
.shiny-cta { --mx: 50%; --my: 50%; }
.shiny-cta::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(140px circle at var(--mx) var(--my),
              rgba(74, 222, 128, 0.55), transparent 62%);
  transition: opacity 0.45s var(--ease);
}
.shiny-cta:hover::before { opacity: 1; }
.shiny-cta::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.shiny-cta:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   3. GLASS PLAQUE  (hero + featured project overlays)
   -------------------------------------------------------------------------- */
.plaque {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 18, 15, 0.42);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
          backdrop-filter: blur(12px) saturate(1.2);
  color: var(--bone);
  padding: 1rem 1.2rem;
}
.plaque__k {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(241, 237, 230, 0.62);
}
.plaque__v {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 0.35rem;
}

/* Inset white border used over photography, per the reference visual language */
.inset-frame {
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
@media (min-width: 640px) { .inset-frame { inset: 2rem; } }

/* Media containers */
.media {
  position: relative;
  overflow: hidden;
  background: var(--bone-3);
}
.media img, .media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
  will-change: transform;
}
.media-hover:hover img, .media-hover:hover video { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   4. MARQUEE
   -------------------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; display: flex; }
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 3.25rem;
  padding-right: 3.25rem;
  white-space: nowrap;
  will-change: transform;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-family: 'Syncopate', sans-serif;
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tx-soft);
}
.marquee__item::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--laser);
}
.marquee--inv .marquee__item { color: var(--tx-inv-soft); }

/* --------------------------------------------------------------------------
   5. SERVICE CARD
   -------------------------------------------------------------------------- */
.svc {
  position: relative;
  height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease),
              border-color 0.6s var(--ease);
}
.svc:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 32px 60px -34px rgba(20, 18, 15, 0.4);
  border-color: rgba(20, 18, 15, 0.2);
}
.svc__media { position: relative; height: 62%; overflow: hidden; background: var(--bone-3); }
.svc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(18%);
  transition: transform 1.1s var(--ease), filter 0.7s var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.05); filter: grayscale(0%); }
.svc__num {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 2;
  font-family: 'Syncopate', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: #fff;
  background: rgba(20, 18, 15, 0.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}
.svc__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.svc__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.svc__copy { font-size: 0.86rem; line-height: 1.6; color: var(--tx-soft); font-weight: 300; }
.svc__go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.svc__go iconify-icon { transition: transform 0.5s var(--ease); }
.svc:hover .svc__go iconify-icon { transform: translate(3px, -3px); }

/* Oversized ghost word behind a section */
.ghost-word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 17vw, 16rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.ghost-word.is-inv { color: var(--bone); opacity: 0.045; }

/* --------------------------------------------------------------------------
   6. EXPERTISE STACK  (sticky cards that pile on top of each other)
   -------------------------------------------------------------------------- */
.stack-section { background: var(--ink); position: relative; }
.stack-card {
  position: sticky;
  top: 10vh;
  height: 80vh;
  min-height: 520px;
  will-change: transform;
}
.card-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  transform-origin: center top;
}
@media (min-width: 900px) { .card-inner { grid-template-columns: 1fr 1.2fr; } }

.card-content {
  padding: clamp(1.5rem, 3.4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 0;
}
.card-num {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  letter-spacing: -0.02em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 237, 230, 0.34);
}
.card-title {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.3vw, 1.7rem);
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--bone);
  text-transform: uppercase;
}
.card-copy {
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 300;
  color: var(--tx-inv-soft);
  max-width: 46ch;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-tag {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-inv-soft);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.card-accent { width: 3.5rem; height: 3px; }
.card-media { position: relative; overflow: hidden; background: #0d0c0a; min-height: 220px; }
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
  filter: grayscale(12%);
}
.card-inner:hover .card-img { transform: scale(1.1); }

/* --------------------------------------------------------------------------
   7. PROCESS STEPS
   -------------------------------------------------------------------------- */
.step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.step__icon {
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  background: var(--bone-2);
  border-radius: 4px;
  font-size: 1.3rem;
  color: var(--ink);
  transition: background 0.55s var(--ease), color 0.55s var(--ease);
}
.step:hover .step__icon { background: var(--ink); color: var(--laser); }
.step__num {
  position: absolute; top: 1rem; right: 0;
  font-family: 'Syncopate', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--tx-mute);
}
.step__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em;
  margin-top: 1.1rem;
}
.step__copy { font-size: 0.85rem; line-height: 1.6; color: var(--tx-soft); font-weight: 300; margin-top: 0.5rem; }

/* Scrubbed progress rule that draws itself across the process row */
.step-track { position: relative; height: 1px; background: var(--line); }
.step-track__fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: var(--laser);
}

/* --------------------------------------------------------------------------
   8. METHOD CARD  (three-up, floating glass icon)
   -------------------------------------------------------------------------- */
.method { position: relative; }
.method__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bone-3); }
.method__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(12%);
  transition: transform 0.7s var(--ease);
}
.method:hover .method__media img { transform: scale(1.03); }
.method__icon {
  position: absolute; top: 1.15rem; left: 1.15rem;
  z-index: 2;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(20, 18, 15, 0.38);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   9. COMMITMENT / PROOF CARDS  (masonry columns)
   -------------------------------------------------------------------------- */
.masonry { columns: 1; column-gap: 1.25rem; }
@media (min-width: 768px)  { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.proof-card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.proof-card:hover { border-color: rgba(20,18,15,0.22); transform: translateY(-3px); }
.proof-card__top { display: flex; align-items: center; justify-content: space-between; }
.proof-card__icon {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  background: var(--ink); color: var(--laser);
  font-size: 1.05rem;
}
.proof-card__tag {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.55rem; letter-spacing: 0.2em; color: var(--tx-mute);
}
.proof-card__title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; }
.proof-card__copy { font-size: 0.86rem; line-height: 1.65; color: var(--tx-soft); font-weight: 300; }

/* --------------------------------------------------------------------------
   10. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.4s var(--ease);
}
.faq__q:hover { color: var(--green); }
.faq__sign {
  flex: none;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.55s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease);
}
.faq__item.is-open .faq__sign { transform: rotate(45deg); background: var(--ink); color: var(--laser); border-color: var(--ink); }
.faq__a { height: 0; overflow: hidden; }
.faq__a > div { padding-bottom: 1.6rem; max-width: 68ch; }

/* --------------------------------------------------------------------------
   11. CONTACT RAIL
   Slides in from the right shortly after load — the reference's language
   sidebar, repurposed as a persistent contact rail.
   -------------------------------------------------------------------------- */
.contact-rail {
  position: fixed;
  right: 0; top: 50%;
  z-index: 45;
  transform: translate(100%, -50%);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(20, 18, 15, 0.1);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  background: rgba(242, 238, 231, 0.86);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
          backdrop-filter: blur(12px) saturate(1.2);
  transition: transform 0.9s var(--ease);
}
.contact-rail.is-in { transform: translate(0, -50%); }
.contact-rail a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.05rem;
  color: var(--tx-soft);
  border-bottom: 1px solid rgba(20, 18, 15, 0.08);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.contact-rail a:last-child { border-bottom: 0; }
.contact-rail a:hover { background: var(--ink); color: var(--laser); }
@media (max-width: 767px) { .contact-rail { display: none; } }

/* --------------------------------------------------------------------------
   12. FLOATING WHATSAPP
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 55;
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  box-shadow: 0 18px 40px -18px rgba(20, 18, 15, 0.6);
  opacity: 0; transform: translateY(1.5rem) scale(0.9);
  transition: background 0.45s var(--ease);
}
.wa-float:hover { background: var(--green-deep); }
.wa-float iconify-icon { font-size: 1.25rem; }
.wa-float span { display: none; }
@media (min-width: 640px) { .wa-float span { display: inline; } }
.wa-float__pulse {
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 1px solid var(--laser);
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   13. FORM
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tx-inv-mute); font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(10, 9, 8, 0.6);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: var(--bone);
  font-family: 'Geist', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder, .field textarea::placeholder { color: #5c564e; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--laser);
  background: rgba(10, 9, 8, 0.85);
}
.field select option { background: #14120F; color: var(--bone); }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.footer-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(2rem, 5vh, 4rem);
  color: var(--bone);
}
.footer-bg { position: absolute; inset: 0; overflow: hidden; }
.footer-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(40%); }
.footer-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,18,15,0.72), rgba(20,18,15,0.94));
}
.footer-word {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 11vw, 9rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--bone);
}
.footer-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--tx-inv-soft);
  font-size: 0.86rem;
  transition: color 0.4s var(--ease);
}
.footer-link:hover { color: var(--laser); }
.footer-col-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--tx-inv-mute);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   15. OBRAS GRID
   The featured piece and the stacked pair must agree on a height. Aspect ratio
   alone cannot do it: a stretched grid item resolves its ratio from the row
   height and blows the column out sideways. Both columns therefore get an
   explicit height at lg and the row stops stretching.
   -------------------------------------------------------------------------- */
.obras-featured { aspect-ratio: 4 / 5; }
.obras-stack > article { aspect-ratio: 4 / 3; }
.obras-stack > article > .media { height: 100%; }

@media (min-width: 1024px) {
  .obras-grid { align-items: start; }
  .obras-featured,
  .obras-stack { aspect-ratio: auto; height: clamp(520px, 54vw, 840px); }
  .obras-stack > article { aspect-ratio: auto; height: 100%; min-height: 0; }
}

/* --------------------------------------------------------------------------
   16. NARROW-VIEWPORT CORRECTIONS
   -------------------------------------------------------------------------- */

/* Below ~430px the wordmark, the CTA label and the burger cannot share one
   pill. The CTA drops to its icon so the burger stays reachable; the full
   label is still one tap away inside the mobile panel. */
@media (max-width: 519px) {
  .nav__inner { padding-left: 1rem; padding-right: 0.6rem; }
  .nav__cta span { display: none; }
  .nav__cta { padding-inline: 0.85rem; }
  .nav__wordmark b { font-size: 0.74rem; letter-spacing: 0.16em; }
  .nav__wordmark span { font-size: 0.46rem; }
}
@media (max-width: 379px) {
  .nav__wordmark span { display: none; }
}

/* The sticky card stack needs a viewport tall and wide enough to hold a
   two-column card. On phones the cards become an ordinary vertical list —
   stacking them there only clipped the copy behind the photograph. */
@media (max-width: 899px) {
  .stack-card { position: static; height: auto; min-height: 0; margin-bottom: 1.25rem; }
  .card-inner { grid-template-rows: auto auto; }
  .card-content { gap: 1.75rem; }
  .card-media { aspect-ratio: 4 / 3; min-height: 0; }
  .card-num { font-size: 2.6rem; }
}

/* The floating WhatsApp button sits over the last line of the footer on a
   phone, where the footer is in normal flow rather than revealed. */
@media (max-width: 767px) {
  .footer-inner { padding-bottom: 5.5rem; }
}
