:root {
  --ink: #2f2e2b;
  --ink-soft: #3d3b36;
  --ivory: #f1eee6;
  --paper: #faf9f5;
  --stone: #e6e3db;
  --stone-deep: #b8b4aa;
  --muted: #5e5c55;
  --line: rgba(47,46,43,.14);
  --line-light: rgba(233,229,219,.18);
  --dark: #2b2926;
  --on-dark: #e9e5db;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-gutter: clamp(20px, 4.6vw, 88px);
  --content-max: 1320px;
  --media-max: 1320px;
  --text-max: 760px;
  --reading-max: 46ch;
  --section-space: clamp(96px, 12vw, 180px);
  --grid-gap: clamp(24px, 3vw, 52px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open, body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--ivory); }

.skip-link { position: fixed; left: 16px; top: 16px; z-index: 1000; padding: 10px 14px; background: var(--ivory); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.container-wide,
.container-narrow {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  margin-inline: auto;
}
.container-narrow { max-width: 1120px; }
.section { padding-block: var(--section-space); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--stone { background: var(--stone); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding-inline: max(var(--page-gutter), calc((100vw - var(--content-max))/2 + 24px));
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s;
}
.site-header--scrolled { background: rgba(241,238,230,.95); color: var(--ink); border-color: var(--line); backdrop-filter: blur(10px); }
.site-header--hidden { transform: translateY(-100%); }
.brand {
  justify-self: start;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .35em;
  text-transform: uppercase;
}
.desktop-nav {
  display: flex;
  gap: clamp(18px, 2vw, 34px);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
}
.desktop-nav a { opacity: 1; }
.site-header--scrolled .desktop-nav a { opacity: .86; }
.site-header--scrolled .desktop-nav a:hover { opacity: 1; }
.header-cta {
  justify-self: end;
  border: 1px solid var(--on-dark);
  border-radius: 0;
  background: transparent;
  color: var(--on-dark);
  padding: 12px 22px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  transition: background .3s, color .3s, border-color .3s;
}
.header-cta:hover {
  background: var(--on-dark);
  color: var(--dark);
}
.site-header--scrolled .header-cta {
  background: var(--dark);
  color: var(--on-dark);
  border-color: var(--dark);
}
.site-header--scrolled .header-cta:hover {
  background: #3a3733;
  border-color: #3a3733;
  color: var(--on-dark);
}
.menu-toggle, .mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
  background: var(--dark);
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-picture, .hero-picture img { width: 100%; height: 100%; }
.hero-picture img { object-fit: cover; object-position: center 49%; }
.hero-overlay {
  background:
    linear-gradient(to bottom, rgba(20,18,16,.38) 0, rgba(20,18,16,0) 160px),
    linear-gradient(to top, rgba(20,18,16,.60) 0%, rgba(20,18,16,.28) 50%, rgba(20,18,16,.08) 100%),
    linear-gradient(90deg, rgba(20,18,16,.28) 0%, rgba(20,18,16,.10) 38%, rgba(20,18,16,0) 68%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  margin-inline: auto;
  padding: 126px 0 clamp(58px, 7vh, 92px);
}
.display { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.hero-title { max-width: 22ch; font-size: clamp(36px, 5vw, 64px); line-height: 1.2; text-wrap: balance; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 620px) auto; gap: var(--grid-gap); align-items: end; margin-top: clamp(30px, 4vh, 52px); max-width: 980px; }
.hero-bottom p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.7; color: rgba(242,240,234,.88); }
.line-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 10px 0 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 34px; font-size: 13px; white-space: nowrap; }
.line-button span { transition: transform .3s var(--ease); }
.line-button:hover span { transform: translate(3px,-3px); }
.line-button--light { color: var(--ivory); }
.line-button--dark { color: var(--ink); }

.section-kicker { margin: 0; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.section-head { margin-bottom: clamp(44px, 6vw, 82px); }
.section-head--split { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(0, 3fr); gap: var(--grid-gap); }
.display--medium { max-width: 22ch; font-size: clamp(28px, 3.2vw, 44px); }
.display--large { max-width: 22ch; font-size: clamp(28px, 3.2vw, 44px); }
.lede { max-width: 46ch; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.light { color: var(--ivory); }
.light-muted { color: rgba(242,240,234,.68); }

/* Authority */
.authority.section { padding-block: clamp(54px, 6vw, 82px); }
.authority-intro { display: block; margin-bottom: 30px; }
.authority-intro h2 { margin: 0; max-width: 520px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; }
.client-line { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px, 2vw, 36px); padding-block: 22px; border-top: 1px solid var(--line); }
.client-mark { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.client-logo-shell { width: min(100%, 240px); height: clamp(148px, 10.5vw, 178px); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-inline: auto; }
.client-logo { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center center; }
.client-mark strong { max-width: 260px; font-size: 14px; line-height: 1.35; font-weight: 500; }

/* VSL */
.vsl.section { padding-block: clamp(82px, 8vw, 120px); }
.vsl .section-head { width: min(100%, var(--media-max)); margin-inline: auto; }
.vsl .section-head--split { grid-template-columns: 1fr; }
.vsl-media { width: min(100%, var(--media-max)); margin-inline: auto; }
.video-frame { position: relative; overflow: hidden; background: #24231f; }
.vsl-media .video-frame { aspect-ratio: 16 / 9 !important; }
.video-poster { position: absolute; inset: 0; overflow: hidden; background: #282722; }
.video-poster__image { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.video-poster--image::after { content: ""; position: absolute; inset: auto 0 0; height: 25%; background: linear-gradient(180deg, transparent, rgba(17,17,15,.52)); }
.media-placeholder { position: relative; overflow: hidden; background: #c8c5bd; color: rgba(17,17,15,.55); }
.media-placeholder > span, .video-label { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.video-label { color: rgba(242,240,234,.82); }
.architectural-lines { position: absolute; inset: 0; opacity: .35; background: linear-gradient(135deg,rgba(242,240,234,.05),transparent 60%), linear-gradient(90deg,transparent 49.8%,rgba(242,240,234,.08) 50%,transparent 50.2%); }
.play-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border: 1px solid rgba(242,240,234,.58); border-radius: 50%; background: rgba(17,17,15,.14); color: var(--ivory); display: grid; place-items: center; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.play-button:disabled { cursor: default; opacity: .82; }

/* Results */
.results-intro { margin-bottom: clamp(64px, 7vw, 100px); }
#case-prestige .video-poster__image { object-position: center 18%; }
#case-cerdanya .video-poster__image { object-position: center 20%; }
#case-unique .video-poster__image { object-position: center 17%; }

/* System */
.system-opening { display: block; margin-bottom: clamp(58px,7vw,92px); }
.system-opening .display { grid-column: auto; }
.system-layers { border-top: 1px solid var(--line); }
.system-layer { display: grid; grid-template-columns: 54px minmax(0, .95fr) minmax(340px,1.15fr); gap: var(--grid-gap); align-items: start; padding-block: clamp(52px,6vw,84px); border-bottom: 1px solid var(--line); }
.system-index { font-family: var(--serif); font-size: 28px; }
.system-content h3 { margin: 0 0 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px,3.4vw,52px); line-height: 1.02; }
.system-content > p { max-width: 46ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.system-visual { min-height: 320px; max-height: 430px; overflow: hidden; background: #c5c1b7; position: relative; }
.system-visual span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.system-visual--community { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 1fr auto; gap: 1px; background: var(--ivory); }
.community-primary, .community-secondary { position: relative; display: flex; align-items: flex-end; padding: 18px; background: #bdb9af; }
.community-secondary { background: #d1cec6; }
.system-visual--flow { background: var(--paper); border: 1px solid var(--line); padding: 24px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; }
.flow-stage span { display: block; color: var(--muted); margin-bottom: 8px; }
.flow-stage strong { font-family: var(--serif); font-size: clamp(22px,2vw,30px); font-weight: 400; }
.flow-rule { width: 42px; height: 1px; background: var(--line); }
.system-visual--flow > p { position: absolute; left: 24px; bottom: 18px; margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.system-visual--intelligence { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--paper); border: 1px solid var(--line); }
.intelligence-creative { display: flex; align-items: flex-end; padding: 18px; background: #bbb7ad; }
.intelligence-signals { display: flex; flex-direction: column; }
.intelligence-signals div { flex: 1; display: grid; grid-template-columns: 40px 1fr; align-items: center; border-bottom: 1px solid var(--line); padding: 0 18px; }
.intelligence-signals div:last-child { border-bottom: 0; }
.intelligence-signals span { color: var(--muted); }
.intelligence-signals strong { font-size: 13px; font-weight: 500; }
.system-close { margin-top: clamp(58px,7vw,92px); }
.system-close > p { max-width: 860px; margin: 0; font-family: var(--serif); font-size: clamp(28px,3.1vw,44px); line-height: 1.08; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: clamp(54px,7vw,90px) var(--grid-gap); }
.team-member { grid-column: span 2; }
.team-member:nth-child(1), .team-member:nth-child(2) { grid-column: span 3; }
.team-media { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 20px; background: #bcb8ae; overflow: hidden; }
.team-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.team-member:nth-child(1) .team-media img { object-position: center 24%; }
.team-number { display: none; }
.team-member h3 { margin: 0; font-family: var(--serif); font-size: clamp(30px,2.6vw,42px); font-weight: 400; }
.team-role { margin: 5px 0 18px; font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.team-body { max-width: 46ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Territory */
.territory-map { width: min(100%, 1260px); margin-inline: auto; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: var(--grid-gap); align-items: stretch; }
.map-surface { position: relative; min-height: 470px; height: min(52vh, 560px); overflow: hidden; border: 1px solid var(--line-light); background: var(--dark); }
.spain-silhouette { position: absolute; width: 82%; height: 82%; left: 7%; top: 8%; fill: none; stroke: rgba(242,240,234,.18); stroke-width: .45; }
.map-contour { opacity: .45; }
.map-point { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); width: 16px; height: 16px; border: 0; background: transparent; padding: 0; }
.map-pulse { position: absolute; inset: 5px; border-radius: 50%; background: rgba(242,240,234,.9); }
.map-point--neutral .map-pulse { background: rgba(242,240,234,.4); }
.map-point::before { content: ""; position: absolute; inset: 1px; border: 1px solid rgba(242,240,234,.26); border-radius: 50%; }
.map-label { position: absolute; left: 20px; top: -6px; width: max-content; max-width: 190px; text-align: left; color: var(--ivory); }
.map-label strong { display: block; font-size: 11px; font-weight: 500; }
.map-label small { display: block; margin-top: 2px; color: rgba(242,240,234,.48); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.territory-list { border-top: 1px solid var(--line-light); }
.territory-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.state-dot { width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: rgba(242,240,234,.88); }
.state-dot--neutral { background: rgba(242,240,234,.4); }
.territory-row strong { display: block; font-size: 12px; font-weight: 500; }
.territory-row p { margin: 4px 0 0; color: rgba(242,240,234,.55); font-size: 11px; }
.state-label { color: rgba(242,240,234,.42); font-size: 9px; letter-spacing: .09em; }
.territory-cta { width: min(100%,1260px); margin: 44px auto 0; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.territory-cta p { max-width: 480px; margin: 0; color: rgba(242,240,234,.6); font-size: 13px; }

/* Offices */
.offices-heading { margin-bottom: clamp(46px,6vw,78px); }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
.office-card { min-width: 0; }
.office-media { position: relative; aspect-ratio: 4 / 3; background: #c2bfb7; overflow: hidden; }
.office-media--image { background: #cfcac1; }
.office-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.office-gallery { background: #cfcac1; }
.office-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.office-track::-webkit-scrollbar { display: none; }
.office-slide { flex: 0 0 100%; width: 100%; height: 100%; margin: 0; scroll-snap-align: start; }
.office-gallery__controls { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; pointer-events: none; }
.office-gallery__arrow, .office-gallery__dots { pointer-events: auto; }
.office-gallery__arrow { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(30,25,18,.34); color: #fff; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.office-gallery__arrow span { font-size: 26px; line-height: 1; transform: translateY(-1px); }
.office-gallery__dots { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: rgba(30,25,18,.34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.office-gallery__dot { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.4); }
.office-gallery__dot.is-active { background: rgba(255,255,255,.95); }
.office-copy { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-top: 14px; }
.office-copy h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.office-copy p { margin: 0; color: var(--muted); font-size: 11px; text-align: right; }

/* CTA + Footer */
.final-cta { padding-block: clamp(120px,14vw,210px); }
.final-cta .lede { margin-top: 34px; }
.final-cta .line-button { margin-top: 54px; }
.footer { padding-block: 46px; background: var(--dark); color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--grid-gap); align-items: start; }
.footer p { margin: 0; color: rgba(242,240,234,.62); font-size: 11px; }
.footer-links, .footer-legal { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.footer a { opacity: .72; }
.footer a:hover { opacity: 1; }

/* Modal */
.analysis-modal { width: min(1040px, calc(100vw - 32px)); max-height: calc(100svh - 32px); border: 0; padding: 0; background: var(--ivory); color: var(--ink); }
.analysis-modal::backdrop { background: rgba(10,10,9,.72); backdrop-filter: blur(4px); }
.modal-shell { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px,6vw,82px); padding: clamp(28px,5vw,68px); }
.modal-close { position: absolute; right: 20px; top: 16px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.modal-intro h2 { margin-top: 34px; }
.modal-intro > p:last-child { max-width: 380px; color: var(--muted); }
.analysis-form { display: flex; flex-direction: column; }
.analysis-form label { display: grid; gap: 6px; padding: 16px 0 11px; border-bottom: 1px solid var(--line); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.analysis-form input, .analysis-form textarea { border: 0; outline: 0; background: transparent; padding: 4px 0; color: var(--ink); font-size: 17px; text-transform: none; letter-spacing: 0; resize: vertical; }
.progressive-field { padding: 15px 0; border-bottom: 1px solid var(--line); }
.progressive-field summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-size: 11px; }
.progressive-field summary::-webkit-details-marker { display: none; }
.progressive-field summary span { color: var(--muted); }
.progressive-field label { margin-top: 12px; border: 0; }
.form-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: 28px; }
.form-footer p { margin: 0; max-width: 420px; color: var(--muted); font-size: 9px; }
.submit-button { border: 0; background: var(--ink); color: var(--ivory); padding: 14px 16px; cursor: pointer; display: flex; gap: 28px; }
.form-status { margin-top: 14px; color: var(--muted); font-size: 11px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  :root { --page-gutter: clamp(32px, 5vw, 54px); }
  .site-header { height: 72px; padding-inline: var(--page-gutter); grid-template-columns: 1fr auto; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; justify-self: end; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
  .menu-toggle span { width: 22px; height: 1px; background: currentColor; }
  .menu-toggle span:last-child { width: 15px; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { width: 22px; transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu { display: flex; position: fixed; inset: 0; z-index: -1; background: var(--dark); color: var(--on-dark); padding: 110px var(--page-gutter) 42px; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .mobile-menu[aria-hidden="false"] { opacity: 1; visibility: visible; }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu nav a { font-family: var(--serif); font-size: clamp(42px,8vw,66px); line-height: 1.08; }
  .text-link { width: fit-content; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; padding: 10px 0; }
  body.menu-open .site-header { color: var(--ivory); background: transparent; border-color: transparent; }

  .hero-title { max-width: 22ch; }
  .hero-bottom { max-width: 850px; }
  .system-layer { grid-template-columns: 46px 1fr; }
  .system-visual { grid-column: 2; min-height: 300px; margin-top: 10px; }
  .territory-map { grid-template-columns: 1fr; }
  .map-surface { min-height: 420px; height: 48vh; }
}

@media (max-width: 768px) {
  :root { --page-gutter: clamp(20px,5.4vw,24px); --grid-gap: 24px; }
  body { font-size: 16px; }
  .site-header { height: 66px; }
  .hero { min-height: 100svh; }
  .hero-picture img { object-position: 50% center; }
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(20,18,16,.38) 0, rgba(20,18,16,0) 140px),
      linear-gradient(to top, rgba(20,18,16,.72) 0%, rgba(20,18,16,.40) 45%, rgba(20,18,16,.10) 100%),
      linear-gradient(90deg, rgba(20,18,16,.22) 0%, rgba(20,18,16,.08) 40%, transparent 70%);
  }
  .hero-content { padding-top: 104px; padding-bottom: 48px; }
  .hero-title {
    max-width: 92%;
    line-height: 1.2;
    text-shadow: 0 1px 24px rgba(20,18,16,.35);
  }
  .hero-bottom { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
  .hero-bottom p {
    max-width: 46ch;
    font-size: 16px;
    line-height: 1.7;
    text-shadow: 0 1px 24px rgba(20,18,16,.35);
  }
  .hero-bottom .line-button { justify-self: start; }

  .section-head--split { grid-template-columns: 1fr; }
  .display--medium, .display--large { max-width: 22ch; font-size: clamp(28px, 3.2vw, 44px); }
  .lede { font-size: 16px; line-height: 1.7; }

  .authority.section { padding-block: 36px; }
  .authority-intro { margin-bottom: 14px; }
  .client-line { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; }
  .client-mark { padding: 0; border-bottom: 0; }

  .vsl-media .video-frame { aspect-ratio: 16 / 9 !important; }
  .play-button { width: 54px; height: 54px; }

  .system-layer { grid-template-columns: 38px 1fr; gap: 16px; padding-block: 54px; }
  .system-content h3 { font-size: 36px; }
  .system-content > p { font-size: 16px; }
  .system-visual { grid-column: 1 / -1; min-height: 240px; max-height: 320px; margin-top: 18px; }
  .system-visual--flow { grid-template-columns: 1fr; gap: 18px; align-content: center; }
  .flow-rule { width: 1px; height: 24px; margin-left: 8px; }

  .team-grid { grid-template-columns: 1fr; gap: 60px; }
  .team-member, .team-member:nth-child(1), .team-member:nth-child(2) { grid-column: 1; }
  .team-media { width: min(100%, 430px); aspect-ratio: 4 / 5; }

  .map-surface { min-height: 360px; height: 46vh; }
  .map-label { display: none; }
  .territory-row { grid-template-columns: 10px 1fr; }
  .state-label { grid-column: 2; }
  .territory-cta { flex-direction: column; align-items: flex-start; }

  .office-grid { grid-template-columns: 1fr; gap: 58px; }
  .office-media { aspect-ratio: 4 / 5; }
  .office-gallery__controls { left: 14px; right: 14px; bottom: 14px; }
  .office-gallery__arrow { width: 34px; height: 34px; }
  .office-copy { flex-direction: column; align-items: flex-start; gap: 3px; }
  .office-copy p { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 34px; }

  .modal-shell { grid-template-columns: 1fr; gap: 30px; padding-top: 56px; }
  .analysis-modal { width: calc(100vw - 12px); max-height: calc(100svh - 12px); }
  .form-footer { grid-template-columns: 1fr; }
  .submit-button { width: 100%; justify-content: space-between; }
}

@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr; }
  .analysis-form input, .analysis-form textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Results / testimonials — editorial composition */
.results .results-intro { margin-bottom: clamp(54px, 5.5vw, 86px); }
.results .testimonial-case { padding-block: clamp(82px, 8vw, 116px); }
.results .testimonial-case + .testimonial-case { border-top: 1px solid var(--line); }
.results .testimonial-case__meta {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px;
  align-items: start; margin-bottom: clamp(36px, 4.2vw, 58px);
}
.results .testimonial-case__index {
  padding-top: 4px; font-size: 11px; font-weight: 400; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.results .testimonial-case__identity h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.01em;
}
.results .testimonial-case__identity p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.35;
}
.results .testimonial-case__layout {
  display: grid; grid-template-columns: minmax(300px, 430px) minmax(0, 700px);
  gap: clamp(54px, 7vw, 112px); align-items: start; justify-content: space-between;
}
.results .testimonial-case--reverse .testimonial-case__layout { grid-template-columns: minmax(0, 700px) minmax(300px, 430px); }
.results .testimonial-case--reverse .testimonial-case__portrait { grid-column: 2; grid-row: 1; justify-self: end; }
.results .testimonial-case--reverse .testimonial-case__content { grid-column: 1; grid-row: 1; }
.results .testimonial-case__portrait {
  width: 100%; max-width: 440px; margin: 0; aspect-ratio: 4 / 5;
  overflow: hidden; background: #d7d3ca;
}
.results .testimonial-case__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.results .testimonial-case__content { width: 100%; max-width: 700px; }
.results .testimonial-case__quote {
  font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.5; font-weight: 400; letter-spacing: -.012em;
}
.results .testimonial-case__quote p { margin: 0; }
.results .testimonial-case__quote p + p { margin-top: clamp(18px, 1.8vw, 25px); }
.results .testimonial-case__attribution { margin-top: clamp(30px, 3.2vw, 44px); }
.results .testimonial-case__name { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; }
.results .testimonial-case__role { margin: 5px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }

@media (max-width: 1100px) {
  .results .testimonial-case { padding-block: clamp(76px, 9vw, 96px); }
  .results .testimonial-case__layout,
  .results .testimonial-case--reverse .testimonial-case__layout { grid-template-columns: 1fr; gap: 42px; }
  .results .testimonial-case--reverse .testimonial-case__portrait,
  .results .testimonial-case--reverse .testimonial-case__content { grid-column: auto; grid-row: auto; }
  .results .testimonial-case__portrait,
  .results .testimonial-case--reverse .testimonial-case__portrait {
    width: min(100%, 430px); max-width: 430px; justify-self: start;
  }
  .results .testimonial-case__content { max-width: 720px; }
}
@media (max-width: 600px) {
  .results .results-intro { margin-bottom: 36px; }
  .results .testimonial-case { padding-block: clamp(70px, 19vw, 88px); }
  .results .testimonial-case__meta { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; margin-bottom: 28px; }
  .results .testimonial-case__identity h3 { font-size: 19px; }
  .results .testimonial-case__identity p { margin-top: 5px; }
  .results .testimonial-case__layout,
  .results .testimonial-case--reverse .testimonial-case__layout { gap: 34px; }
  .results .testimonial-case__portrait,
  .results .testimonial-case--reverse .testimonial-case__portrait { width: 100%; max-width: 430px; }
  .results .testimonial-case__quote { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; letter-spacing: -.008em; }
  .results .testimonial-case__quote p + p { margin-top: 20px; }
  .results .testimonial-case__attribution { margin-top: 30px; }
}


/* Office image framing refinements */
.office-photo--barcelona { object-position: 50% 50%; }
.office-photo--madrid-1 { object-position: 50% 50%; }
.office-photo--madrid-2 { object-position: 50% 48%; }
.office-photo--madrid-3 { object-position: 50% 50%; }
@media (max-width: 760px) {
  .office-photo--barcelona { object-position: 52% 50%; }
  .office-photo--madrid-1 { object-position: 52% 50%; }
  .office-photo--madrid-2 { object-position: 50% 44%; }
  .office-photo--madrid-3 { object-position: 52% 50%; }
}


/* Results refinement — progressive editorial folding */
.results .testimonial-case__layout {
  align-items: start;
}
.results .testimonial-case__person {
  width: 100%;
  max-width: 440px;
  margin: 0;
  min-width: 0;
}
.results .testimonial-case--reverse .testimonial-case__person {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}
.results .testimonial-case--reverse .testimonial-case__content {
  grid-column: 1;
  grid-row: 1;
}
.results .testimonial-case__person-meta {
  margin-top: 20px;
}
.results .testimonial-case__name {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}
.results .testimonial-case__role {
  margin: 5px 0 0;
  max-width: 360px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.results .testimonial-case__content {
  width: 100%;
  max-width: 700px;
}
.results .testimonial-case__quote-wrap {
  --testimonial-collapsed-height: 360px;
  --testimonial-fade-depth: 105px;
  position: relative;
}
.results .testimonial-case__toggle {
  display: none;
  margin-top: 14px;
  min-height: 40px;
  padding: 8px 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 12px/1.2 var(--sans);
  letter-spacing: .02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.results .testimonial-case__toggle-arrow {
  display: inline-block;
  margin-left: 2px;
  transition: transform .22s var(--ease);
}
.results .testimonial-case__toggle[aria-expanded="false"]:hover .testimonial-case__toggle-arrow {
  transform: translateY(2px);
}
.results .testimonial-case__toggle[aria-expanded="true"]:hover .testimonial-case__toggle-arrow {
  transform: translateY(-2px);
}
.results .testimonial-case__toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

/* Progressive enhancement: without JS, all testimonials remain fully visible. */
.js-testimonial-folding .results .testimonial-case__quote-wrap.is-collapsible {
  max-height: var(--testimonial-collapsed-height);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--testimonial-fade-depth)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--testimonial-fade-depth)),
    transparent 100%
  );
  transition: max-height 560ms var(--ease);
}
.js-testimonial-folding .results .testimonial-case__quote-wrap.is-collapsible.is-expanded {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 100%);
}
.js-testimonial-folding .results .testimonial-case__toggle:not([hidden]) {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1100px) {
  .results .testimonial-case--reverse .testimonial-case__person,
  .results .testimonial-case--reverse .testimonial-case__content {
    grid-column: auto;
    grid-row: auto;
  }
  .results .testimonial-case__person,
  .results .testimonial-case--reverse .testimonial-case__person {
    width: min(100%, 430px);
    max-width: 430px;
    justify-self: start;
  }
  .results .testimonial-case__quote-wrap {
    --testimonial-collapsed-height: 350px;
    --testimonial-fade-depth: 95px;
  }
}

@media (max-width: 600px) {
  .results .testimonial-case {
    padding-block: clamp(64px, 16vw, 78px);
  }
  .results .testimonial-case__meta {
    margin-bottom: 26px;
  }
  .results .testimonial-case__layout,
  .results .testimonial-case--reverse .testimonial-case__layout {
    gap: 28px;
  }
  .results .testimonial-case__person-meta {
    margin-top: 18px;
  }
  .results .testimonial-case__quote-wrap {
    --testimonial-collapsed-height: 330px;
    --testimonial-fade-depth: 86px;
  }
  .results .testimonial-case__toggle {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-testimonial-folding .results .testimonial-case__quote-wrap.is-collapsible {
    transition-duration: 1ms;
  }
  .results .testimonial-case__toggle-arrow {
    transition: none;
  }
}


/* Team refinement — specialists within one architecture */
.team .team-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(54px, 7vw, 90px) var(--grid-gap);
}
.team .team-member { grid-column: span 4; min-width: 0; }
.team .team-member:nth-child(1) { grid-column: 2 / span 5; }
.team .team-member:nth-child(2) { grid-column: 7 / span 5; }
.team .team-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  overflow: hidden;
  background: #bcb8ae;
}
.team .team-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.team .team-member:nth-child(1) .team-media img { object-position: center 24%; }
.team .team-profile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(22px, 2.4vw, 34px);
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(17,17,15,0) 24%, rgba(17,17,15,.16) 50%, rgba(17,17,15,.84) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 430ms var(--ease);
}
.team .team-profile-overlay p {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(14px, 1.02vw, 16px);
  line-height: 1.55;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 430ms var(--ease), transform 430ms var(--ease);
}
.team .team-media-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.team .team-media-trigger:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -6px;
}
@media (hover: hover) and (pointer: fine) {
  .team .team-member:hover .team-profile-overlay,
  .team .team-member:focus-within .team-profile-overlay,
  .team .team-member.is-profile-open .team-profile-overlay { opacity: 1; }
  .team .team-member:hover .team-profile-overlay p,
  .team .team-member:focus-within .team-profile-overlay p,
  .team .team-member.is-profile-open .team-profile-overlay p { opacity: 1; transform: translateY(0); }
}
.team .team-member__summary { min-width: 0; }
.team .team-member h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 400;
  line-height: 1.05;
}
.team .team-role {
  margin: 6px 0 9px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--muted);
}
.team .team-body {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.team .team-profile-toggle {
  display: none;
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.team .team-profile-toggle__close { display: none; }
.team .team-member.is-profile-open .team-profile-toggle__open { display: none; }
.team .team-member.is-profile-open .team-profile-toggle__close { display: inline; }
.team .team-profile-panel { display: none; }

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .team .team-grid { grid-template-columns: 1fr; gap: clamp(52px, 8vw, 68px); }
  .team .team-member,
  .team .team-member:nth-child(1),
  .team .team-member:nth-child(2) { grid-column: 1; }
  .team .team-media { width: min(100%, 430px); margin-bottom: 18px; }
  .team .team-profile-overlay { display: none; }
  .team .team-media-trigger { display: none; }
  .team .team-profile-toggle { display: inline-block; }
  .team .team-profile-panel {
    display: grid;
    grid-template-rows: 0fr;
    width: min(100%, 560px);
    transition: grid-template-rows 460ms var(--ease), margin-top 460ms var(--ease);
  }
  .team .team-profile-panel__inner { overflow: hidden; }
  .team .team-profile-panel__inner p {
    margin: 0;
    padding-top: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 320ms var(--ease), transform 320ms var(--ease), padding-top 460ms var(--ease);
  }
  .team .team-member.is-profile-open .team-profile-panel { grid-template-rows: 1fr; margin-top: 14px; }
  .team .team-member.is-profile-open .team-profile-panel__inner p {
    padding-top: 2px;
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .team .team-grid { gap: 54px; }
  .team .team-media { margin-bottom: 16px; }
  .team .team-member h3 { font-size: clamp(29px, 8.2vw, 36px); }
  .team .team-role { font-size: 11px; margin-top: 5px; }
  .team .team-body { font-size: 13px; line-height: 1.48; }
  .team .team-profile-toggle { margin-top: 13px; }
  .team .team-profile-panel__inner p { font-size: 14px; line-height: 1.58; }
}
@media (prefers-reduced-motion: reduce) {
  .team .team-profile-overlay,
  .team .team-profile-overlay p,
  .team .team-profile-panel,
  .team .team-profile-panel__inner p { transition-duration: .01ms !important; }
}

/* Authority credentials strip — compact editorial treatment */
#autoridad.authority.section {
  padding-block: clamp(40px, 4vw, 58px);
}
#autoridad .authority-intro {
  display: block;
  margin-bottom: clamp(22px, 2.2vw, 30px);
}
#autoridad .authority-intro h2 {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
#autoridad .client-line {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(38px, 5vw, 76px);
  align-items: end;
}
#autoridad .client-mark {
  min-width: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 8px;
}
#autoridad .client-logo-shell {
  width: min(100%, 216px);
  height: clamp(112px, 8.2vw, 132px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
#autoridad .client-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
}
/* Optical, not merely numerical, balancing of the three supplied logo files. */
#autoridad .client-mark--prestige .client-logo { transform: scale(.98); }
#autoridad .client-mark--glollar .client-logo { transform: scale(.95); }
#autoridad .client-mark--unique .client-logo { transform: scale(.98); }
#autoridad .client-location {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}
@media (max-width: 700px) {
  /* Kept as a compact 3-across row on phone — see phone polish block */
  #autoridad .client-location { font-size: 11px; }
}


/* System — editorial visual refinement */
#sistema .system-content > p strong {
  color: var(--ink);
  font-weight: 500;
}

#sistema .system-visual--quiet {
  min-height: 300px;
  max-height: 390px;
  border: 1px solid var(--line);
  background: var(--paper);
}

#sistema .community-editorial,
#sistema .opportunity-editorial,
#sistema .intelligence-editorial {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}

/* 01 — editorial content / recognition / distribution */
#sistema .system-visual--community {
  display: block;
  background: #c9c5bb;
}

#sistema .community-editorial {
  background:
    linear-gradient(115deg, rgba(17,17,15,.08), transparent 46%),
    linear-gradient(180deg, #cbc7bd 0%, #bcb8ae 100%);
}

#sistema .community-editorial__hero {
  position: absolute;
  inset: 11% 29% 16% 10%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), transparent 48%),
    #a9a59b;
}

#sistema .community-editorial__hero::before,
#sistema .community-editorial__hero::after {
  content: '';
  position: absolute;
  background: rgba(242,240,234,.65);
}

#sistema .community-editorial__hero::before {
  left: 8%; right: 8%; bottom: 9%; height: 1px;
}

#sistema .community-editorial__hero::after {
  width: 28%; height: 1px; left: 8%; bottom: 15%;
}

#sistema .community-editorial__stack {
  position: absolute;
  right: 8%; top: 16%; bottom: 26%; width: 24%;
  display: grid;
  gap: 8px;
}

#sistema .community-editorial__stack span {
  display: block;
  background: rgba(242,240,234,.58);
  border: 1px solid rgba(17,17,15,.10);
}

