/* ==========================================================================
   UM HOUSING GROUP — design system
   Brand palette extracted from the live site: #0A7C26 / #E5722C / #ABF7BE
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #0e2e1c;
  --forest-deep: #092015;
  --forest-soft: #123a24;
  --brand: #0a7c26;
  --brand-dark: #075f1e;
  --brand-bright: #3fa75c;
  --mint: #abf7be;
  --mint-soft: #eafdee;
  --sage: #ccd4c4;
  --sage-muted: #959e8c;
  --paper: #f7f8f3;
  --white: #ffffff;
  --ink: #111111;
  --text: #2f3a30;
  --muted: #5d6a5e;
  --orange: #e5722c;
  --orange-soft: #fff1e6;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.72, 0.16, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 70px -30px rgba(9, 32, 21, 0.35);
  --header-h: 82px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1.15em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--forest); margin: 0; line-height: 1.08; letter-spacing: -0.028em; }

::selection { background: var(--mint); color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--white);
  color: var(--forest);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section--tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--forest { background: var(--forest); color: var(--mint-soft); }
.section--forest h2, .section--forest h3 { color: var(--white); }
.section--mint { background: var(--mint-soft); }
.section--white { background: var(--white); }

/* ---------- Shared type ---------- */

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-dark);
}
.meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.section--forest .meta { color: var(--mint); }
.section--forest .text-link { color: var(--mint); background-image: linear-gradient(var(--mint), var(--mint)); }
.section--forest .text-link:hover { color: var(--white); background-image: linear-gradient(var(--white), var(--white)); }

.display {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 4.6rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--forest);
}
.display--sm { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.27rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 46ch;
}
.section--forest .lead { color: #c7d8cb; }

.rule { height: 1px; background: var(--sage); border: 0; margin-block: 0; opacity: 0.6; }

/* ---------- Buttons and links ---------- */

.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.98rem 1.55rem;
  min-height: 52px;
  border: 0;
  border-radius: 100px;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.005em;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.35s var(--ease-out), background-color 0.25s, box-shadow 0.35s;
  box-shadow: 0 12px 26px -16px rgba(10, 124, 38, 0.9);
  will-change: transform;
}
.btn:hover { background: var(--brand-dark); box-shadow: 0 18px 34px -16px rgba(10, 124, 38, 0.95); }
.btn:active { transform: translate3d(var(--mx), var(--my), 0) scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { background: var(--white); color: var(--forest); box-shadow: none; }
.btn--light:hover { background: var(--mint); }
.btn--outline { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--sage); }
.btn--outline:hover { background: var(--forest); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn--orange { background: var(--orange); color: var(--forest-deep); box-shadow: none; }
.btn--orange:hover { background: #d7631f; }
.btn--block { width: 100%; justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.35s var(--ease-out), color 0.2s;
}
.text-link:hover { background-size: 100% 2px; color: var(--forest); }
.text-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--brand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 46, 28, 0.09);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 34px -24px rgba(9, 32, 21, 0.6); background: rgba(247, 248, 243, 0.97); }
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 200px; height: auto; }
.brand--light img { filter: none; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav-list a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  padding-block: 0.5rem;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.1rem;
  height: 2px;
  background: var(--brand);
  transition: right 0.35s var(--ease-out);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.nav-list a[aria-current="page"] { color: var(--brand-dark); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 4px;
  border-radius: 100px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--sage);
}
.lang-switch a {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.7rem;
  border-radius: 100px;
  color: var(--muted);
  transition: background-color 0.25s, color 0.25s;
}
.lang-switch a[aria-current="true"] { background: var(--forest); color: var(--white); }
.lang-switch a:not([aria-current="true"]):hover { color: var(--forest); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--forest);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.site-header.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  background: var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(3rem, 4.8vw, 4.4rem);
  line-height: 0.99;
  margin-top: 1.6rem;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: block; }
.js .hero-title .line > span { transform: translateY(108%); transition: transform 1s var(--ease-out) var(--delay, 0s); }
.js .hero.is-ready .hero-title .line > span { transform: translateY(0); }
.hero-title .accent { color: var(--brand); }
.hero-lead { margin-top: 1.9rem; max-width: 43ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.hero-note { margin-top: 2.4rem; font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.hero-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--mint-soft); }

