/* ================================================
   KOI ARQUITECTURA — Architectural Editorial v5.1
   "Pie de plano" — editorial grid, muted palette,
   dotted textures, refined typography.
   ================================================ */

/* -----------------------------------------------
   CUSTOM PROPERTIES
----------------------------------------------- */
:root {
  --paper:      #FAF4E6;
  --sand:       #EEE0C0;
  --blush:      #E5C1A2;
  --ink:        #1E1E1D;
  --espresso:   #2B271D;
  --cafe:       #3A2F28;

  --terra:      #B85A3A;
  --terra-deep: #8C4430;
  --ember:      #A04A2A;
  --ocre:       #9E7B3C;
  --camel:      #8A6A48;
  --olive:      #4A5844;
  --forest:     #414D33;

  --cream:      var(--paper);
  --carbon:     var(--ink);

  --grid:       1px solid rgba(30,30,29,0.16);
  --grid-med:   1px solid rgba(30,30,29,0.25);
  --grid-dark:  1px solid rgba(250,244,230,0.08);
  --grid-dot:   1px dashed rgba(30,30,29,0.18);

  /* Hairline colors (used as border-color by interior pages) */
  --line:       rgba(30,30,29,0.14);
  --line-med:   rgba(30,30,29,0.24);
  --line-dark:  rgba(250,244,230,0.10);
  --ease:       cubic-bezier(.22,1,.36,1);

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-hand:    'Architects Daughter', cursive;
  --ff-body:    'Plus Jakarta Sans', sans-serif;

  --nav-h: 88px;
}

/* -----------------------------------------------
   RESET & BASE
----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Paper grain — applied per-section via .dot-bg class */

img    { display: block; max-width: 100%; }
a      { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; color: inherit; cursor: pointer; }
ul,ol  { list-style: none; }

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

/* -----------------------------------------------
   SCROLL PROGRESS
----------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--ink);
  z-index: 9999;
  width: 0%;
  pointer-events: none;
}

/* -----------------------------------------------
   CUSTOM CURSOR
----------------------------------------------- */
@media (pointer: fine) {
  body { cursor: url('../brand-graphics/koi-arquitectura/cursor-mano-alzada.svg') 4 4, crosshair; }
  a, button, [data-cursor] { cursor: url('../brand-graphics/koi-arquitectura/cursor-mano-alzada.svg') 4 4, pointer; }
}

/* -----------------------------------------------
   PAGE TRANSITION
----------------------------------------------- */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9990;
  pointer-events: none;
  transform-origin: bottom;
  transform: scaleY(0);
}
#page-transition.entering {
  pointer-events: all;
  transform: scaleY(1);
  transition: transform .4s cubic-bezier(.76,0,.24,1);
}
#page-transition.leaving {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform .4s cubic-bezier(.76,0,.24,1);
}

/* -----------------------------------------------
   PRELOADER
----------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.pre-logo {
  width: 80px; height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.pre-progress {
  width: 100px; height: 1px;
  background: rgba(250,244,230,.1);
}
.pre-bar {
  height: 100%;
  background: var(--terra);
  transform-origin: left;
  transform: scaleX(0);
  animation: pre-bar 1.6s ease forwards;
}
@keyframes pre-bar { to { transform: scaleX(1); } }
.pre-label {
  font-family: var(--ff-hand);
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(250,244,230,.2);
}

/* -----------------------------------------------
   HEADER / NAV — editorial with scroll effect
----------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 460;
  transition: background .3s ease, box-shadow .3s ease;
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: var(--paper);
  border-bottom: var(--grid);
  transition: border-color .3s ease, background .3s ease;
}

/* Scroll effect — subtle glass + shadow */
.site-header.scrolled .site-nav {
  background: rgba(250,244,230,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: transparent;
  box-shadow: 0 1px 8px rgba(30,30,29,.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.nav-logo img {
  height: 60px; width: auto;
  object-fit: contain;
  transition: transform .3s var(--ease);
}
.nav-logo:hover img { transform: scale(1.05); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: var(--ff-body);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  color: rgba(30,30,29,.45);
  transition: color .2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: .2rem;
  left: .9rem;
  right: .9rem;
  height: 1px;
  background: var(--ink);
}

/* nav-cta for backward compat with old pages */
.nav-cta {
  color: var(--ink) !important;
  font-weight: 700 !important;
}

/* Menu button (desktop + mobile) */
.nav-menu-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-body);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(30,30,29,.45);
  transition: color .2s ease;
}
.nav-menu-btn:hover { color: var(--ink); }

.nav-menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-menu-icon span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}