#sistema .community-editorial__audience {
  position: absolute;
  right: 8%; bottom: 10%; width: 25%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px 8px;
}

#sistema .community-editorial__audience span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(17,17,15,.38);
}

#sistema .community-editorial__audience span:nth-child(2),
#sistema .community-editorial__audience span:nth-child(5),
#sistema .community-editorial__audience span:nth-child(8) {
  background: rgba(17,17,15,.72);
}

/* 02 — interest concentrates into qualified opportunity, without a funnel */
#sistema .system-visual--flow {
  display: block;
  padding: 0;
  background: var(--paper);
}

#sistema .opportunity-editorial {
  background: linear-gradient(180deg, rgba(17,17,15,.018), transparent 62%);
}

#sistema .opportunity-editorial__property {
  position: absolute;
  left: 8%; top: 14%; bottom: 14%; width: 42%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.20), transparent 45%),
    #b9b5ab;
}

#sistema .opportunity-editorial__property::after {
  content: '';
  position: absolute;
  inset: auto 8% 9% 8%;
  height: 1px;
  background: rgba(242,240,234,.68);
}

#sistema .opportunity-editorial__interest {
  position: absolute;
  left: 57%; top: 22%; right: 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px 13px;
}

#sistema .opportunity-editorial__interest span {
  aspect-ratio: 1;
  border: 1px solid rgba(17,17,15,.24);
  border-radius: 50%;
}

