/* =========================================================
   MANUEL JESÚS SEDEÑO — HOME V4 / UMBRAL ABIERTO
   Isolated from the accumulated V2/V3 homepage cascade.
   ========================================================= */

body.personal-home-v4 {
  --v4-ink: #11100e;
  --v4-ink-soft: #191a17;
  --v4-paper: #f0eee8;
  --v4-paper-deep: #d8d2c7;
  --v4-acid: #d9ff43;
  --v4-coral: #ff7257;
  --v4-sky: #8dd8df;
  --v4-cobalt: #173da8;
  --v4-line-light: rgba(240, 238, 232, .18);
  --v4-line-dark: rgba(17, 16, 14, .2);
  overflow-x: hidden;
  background: var(--v4-ink);
  color: var(--v4-paper);
}

body.personal-home-v4 .brand-symbol::after {
  display: none !important;
}

body.personal-home-v4 .site-header.personal-header {
  border-color: rgba(240, 238, 232, .14);
  background: rgba(14, 14, 12, .9);
}

body.personal-home-v4 .personal-brand:hover .brand-symbol img,
body.personal-home-v4 .personal-brand:focus-visible .brand-symbol img {
  transform: translateY(-2px) scale(1.045) !important;
  filter: drop-shadow(0 0 13px rgba(217, 255, 67, .24)) !important;
}

body.personal-home-v4 .site-footer.personal-footer {
  position: relative;
  inset: auto;
  z-index: 4;
  width: 100%;
  min-height: 92px;
  pointer-events: auto;
}

.home-v4 {
  position: relative;
  width: 100%;
  overflow: clip;
  background: var(--v4-ink);
}

.home-v4 :is(h1, h2, h3) {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.home-v4 em {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.home-v4 :is(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--v4-acid);
  outline-offset: 5px;
  box-shadow: 0 0 0 7px var(--v4-ink);
}

.home-v4-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(240, 238, 232, .58);
  font: 500 .66rem/1.5 "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-v4-kicker > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--v4-acid);
  transform: rotate(45deg);
}

.home-v4-kicker.dark {
  color: rgba(17, 16, 14, .58);
}

.home-v4-kicker.dark > span {
  background: var(--v4-ink);
}

.home-v4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 37px;
}

.home-v4-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 20px;
  border: 1px solid rgba(240, 238, 232, .3);
  background: transparent;
  color: var(--v4-paper);
  font: 650 .76rem "Manrope", sans-serif;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.home-v4-button span {
  font-family: "DM Mono", monospace;
  font-weight: 400;
}

.home-v4-button-primary {
  border-color: var(--v4-acid);
  background: var(--v4-acid);
  color: var(--v4-ink);
}

.home-v4-button-dark {
  border-color: var(--v4-ink);
  background: var(--v4-ink);
  color: var(--v4-paper);
}

.home-v4-button-line {
  border-color: rgba(17, 16, 14, .34);
  color: var(--v4-ink);
}

/* Opening: a declaration and a living mark, not a stock-tech hero. */
.home-v4-hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(132px, 10vw, 178px) max(5vw, calc((100vw - 1720px) / 2)) 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 40%, rgba(217, 255, 67, .085), transparent 31rem),
    linear-gradient(rgba(240, 238, 232, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 238, 232, .035) 1px, transparent 1px),
    var(--v4-ink);
  background-size: auto, 56px 56px, 56px 56px, auto;
}

.home-v4-hero::before {
  content: "MJS / 04";
  position: absolute;
  right: -1vw;
  bottom: 8%;
  color: rgba(240, 238, 232, .026);
  font: 800 clamp(9rem, 24vw, 28rem)/.75 "Manrope", sans-serif;
  letter-spacing: -.13em;
  white-space: nowrap;
  pointer-events: none;
}

.home-v4-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
  min-height: calc(100svh - 290px);
}

.home-v4-hero-copy {
  max-width: 1110px;
}

.home-v4-hero h1 {
  margin: 24px 0 32px;
  color: var(--v4-paper);
  font: 800 clamp(4.1rem, 7vw, 9.25rem)/.79 "Manrope", sans-serif;
  letter-spacing: -.083em;
}