.nav-menu-btn.is-open .nav-menu-icon span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-menu-btn.is-open .nav-menu-icon span:nth-child(2) { opacity: 0; }
.nav-menu-btn.is-open .nav-menu-icon span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Old hamburger — backward compat */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 460;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -----------------------------------------------
   MOBILE OVERLAY MENU
----------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 450;
  clip-path: circle(0% at calc(100% - 48px) 28px);
  transition: clip-path .55s cubic-bezier(.76,0,.24,1);
  display: flex;
  flex-direction: column;
}
.mobile-overlay.is-open {
  clip-path: circle(170% at calc(100% - 48px) 28px);
}

.mo-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(var(--nav-h) + 3rem) 2.5rem 2.5rem;
  overflow-y: auto;
}

.mo-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.mo-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: var(--grid-dark);
  color: var(--paper);
  opacity: 0;
  transform: translateX(-40px);
  transition: color .15s ease;
}
.mo-link:hover { color: var(--terra); }

.mo-num {
  font-family: var(--ff-hand);
  font-size: .65rem;
  color: var(--terra);
  opacity: .5;
  min-width: 22px;
}
.mo-text {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}
.mo-arrow {
  margin-left: auto;
  width: 16px; height: 16px;
  filter: brightness(0) invert(1);
  opacity: .15;
  transition: transform .2s ease, opacity .2s ease;
}
.mo-link:hover .mo-arrow { transform: translateX(6px); opacity: .4; }

.mo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: var(--grid-dark);
  margin-top: auto;
}
.mo-isotipo {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .2;
}
.mo-social { display: flex; gap: .5rem; }
.mo-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(250,244,230,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s var(--ease), background .25s var(--ease),
              transform .3s var(--ease);
}
.mo-social a:hover {
  border-color: var(--terra);
  background: var(--terra);
  transform: translateY(-4px) scale(1.1) rotate(-6deg);
}
.mo-social img {
  width: 16px; height: 16px;
  filter: brightness(0) invert(1);
  opacity: .5;
}
.mo-social a:hover img { opacity: 1; }