#sistema .opportunity-editorial__interest span:nth-child(3n+1) {
  background: rgba(17,17,15,.08);
}

#sistema .opportunity-editorial__qualified {
  position: absolute;
  right: 8%; bottom: 18%; width: 34%;
  display: grid;
  gap: 8px;
}

#sistema .opportunity-editorial__qualified span {
  height: 18px;
  background: rgba(17,17,15,.82);
}

#sistema .opportunity-editorial__qualified span:nth-child(2) { width: 78%; }
#sistema .opportunity-editorial__qualified span:nth-child(3) { width: 58%; }

/* 03 — creative + restrained analytical signals */
#sistema .system-visual--intelligence {
  display: block;
  background: #171715;
  border-color: rgba(17,17,15,.18);
}

#sistema .intelligence-editorial {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
}

#sistema .intelligence-editorial__creative {
  position: relative;
  margin: 8%;
  background:
    linear-gradient(160deg, rgba(242,240,234,.16), transparent 52%),
    #77756f;
}

#sistema .intelligence-editorial__creative::before,
#sistema .intelligence-editorial__creative::after {
  content: '';
  position: absolute;
  left: 9%; right: 9%;
  height: 1px;
  background: rgba(242,240,234,.62);
}

#sistema .intelligence-editorial__creative::before { bottom: 13%; }
#sistema .intelligence-editorial__creative::after { bottom: 19%; right: 42%; }