.home-v4-hero h1 > span,
.home-v4-hero h1 > em {
  display: block;
}

.home-v4-hero h1 > span:nth-child(2) {
  padding-left: clamp(20px, 5vw, 96px);
}

.home-v4-hero h1 > span:nth-child(3) {
  color: rgba(240, 238, 232, .38);
}

.home-v4-hero h1 > em {
  padding-left: clamp(10px, 2.6vw, 48px);
  color: var(--v4-acid);
  font-size: .86em;
  letter-spacing: -.055em;
}

.home-v4-lead {
  max-width: 750px;
  color: rgba(240, 238, 232, .64);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.76;
}

.home-v4-mark-field {
  --mark-shift-x: 0px;
  --mark-shift-y: 0px;
  position: relative;
  min-height: min(680px, 69svh);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(240, 238, 232, .2);
  background: rgba(12, 13, 11, .7);
  box-shadow: 0 42px 100px rgba(0, 0, 0, .36);
}

.home-v4-mark-field::before,
.home-v4-mark-field::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(217, 255, 67, .15);
  border-radius: 50%;
}

.home-v4-mark-field::before {
  width: 74%;
  aspect-ratio: 1;
}

.home-v4-mark-field::after {
  width: 46%;
  aspect-ratio: 1;
  border-style: dashed;
}

.home-v4-mark-guides,
.home-v4-mark-guides i {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-v4-mark-guides i:nth-child(1) { left: 50%; width: 1px; background: rgba(240, 238, 232, .08); }
.home-v4-mark-guides i:nth-child(2) { top: 50%; height: 1px; background: rgba(240, 238, 232, .08); }
.home-v4-mark-guides i:nth-child(3) { left: 25%; width: 1px; background: rgba(240, 238, 232, .04); }
.home-v4-mark-guides i:nth-child(4) { left: 75%; width: 1px; background: rgba(240, 238, 232, .04); }

.home-v4-hero-mark {
  position: relative;
  z-index: 3;
  width: min(78%, 500px);
  overflow: visible;
  transform: translate3d(var(--mark-shift-x), var(--mark-shift-y), 0);
  transition: transform .16s ease-out;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .4));
}

.home-v4-hero-mark :is(.home-v4-mark-organic, .home-v4-mark-structure) {
  fill: none;
  stroke: var(--v4-paper);
  stroke-width: 11;
  stroke-linecap: square;
  stroke-dasharray: 180;
  stroke-dashoffset: 0;
}

.home-v4-hero-mark .home-v4-mark-organic {
  stroke-linejoin: round;
  animation: homeV4Draw 1.25s .12s cubic-bezier(.2, .8, .2, 1) both;
}

.home-v4-hero-mark .home-v4-mark-structure {
  stroke-linejoin: miter;
  animation: homeV4Draw 1.05s .68s cubic-bezier(.2, .8, .2, 1) both;
}

.home-v4-mark-core {
  fill: var(--v4-acid);
  stroke: var(--v4-ink);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: homeV4Core .62s 1.34s cubic-bezier(.2, .9, .2, 1.25) both;
}

@keyframes homeV4Draw {
  from { stroke-dashoffset: 180; }
  to { stroke-dashoffset: 0; }
}

@keyframes homeV4Core {
  from { opacity: 0; scale: .2; }
  to { opacity: 1; scale: 1; }
}

.home-v4-mark-caption {
  position: absolute;
  z-index: 4;
  color: rgba(240, 238, 232, .44);
  font: 500 .58rem "DM Mono", monospace;
  letter-spacing: .09em;
}

.home-v4-mark-caption-a { left: 18px; top: 18px; }
.home-v4-mark-caption-b { right: 18px; top: 18px; color: var(--v4-acid); }
.home-v4-mark-caption-c { right: 18px; bottom: 74px; }

.home-v4-mark-field > p {
  position: absolute;
  z-index: 5;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(240, 238, 232, .15);
  font: .61rem "DM Mono", monospace;
  letter-spacing: .05em;
}