.hero-visual { position: relative; min-height: 520px; }
.hero-media {
  position: absolute;
  inset: 0 0 3.5rem 1.5rem;
  border-radius: 220px 18px 18px 18px;
  overflow: hidden;
  background: var(--sage);
  transform: translateY(var(--py, 0px));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.js .hero-media img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.25s var(--ease-out) 0.15s, transform 1.7s var(--ease-out) 0.15s; }
.js .hero.is-ready .hero-media img { clip-path: inset(0 0 0 0); transform: scale(1); }
.hero-sticker {
  position: absolute;
  left: -1.5rem;
  bottom: 0;
  z-index: 3;
  background: var(--orange);
  color: var(--forest-deep);
  border-radius: 0 12px 12px 0;
  border-left: 5px solid var(--forest-deep);
  padding: 1.25rem 1.5rem;
  max-width: 218px;
  box-shadow: none;
}
.js .hero-sticker { opacity: 0; transform: translateY(20px); transition: opacity 0.7s 0.9s, transform 0.7s var(--ease-out) 0.9s; }
.js .hero.is-ready .hero-sticker { opacity: 1; transform: translateY(0); }
.hero-sticker strong { display: block; font-family: var(--font-display); font-size: 2.15rem; line-height: 1; font-weight: 600; }
.hero-sticker span { display: block; font-size: 0.78rem; font-weight: 700; line-height: 1.35; margin-top: 0.45rem; }
.hero-frame {
  position: absolute;
  right: -0.5rem;
  top: -1.5rem;
  width: 118px;
  height: 150px;
  border: 1.5px solid var(--brand);
  border-radius: 90px 90px 8px 8px;
  z-index: -1;
}

/* ---------- Proof strip ---------- */

.proof-strip { background: var(--forest); color: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item {
  padding: clamp(2rem, 4vw, 3.1rem) clamp(1.2rem, 3vw, 2.6rem);
  border-right: 1px solid rgba(171, 247, 190, 0.18);
}
.proof-item:last-child { border-right: 0; }
.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.3vw, 3.7rem);
  line-height: 1;
  color: var(--mint);
  font-weight: 500;
}
.proof-item span { display: block; margin-top: 0.75rem; font-size: 0.86rem; color: #c4d5c8; max-width: 24ch; }

/* ---------- Split editorial section ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.split-media::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 42%;
  height: 62%;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  z-index: -1;
}
.split-copy .display { margin-top: 1.1rem; }
.split-copy .lead { margin-top: 1.4rem; }
.split-copy .text-link { margin-top: 0.5rem; }

.detail-list { margin-top: 2rem; display: grid; gap: 0; }
.detail-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.92rem 0;
  border-top: 1px solid var(--sage);
  font-size: 0.96rem;
}
.detail-list li:last-child { border-bottom: 1px solid var(--sage); }
.detail-list b { color: var(--brand-dark); font-weight: 700; min-width: 1.6rem; font-size: 0.78rem; }

/* ---------- Utilities band ---------- */

.utils-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.utils-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.util-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(14, 46, 28, 0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.util-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -32px rgba(9, 32, 21, 0.5); }
.util-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  color: var(--brand-dark);
  margin-bottom: 1.4rem;
}
.util-icon svg { width: 25px; height: 25px; }
.util-card h3 { font-size: 1.22rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.02em; }
.util-card p { font-size: 0.88rem; color: var(--muted); margin: 0.45rem 0 0; }
.util-note {
  margin-top: 2rem;
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--forest);
}

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; background: var(--brand); color: var(--white); padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  padding-inline: 1.6rem;
  white-space: nowrap;
}
.marquee-track i { color: var(--mint); font-style: normal; padding-inline: 1.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Property cards ---------- */

.props-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-block: 2.5rem;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1.2rem;
}
.filters { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.filter-btn {
  border: 0;
  border-radius: 100px;
  padding: 0.7rem 1.15rem;
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: inset 0 0 0 1.5px var(--sage);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.filter-btn:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.filter-btn[aria-pressed="true"] { background: var(--forest); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--forest); }
.props-count { font-size: 0.84rem; color: var(--muted); }

.locator {
  margin-top: 2.5rem;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  overflow-x: auto;
}
.locator-campus {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--forest);
  color: var(--mint);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.locator-campus::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.locator-line {
  position: relative;
  height: 2px;
  margin: 2.4rem 0 0;
  background: linear-gradient(90deg, var(--forest), var(--brand) 60%, var(--sage));
}
.locator-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--forest);
}
.locator-stops { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: -9px; }
.locator-stop {
  position: relative;
  min-height: 58px;
  min-width: 92px;
  border: 0;
  background: none;
  padding: 1.4rem 0.3rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}