#sistema .intelligence-editorial__analysis {
  position: relative;
  margin: 10% 9% 10% 4%;
  border-left: 1px solid rgba(242,240,234,.16);
}

#sistema .intelligence-editorial__trace {
  position: absolute;
  inset: 10% 8% 37% 12%;
}

#sistema .intelligence-editorial__trace::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg,
      transparent 0 19%,
      rgba(242,240,234,.18) 20% 20.7%,
      transparent 21% 38%,
      rgba(242,240,234,.28) 39% 39.7%,
      transparent 40% 61%,
      rgba(242,240,234,.56) 62% 62.8%,
      transparent 63% 100%);
}

#sistema .intelligence-editorial__trace span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(242,240,234,.76);
}

#sistema .intelligence-editorial__trace span:nth-child(1) { left: 6%; bottom: 15%; }
#sistema .intelligence-editorial__trace span:nth-child(2) { left: 28%; bottom: 28%; }
#sistema .intelligence-editorial__trace span:nth-child(3) { left: 49%; bottom: 20%; }
#sistema .intelligence-editorial__trace span:nth-child(4) { left: 70%; bottom: 48%; }
#sistema .intelligence-editorial__trace span:nth-child(5) { right: 5%; top: 8%; }

#sistema .intelligence-editorial__signals {
  position: absolute;
  left: 12%; right: 8%; bottom: 10%;
  display: grid;
  gap: 11px;
}