.home-v4-mark-field > p strong { color: var(--v4-paper); }
.home-v4-mark-field > p span { color: rgba(240, 238, 232, .42); text-align: right; }

.home-v4-biography {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--v4-line-light);
  border-left: 1px solid var(--v4-line-light);
}

.home-v4-biography > div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px 21px;
  border-right: 1px solid var(--v4-line-light);
  border-bottom: 1px solid var(--v4-line-light);
}

.home-v4-biography small {
  color: rgba(240, 238, 232, .38);
  font: .58rem "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-v4-biography strong {
  color: var(--v4-paper);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
}

.home-v4-scroll {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 15px;
  width: max-content;
  margin-top: 28px;
  color: rgba(240, 238, 232, .43);
  font: .6rem "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-v4-scroll i { width: 70px; height: 1px; background: rgba(240, 238, 232, .25); }
.home-v4-scroll strong { color: var(--v4-paper); font-weight: 500; }

/* Shared editorial heading for the light rooms. */
.home-v4-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .38fr);
  align-items: end;
  gap: clamp(46px, 8vw, 130px);
  margin-bottom: clamp(58px, 8vw, 110px);
}

.home-v4-section-heading h2 {
  max-width: 1040px;
  margin-top: 20px;
  color: var(--v4-ink);
  font-size: clamp(3.3rem, 6.2vw, 7.8rem);
  line-height: .89;
}

.home-v4-section-heading h2 em {
  color: #596d00;
}

.home-v4-section-heading > p {
  max-width: 58ch;
  color: rgba(17, 16, 14, .64);
  line-height: 1.75;
}

/* One decision, four professional lenses. */
.home-v4-role-lab {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 12vw, 185px) max(5vw, calc((100vw - 1540px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 91% 4%, rgba(217, 255, 67, .36), transparent 24rem),
    var(--v4-paper);
  color: var(--v4-ink);
}

.home-v4-role-lab::after {
  content: "4×1";
  position: absolute;
  right: -2vw;
  bottom: -3vw;
  color: rgba(17, 16, 14, .04);
  font: 800 clamp(9rem, 24vw, 28rem)/.7 "Manrope", sans-serif;
  letter-spacing: -.12em;
  pointer-events: none;
}

.home-v4-role-console {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(205px, .44fr) minmax(330px, .68fr) minmax(430px, 1fr);
  border: 1px solid var(--v4-line-dark);
  background: #fff;
  box-shadow: 0 35px 90px rgba(60, 44, 28, .11);
}

.home-v4-role-controls {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  border-right: 1px solid var(--v4-line-dark);
}

.home-v4-role-controls button {
  min-height: 120px;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-areas: "number role" "number question";
  align-content: center;
  gap: 6px 12px;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid var(--v4-line-dark);
  background: var(--v4-paper);
  color: rgba(17, 16, 14, .52);
  text-align: left;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, padding-left .25s ease;
}

.home-v4-role-controls button:last-child { border-bottom: 0; }
.home-v4-role-controls button > span { grid-area: number; color: #596d00; font: .62rem "DM Mono", monospace; }
.home-v4-role-controls button > strong { grid-area: role; color: var(--v4-ink); font-size: 1.08rem; }
.home-v4-role-controls button > small { grid-area: question; font: .58rem/1.45 "DM Mono", monospace; }

.home-v4-role-controls button[aria-pressed="true"] {
  padding-left: 28px;
  background: var(--v4-acid);
  color: rgba(17, 16, 14, .68);
}

.home-v4-role-map {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-right: 1px solid var(--v4-line-dark);
  background:
    linear-gradient(rgba(240, 238, 232, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 238, 232, .055) 1px, transparent 1px),
    var(--v4-ink);
  background-size: 38px 38px, 38px 38px, auto;
}

.home-v4-role-map::before,
.home-v4-role-map::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 72%;
  background: rgba(240, 238, 232, .12);
  transform: translate(-50%, -50%);
}

.home-v4-role-map::after {
  width: 72%;
  height: 1px;
}

.home-v4-role-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 255, 67, .36);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), border-radius .55s ease;
}