/* -----------------------------------------------
   BUTTONS — clean, editorial
----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-body);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all .2s ease;
}
.btn img { width: 14px; height: 14px; flex-shrink: 0; }

.btn-dark {
  padding: .7rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border: var(--grid);
}
.btn-dark:hover { background: var(--cafe); }

.btn-terra {
  padding: .7rem 1.6rem;
  background: var(--terra);
  color: var(--paper);
  border: 1px solid var(--terra);
}
.btn-terra:hover { background: var(--terra-deep); }

.btn-outline {
  padding: .7rem 1.6rem;
  background: transparent;
  color: var(--ink);
  border: var(--grid-med);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-link {
  font-family: var(--ff-body);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s ease;
}
.btn-link:hover { gap: .7rem; }
.btn-link::after {
  content: '\2192';
  font-size: .8em;
}

.btn-wa {
  padding: .75rem 1.8rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px dashed rgba(30,30,29,.25);
  transition: border-color .25s var(--ease), background .25s var(--ease),
              transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-wa:hover {
  border-color: var(--ink);
  border-style: solid;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30,30,29,.16);
}
.btn-wa:hover img { animation: wa-bob .8s var(--ease); }
.btn-wa img { width: 18px; height: 18px; }

/* Old button styles (backward compat) */
.btn-cream { padding: .9rem 2rem; background: var(--paper); color: var(--ink); border: var(--grid); }
.btn-cream:hover { border-color: var(--ink); }
.btn-wa-hero {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: 1rem 2.5rem; background: var(--terra); color: var(--paper);
  border: 1px dashed rgba(250,244,230,.3);
  font-family: var(--ff-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s ease, border .2s ease;
}
.btn-wa-hero:hover { background: var(--terra-deep); border-style: solid; }
.btn-wa-hero img { width: 24px; height: 24px; filter: brightness(0) invert(1); }

/* -----------------------------------------------
   FLOATING WHATSAPP — editorial stamp + live pulse
----------------------------------------------- */
#wa-float {
  position: fixed;
  bottom: 1.6rem; right: 1.6rem;
  z-index: 600;
  width: 66px; height: 66px;
  background: var(--ink);
  border: 1px dashed rgba(250,244,230,.32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 8px 24px rgba(30,30,29,.18);
}
#wa-float.is-visible { opacity: 1; transform: none; }

/* Expanding pulse rings (WhatsApp green) — sit behind the button */
#wa-float::before,
#wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
#wa-float.is-visible::before { animation: wa-ring 2.6s ease-out infinite; }
#wa-float.is-visible::after  { animation: wa-ring 2.6s ease-out infinite 1.3s; }

@keyframes wa-ring {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

#wa-float:hover {
  background: #1ebe5a;
  border-style: solid;
  border-color: rgba(250,244,230,.55);
  box-shadow: 0 12px 30px rgba(37,211,102,.35);
}
#wa-float.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px) !important;
}
#wa-float img {
  width: 30px; height: 30px;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
  transition: transform .3s var(--ease);
}
/* Gentle continuous bob to draw the eye */
#wa-float.is-visible img { animation: wa-bob 2.8s ease-in-out infinite; }
#wa-float:hover img { transform: scale(1.12) rotate(-6deg); animation-play-state: paused; }

@keyframes wa-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.wa-ping {
  position: absolute;
  top: 2px; right: 2px;
  width: 13px; height: 13px;
  background: #25D366;
  border: 2px solid var(--paper);
  border-radius: 50%;
  z-index: 2;
  animation: wa-ping-pulse 1.6s ease-in-out infinite;
}
@keyframes wa-ping-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  50%      { transform: scale(1.18); box-shadow: 0 0 0 5px rgba(37,211,102,0); }
}

@media (prefers-reduced-motion: reduce) {
  #wa-float.is-visible::before,
  #wa-float.is-visible::after,
  #wa-float.is-visible img,
  .wa-ping { animation: none; }
}

/* -----------------------------------------------
   SHARED UTILITIES — editorial
----------------------------------------------- */

/* Section number — dashed circle stamp */
.section-num {
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  margin-bottom: .4rem;
}

/* Thin separator line */
.sep {
  width: 24px;
  height: 1px;
  background: var(--ink);
  opacity: .2;
}

/* Dotted separator */
.sep-dot {
  width: 100%;
  height: 0;
  border-top: var(--grid-dot);
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-hand);
  font-size: .7rem;
  color: rgba(30,30,29,.4);
  text-transform: uppercase;
  letter-spacing: .15em;
}
.eyebrow.light { color: rgba(250,244,230,.35); }

/* Hand-drawn circle highlight */
.highlight-circle {
  position: relative;
  white-space: nowrap;
}
.highlight-circle::after {
  content: '';
  position: absolute;
  inset: -.15em -.25em;
  border: 1.5px solid var(--camel);
  border-radius: 50%;
  transform: rotate(-2deg);
  opacity: .5;
  pointer-events: none;
}

