/* Home: the gallery wall with two doors */

.wall {
  min-height: 100svh;
  padding: clamp(96px, 13vh, 132px) var(--m) clamp(32px, 5vh, 56px);
  grid-template-rows: auto 1fr;
  row-gap: clamp(24px, 4vh, 44px);
  align-content: start;
}
.door { position: relative; display: block; text-decoration: none; color: var(--ink); }
.door .print { transition: transform 700ms var(--ease-out); }
.door .print img { transition: transform 1200ms var(--ease-out), filter 600ms ease; }
.door__label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.door__label h2 { font-size: var(--t-h3); }
.door__arrow {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--purple); /* taste-skill-ignore: outline ring of the door arrow */
  transition: background-color 300ms ease, color 300ms ease, transform 500ms var(--ease-out);
}
.door__arrow svg { width: 18px; height: 18px; }
.door__note { font-size: var(--t-small); color: var(--muted); margin-top: 4px; }
.door:active .print { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .door:hover .print img { transform: scale(1.045); }
  .door:hover .door__arrow { background: var(--purple); color: var(--ivory); transform: translateX(6px); }
  .wall:has(.door:hover) .door:not(:hover) .print img { filter: saturate(0.6) brightness(0.96); }
}

.door--pedi .print img { view-transition-name: door-pedi; }
.door--este .print img { view-transition-name: door-este; }

.wall__title { grid-column: 1 / 13; grid-row: 1; font-size: var(--t-display); white-space: nowrap; }
.wall__aside { grid-column: 1 / 4; grid-row: 2; display: grid; gap: 24px; align-content: start; padding-top: 8px; }
.wall__aside .lede { max-width: 24ch; }
/* Real facts close the space under the button, aligned with the foot of the doors */
.wall__facts { grid-column: 1 / 4; grid-row: 2; align-self: end; margin: 0; display: grid; gap: 14px; font-size: var(--t-small); }
.wall__facts dt { color: var(--gold-ink); font-weight: 500; }
.wall__facts dd { margin: 2px 0 0; color: var(--ink); }
/* Two equal doors, side by side, closing the right margin */
.wall__doors { grid-column: 4 / 13; grid-row: 2; display: flex; justify-content: center; align-items: flex-start; gap: clamp(32px, 5vw, 96px); }
/* keep both doors and their labels on the first screen on shorter desktops */
.door { --pw: min(calc((100vw - 2 * var(--m)) * 0.28), calc((100svh - 380px) * 0.625)); }
.door .print, .door .door__label, .door .door__note { width: var(--pw); }
.door .print.oval { margin: 7px; width: calc(var(--pw) - 14px); }