.home-v4-role-orbit::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px dashed rgba(240, 238, 232, .16);
  border-radius: inherit;
}

.home-v4-role-node {
  position: absolute;
  z-index: 2;
  padding: 7px 9px;
  border: 1px solid rgba(240, 238, 232, .2);
  background: var(--v4-ink);
  color: rgba(240, 238, 232, .52);
  font: .53rem "DM Mono", monospace;
  letter-spacing: .08em;
}

.home-v4-role-node-a { left: 7%; top: 14%; }
.home-v4-role-node-b { right: 7%; top: 25%; }
.home-v4-role-node-c { left: 10%; bottom: 18%; }
.home-v4-role-node-d { right: 9%; bottom: 10%; }

.home-v4-role-core {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 25px;
  height: 25px;
  background: var(--v4-acid);
  box-shadow: 0 0 0 18px rgba(217, 255, 67, .08), 0 0 34px rgba(217, 255, 67, .42);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: left .55s cubic-bezier(.2, .8, .2, 1), top .55s cubic-bezier(.2, .8, .2, 1), transform .55s ease;
}

.home-v4-role-map > strong {
  position: absolute;
  left: 50%;
  top: calc(50% + 47px);
  color: var(--v4-paper);
  font: 500 .65rem "DM Mono", monospace;
  letter-spacing: .12em;
  transform: translateX(-50%);
}

.home-v4[data-active-role="creacion"] .home-v4-role-orbit { border-radius: 14%; transform: translate(-50%, -50%) rotate(36deg); }
.home-v4[data-active-role="creacion"] .home-v4-role-core { left: 62%; top: 40%; transform: translate(-50%, -50%) rotate(90deg); }
.home-v4[data-active-role="sistemas"] .home-v4-role-orbit { border-radius: 0; transform: translate(-50%, -50%) rotate(45deg) scale(.82); }
.home-v4[data-active-role="sistemas"] .home-v4-role-core { left: 42%; top: 57%; transform: translate(-50%, -50%) rotate(135deg); }
.home-v4[data-active-role="codigo"] .home-v4-role-orbit { border-radius: 50% 12% 50% 12%; transform: translate(-50%, -50%) rotate(90deg) scale(.9); }
.home-v4[data-active-role="codigo"] .home-v4-role-core { left: 64%; top: 64%; transform: translate(-50%, -50%) rotate(180deg); }

.home-v4-role-panels {
  min-width: 0;
  background: #fff;
}

.home-v4-role-panels article {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px);
}

.home-v4-role-panels article[hidden] { display: none; }
.home-v4-role-panels article > p:first-child { color: #596d00; font: .61rem "DM Mono", monospace; letter-spacing: .1em; }
.home-v4-role-panels h3 { margin: 30px 0 24px; color: var(--v4-ink); font-size: clamp(2.3rem, 3.75vw, 4.8rem); line-height: .96; }
.home-v4-role-panels article > p:nth-of-type(2) { max-width: 61ch; color: rgba(17, 16, 14, .62); line-height: 1.72; }

.home-v4-role-panels dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 45px;
  border-top: 1px solid var(--v4-line-dark);
  border-left: 1px solid var(--v4-line-dark);
}

.home-v4-role-panels dl div {
  min-height: 112px;
  padding: 18px;
  border-right: 1px solid var(--v4-line-dark);
  border-bottom: 1px solid var(--v4-line-dark);
}

.home-v4-role-panels dt { margin-bottom: 10px; color: rgba(17, 16, 14, .44); font: .57rem "DM Mono", monospace; text-transform: uppercase; }
.home-v4-role-panels dd { color: var(--v4-ink); font-size: .85rem; line-height: 1.5; }

/* Field: physical craft and biographical proof. */
.home-v4-field {
  position: relative;
  min-height: 100svh;
  padding: 0 0 clamp(110px, 12vw, 180px);
  background: #191a17;
  color: var(--v4-paper);
}