#sistema .intelligence-editorial__signals span {
  display: block;
  height: 1px;
  background: rgba(242,240,234,.30);
}

#sistema .intelligence-editorial__signals span:nth-child(1) { width: 100%; }
#sistema .intelligence-editorial__signals span:nth-child(2) { width: 76%; }
#sistema .intelligence-editorial__signals span:nth-child(3) { width: 54%; }

@media (max-width: 1024px) {
  #sistema .system-visual--quiet { min-height: 280px; max-height: 350px; }
}

@media (max-width: 600px) {
  #sistema .system-content > p { line-height: 1.58; }
  #sistema .system-visual--quiet { min-height: 235px; max-height: 285px; }
  #sistema .community-editorial__hero { inset: 10% 31% 15% 7%; }
  #sistema .community-editorial__stack { right: 7%; width: 25%; }
  #sistema .community-editorial__audience { right: 7%; width: 27%; }
  #sistema .opportunity-editorial__property { left: 7%; width: 43%; }
  #sistema .opportunity-editorial__interest { left: 57%; right: 7%; gap: 8px 9px; }
  #sistema .opportunity-editorial__qualified { right: 7%; width: 34%; }
}


/* Real image assets for system section */
#sistema .system-visual--image { display:block !important; padding:0 !important; overflow:hidden; background:#cfcac1; }
#sistema .system-visual--image .system-visual__image { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }


/* Exclusividad — mapa editorial territorial */
#exclusividad .territory-map--real {
  width: min(100%, 1260px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, .66fr);
  gap: clamp(42px, 5vw, 76px);
  align-items: stretch;
}
#exclusividad .map-surface--geo {
  position: relative;
  min-height: 470px;
  height: min(54vh, 590px);
  overflow: hidden;
  border: 0;
  background: var(--dark);
}
#exclusividad .territory-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  padding: 22px 16px 32px;
  box-sizing: border-box;
}
/* Atlas graticule — whisper-thin reference lines */
#exclusividad .map-graticule-line {
  fill: none;
  stroke: rgba(233, 229, 219, .07);
  stroke-width: .6;
  vector-effect: non-scaling-stroke;
}
#exclusividad .territory-country-outline {
  fill: none;
  stroke: rgba(233, 229, 219, .34);
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
#exclusividad .territory-province,
#exclusividad .territory-zone {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  transition: fill .28s ease, stroke .28s ease, opacity .28s ease, stroke-width .28s ease;
}
/* Quiet province mesh — atmosphere, not the subject */
#exclusividad .territory-province {
  fill: none;
  stroke: rgba(233, 229, 219, .09);
  stroke-width: .45;
}
#exclusividad .territory-province[data-status="protected"],
#exclusividad .territory-zone[data-status="protected"] {
  fill: url(#vicorsa-hatch-protected);
  stroke: rgba(233, 229, 219, .62);
  stroke-width: 1;
}
#exclusividad .territory-zone[data-status="evaluation"] {
  fill: url(#vicorsa-hatch-evaluation);
  stroke: rgba(233, 229, 219, .4);
  stroke-width: .85;
  stroke-dasharray: 2.8 2.2;
}
#exclusividad .territory-province.is-active,
#exclusividad .territory-zone.is-active {
  stroke: rgba(255, 252, 245, .88);
  stroke-width: 1.3;
  stroke-dasharray: none;
  opacity: 1;
}
/* Cartographic crosshair marks */
#exclusividad .territory-presence-layer {
  pointer-events: none;
}
#exclusividad .territory-presence {
  pointer-events: none;
  --mark: rgba(233, 229, 219, .72);
  --mark-active: rgba(255, 252, 245, .96);
}
#exclusividad .territory-presence[data-status="evaluation"] {
  --mark: rgba(233, 229, 219, .48);
}
#exclusividad .presence-tick {
  fill: none;
  stroke: var(--mark);
  stroke-width: .7;
  vector-effect: non-scaling-stroke;
  transition: stroke .28s ease, opacity .28s ease;
}
#exclusividad .presence-ring {
  fill: none;
  stroke: var(--mark);
  stroke-width: .7;
  vector-effect: non-scaling-stroke;
  transition: stroke .28s ease, opacity .28s ease, stroke-width .28s ease;
}
#exclusividad .presence-ring--base {
  opacity: .85;
}
#exclusividad .presence-core {
  fill: var(--mark);
  stroke: none;
  transition: fill .28s ease;
}
#exclusividad .territory-presence.is-active .presence-tick,
#exclusividad .territory-presence.is-active .presence-ring {
  stroke: var(--mark-active);
}
#exclusividad .territory-presence.is-active .presence-core {
  fill: var(--mark-active);
}
#exclusividad .territory-presence.is-active .presence-ring--base {
  stroke-width: 1;
}
#exclusividad .map-surface--geo:has(.territory-presence.is-active) .territory-presence:not(.is-active) {
  opacity: .28;
}
#exclusividad .map-surface--geo:has(.territory-presence.is-active) .territory-province:not(.is-active),
#exclusividad .map-surface--geo:has(.territory-presence.is-active) .territory-zone:not(.is-active) {
  opacity: .28;
}
#exclusividad .map-surface--geo:has(.territory-presence.is-active) .territory-province:not([data-status="protected"]):not(.is-active) {
  opacity: .16;
}
#exclusividad .map-data-note {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  color: rgba(242,240,234,.30);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#exclusividad .territory-list {
  border-top: 1px solid rgba(233, 229, 219, .14);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#exclusividad .territory-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px;
  align-items: center; min-height: 82px; padding: 18px 0;
  border-bottom: 1px solid rgba(242,240,234,.14);
  outline: none; transition: opacity .25s ease;
}
#exclusividad .territory-row strong { display:block; font-size:13px; font-weight:500; color:var(--ivory); }
#exclusividad .territory-row p { margin:5px 0 0; color:rgba(242,240,234,.48); font-size:11px; }
#exclusividad .state-label { font-size:9px; letter-spacing:.09em; color:rgba(242,240,234,.42); white-space:nowrap; }
#exclusividad .state-label--protected { color: rgba(242,240,234,.76); }
#exclusividad .state-label--evaluation { color: rgba(242,240,234,.48); }
#exclusividad .territory-row.is-active,
#exclusividad .territory-row:hover,
#exclusividad .territory-row:focus-visible { opacity:1; }
#exclusividad .territory-row.is-active strong,
#exclusividad .territory-row:hover strong,
#exclusividad .territory-row:focus-visible strong { color: rgba(255,252,245,.98); }
#exclusividad .territory-row.is-active p,
#exclusividad .territory-row:hover p,
#exclusividad .territory-row:focus-visible p { color: rgba(242,240,234,.72); }
#exclusividad .territory-row.is-active .state-label,
#exclusividad .territory-row:hover .state-label,
#exclusividad .territory-row:focus-visible .state-label { color: rgba(255,252,245,.88); }
#exclusividad .territory-list:has(.territory-row.is-active) .territory-row:not(.is-active) { opacity:.34; }