/* Hand-drawn underline highlight */
.highlight-line {
  position: relative;
  white-space: nowrap;
}
.highlight-line::after {
  content: '';
  position: absolute;
  bottom: -.05em;
  left: -.05em;
  right: -.05em;
  height: .1em;
  background: var(--camel);
  opacity: .4;
  transform: rotate(-.3deg);
  pointer-events: none;
}

/* Vertical text */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--ff-body);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(30,30,29,.25);
  white-space: nowrap;
}

/* K circle — stamp style */
.k-circle {
  width: 44px; height: 44px;
  border: 1px dashed rgba(30,30,29,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: .82rem;
  font-weight: 900;
  font-style: italic;
  color: var(--ink);
}

/* Dot grid background pattern */
.dot-bg {
  background-image: radial-gradient(circle, rgba(30,30,29,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Editorial dashed border box */
.editorial-box {
  border: 1px dashed rgba(30,30,29,.15);
  padding: 1.5rem;
}

/* -----------------------------------------------
   PAGE HERO (interior pages)
----------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 4rem) 2rem 3rem;
  border-bottom: var(--grid);
}
.ph-bg {
  position: absolute;
  inset: -25% 0;
  background-size: cover;
  background-position: center;
}
.ph-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,30,.78) 0%, rgba(28,28,30,.25) 50%, rgba(28,28,30,.08) 100%);
}
.ph-content { position: relative; z-index: 2; }
.ph-h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--paper);
  margin-bottom: .4rem;
}
.ph-sub {
  font-family: var(--ff-hand);
  font-size: .78rem;
  color: rgba(250,244,230,.35);
  letter-spacing: .08em;
}

/* -----------------------------------------------
   FOOTER — editorial with social links
----------------------------------------------- */
.site-footer {
  border-top: var(--grid);
}

/* Footer CTA area */
.footer-cta {
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: var(--grid);
  position: relative;
  overflow: hidden;
}
.footer-cta-ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-display);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  color: rgba(30,30,29,.02);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
.footer-cta-h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: .8rem;
  position: relative; z-index: 1;
}
.footer-cta-h2 em {
  font-style: italic;
  color: var(--terra);
}
.footer-cta-sub {
  font-size: .82rem;
  color: rgba(30,30,29,.38);
  max-width: 36ch;
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative; z-index: 1;
}
.footer-cta .btn-wa { position: relative; z-index: 1; }

/* Footer hand-drawn decorations — koi + olivo (trazo a mano) */
.footer-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.footer-deco-olivo {
  top: 6%; left: 3%;
  width: clamp(96px, 12vw, 156px);
  opacity: .2;
  transform-origin: top left;
  animation: deco-sway 7.5s ease-in-out infinite;
}
.footer-deco-fish {
  bottom: 8%; right: 4%;
  width: clamp(72px, 9vw, 124px);
  opacity: .16;
  animation: deco-swim 9s ease-in-out infinite;
}
.footer-deco-fish2 {
  top: 12%; right: 8%;
  width: clamp(42px, 5vw, 70px);
  opacity: .12;
  animation: deco-swim2 11s ease-in-out infinite;
}

@keyframes deco-sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-6px); }
}
@keyframes deco-swim {
  0%, 100% { transform: rotate(8deg)  translate(0, 0); }
  25%      { transform: rotate(3deg)  translate(-12px, -8px); }
  50%      { transform: rotate(11deg) translate(7px, -14px); }
  75%      { transform: rotate(5deg)  translate(-7px, -5px); }
}
@keyframes deco-swim2 {
  0%, 100% { transform: rotate(-14deg) translate(0, 0); }
  50%      { transform: rotate(-6deg)  translate(-10px, 10px); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-deco { animation: none !important; }
}

/* Footer info section (3-column) */
.footer-info {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 2rem;
  border-bottom: var(--grid);
}
.footer-info-brand {}
.footer-logo {
  height: 46px; width: auto;
  object-fit: contain;
  margin-bottom: .7rem;
  opacity: .7;
}
.footer-tagline {
  font-family: var(--ff-hand);
  font-size: .68rem;
  color: rgba(30,30,29,.3);
}
.footer-info-contact {
  font-size: .72rem;
  line-height: 2;
  color: rgba(30,30,29,.4);
}
.footer-info-contact p:first-child {
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .6rem;
  color: rgba(30,30,29,.3);
  margin-bottom: .3rem;
}
.footer-info-social {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}
.footer-info-social a {
  width: 38px; height: 38px;
  border: 1px dashed rgba(30,30,29,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s var(--ease), background .25s var(--ease),
              border-style .25s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.footer-info-social a:hover {
  border-color: var(--ink);
  border-style: solid;
  background: var(--ink);
  transform: translateY(-5px) scale(1.1) rotate(-6deg);
  box-shadow: 0 10px 22px rgba(30,30,29,.22);
}
.footer-info-social img {
  width: 15px; height: 15px;
  opacity: .4;
  transition: opacity .25s var(--ease), filter .25s var(--ease), transform .3s var(--ease);
}
.footer-info-social a:hover img {
  opacity: 1;
  filter: brightness(0) invert(1);
  transform: rotate(6deg);
}

/* Footer bottom bar */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-top: var(--grid-dot);
}
.footer-copy {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(30,30,29,.25);
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(30,30,29,.25);
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--ink); }
.footer-legal {
  display: flex;
  gap: 1.2rem;
}
.footer-legal a {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(30,30,29,.2);
  transition: color .2s ease;
}
.footer-legal a:hover { color: var(--ink); }
.footer-credits {
  font-family: var(--ff-hand);
  font-size: .6rem;
  color: rgba(30,30,29,.18);
  text-align: center;
  padding: .5rem 2rem;
  border-top: var(--grid);
}
.footer-credits a {
  color: rgba(30,30,29,.35);
  transition: color .15s ease;
}
.footer-credits a:hover { color: var(--terra); }

/* Old footer styles — backward compat */
.footer-hero {
  position: relative; padding: 6rem 2rem 5rem; overflow: hidden;
  border-bottom: var(--grid-dark);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--ink); color: var(--paper);
}
.footer-hero-ghost {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-display); font-size: clamp(6rem, 20vw, 20rem);
  font-weight: 900; color: rgba(250,244,230,.02);
  user-select: none; pointer-events: none; white-space: nowrap; line-height: 1;
}
.footer-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--ff-hand); font-size: .75rem;
  color: var(--terra); letter-spacing: .2em; margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.footer-hero-h2 {
  font-family: var(--ff-display); font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 900; line-height: .95; color: var(--paper);
  margin-bottom: 2.5rem; position: relative; z-index: 1;
}
.footer-hero-h2 em { font-style: normal; color: var(--terra); display: block; }
.footer-hero-dots { display: flex; gap: .5rem; margin-top: 3rem; position: relative; z-index: 1; }
.footer-hero-dots span { width: 6px; height: 6px; background: rgba(250,244,230,.1); border-radius: 50%; }
.footer-hero-dots span:nth-child(2) { background: var(--terra); width: 20px; border-radius: 0; }