.home-v4-biography-band {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--v4-ink);
  border-bottom: 1px solid var(--v4-ink);
  background: var(--v4-acid);
  color: var(--v4-ink);
}

.home-v4-biography-band p {
  width: max-content;
  padding: 18px 0 22px;
  font: 800 clamp(3.8rem, 9vw, 10rem)/.84 "Manrope", sans-serif;
  letter-spacing: -.075em;
  white-space: nowrap;
  transform: translate3d(var(--band-shift, -3vw), 0, 0);
}

.home-v4-field-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(55px, 9vw, 145px);
  padding: clamp(100px, 11vw, 165px) max(5vw, calc((100vw - 1540px) / 2)) 0;
}

.home-v4-field-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: polygon(0 5%, 94% 0, 100% 92%, 7% 100%);
  background: #0c0d0b;
  box-shadow: 0 45px 100px rgba(0, 0, 0, .32);
}

.home-v4-field-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06);
  transform: scale(1.025);
}

.home-v4-field-image figcaption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 7px;
  padding: 16px;
  background: rgba(17, 16, 14, .84);
  backdrop-filter: blur(14px);
}

.home-v4-field-image figcaption span { color: var(--v4-acid); font: .58rem "DM Mono", monospace; letter-spacing: .09em; }
.home-v4-field-image figcaption strong { color: var(--v4-paper); font-size: .82rem; }

.home-v4-field-copy h2 {
  max-width: 840px;
  margin: 24px 0 32px;
  color: var(--v4-paper);
  font-size: clamp(3.4rem, 6vw, 7.4rem);
  line-height: .89;
}

.home-v4-field-copy h2 em { color: var(--v4-acid); }
.home-v4-field-copy > p:not(.home-v4-kicker) { max-width: 63ch; color: rgba(240, 238, 232, .61); line-height: 1.76; }

.home-v4-field-copy blockquote {
  max-width: 800px;
  margin: 42px 0;
  padding: 29px 0 29px 30px;
  border-left: 5px solid var(--v4-acid);
  color: var(--v4-paper);
  font: 600 clamp(1.35rem, 2.1vw, 2.2rem)/1.35 "Manrope", sans-serif;
  letter-spacing: -.035em;
}

.home-v4-field-facts {
  border-top: 1px solid var(--v4-line-light);
}

.home-v4-field-facts > p {
  display: grid;
  grid-template-columns: 34px minmax(140px, .45fr) 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--v4-line-light);
}

.home-v4-field-facts span { color: var(--v4-acid); font: .59rem "DM Mono", monospace; }
.home-v4-field-facts strong { color: var(--v4-paper); font-size: .9rem; }
.home-v4-field-facts small { color: rgba(240, 238, 232, .47); line-height: 1.55; }

