/* ============================================================
   BM Defensa & Asesoría — Premium law firm design
   Palette: deep ink, warm ivory, champagne gold
   Type: Cormorant Garamond (display) + Manrope (body)
   ============================================================ */

:root {
  --ink: #0d1218;
  --ink-2: #131a23;
  --ink-3: #1b242f;
  --ivory: #f4f0e8;
  --ivory-2: #ece6da;
  --gold: #c8a45c;
  --gold-light: #e0c68a;
  --text: #2a2f36;
  --text-muted: #6b7280;
  --text-on-dark: rgba(244, 240, 232, 0.72);
  --line: rgba(13, 18, 24, 0.12);
  --line-on-dark: rgba(244, 240, 232, 0.14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
em { font-style: italic; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section { padding-block: clamp(5rem, 10vw, 9rem); }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(200, 164, 92, 0.35);
}

.btn--ghost {
  border-color: var(--line-on-dark);
  color: var(--ivory);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn__arrow { transition: transform 0.35s var(--ease-out); }
.btn--ghost:hover .btn__arrow { transform: translateX(5px); }

.btn--outline {
  border-color: var(--gold);
  color: var(--gold);
  padding: 0.7rem 1.4rem;
}
.btn--outline:hover { background: var(--gold); color: var(--ink); }

.btn--full { width: 100%; justify-content: center; }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__monogram {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  color: var(--ivory);
  letter-spacing: 0.08em;
}
.preloader__amp { color: var(--gold); margin-inline: 0.15em; }
.preloader__line {
  width: 180px;
  height: 1px;
  background: var(--line-on-dark);
  margin: 1.2rem auto;
  overflow: hidden;
}
.preloader__line-fill {
  width: 100%; height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.preloader__tag {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.4rem;
  transition: all 0.5s var(--ease-out);
}
.nav--scrolled {
  padding-block: 0.8rem;
  background: rgba(13, 18, 24, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-on-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 0.9rem; }
.nav__monogram {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ivory);
  border: 1px solid var(--gold);
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  letter-spacing: 0.05em;
  transition: background 0.4s;
}
.nav__brand:hover .nav__monogram { background: rgba(200, 164, 92, 0.12); }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav__brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.02em;
}
.nav__brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav__links { display: flex; align-items: center; gap: 2.4rem; }
.nav__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--ivory); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav__burger span {
  width: 28px; height: 2px;
  background: var(--ivory);
  transition: all 0.4s var(--ease-out);
}
.nav__burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ivory);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img {
  width: 100%; height: 115%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.55) brightness(0.9);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 18, 24, 0.96) 20%, rgba(13, 18, 24, 0.72) 55%, rgba(13, 18, 24, 0.45) 100%),
    linear-gradient(to top, rgba(13, 18, 24, 0.95), transparent 40%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { padding-top: clamp(6rem, 12vh, 9rem); width: 100%; }
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2rem;
}
.hero__eyebrow-line { width: 56px; height: 1px; background: var(--gold); }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 2.2rem;
}
.hero__title em { color: var(--gold-light); }
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line > span { display: block; }
.hero__sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: var(--text-on-dark);
  margin-bottom: 2.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.1rem; }

.hero__footer {
  display: flex;
  align-items: flex-end;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: 2.5rem;
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--line-on-dark);
}
.hero__stat { display: flex; flex-direction: column; gap: 0.2rem; }
.hero__stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ivory);
  line-height: 1;
}
.hero__stat-num sup { color: var(--gold); font-size: 0.6em; }
.hero__stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.hero__scroll {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: var(--line-on-dark);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollDrop 2.2s var(--ease-out) infinite;
}
@keyframes scrollDrop {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--ink);
  border-block: 1px solid var(--line-on-dark);
  overflow: hidden;
  padding-block: 1.1rem;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.marquee__track i { color: var(--gold); font-style: normal; font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTION HEADINGS ============ */
.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section__eyebrow::before {
  content: "";
  width: 42px; height: 1px;
  background: var(--gold);
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.section__title em { color: var(--gold); }
.section__lead {
  max-width: 560px;
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.05rem;
}
.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); }

/* ============ ÁREAS ============ */
.areas { background: var(--ivory); }
.areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.area-card {
  position: relative;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  overflow: hidden;
}
.area-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease-out);
  z-index: 0;
}
.area-card:hover::before { transform: scaleY(1); transform-origin: top; }
.area-card > * { position: relative; z-index: 1; }
.area-card__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 2.4rem;
  display: block;
  transition: color 0.4s;
}
.area-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
  transition: color 0.4s;
}
.area-card__desc {
  font-size: 0.94rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.4s;
}
.area-card__link {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.4s;
}
.area-card__link span { transition: transform 0.35s var(--ease-out); }
.area-card__link:hover span { transform: translateX(6px); }
.area-card:hover .area-card__title { color: var(--ivory); }
.area-card:hover .area-card__desc { color: var(--text-on-dark); }
.area-card:hover .area-card__link { color: var(--gold-light); }