.locator-stop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.3rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brand);
  transition: background-color 0.25s, transform 0.25s;
}
.locator-stop:hover::before, .locator-stop[aria-pressed="true"]::before { background: var(--orange); border-color: var(--orange); transform: scale(1.3); }
.locator-stop[aria-pressed="true"] { color: var(--forest); }
.locator-hint { font-size: 0.76rem; color: var(--muted); margin-top: 1rem; }

.prop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.4rem); }
.prop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(14, 46, 28, 0.08);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, opacity 0.3s;
}
.prop-card:hover { transform: translateY(-7px); box-shadow: 0 36px 60px -38px rgba(9, 32, 21, 0.55); }
.prop-card[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prop-card:target { outline: 4px solid var(--orange); outline-offset: 4px; }
.prop-card[hidden] { display: none; }
.prop-card.is-filtering { opacity: 0; transform: scale(0.97); }
.prop-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.prop-card:hover .prop-media img { transform: scale(1.055); }
.prop-type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--paper);
  color: var(--forest);
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.prop-body { padding: 1.6rem 1.7rem 1.75rem; }
.prop-address { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; color: var(--forest); }
.prop-specs { display: flex; gap: 1.25rem; margin-top: 0.85rem; color: var(--muted); font-size: 0.87rem; }
.prop-specs span { display: inline-flex; align-items: center; gap: 0.4rem; }
.prop-specs svg { width: 15px; height: 15px; color: var(--brand); }
.prop-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--sage); }
.gallery-open {
  border: 0;
  background: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.87rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0;
}
.gallery-open svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.gallery-open:hover svg { transform: translateX(4px); }
.prop-photos { font-size: 0.78rem; color: var(--muted); }

/* ---------- Gallery ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.gallery-grid--teaser { grid-template-columns: repeat(3, 1fr); }
.gallery-grid--teaser .gallery-item:nth-child(7n + 1) { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; }
.gallery-grid--teaser .gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--sage);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
}
.gallery-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out), filter 0.4s; }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(0.82); }
.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.9rem 0.7rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  background: linear-gradient(transparent, rgba(9, 32, 21, 0.75));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.cursor-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 105;
  width: 210px;
  height: 158px;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.8);
  transition: opacity 0.25s, transform 0.4s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(9, 32, 21, 0.6);
}
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }
.cursor-preview.is-active { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }

/* ---------- Accordion ---------- */

.accordion { border-top: 1px solid var(--sage); }
.acc-item { border-bottom: 1px solid var(--sage); }
.acc-trigger {
  width: 100%;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  text-align: left;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
}
.acc-trigger .acc-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint-soft);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.acc-trigger .acc-icon::before, .acc-trigger .acc-icon::after { content: ""; position: absolute; background: var(--brand-dark); border-radius: 2px; }
.acc-trigger .acc-icon::before { width: 14px; height: 2px; }
.acc-trigger .acc-icon::after { width: 2px; height: 14px; transition: transform 0.4s var(--ease-out); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--mint); transform: rotate(180deg); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(90deg); }
.acc-panel { overflow: hidden; height: 0; transition: height 0.45s var(--ease-out); }
.acc-panel > div { padding-bottom: 1.8rem; max-width: 72ch; color: var(--muted); font-size: 0.95rem; }
.acc-panel p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.team-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: inset 0 0 0 1px rgba(14, 46, 28, 0.08); }
.team-card h3 { font-size: 1.7rem; margin-block: 0.5rem 1rem; }
.team-card p { color: var(--muted); font-size: 0.95rem; }
.team-initial {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--mint);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact-detail { padding-block: 1.4rem; border-top: 1px solid var(--sage); }
.contact-detail:last-of-type { border-bottom: 1px solid var(--sage); }
.contact-detail span { display: block; font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-dark); }
.contact-detail a, .contact-detail strong { display: inline-block; margin-top: 0.5rem; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--forest); font-weight: 500; }
.contact-detail a:hover { color: var(--brand); }
.copy-btn {
  border: 0;
  background: var(--mint-soft);
  color: var(--brand-dark);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.7rem;
  margin-left: 0.6rem;
  vertical-align: middle;
}
.copy-btn:hover { background: var(--mint); }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--forest); margin-bottom: 0.45rem; }
.field input, .field textarea {
  width: 100%;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 0.85rem 1rem;
  color: var(--forest);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 4px var(--mint-soft); }