/* Mark anatomy: the identity becomes an explorable system. */
.home-v4-mark-story {
  position: relative;
  min-height: 120svh;
  display: grid;
  grid-template-columns: minmax(300px, .7fr) minmax(480px, 1.3fr);
  grid-template-areas: "heading theatre" "steps theatre";
  align-items: start;
  gap: clamp(50px, 7vw, 115px);
  padding: clamp(115px, 12vw, 185px) max(5vw, calc((100vw - 1540px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(217, 255, 67, .09), transparent 30rem),
    var(--v4-ink);
  color: var(--v4-paper);
}

.home-v4-mark-heading {
  grid-area: heading;
  align-self: end;
  max-width: 690px;
}

.home-v4-mark-heading h2 {
  margin: 24px 0 28px;
  color: var(--v4-paper);
  font-size: clamp(3.3rem, 5.7vw, 7rem);
  line-height: .9;
}

.home-v4-mark-heading h2 em { color: var(--v4-acid); }
.home-v4-mark-heading > p:last-child { max-width: 60ch; color: rgba(240, 238, 232, .61); line-height: 1.75; }

.home-v4-mark-theatre {
  grid-area: theatre;
  position: sticky;
  top: 108px;
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(240, 238, 232, .16);
  background: #0c0d0b;
  box-shadow: 0 45px 100px rgba(0, 0, 0, .35);
}

.home-v4-mark-theatre > svg {
  width: 100%;
  height: auto;
  display: block;
}

.home-v4-theatre-grid {
  stroke: rgba(240, 238, 232, .08);
  stroke-width: 1;
}

.home-v4-theatre-organic,
.home-v4-theatre-structure {
  fill: none;
  stroke: var(--v4-paper);
  stroke-width: 11;
  stroke-linecap: square;
  opacity: .2;
  transition: opacity .35s ease, stroke .35s ease, filter .35s ease;
}

.home-v4-theatre-organic { stroke-linejoin: round; }
.home-v4-theatre-structure { stroke-linejoin: miter; }
.home-v4-theatre-core { fill: var(--v4-acid); stroke: var(--v4-ink); stroke-width: 2; opacity: .28; transition: opacity .35s ease, filter .35s ease; }
.home-v4-theatre-opening { fill: none; stroke: var(--v4-acid); stroke-width: 2; stroke-dasharray: 7 9; opacity: .18; transition: opacity .35s ease; }
.home-v4-theatre-labels { fill: rgba(240, 238, 232, .42); font: 12px "DM Mono", monospace; letter-spacing: 2px; }

.home-v4-mark-story[data-active-mark="escuchar"] .home-v4-theatre-organic,
.home-v4-mark-story[data-active-mark="estructurar"] .home-v4-theatre-structure {
  stroke: var(--v4-paper);
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(240, 238, 232, .18));
}

.home-v4-mark-story[data-active-mark="decidir"] .home-v4-theatre-core {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(217, 255, 67, .78));
}

.home-v4-mark-story[data-active-mark="abrir"] :is(.home-v4-theatre-organic, .home-v4-theatre-structure) { opacity: .72; }
.home-v4-mark-story[data-active-mark="abrir"] .home-v4-theatre-opening { opacity: 1; }

.home-v4-mark-theatre figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-top: 1px solid rgba(240, 238, 232, .14);
  color: rgba(240, 238, 232, .42);
  font: .59rem/1.5 "DM Mono", monospace;
  letter-spacing: .06em;
}

.home-v4-mark-theatre figcaption strong { max-width: 320px; color: var(--v4-paper); text-align: right; }

.home-v4-mark-steps {
  grid-area: steps;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--v4-line-light);
  list-style: none;
}

.home-v4-mark-steps li {
  display: grid;
  grid-template-columns: 38px minmax(110px, .35fr) 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--v4-line-light);
  color: rgba(240, 238, 232, .42);
  cursor: default;
  transition: padding-left .25s ease, color .25s ease, border-color .25s ease;
}

.home-v4-mark-steps li > span { color: var(--v4-acid); font: .59rem "DM Mono", monospace; }
.home-v4-mark-steps li > strong { color: var(--v4-paper); font-size: .92rem; }
.home-v4-mark-steps li > p { line-height: 1.6; }
.home-v4-mark-steps li:is(.is-narrative-active, :hover, :focus-visible) { padding-left: 10px; border-color: rgba(217, 255, 67, .52); color: rgba(240, 238, 232, .8); outline: none; }

/* Five asymmetric doors replace a generic sitemap/card grid. */
.home-v4-doors {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 12vw, 185px) max(4vw, calc((100vw - 1680px) / 2));
  background: var(--v4-paper);
  color: var(--v4-ink);
}

.home-v4-door-grid {
  display: flex;
  align-items: stretch;
  min-height: 560px;
  border: 1px solid var(--v4-line-dark);
  background: var(--v4-ink);
}

.home-v4-door {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 42px);
  border-right: 1px solid var(--v4-line-dark);
  color: var(--v4-ink);
  transition: flex .45s cubic-bezier(.2, .8, .2, 1), transform .3s ease, filter .3s ease;
}