/* ============ NOSOTROS ============ */
.about { background: var(--ivory-2); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about__media { position: relative; }
.about__img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about__img-frame::after {
  content: "";
  position: absolute;
  inset: 1.4rem;
  border: 1px solid rgba(244, 240, 232, 0.35);
  pointer-events: none;
}
.about__img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9);
  transition: transform 1.2s var(--ease-out);
}
.about__media:hover .about__img-frame img { transform: scale(1.05); }
.about__badge {
  position: absolute;
  bottom: -1.8rem;
  right: -1.2rem;
  background: var(--ink);
  color: var(--ivory);
  padding: 1.6rem 1.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
  box-shadow: 0 24px 60px rgba(13, 18, 24, 0.28);
}
.about__badge-serif {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.about__text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2.4rem;
  max-width: 520px;
}
.about__pillars { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2.6rem; }
.about__pillars li { display: flex; gap: 1.1rem; align-items: flex-start; }
.about__check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.about__pillars strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}
.about__pillars p { font-size: 0.88rem; font-weight: 300; color: var(--text-muted); }

/* ============ VALORES ============ */
.values {
  background: var(--ink);
  color: var(--ivory);
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.values__item {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 1.8rem;
  position: relative;
}
.values__item::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.7s var(--ease-out);
}
.values__item:hover::before { width: 100%; }
.values__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}
.values__item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.values__item p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-on-dark);
}

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  padding-block: clamp(6rem, 12vw, 10rem);
  color: var(--ivory);
  overflow: hidden;
  text-align: center;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.4) brightness(0.5);
}
.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(13, 18, 24, 0.82), rgba(13, 18, 24, 0.9));
}
.cta-band__inner { position: relative; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}
.cta-band em { color: var(--gold-light); }
.cta-band p {
  color: var(--text-on-dark);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 2.6rem;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
}

/* ============ CONTACTO ============ */
.contact { background: var(--ivory); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact__lead {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2.6rem;
  max-width: 460px;
}
.contact__list { display: flex; flex-direction: column; gap: 1.6rem; }
.contact__list li { display: flex; gap: 1.2rem; align-items: flex-start; }
.contact__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--gold);
  transition: all 0.4s;
}
.contact__list li:hover .contact__icon { background: var(--ink); border-color: var(--ink); }
.contact__label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact__list a, .contact__list li > div > span:not(.contact__label) {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.3s;
}
.contact__list a:hover { color: var(--gold); }

.contact__form {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: 0 40px 90px rgba(13, 18, 24, 0.22);
}
.contact__form h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  margin-bottom: 1.8rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__field { margin-bottom: 1.2rem; }
.form__field label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  background: rgba(244, 240, 232, 0.05);
  border: 1px solid var(--line-on-dark);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.9rem 1.1rem;
  transition: border-color 0.3s, background 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c8a45c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}
.form__field select option { background: var(--ink); }
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(244, 240, 232, 0.35); }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(244, 240, 232, 0.09);
}
textarea { resize: vertical; }
.form__note {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-on-dark);
  text-align: center;
}
.form__status {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}
.form__status--ok { color: #7ec98f; }
.form__status--error { color: #e08a8a; }
.btn:disabled { opacity: 0.65; cursor: default; transform: none; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-top: clamp(4rem, 7vw, 6rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer__monogram {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ivory);
  border: 1px solid var(--gold);
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.6rem;
}
.footer__tag { font-size: 0.85rem; font-weight: 300; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.footer__col a, .footer__col span {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-on-dark);
  transition: color 0.3s;
  width: fit-content;
}
.footer__col a:hover { color: var(--gold-light); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.6rem;
  font-size: 0.78rem;
  font-weight: 300;
}
.footer__up { color: var(--gold); letter-spacing: 0.1em; transition: color 0.3s; }
.footer__up:hover { color: var(--gold-light); }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.4);
  transition: transform 0.35s var(--ease-out);
}
.wa-float:hover { transform: scale(1.1) translateY(-3px); }

/* ============ REVEAL (JS hook, graceful fallback) ============ */
.reveal, .reveal-hero { will-change: transform, opacity; }
.no-js .reveal, .no-js .reveal-hero { opacity: 1 !important; transform: none !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(13, 18, 24, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-out);
  }
  .nav__links.open { opacity: 1; pointer-events: auto; }
  .nav__links .nav__link { font-size: 1.05rem; }
  .nav__burger { display: flex; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  /* Mobile: text first, photo as closing visual with caption-style badge */
  .about__body { order: 1; }
  .about__media { order: 2; max-width: 440px; margin-inline: auto; width: 100%; }
  .about__badge {
    position: static;
    width: 100%;
    justify-content: center;
    padding: 1.1rem 1.4rem;
    box-shadow: none;
  }
  .about__badge-serif { font-size: 2rem; }
  .hero__footer { flex-wrap: wrap; gap: 1.6rem 2.5rem; }
  .hero__scroll { display: none; }
  /* Mobile hero: keep the library image as visible as on desktop */
  .hero__bg img { object-position: 68% 30%; filter: saturate(0.6) brightness(0.95); }
  .hero__overlay {
    background:
      linear-gradient(115deg, rgba(13, 18, 24, 0.94) 0%, rgba(13, 18, 24, 0.62) 55%, rgba(13, 18, 24, 0.3) 100%),
      linear-gradient(to top, rgba(13, 18, 24, 0.95), transparent 45%);
  }
}

@media (max-width: 600px) {
  .areas__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .area-card { min-height: 0; }
  .footer__top { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn { width: 100%; }
  .nav__brand-text { display: none; }
}

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