@media (max-width: 980px) {
  #exclusividad .territory-map--real { grid-template-columns: 1fr; gap: 36px; }
  #exclusividad .map-surface--geo { min-height: 0; height: auto; aspect-ratio: 16 / 11; }
}
@media (max-width: 600px) {
  #exclusividad .territory-map--real { gap: 28px; }
  #exclusividad .map-surface--geo { aspect-ratio: 4 / 3; }
  #exclusividad .territory-row { min-height: 68px; padding: 14px 0; }
  #exclusividad .state-label { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #exclusividad .territory-province,
  #exclusividad .territory-zone,
  #exclusividad .territory-row,
  #exclusividad .presence-ring,
  #exclusividad .presence-tick,
  #exclusividad .presence-core { transition: none !important; }
}


/* Hero final — dedicated landscape / portrait films */
.hero-media {
  overflow: hidden;
  background: var(--dark);
  transform-origin: center center;
  animation: hero-media-settle 8s ease-out forwards;
}
@keyframes hero-media-settle {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}
.hero-video-fallback,
.hero-video-fallback img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-video-fallback {
  z-index: 0;
  display: block;
  transition: opacity .45s var(--ease);
}
.hero-video-fallback img {
  display: block;
  object-fit: cover;
  object-position: center center;
}
.hero-video {
  z-index: 1;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  filter: saturate(.94) contrast(1.025);
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.hero-media.is-playing .hero-video { opacity: 1; }
.hero-media.is-playing .hero-video-fallback { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; }
  .hero-video-fallback,
  .hero-video { transition: none; }
}

/* Hero final polish — localized readability + HQ film */
.hero-overlay {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20,18,16,.38) 0, rgba(20,18,16,0) 160px),
    linear-gradient(to top, rgba(20,18,16,.60) 0%, rgba(20,18,16,.28) 50%, rgba(20,18,16,.08) 100%),
    linear-gradient(90deg, rgba(20,18,16,.32) 0%, rgba(20,18,16,.12) 36%, rgba(20,18,16,0) 66%);
}
.hero-overlay::after {
  content: none;
}
.hero-title {
  text-shadow: 0 1px 18px rgba(0,0,0,.28);
}
.hero-bottom p {
  color: rgba(255,255,255,.94);
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0,0,0,.18);
}
.hero .line-button--light {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.82);
}

@media (orientation: landscape) {
  .hero-video { object-position: center center; }
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(20,18,16,.38) 0, rgba(20,18,16,0) 160px),
      linear-gradient(to top, rgba(20,18,16,.60) 0%, rgba(20,18,16,.28) 50%, rgba(20,18,16,.08) 100%),
      linear-gradient(90deg, rgba(20,18,16,.34) 0%, rgba(20,18,16,.14) 34%, rgba(20,18,16,0) 64%);
  }
  .hero-bottom p {
    font-size: 16px;
  }
}

@media (orientation: portrait) {
  .hero-video { object-position: center center; }
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(20,18,16,.38) 0, rgba(20,18,16,0) 140px),
      linear-gradient(to top, rgba(20,18,16,.72) 0%, rgba(20,18,16,.40) 45%, rgba(20,18,16,.10) 100%),
      linear-gradient(90deg, rgba(20,18,16,.28) 0%, rgba(20,18,16,.10) 40%, transparent 68%);
  }
  .hero-title {
    text-shadow: 0 1px 24px rgba(20,18,16,.35);
  }
  .hero-bottom p {
    color: rgba(255,255,255,.95);
    text-shadow: 0 1px 24px rgba(20,18,16,.35);
  }
}



/* Closing pass — implementation polish only */
#sistema, #resultados, #equipo, #exclusividad, #firma { scroll-margin-top: 92px; }
@media (max-width: 1180px) { #sistema, #resultados, #equipo, #exclusividad, #firma { scroll-margin-top: 82px; } }
@media (max-width: 768px) { #sistema, #resultados, #equipo, #exclusividad, #firma { scroll-margin-top: 74px; } }

/* Offices — editorial metadata and restrained Madrid gallery controls */
.office-media { aspect-ratio: 4 / 3; }
.offices-heading { display: grid; gap: 15px; }
.offices-kicker { color: var(--muted); }
.office-copy { align-items: flex-start; }
.office-copy__identity { display: grid; gap: 7px; min-width: 0; }
.office-copy .office-status {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
}
.office-copy .office-address { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: right; }
.office-gallery__controls { left: 14px; right: 14px; bottom: 12px; justify-content: center; gap: 18px; }
.office-gallery__arrow {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: .72;
  transition: opacity .25s var(--ease);
}
.office-gallery__arrow:hover, .office-gallery__arrow:focus-visible { opacity: 1; }
.office-gallery__arrow:first-child { left: 0; transform: translateY(-50%); }
.office-gallery__arrow:last-child { right: 0; transform: translateY(-50%); }
.office-gallery__arrow span { font-size: 20px; line-height: 1; }
.office-gallery__dots { gap: 6px; padding: 0; border-radius: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.office-gallery__dot { width: 18px; height: 1px; border-radius: 0; background: rgba(255,255,255,.30); }
.office-gallery__dot.is-active { background: rgba(255,255,255,.78); }

/* Final CTA — preserve approved composition, tighten readable measure */
.final-cta .container-narrow { width: min(calc(100% - (2 * var(--page-gutter))), 1120px); }
.final-cta .lede { max-width: 680px; }

/* Footer — boutique closing structure (superseded by Step 5b / polish block) */
.footer-brand-block { display: grid; gap: 14px; }
.footer-brand-block p { max-width: 240px; }
.footer-nav { gap: 7px; }
.footer-locations { display: grid; gap: 14px; }
.footer-locations p { line-height: 1.55; }
.footer-locations strong { color: rgba(242,240,234,.84); font-weight: 500; }
.footer-legal { color: rgba(242,240,234,.42); }
.footer-legal span { display: block; }

/* Technical resilience */
img { height: auto; }
.office-photo, .team-media img, .testimonial-case__portrait img, .system-visual__image, .video-poster__image { height: 100%; }
.section, .hero, .footer { max-width: 100%; }
.display, .lede, .team-body, .system-content > p, .testimonial-case__quote { overflow-wrap: break-word; }

@media (max-width: 768px) {
  .office-copy { flex-direction: column; align-items: flex-start; gap: 12px; }
  .office-copy .office-address { margin-top: 0; text-align: left; }
  .office-gallery__controls { left: 12px; right: 12px; bottom: 11px; }
}
@media (max-width: 430px) {
  .offices-heading { gap: 12px; }
  .office-copy .office-status { max-width: 270px; }
}


/* FINAL CLOSURE — surgical responsive fixes only */
/* Authority: one compact editorial credentials block; supplied logos remain untouched. */
#autoridad.authority.section {
  padding-block: clamp(38px, 3.8vw, 54px);
}
#autoridad .authority-intro {
  width: min(100%, 1040px);
  margin: 0 auto clamp(10px, 1.15vw, 15px);
}
#autoridad .authority-intro h2 {
  max-width: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#autoridad .client-mark { gap: 0; }
#autoridad .client-location { display: none !important; }
#autoridad .client-logo-shell,
#autoridad .client-logo { display: none !important; }
#autoridad .client-name {
  margin: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}