.home-v4-door:last-child { border-right: 0; }
.home-v4-door > span { font: .58rem "DM Mono", monospace; letter-spacing: .08em; }
.home-v4-door h3 { margin-top: auto; font-size: clamp(1.7rem, 2.75vw, 3.8rem); line-height: .94; }
.home-v4-door p { min-height: 110px; margin-top: 22px; color: currentColor; opacity: .6; line-height: 1.62; }
.home-v4-door b { position: absolute; right: 22px; top: 20px; font: 1.1rem "DM Mono", monospace; }
.home-v4-door-about { background: #fff; }
.home-v4-door-career { background: var(--v4-paper-deep); }
.home-v4-door-method { background: var(--v4-acid); }
.home-v4-door-lab { background: var(--v4-ink); color: var(--v4-paper); }
.home-v4-door-ideas { background: var(--v4-coral); }

/* Closing: one direct question on the signal colour. */
.home-v4-closing {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 12vw, 180px) max(5vw, calc((100vw - 1540px) / 2));
  overflow: hidden;
  background: var(--v4-acid);
  color: var(--v4-ink);
}

.home-v4-closing > img {
  position: absolute;
  right: -8vw;
  bottom: -22vw;
  width: min(67vw, 980px);
  height: auto;
  opacity: .095;
  transform: rotate(-7deg);
  pointer-events: none;
}

.home-v4-closing > div {
  position: relative;
  z-index: 2;
  max-width: 1320px;
}

.home-v4-closing h2 {
  max-width: 1270px;
  margin: 25px 0 34px;
  color: var(--v4-ink);
  font-size: clamp(3.8rem, 7.4vw, 9rem);
  line-height: .86;
}

.home-v4-closing h2 em {
  display: block;
  color: var(--v4-cobalt);
}

.home-v4-closing > div > p:not(.home-v4-kicker) {
  max-width: 720px;
  color: rgba(17, 16, 14, .66);
  font-size: 1.06rem;
  line-height: 1.75;
}