.field textarea { min-height: 135px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: var(--orange); background: var(--orange-soft); }
.field .error { display: block; min-height: 1.1rem; margin-top: 0.3rem; font-size: 0.75rem; color: #a3450d; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; }
.form-success { display: none; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--mint-soft); color: var(--brand-dark); font-size: 0.9rem; }
.form-success.is-visible { display: block; }

/* ---------- CTA band ---------- */

.cta-band { position: relative; overflow: hidden; background: var(--brand); color: var(--white); }
.cta-band::after {
  content: "";
  position: absolute;
  right: -9%;
  top: -90%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 70px solid rgba(171, 247, 190, 0.15);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-inner h2 { color: var(--white); max-width: 16ch; }
.cta-inner p { color: var(--mint-soft); max-width: 40ch; margin-block: 1rem 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--forest-deep); color: #a9bbad; padding-block: clamp(3.5rem, 6vw, 5rem) 1.8rem; text-align: center; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; justify-items: center; }
.site-footer .brand { justify-content: center; }
.site-footer .brand img { width: 220px; }
.footer-about { max-width: 34ch; font-size: 0.88rem; margin-top: 1.3rem; margin-inline: auto; }
.footer-col h3 { text-align: center; }
.footer-col h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1rem; }
.footer-col li + li { margin-top: 0.65rem; }
.footer-col a { font-size: 0.87rem; }
.footer-col a:hover { color: var(--mint); }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(171, 247, 190, 0.14);
}
.footer-legal-links a { font-size: 0.78rem; color: var(--mint); }
.footer-legal-links a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); margin-block: 2.4rem 0.9rem; }
.prose h3 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; letter-spacing: 0; color: var(--forest); margin-block: 1.8rem 0.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; list-style: disc; margin-block: 0.8rem 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose .lead { color: var(--muted); }
.legal-date { display: inline-block; margin-top: 1rem; font-size: 0.78rem; color: var(--muted); }
.notice-box { border-left: 4px solid var(--brand); background: var(--mint-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.2rem 1.4rem; margin-block: 1.5rem; }
.notice-box p:last-child { margin-bottom: 0; }
.statutory { background: var(--white); border: 1px solid var(--sage); border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin-block: 1.2rem; font-size: 0.86rem; line-height: 1.7; }
.statutory h3 { margin-top: 0; }
.page-head { padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.page-head h1 { font-size: clamp(2.7rem, 5.5vw, 4.6rem); margin-top: 1rem; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(171, 247, 190, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.76rem;
  text-align: center;
}
.footer-legal { max-width: 92ch; margin-inline: auto; line-height: 1.9; }
.footer-legal a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a { color: var(--mint); }
.back-top { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }
.back-top svg { width: 14px; height: 14px; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: rgba(5, 20, 12, 0.94);
  padding: clamp(1rem, 4vw, 3rem);
  flex-direction: column;
}
.lightbox.is-open { display: flex; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--white); }
.lb-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.lb-close, .lb-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--brand); }
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; }
.lb-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 1rem; }
.lb-stage img { width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-counter { text-align: center; color: var(--mint); font-size: 0.82rem; margin-top: 0.8rem; }
body.lb-open { overflow: hidden; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px);
  background: var(--forest);
  color: var(--white);
  padding: 0.85rem 1.3rem;
  border-radius: 100px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s linear 0.3s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0s; }

/* ---------- Motion / reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out) var(--delay, 0s), transform 0.8s var(--ease-out) var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-left { opacity: 0; transform: translateX(-34px); transition: opacity 0.85s var(--ease-out) var(--delay, 0s), transform 0.85s var(--ease-out) var(--delay, 0s); }
.js .reveal-left.is-visible { opacity: 1; transform: none; }

/* ---------- Language gateway ---------- */