#autoridad .client-name__house {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.35;
}
#autoridad .client-name strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.15;
}

/* Mobile navigation: true viewport overlay, isolated from page content. */
@media (max-width: 1180px) {
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }
  body.menu-open .site-header {
    z-index: 2000;
    transform: none !important;
    color: var(--ivory);
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
  }
  .site-header > .brand,
  .site-header > .menu-toggle {
    position: relative;
    z-index: 2002;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
    z-index: 2001;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--dark);
    color: var(--on-dark);
    padding: max(104px, calc(env(safe-area-inset-top) + 88px)) var(--page-gutter) max(36px, calc(env(safe-area-inset-bottom) + 24px));
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s var(--ease), visibility 0s linear .24s;
  }
  .mobile-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .24s var(--ease), visibility 0s linear 0s;
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.6vh, 16px);
  }
  .mobile-menu nav a {
    display: block;
    width: fit-content;
    font-family: var(--serif);
    font-size: clamp(40px, 8vw, 64px);
    line-height: 1.04;
    letter-spacing: -.025em;
  }
}

/* System: mobile shows the designed images at their real aspect ratio, without crop. */
@media (max-width: 768px) {
  #sistema .system-visual--image,
  #sistema .system-visual--quiet {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: visible;
  }
  #sistema .system-visual--image .system-visual__image {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
}



/* ============================================================
   Step 5a — logo strip, VSL, Resultados, Sistema (scoped)
   ============================================================ */

/* 1) Logo strip */
#autoridad.authority.section {
  background: var(--ivory);
  padding-block: clamp(56px, 6vw, 88px);
}
#autoridad .authority-intro h2,
#autoridad .authority-intro {
  color: var(--muted);
}
#autoridad .authority-intro {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(22px, 2.2vw, 30px);
}
#autoridad .client-line {
  width: 100%;
  margin-inline: 0;
  padding-block: clamp(24px, 2.8vw, 36px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
#autoridad .client-name {
  transition: opacity .35s var(--ease);
  opacity: .78;
}
#autoridad .client-mark:hover .client-name,
#autoridad .client-mark:focus-within .client-name {
  opacity: 1;
}

/* 2) VSL — stone (not dark); Exclusividad remains the only dark section */
.vsl.section,
.vsl.section--stone {
  background: var(--stone);
  color: var(--ink);
  padding-block: clamp(96px, 12vw, 160px);
}
.vsl .section-head {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.vsl .section-head--split { grid-template-columns: 1fr; }
.vsl .display,
.vsl .display--medium {
  color: var(--ink);
  max-width: 22ch;
}
.vsl .lede,
.vsl .light-muted {
  color: var(--muted);
  max-width: 46ch;
}
.vsl .vsl-media {
  width: min(100%, 1100px);
  margin-inline: auto;
  margin-top: clamp(8px, 1vw, 16px);
}
.vsl .video-frame {
  background: var(--dark);
}
.vsl .play-button {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(233, 229, 219, .72);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.vsl .play-button:disabled { opacity: .9; }
@media (max-width: 768px) {
  .vsl .play-button { width: 64px; height: 64px; }
}

/* 3) Resultados refinements */
.results.section {
  background: var(--ivory);
  padding-block: clamp(96px, 12vw, 160px);
}
.results .testimonial-case__portrait {
  aspect-ratio: 4 / 5;
  background: var(--stone);
}
.results .testimonial-case__identity h3 {
  font-size: 22px;
}
@media (max-width: 600px) {
  .results .testimonial-case__identity h3 { font-size: 20px; }
}

/* 4) Sistema — asymmetric 5/7 ↔ 7/5 rows */
#sistema.system.section {
  background: var(--ivory);
  padding-block: clamp(96px, 12vw, 160px);
}
#sistema .system-opening {
  margin-bottom: clamp(48px, 6vw, 88px);
}
#sistema .system-layers {
  border-top: 0;
}
#sistema .system-layer {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "copy media";
  column-gap: clamp(36px, 5vw, 72px);
  row-gap: 0;
  align-items: start;
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
#sistema .system-layer:first-child { border-top: 1px solid var(--line); }
#sistema .system-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
#sistema .system-index {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  padding-top: 0;
}
#sistema .system-content h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  max-width: 18ch;
}
#sistema .system-copy { gap: 10px; }
#sistema .system-content > p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
#sistema .system-content > p strong {
  color: var(--ink);
  font-weight: 500;
}
#sistema .system-visual,
#sistema .system-visual--quiet,
#sistema .system-visual--image {
  grid-area: media;
  width: 100%;
  min-height: 0 !important;
  max-height: none !important;
  height: auto;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--stone);
  border: 0;
  padding: 0 !important;
  display: block !important;
}
#sistema .system-visual--image .system-visual__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Even rows: wide image left (7), text right (5) */
#sistema .system-layer:nth-child(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "media copy";
}

@media (max-width: 1180px) {
  #sistema .system-layer,
  #sistema .system-layer:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
    row-gap: 14px;
  }
  #sistema .system-visual,
  #sistema .system-visual--quiet,
  #sistema .system-visual--image {
    aspect-ratio: 16 / 10;
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  #sistema .system-content h3 { font-size: clamp(26px, 7vw, 34px); max-width: none; }
  #sistema .system-visual,
  #sistema .system-visual--quiet,
  #sistema .system-visual--image {
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    height: auto !important;
  }
  #sistema .system-visual--image .system-visual__image {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    aspect-ratio: auto;
  }
}

#sistema .system-close {
  margin-top: clamp(48px, 6vw, 80px);
}
#sistema .system-close > p {
  max-width: 28ch;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.2;
  font-weight: 400;
}


/* ============================================================
   Step 5b — Equipo, Exclusividad, Sedes, Final CTA, Footer
   ============================================================ */

/* 1) Equipo */
#equipo.team.section,
#equipo.team.section--stone {
  background: var(--stone);
  color: var(--ink);
  padding-block: clamp(96px, 12vw, 160px);
}
#equipo .section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
}
#equipo .team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(18px, 2vw, 28px);
  align-items: start;
}
#equipo .team-member,
#equipo .team-member:nth-child(1),
#equipo .team-member:nth-child(2) {
  grid-column: auto;
  min-width: 0;
}
#equipo .team-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--stone) 70%, var(--ink) 12%);
}
#equipo .team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
}
#equipo .team-member h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}
#equipo .team-role {
  margin: 8px 0 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}
#equipo .team-body {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 1180px) {
  #equipo .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  #equipo .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 16px;
  }
  #equipo .team-member h3 { font-size: 22px; }
  #equipo .team-media { margin-bottom: 14px; }
}

/* 2) Exclusividad — only dark section */
#exclusividad.exclusivity.section,
#exclusividad.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}
#exclusividad .section-kicker,
#exclusividad .section-kicker.light {
  color: color-mix(in srgb, var(--on-dark) 62%, transparent);
}
#exclusividad .display.light,
#exclusividad .light {
  color: var(--on-dark);
}
#exclusividad .lede,
#exclusividad .light-muted {
  color: color-mix(in srgb, var(--on-dark) 68%, transparent);
}
#exclusividad .territory-cta .line-button--light {
  color: var(--on-dark);
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  padding: 10px 0 2px;
}
#exclusividad .territory-cta .line-button--light:hover {
  opacity: .88;
}
#exclusividad .territory-row strong { color: var(--on-dark); }
#exclusividad .territory-row p { color: rgba(233,229,219,.48); }
#exclusividad .state-label { color: rgba(233,229,219,.42); }
#exclusividad .state-label--protected { color: rgba(233,229,219,.76); }
#exclusividad .state-label--evaluation { color: rgba(233,229,219,.48); }
#exclusividad .territory-row.is-active p,
#exclusividad .territory-row:hover p,
#exclusividad .territory-row:focus-visible p { color: rgba(233,229,219,.72); }