@media (max-width: 860px) {
  .wall { display: flex; flex-direction: column; padding-top: 88px; row-gap: 0; min-height: 0; }
  .wall__title { white-space: normal; font-size: var(--t-display); }
  .wall__aside { margin-top: 16px; gap: 20px; }
  .wall__facts { margin-top: 40px; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .wall__facts div:first-child { grid-column: 1 / -1; }
  .wall__aside .lede { max-width: 30ch; }
  .wall__doors { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 14px; margin-top: 36px; }
  .door--pedi { grid-column: 1 / 7; grid-row: 1; }
  .door--este { grid-column: 7 / 13; grid-row: 1; }
  .door { --pw: 100%; }
  .door__label { margin-top: 12px; align-items: flex-start; }
  .door__label h2 { font-size: var(--t-lede); line-height: 1.12; }
  .door__arrow { display: none; }
  .door__note { font-size: var(--t-small); }
}

/* Intro section: headline crossing onto a photograph */
.cross { padding-top: var(--section); position: relative; }
.cross__photo { grid-column: 7 / 13; grid-row: 1 / 4; margin-right: calc(var(--m) * -1); }
.cross h2 { grid-column: 1 / 7; max-width: 14ch; grid-row: 1; align-self: start; margin-top: clamp(40px, 12vw, 180px); position: relative; z-index: 2; font-size: var(--t-h2); line-height: 1.02; }

.cross__text { grid-column: 1 / 6; grid-row: 2; margin-top: 36px; display: grid; gap: 18px; max-width: 44ch; }
.cross__small { grid-column: 2 / 4; grid-row: 3; margin-top: 72px; }
@media (max-width: 860px) {
  .cross__photo { grid-column: 3 / 13; grid-row: 2; margin-top: 28px; }
  .cross h2 { grid-column: 1 / 13; margin-top: 0; font-size: var(--t-h2); }
  .cross__text { grid-column: 1 / 13; grid-row: 3; }
  .cross__small { grid-column: 1 / 6; grid-row: 4; margin: 48px 0 0 7px; }
}

/* Her two roles: the name holds on the left while the portraits pass on the right */
.roles { margin-top: var(--section); align-items: start; }
.roles__pin { grid-column: 1 / 7; position: sticky; top: var(--pin-top, 15svh); display: grid; align-content: start; gap: 28px; }
.roles__pin h2 { font-size: var(--t-display); line-height: 0.88; }
.roles__firma { width: min(100%, 500px); }
.roles__firma img { width: 100%; }
/* Her signature writes itself when the section arrives, echoing the intro */
.js [data-write] img { clip-path: inset(0 100% 0 0); }
.js [data-write].is-in img { clip-path: inset(0 0 0 0); transition: clip-path 1800ms cubic-bezier(0.45, 0, 0.25, 1) 150ms; }
@media (prefers-reduced-motion: reduce) { .js [data-write] img { clip-path: none; } }
.roles__pin p { max-width: 36ch; }
.roles__list { grid-column: 8 / 13; display: grid; gap: 18svh; padding-block: 10svh 22svh; }
.role { width: 88%; }
.role h3 { margin-top: 18px; font-size: var(--t-h3); }
.role p { margin-top: 6px; max-width: 34ch; }
@media (max-width: 860px) {
  .roles__pin { grid-column: 1 / 13; position: static; height: auto; }
  .roles__pin h2 { font-size: var(--t-display); }
  .roles__list { grid-column: 1 / 13; padding-block: 48px 0; gap: 56px; }
  .role { width: 82%; }
}

/* Booking composer */
.agenda { margin-top: var(--section); background: var(--sand); padding-block: clamp(80px, 10vw, 150px); }
.agenda__head { grid-column: 1 / 7; display: grid; gap: 16px; margin-bottom: 48px; }
.agenda__form { grid-column: 1 / 7; display: grid; gap: 36px; }
.agenda__preview { grid-column: 8 / 13; grid-row: 1 / 3; align-self: start; position: sticky; top: 110px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: var(--t-body); font-weight: 500; color: var(--ink); margin-bottom: 14px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--ivory); color: var(--ink); cursor: pointer; font-size: var(--t-body);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.choice span:active { transform: scale(0.97); }
.choice input:checked + span { background: var(--purple); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .choice input:not(:checked) + span:hover { background: var(--white); } }
.choices--big .choice span { min-height: 56px; padding: 0 28px; font-family: var(--display); font-size: var(--t-lede); }
.fields { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; font-size: var(--t-small); color: var(--muted); }
.field input {
  min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1.5px solid transparent;
  background: var(--ivory); font-size: var(--t-body); color: var(--ink);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.field input::placeholder { color: #8a7d8e; }
.field input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field[hidden] { display: none; }

.bubble-card { background: var(--white); padding: clamp(22px, 2.4vw, 32px); border-radius: 28px; display: grid; gap: 20px; }
.bubble-card__who { display: flex; align-items: center; gap: 14px; }
.bubble-card__who .mono { width: 46px; height: 46px; border-radius: 999px; background: var(--ivory); display: grid; place-items: center; }
.bubble-card__who .mono img { width: 16px; }
.bubble-card__who strong { display: block; font-weight: 500; font-size: var(--t-body); }
.bubble-card__who small { font-size: var(--t-small); color: var(--muted); }
.bubble {
  background: var(--sand); border-radius: 22px 22px 6px 22px; padding: 18px 20px;
  font-size: var(--t-body); line-height: 1.5; min-height: 132px; white-space: pre-line;
}
.bubble b { font-weight: 500; color: var(--purple); }
.bubble .swap { display: inline; transition: filter 200ms ease, opacity 200ms ease; }
.bubble.is-swapping .swap { filter: blur(2px); opacity: 0.6; }
.bubble-card .btn { width: 100%; }
.bubble-card .small { text-align: center; }
@media (max-width: 860px) {
  .agenda__head, .agenda__form, .agenda__preview { grid-column: 1 / 13; }
  .agenda__preview { grid-row: auto; position: static; margin-top: 40px; }
  .fields { grid-template-columns: 1fr; }
}

/* Before you come: questions beside a tall photograph, on the plum field */
.faq { background: var(--plum); color: var(--on-plum); padding-block: clamp(80px, 10vw, 160px); overflow: hidden; }
.faq h2 { color: var(--on-plum); }
.faq__col { grid-column: 1 / 6; grid-row: 1; display: grid; gap: 32px; align-content: start; align-self: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0; font-size: var(--t-body); }
.facts dt { color: var(--gold-light); font-size: var(--t-small); }
.facts dd { margin: 2px 0 0; }
.facts a { color: var(--on-plum); text-decoration-color: color-mix(in srgb, var(--gold-light) 60%, transparent); text-underline-offset: 0.22em; }
.qa { display: grid; gap: 4px; }
.qa details { padding-block: 12px; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: var(--t-lede); min-height: 44px; color: var(--on-plum);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 14px; height: 14px; position: relative; transition: transform 300ms var(--ease-out); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--gold-light); }
.qa summary i::after { transform: rotate(90deg); transition: transform 300ms var(--ease-out); }
.qa details[open] summary i::after { transform: rotate(0deg); }
.qa details p { margin-top: 8px; color: var(--on-plum-muted); font-size: var(--t-body); max-width: 48ch; }
.faq__photos { grid-column: 7 / 13; grid-row: 1; justify-self: end; width: min(100%, calc(86svh * 0.75)); position: relative; margin-top: calc(clamp(80px, 10vw, 160px) * -1); padding-bottom: 80px; }
.faq__photos .tall { width: 100%; }
.faq__photos .sq { position: absolute; width: 30%; left: -48px; bottom: 24px; }
@media (max-width: 860px) {
  .faq__photos { grid-column: 1 / 13; grid-row: 1; width: 100%; margin-top: 0; margin-bottom: 48px; padding-bottom: 0; }
  .faq__photos .tall { width: 76%; margin-left: auto; }
  .faq__photos .sq { left: 7px; bottom: 28px; width: 34%; }
  .faq__col { grid-column: 1 / 13; grid-row: 2; }
}

/* Closing band */
.close { padding-block: clamp(120px, 12vw, 180px) clamp(96px, 9vw, 130px); align-items: start; }
.close__line { grid-column: 1 / 6; font-family: var(--display); color: var(--purple); font-size: var(--t-h3); line-height: 1.3; max-width: 22ch; }
.close__portrait { grid-column: 7 / 9; margin: 7px; }
.close__links { grid-column: 10 / 13; display: grid; gap: 12px; font-size: var(--t-body); }
.close__links h2 { font-size: var(--t-h3); }
@media (max-width: 860px) {
  .close__line { grid-column: 1 / 13; font-size: var(--t-h3); margin-bottom: 32px; }
  .close__portrait { grid-column: 1 / 5; }
  .close__links { grid-column: 6 / 13; align-self: center; }
}

/* Booking on phones: one question at a time */
.agenda__form.is-steps { gap: 28px; }
.agenda__form.is-steps fieldset { display: none; }
.agenda__form.is-steps fieldset.is-current { display: block; animation: step-in 280ms var(--ease-out); }
.agenda__form.is-steps fieldset:focus { outline: none; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
.steps-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps-bar span { height: 4px; border-radius: 999px; background: var(--sand-deep); transition: background-color 300ms ease; }
.steps-bar span.is-done { background: var(--purple); }
.steps-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.steps-nav .btn { margin-left: auto; }
.steps-back { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--purple); font-size: var(--t-body); font-weight: 500; cursor: pointer; }
.steps-back[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .agenda__form.is-steps fieldset.is-current { animation: none; } }

/* Phones: one centred column — every heading, text block and photograph sits on the middle axis */
@media (max-width: 860px) {
  .wall { align-items: center; text-align: center; }
  .wall__aside { justify-items: center; }
  .wall__aside .lede { margin-inline: auto; }
  .wall__doors { width: 100%; text-align: left; }
  .wall__facts { width: 100%; text-align: center; }

  .cross { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .cross h2 { max-width: 14ch; align-self: center; text-align: center; }
  .cross__photo { width: 84%; margin: 32px 0 0; }
  .cross__text { margin-top: 32px; max-width: 34ch; }
  .cross__small { width: 46%; margin: 48px 0 0; }

  .roles { text-align: center; }
  .roles__pin { justify-items: center; }
  .roles__firma { width: 92%; }
  .roles__pin p { margin-inline: auto; }
  .roles__list { justify-items: center; }
  .role { width: 84%; }
  .role p { margin-inline: auto; }

  .agenda__head { text-align: center; justify-items: center; }
  .agenda .choices, .steps-bar { justify-content: center; }
  .agenda legend { width: 100%; text-align: center; }

  .faq h2, .faq .facts { text-align: center; }
  .faq__photos .tall { width: 76%; margin-inline: auto; }
  .faq__photos .sq { left: 2%; }

  .close { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .close__line { margin-inline: auto; }
  .close__portrait { width: 44%; margin: 0 0 28px; }
  .close__links { justify-items: center; }

  .footer__body { align-items: center; text-align: center; }
  .footer__menu { justify-items: center; }
}

/* How to get there: the address beside a live map of the street */
.map { padding-top: var(--section); align-items: center; }
.map__info { grid-column: 1 / 6; display: grid; gap: 28px; align-content: center; }
.map address { font-style: normal; font-size: var(--t-lede); line-height: 1.5; color: var(--ink); }
.map__place { font-family: var(--display); font-size: var(--t-h3); color: var(--purple); margin-bottom: -16px; }
.map__actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.map__frame { grid-column: 7 / 13; margin: 0; background: var(--sand); aspect-ratio: 4 / 3; overflow: hidden; }
.map__frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(0.75) sepia(0.12); }
.footer__addr { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .map { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .map__info { justify-items: center; }
  .map__actions { justify-content: center; flex-direction: column; }
  .map__frame { width: 100%; aspect-ratio: 1 / 1; margin-top: 36px; }
}

/* Her own words under the signature */
.roles__bio { display: grid; gap: 12px; max-width: 58ch; }
.roles__pin .roles__bio p { max-width: none; }
.roles__lead { font-size: var(--t-lede); color: var(--ink); }
.roles__close { font-family: var(--display); font-size: var(--t-h3); line-height: 1.3; color: var(--purple); }

.roles__years { color: var(--gold-ink); }
.roles__years strong { font-family: var(--display); font-weight: 400; font-size: var(--t-h3); color: var(--purple); margin-right: 6px; }

/* Formación: a real chronology, so the year leads each row */
.studies { margin-top: var(--section); padding-block: clamp(80px, 10vw, 150px); align-items: start; row-gap: 48px; background: var(--plum); color: var(--on-plum); }
.studies h2, .studies__list h3 { color: var(--ivory); }
.studies__head p, .studies__list p { color: var(--on-plum-muted); }
.studies__year { color: var(--gold-light) !important; }
.studies__head { grid-column: 1 / 5; position: sticky; top: 120px; display: grid; gap: 18px; }
.studies__head p { max-width: 32ch; }
.studies__list { grid-column: 6 / 13; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.studies__list li { display: grid; grid-template-columns: 8rem 1fr; gap: 24px; padding-block: 28px; align-items: baseline; }
.studies__list li + li { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold-light) 30%, transparent); } /* taste-skill-ignore: a timeline needs its row divisions */
.studies__year { font-family: var(--display); font-size: var(--t-h3); color: var(--gold-display); }
.studies__list h3 { font-size: var(--t-h3); }
.studies__list p { margin-top: 6px; color: var(--on-plum-muted); }
.studies__more { grid-column: 6 / 13; background: var(--plum-soft); padding: clamp(24px, 3vw, 40px); }
.studies__more h3 { font-size: var(--t-lede); font-family: var(--text); font-weight: 500; color: var(--gold-light); margin-bottom: 12px; }
.studies__more ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.studies__more li::marker { color: var(--gold-light); }
@media (max-width: 860px) {
  .studies { display: flex; flex-direction: column; align-items: center; text-align: center; row-gap: 0; }
  .studies__head { position: static; justify-items: center; margin-bottom: 24px; }
  .studies__head p { margin-inline: auto; }
  .studies__list { width: 100%; }
  .studies__list li { grid-template-columns: 1fr; gap: 6px; justify-items: center; padding-block: 22px; }
  .studies__more { width: 100%; margin-top: 24px; text-align: center; }
  .studies__more ul { list-style: none; padding: 0; }
  .roles__bio { margin-inline: auto; }
}

/* Coloured bands that follow each other touch: no ivory strip between Formación and the booking band */
.studies + .agenda { margin-top: 0; }

/* Phones: the hero facts sit in one soft card instead of loose lines */
@media (max-width: 860px) {
  .wall__facts { background: var(--white); border-radius: 24px; padding: 20px 18px; gap: 16px 12px; }
  .roles__list { grid-column: 1 / 13; }
  .faq .facts { grid-template-columns: 1fr; gap: 14px; }
  .cross__photo { border-radius: 24px; }
}

/* Book teaser: one slim card that leads to the book's own page */
.book { padding-block: clamp(64px, 8vw, 120px); }
.book__card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  max-width: 980px; margin-inline: auto; padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px);
  background: var(--sand); border-radius: 28px; text-decoration: none; color: var(--ink);
  transition: transform 300ms var(--ease-out);
}
.book__card:active { transform: scale(0.99); }
.book__cover {
  position: relative; width: clamp(120px, 12vw, 170px); aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px;
  background: var(--plum); color: var(--gold-light);
  display: grid; align-content: center; justify-items: center; gap: 10px; padding: 18px 12px; text-align: center;
  transform: rotate(-4deg); transition: transform 500ms var(--ease-out);
}
.book__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; background: rgba(0, 0, 0, 0.28); border-radius: 4px 0 0 4px; }
.book__cover::after { content: ""; position: absolute; inset: 8px 8px 8px 16px; outline: 1px solid color-mix(in srgb, var(--gold-light) 55%, transparent); border-radius: 2px; } /* taste-skill-ignore: the printed gold frame of the book cover */
.book__cover img { width: 30px; filter: brightness(0) invert(84%) sepia(30%) saturate(400%) hue-rotate(5deg); }
.book__cover-type { width: 100%; overflow: visible; }
.book__cover-type .t { font-family: var(--display); font-size: 17px; fill: var(--ivory); }
.book__cover-type .a { font-family: var(--text); font-size: 9px; letter-spacing: 0.04em; fill: var(--gold-light); }
.book__text { display: grid; gap: 12px; justify-items: start; }
.book__text h2 { font-size: var(--t-h2); }
.book__text p { max-width: 40ch; font-size: var(--t-lede); }
.book__text .btn { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  .book__card:hover .book__cover { transform: rotate(0deg) translateY(-4px); }
  .book__card:hover .btn { background: var(--purple-press); }
}
@media (max-width: 860px) {
  .book__card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 32px 22px; }
  .book__text { justify-items: center; }
  .book__text p { margin-inline: auto; }
}

.book + .studies { margin-top: 0; }