@media (hover: hover) and (pointer: fine) {
  .home-v4-button:hover { transform: translateY(-3px); }
  .home-v4-button-ghost:hover { background: var(--v4-paper); color: var(--v4-ink); }
  .home-v4-button-primary:hover { background: #fff; border-color: #fff; }
  .home-v4-role-controls button:hover:not([aria-pressed="true"]) { padding-left: 26px; background: #fff; }
  .home-v4-door:hover,
  .home-v4-door:focus-visible { z-index: 2; flex-grow: 1.55; transform: translateY(-10px); filter: saturate(1.06); }
}

@media (max-width: 1260px) {
  .home-v4-hero-grid { grid-template-columns: minmax(0, 1.16fr) minmax(370px, .84fr); gap: 52px; }
  .home-v4-role-console { grid-template-columns: 220px minmax(300px, .62fr) minmax(380px, 1fr); }
  .home-v4-role-panels dl { grid-template-columns: 1fr; }
  .home-v4-role-panels dl div { min-height: auto; }
  .home-v4-door-grid { min-height: 520px; }
}

@media (max-width: 1040px) {
  .home-v4-hero { padding-top: 125px; }
  .home-v4-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .home-v4-hero-copy { max-width: 990px; }
  .home-v4-mark-field { min-height: 620px; }
  .home-v4-biography { grid-template-columns: 1fr 1fr; }
  .home-v4-section-heading { grid-template-columns: 1fr; gap: 30px; }
  .home-v4-role-console { grid-template-columns: minmax(190px, .38fr) minmax(0, 1fr); }
  .home-v4-role-controls { grid-row: 1 / span 2; }
  .home-v4-role-map { min-height: 500px; border-right: 0; border-bottom: 1px solid var(--v4-line-dark); }
  .home-v4-role-panels article { min-height: 520px; }
  .home-v4-field-grid { grid-template-columns: 1fr; }
  .home-v4-field-image { aspect-ratio: 16 / 10; }
  .home-v4-mark-story { min-height: auto; grid-template-columns: 1fr; grid-template-areas: "heading" "theatre" "steps"; }
  .home-v4-mark-theatre { position: relative; top: auto; }
  .home-v4-door-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: auto; }
  .home-v4-door { min-height: 390px; border-bottom: 1px solid var(--v4-line-dark); }
  .home-v4-door:last-child { grid-column: 1 / -1; min-height: 330px; }
}

@media (max-width: 760px) {
  .home-v4-hero,
  .home-v4-role-lab,
  .home-v4-mark-story,
  .home-v4-doors,
  .home-v4-closing {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-v4-hero h1 { font-size: clamp(3.6rem, 16.5vw, 6.3rem); }
  .home-v4-hero h1 > span:nth-child(2),
  .home-v4-hero h1 > em { padding-left: 0; }
  .home-v4-mark-field { min-height: 510px; }
  .home-v4-mark-field > p { flex-direction: column; gap: 7px; }
  .home-v4-mark-field > p span { text-align: left; }
  .home-v4-mark-caption-c { bottom: 102px; }
  .home-v4-biography { grid-template-columns: 1fr; }
  .home-v4-biography > div { min-height: 76px; }
  .home-v4-scroll i { width: 38px; }
  .home-v4-section-heading h2 { font-size: clamp(3.1rem, 13vw, 5.7rem); }
  .home-v4-role-console { grid-template-columns: 1fr; }
  .home-v4-role-controls { grid-row: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; border-right: 0; border-bottom: 1px solid var(--v4-line-dark); }
  .home-v4-role-controls button { min-height: 108px; border-right: 1px solid var(--v4-line-dark); }
  .home-v4-role-map { min-height: 430px; }
  .home-v4-role-panels article { min-height: auto; padding: 38px 22px; }
  .home-v4-role-panels h3 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .home-v4-field-grid { padding-left: 20px; padding-right: 20px; }
  .home-v4-field-image { aspect-ratio: 4 / 5; }
  .home-v4-field-copy h2 { font-size: clamp(3.2rem, 13vw, 5.6rem); }
  .home-v4-field-facts > p { grid-template-columns: 30px 1fr; }
  .home-v4-field-facts small { grid-column: 2; }
  .home-v4-mark-theatre figcaption { flex-direction: column; }
  .home-v4-mark-theatre figcaption strong { text-align: left; }
  .home-v4-mark-steps li { grid-template-columns: 32px 1fr; }
  .home-v4-mark-steps li p { grid-column: 2; }
  .home-v4-door-grid { grid-template-columns: 1fr; }
  .home-v4-door,
  .home-v4-door:last-child { grid-column: auto; min-height: 310px; }
  .home-v4-door p { min-height: auto; }
  .home-v4-closing h2 { font-size: clamp(3.2rem, 14vw, 5.6rem); }
  .home-v4-closing > img { right: -32vw; bottom: -14vw; width: 110vw; }
}

@media (max-width: 500px) {
  .home-v4-hero { padding-top: 112px; }
  .home-v4-actions { display: grid; }
  .home-v4-button { width: 100%; }
  .home-v4-mark-field { min-height: 420px; }
  .home-v4-hero-mark { width: 84%; }
  .home-v4-mark-caption { font-size: .5rem; }
  .home-v4-role-controls { grid-template-columns: 1fr; }
  .home-v4-role-controls button { border-right: 0; }
  .home-v4-role-map { min-height: 370px; }
  .home-v4-field-image figcaption { left: 12px; right: 12px; bottom: 12px; }
  .home-v4-biography-band p { font-size: 3.5rem; }
  .home-v4-mark-story { padding-top: 90px; padding-bottom: 90px; }
  .home-v4-door { min-height: 280px; }
  body.personal-home-v4 .personal-footer { grid-template-columns: auto 1fr; }
  body.personal-home-v4 .personal-footer > p { grid-column: 2; text-align: left !important; }
  body.personal-home-v4 .personal-footer > p:nth-child(2) { display: none; }
}

html:not(.js) .home-v4-role-controls,
html:not(.js) .home-v4-role-map {
  display: none;
}

html:not(.js) .home-v4-role-console {
  grid-template-columns: 1fr;
}

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

  .home-v4-hero-mark,
  .home-v4-biography-band p,
  .home-v4-door:hover,
  .home-v4-door:focus-visible {
    transform: none !important;
  }
}