.footer-body {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 3rem;
  padding: 4rem 2rem 3rem; border-bottom: var(--grid-dark);
  background: var(--ink); color: var(--paper);
}
.footer-brand {}
.footer-col-title {
  font-family: var(--ff-hand); font-size: .65rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(250,244,230,.2);
  margin-bottom: 1.2rem; padding-bottom: .4rem; border-bottom: var(--grid-dark);
}
.footer-nav-list a {
  display: block; font-size: .82rem; color: rgba(250,244,230,.45);
  padding: .4rem 0; transition: color .15s ease;
}
.footer-nav-list a:hover { color: var(--terra); }
.footer-contact-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: rgba(250,244,230,.45); padding: .4rem 0;
  border-bottom: 1px solid rgba(250,244,230,.04);
}
.footer-contact-item img { width: 14px; height: 14px; filter: brightness(0) invert(1); opacity: .3; }
.footer-social { display: flex; gap: .4rem; margin-top: 1.2rem; }
.footer-soc-link {
  width: 38px; height: 38px;
  border: 1px dashed rgba(250,244,230,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border .15s ease;
}
.footer-soc-link:hover { background: var(--terra); border-color: var(--terra); border-style: solid; }
.footer-soc-link img { width: 16px; height: 16px; filter: brightness(0) invert(1); opacity: .5; }
.footer-soc-link:hover img { opacity: 1; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2rem; border-top: var(--grid-dark);
  background: var(--ink); color: var(--paper);
}
.footer-bottom .footer-legal,
.footer-bottom p { font-size: .65rem; color: rgba(250,244,230,.2); }
.footer-bottom .footer-legal-links { display: flex; gap: 1rem; }
.footer-bottom .footer-legal-links a { font-size: .65rem; color: rgba(250,244,230,.2); transition: color .15s ease; }
.footer-bottom .footer-legal-links a:hover { color: rgba(250,244,230,.6); }
.footer-bottom .footer-credits { font-family: var(--ff-hand); font-size: .65rem; color: rgba(250,244,230,.2); border: none; padding: 0; }
.footer-bottom .footer-credits a { color: rgba(250,244,230,.4); }

/* -----------------------------------------------
   MARQUEE — editorial
----------------------------------------------- */
.marquee-wrap {
  overflow: hidden;
  border-top: var(--grid);
  border-bottom: var(--grid);
  padding: .5rem 0;
  white-space: nowrap;
  background: var(--paper);
}
.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--ff-body);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(30,30,29,.2);
  padding: 0 1.5rem;
}
.marquee-sep {
  font-size: .7rem;
  color: var(--camel);
  padding: 0 .2rem;
  align-self: center;
  line-height: 1;
  opacity: .3;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* -----------------------------------------------
   SCROLL REVEAL
----------------------------------------------- */
[data-anim] { will-change: opacity, transform; }

/* -----------------------------------------------
   RESPONSIVE — shared
----------------------------------------------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .footer-nav { display: none; }
  .footer-bar { justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
  .footer-info { grid-template-columns: 1fr 1fr; }
  .footer-info-brand { grid-column: 1 / -1; }

  /* Old footer responsive */
  .footer-body { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 76px; }
  .site-nav { padding: 0 1.1rem; }
  .nav-logo img { height: 52px; }
  .nav-menu-btn > span { display: none; }
  .nav-hamburger { display: flex; }

  .scroll-progress { height: 2px; }
  .page-hero { padding: calc(var(--nav-h) + 2rem) 1rem 2rem; }

  .footer-cta { padding: 3rem 1.2rem; }
  .footer-deco-fish2 { display: none; }
  .footer-deco-olivo { opacity: .14; left: -2%; }
  .footer-deco-fish { opacity: .12; right: -2%; }
  .footer-info { grid-template-columns: 1fr; padding: 2rem 1.2rem; gap: 1.5rem; }
  .footer-bar {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
    padding: .8rem 1rem;
  }
  .footer-legal { gap: 1.6rem; }
  .footer-info-social { gap: .7rem; }
  .footer-info-social a { width: 44px; height: 44px; }
  .mo-social a { width: 46px; height: 46px; }
  .mo-social img { width: 18px; height: 18px; }
  .mo-link { padding: 1.1rem 0; }
  .footer-credits { padding: .5rem 1rem; }
  #wa-float { bottom: 1.1rem; right: 1.1rem; width: 60px; height: 60px; }
  #wa-float img { width: 28px; height: 28px; }

  /* Old footer responsive */
  .footer-hero { padding: 4rem 1rem 3rem; }
  .footer-body { grid-template-columns: 1fr; padding: 2rem 1rem; gap: 1.5rem; }
  .footer-bottom {
    flex-direction: column; gap: .4rem; text-align: center; padding: .8rem 1rem;
  }
}