.gateway { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--forest-deep); }
.gateway-copy { padding: clamp(2rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: space-between; color: var(--white); }
.gateway-copy h1 { color: var(--white); font-size: clamp(2.6rem, 4.4vw, 4.2rem); line-height: 1.02; margin-top: 2rem; }
.gateway-copy p { color: #b8cbbc; max-width: 40ch; margin-top: 1.5rem; }
.gateway-media { position: relative; overflow: hidden; }
.gateway-media img { width: 100%; height: 100%; object-fit: cover; }
.gateway-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 32, 21, 0.45), transparent 45%); }
.gateway-choices { position: absolute; inset: auto 0 0 0; z-index: 2; padding: clamp(1.5rem, 4vw, 3rem); display: flex; gap: 1rem; flex-wrap: wrap; }
.gateway-choices a {
  min-width: 200px;
  background: var(--white);
  color: var(--forest);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.45rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), background-color 0.25s;
}
.gateway-choices a:hover { transform: translateY(-6px); background: var(--mint); }
.gateway-choices a[data-suggested] { box-shadow: 0 0 0 3px var(--mint), var(--shadow); }
.gateway-choices a[data-suggested]::after { content: "Suggested / Sugerido"; position: absolute; bottom: -1.6rem; left: 1rem; color: var(--mint); font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; }
.gateway-choices a { position: relative; }
.gateway-choices a span { font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-dark); }
.gateway-small { font-size: 0.8rem; color: #91a894; margin-top: 3rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-visual { min-height: 450px; }
  .utils-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--sage);
    padding: 1.2rem var(--gutter) 1.8rem;
    transform: translateY(-120%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
    box-shadow: 0 30px 40px -30px rgba(9, 32, 21, 0.5);
  }
  .site-header.nav-open .main-nav { transform: translateY(0); visibility: visible; pointer-events: auto; transition: transform 0.45s var(--ease-out), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding-block: 0.85rem; font-size: 1.05rem; border-bottom: 1px solid var(--sage); }
  .nav-list a::after { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .lang-switch { margin-left: 0; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse > .split-media { order: 0; }
  .hero-visual { min-height: 400px; order: -1; }
  .hero-media { inset: 0 0 3rem 0; border-radius: 140px 18px 18px 18px; }
  .hero-title { font-size: clamp(2.25rem, 8vw, 3rem); }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid rgba(171, 247, 190, 0.18); }
  .gateway { grid-template-columns: 1fr; }
  .gateway-copy { min-height: 60vh; }
  .gateway-media { min-height: 70vh; }
}

@media (max-width: 620px) {
  .header-inner { gap: 0.5rem; }
  .brand img { width: 132px; }
  .lang-switch a { padding: 0.35rem 0.5rem; }
  .nav-toggle { width: 42px; height: 42px; flex: 0 0 42px; }
  .hero-visual { min-height: 250px; }
  .hero-media { border-radius: 110px 14px 14px 14px; }
  .hero-sticker { left: 0.5rem; padding: 1rem 1.2rem; max-width: 175px; }
  .hero-sticker strong { font-size: 1.7rem; }
  .prop-grid, .team-grid, .form-row { grid-template-columns: 1fr; }
  .utils-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
  .gallery-grid--teaser { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--teaser .gallery-item:nth-child(7n + 1) { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; }
  .gallery-grid--teaser .gallery-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .lb-stage { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 0.4rem; }
  .lb-nav, .lb-close { width: 40px; height: 40px; }
  .gateway-choices { flex-direction: column; }
  .gateway-choices a { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal, .js .reveal-left, .js .hero-title .line > span, .js .hero-media img, .js .hero-sticker { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee-track { animation: none; }
}

/* ---------- Impresión ---------- */

@media print {
  :root { --paper: #ffffff; }
  body { background: #ffffff; color: #000000; }
  .js .reveal, .js .reveal-left, .js .hero-title .line > span, .js .hero-media img, .js .hero-sticker { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .site-header, .scroll-progress, .marquee, .lightbox, .toast, .cursor-preview, .back-top, .hero-actions, .filter-btn, .gallery-open, .copy-btn { display: none !important; }
  .section, .hero, .cta-band, .proof-strip { padding-block: 1.5rem !important; break-inside: avoid; }
  .prop-card, .util-card, .team-card { box-shadow: none !important; border: 1px solid #cccccc; }
  .prop-media img, .split-media img { max-height: 180px; object-fit: cover; }
  a[href^="http"]::after { content: ""; }
}