/* 3) Sedes */
#firma.offices.section {
  background: var(--ivory);
  padding-block: clamp(96px, 12vw, 160px);
}
#firma .offices-heading {
  margin-bottom: clamp(40px, 5vw, 72px);
}
#firma .offices-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#firma .office-media,
#firma .office-media--image,
#firma .office-gallery {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: color-mix(in srgb, var(--stone) 80%, var(--ink) 8%);
}
#firma .office-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
}
#firma .office-copy h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.2;
}
#firma .office-address {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
#firma .office-copy {
  margin-top: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* 4) Final CTA — stone bridge into the dark footer */
.final-cta.section {
  background: var(--stone);
  color: var(--ink);
  padding-block: clamp(88px, 10vw, 140px) clamp(40px, 4.5vw, 64px);
}
.final-cta .container-narrow {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  max-width: var(--content-max);
  margin-inline: auto;
}
.final-cta .display {
  max-width: 18ch;
  color: var(--ink);
}
.final-cta .lede {
  max-width: 46ch;
  color: var(--muted);
  margin-top: 22px;
}
.final-cta .line-button,
.final-cta .line-button--dark {
  margin-top: 36px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: var(--dark);
  color: var(--on-dark);
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: .04em;
  gap: 16px;
  transition: background .3s ease, color .3s ease;
}
.final-cta .line-button:hover,
.final-cta .line-button--dark:hover {
  background: #3a3733;
  color: var(--on-dark);
}
.final-cta .line-button span {
  transform: none;
}

/* 5) Footer */
.footer {
  background: var(--dark);
  color: var(--on-dark);
  border-top: 0;
  padding-block: clamp(40px, 5vw, 64px) clamp(52px, 6vw, 80px);
}
.footer-inner {
  display: grid;
  gap: clamp(28px, 3.5vw, 40px);
}
.footer-brand-block {
  display: grid;
  gap: 0;
  padding-bottom: clamp(20px, 2.5vw, 28px);
  border-bottom: 1px solid rgba(233, 229, 219, .12);
}
.footer .brand,
.footer .brand--footer {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--on-dark);
  opacity: 1;
  transition: opacity .25s var(--ease);
}
.footer .brand:hover,
.footer .brand--footer:hover {
  opacity: .72;
}
.footer-meta {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 28px;
  align-items: start;
  width: 100%;
}
.footer-links,
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .08em;
}
.footer-nav a {
  color: var(--on-dark);
  opacity: .72;
  width: fit-content;
  transition: opacity .25s var(--ease);
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  opacity: 1;
}
.footer-locations {
  display: grid;
  gap: 18px;
}
.footer-locations p,
.footer p {
  margin: 0;
  color: color-mix(in srgb, var(--on-dark) 58%, transparent);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: .02em;
}
.footer-locations strong {
  display: inline-block;
  margin-bottom: 2px;
  color: color-mix(in srgb, var(--on-dark) 90%, transparent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-self: end;
  text-align: right;
  color: #a9a59b; /* 5.90:1 on --dark; quieter than nav */
  font-size: 11px;
  letter-spacing: .08em;
}
.footer-legal span {
  display: block;
}

@media (max-width: 900px) {
  .footer-meta {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    gap: 36px 48px;
  }
  .footer-legal {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(233, 229, 219, .10);
  }
}
@media (max-width: 430px) {
  .footer {
    padding-block: 48px;
  }
  .footer-meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-legal {
    grid-column: auto;
    gap: 8px 20px;
  }
}


/* ============================================================
   Final QA polish — contrast + micro-labels + team-role align
   ============================================================ */

/* Footer legal contrast lock (AA, quieter than nav) */
.footer .footer-legal,
.footer-legal {
  color: #a9a59b;
}

/* Sedes status captions → 11px eyebrow */
#firma .office-copy .office-status,
.office-copy .office-status {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--muted); /* 5.77:1 on ivory */
  max-width: none;
  white-space: normal;
}

/* Map caption + territory status labels → 11px eyebrow, ≥4.5:1 on --dark */
#exclusividad .map-data-note {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(233, 229, 219, .58); /* ~4.91:1 on --dark */
}
#exclusividad .state-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(233, 229, 219, .58); /* base / evaluation floor ~4.91:1 */
  white-space: nowrap; /* avoid EN EVALUACIÓN stacking at 11ch */
  text-align: right;
  max-width: none;
}
#exclusividad .state-label--protected {
  color: rgba(233, 229, 219, .76); /* ~7.32:1 */
}
#exclusividad .state-label--evaluation {
  color: rgba(233, 229, 219, .58); /* ~4.91:1 */
}
@media (max-width: 600px) {
  #exclusividad .state-label {
    font-size: 11px; /* override prior 8px mobile shrink */
    white-space: nowrap;
    max-width: none;
  }
  #exclusividad .map-data-note {
    font-size: 11px;
    max-width: calc(100% - 36px);
  }
}

/* Equipo: reserve role-line height so descriptions share a baseline */
#equipo .team-role {
  min-height: calc(11px * 1.35 * 2); /* 2 lines at 5-col / 3-col */
  display: flex;
  align-items: flex-start;
}
@media (max-width: 700px) {
  /* 2-col cards are narrow; longest roles need 3 lines */
  #equipo .team-role {
    min-height: calc(11px * 1.35 * 3);
  }
}


/* ============================================================
   Step 6 — Motion
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .7s cubic-bezier(.22,.61,.36,1),
    transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Keep hero reveal timing as previously approved */
.hero .reveal {
  transform: translateY(14px);
  transition:
    opacity .8s var(--ease),
    transform .8s var(--ease);
}
.hero .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger grouped items — max 5 steps × 80ms (do not touch reveal JS) */
#autoridad .client-mark.reveal:nth-child(1),
#equipo .team-member.reveal:nth-child(1),
.results .testimonial-case:nth-of-type(1) .reveal,
#sistema .system-layer.reveal:nth-child(1) { transition-delay: 0ms; }

#autoridad .client-mark.reveal:nth-child(2),
#equipo .team-member.reveal:nth-child(2),
.results .testimonial-case:nth-of-type(2) .reveal,
#sistema .system-layer.reveal:nth-child(2) { transition-delay: 80ms; }

#autoridad .client-mark.reveal:nth-child(3),
#equipo .team-member.reveal:nth-child(3),
.results .testimonial-case:nth-of-type(3) .reveal,
#sistema .system-layer.reveal:nth-child(3) { transition-delay: 160ms; }

#equipo .team-member.reveal:nth-child(4) { transition-delay: 240ms; }
#equipo .team-member.reveal:nth-child(5) { transition-delay: 320ms; }

#equipo .team-member.reveal:nth-child(n+6),
#autoridad .client-mark.reveal:nth-child(n+6),
#sistema .system-layer.reveal:nth-child(n+6) { transition-delay: 320ms; }

@media (hover: hover) {
  #equipo .team-media:hover img,
  .results .testimonial-case__portrait:hover img,
  #sistema .system-visual--image:hover .system-visual__image,
  #firma .office-media:hover .office-photo {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero .reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
    transition-delay: 0ms !important;
  }
  #equipo .team-media img,
  .results .testimonial-case__portrait img,
  #sistema .system-visual__image,
  #firma .office-photo {
    transition: none !important;
    transform: none !important;
  }
  .hero-media { animation: none !important; }
}


/* ============================================================
   Phone polish — credentials + early mobile rhythm
   ============================================================ */
@media (max-width: 700px) {
  /* Firm names: compact 3-across text row */
  #autoridad.authority.section {
    padding-block: 28px 32px;
  }
  #autoridad .authority-intro {
    width: 100%;
    margin: 0 0 12px;
  }
  #autoridad .authority-intro h2 {
    max-width: 30ch;
    font-size: 10px;
    letter-spacing: .14em;
    line-height: 1.45;
  }
  #autoridad .client-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px 10px;
    width: 100%;
    margin: 0;
    padding-block: 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  #autoridad .client-mark {
    min-width: 0;
    padding: 0;
    border: 0;
    gap: 0;
    align-items: center;
    justify-content: center;
  }
  #autoridad .client-name {
    gap: 4px;
    opacity: .9;
  }
  #autoridad .client-name__house {
    display: block;
    font-size: 8px;
    letter-spacing: .1em;
    line-height: 1.3;
    max-width: none;
    white-space: normal;
  }
  #autoridad .client-name strong {
    font-size: clamp(17px, 4.8vw, 22px);
  }

  .client-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .client-mark {
    padding: 0;
    border-bottom: 0;
  }
}

