@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/fonts/libre-caslon-text-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/fonts/libre-caslon-text-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #f6f3ee;
  --ink: #242424;
  --muted: #666;
  --line: #dedad3;
  --accent: #63323e;
  --sans: Manrope, sans-serif;
  --serif: "Libre Caslon Text", serif;
  --gutter: clamp(22px, 4.4vw, 76px);
}
[data-palette="heritage"] {
  --paper: #f5f4f0;
  --ink: #252525;
  --muted: #626262;
  --line: #dcddd8;
  --accent: #4f5a4b;
  --accent-secondary: #6b3542;
}
[data-palette="gallery"] {
  --paper: #fafafa;
  --ink: #202020;
  --muted: #666;
  --line: #ddd;
  --accent: #5f7386;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* Recorrido público único: Inicio, Sobre David, Hablemos e Historias comparten documento. */
.journey-root {
  --journey-duration: 720ms;
  --journey-easing: cubic-bezier(.65, 0, .2, 1);
  position: relative;
  overflow-x: clip;
}
.journey-home-plane,
.journey-screen {
  will-change: transform;
  backface-visibility: hidden;
}
.journey-home-plane {
  position: relative;
  z-index: 0;
  transform: translate3d(0, 0, 0);
}
.journey-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(100vw, 0, 0);
}
.journey-screen-stories {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.journey-root[data-journey-index="1"] .journey-home-plane,
.journey-root[data-journey-index="2"] .journey-home-plane,
.journey-root[data-journey-index="3"] .journey-home-plane { visibility: hidden; }
.journey-root[data-journey-index="1"] .journey-screen-about,
.journey-root[data-journey-index="2"] .journey-screen-contact,
.journey-root[data-journey-index="3"] .journey-screen-stories {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}
body.journey-away {
  height: 100svh;
  overflow: hidden;
}
body:not(.journey-about-active) > .page-scrollbar {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .journey-home-plane,
  .journey-screen { scroll-behavior: auto; }
}
@view-transition {
  navigation: auto;
}
html[data-screen-direction="forward"]::view-transition-old(root) {
  animation: db-screen-out-left 720ms cubic-bezier(.65, 0, .2, 1) both;
}
html[data-screen-direction="forward"]::view-transition-new(root) {
  animation: db-screen-in-right 720ms cubic-bezier(.65, 0, .2, 1) both;
}
html[data-screen-direction="backward"]::view-transition-old(root) {
  animation: db-screen-out-right 720ms cubic-bezier(.65, 0, .2, 1) both;
}
html[data-screen-direction="backward"]::view-transition-new(root) {
  animation: db-screen-in-left 720ms cubic-bezier(.65, 0, .2, 1) both;
}
@keyframes db-screen-out-left { to { transform: translateX(-100%); } }
@keyframes db-screen-in-right { from { transform: translateX(100%); } }
@keyframes db-screen-out-right { to { transform: translateX(100%); } }
@keyframes db-screen-in-left { from { transform: translateX(-100%); } }
html.has-page-scrollbar {
  scrollbar-width: none;
}
html.has-page-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  background: transparent;
  border: 0;
  padding: 0;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
}
h1 {
  font-size: clamp(48px, 6.5vw, 108px);
  letter-spacing: -0.05em;
}
h2 {
  font-size: clamp(32px, 4vw, 66px);
  letter-spacing: -0.04em;
}
p + p {
  margin-top: 1.4em;
}
img {
  display: block;
  max-width: 100%;
}
.eyebrow {
  font: 500 10px/1.6 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.text-link {
  display: inline-block;
  font-size: 12px;
  border-bottom: 0;
  padding: 0;
  margin-top: 32px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 100;
  background: var(--paper);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.page-scrollbar {
  position: fixed;
  z-index: 88;
  top: 7px;
  right: 0;
  bottom: 7px;
  width: 18px;
  display: grid;
  grid-template-rows: 14px 1fr 14px;
  color: var(--accent);
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 35%));
}
.page-scrollbar[hidden] {
  display: none;
}
.page-scrollbar.is-local-scrollbar {
  position: fixed;
}
.page-scrollbar > button {
  width: 18px;
  height: 14px;
  display: grid;
  place-items: center;
  color: inherit;
}
.page-scrollbar-track {
  position: relative;
  width: 18px;
  min-height: 40px;
  background: transparent;
  touch-action: none;
}
.page-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 7px;
  width: 4px;
  min-height: 38px;
  border-radius: 0;
  background: currentColor;
  cursor: grab;
  touch-action: none;
  will-change: transform;
}
.page-scrollbar-thumb:active {
  cursor: grabbing;
}
.is-scrollbar-dragging,
.is-scrollbar-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}
.page-scrollbar-thumb:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}
.preview-banner {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px 16px;
  background: #63323e;
  color: #fff;
  font-size: 11px;
  text-align: center;
}
.preview-banner a {
  text-decoration: none;
  margin-left: 18px;
}
.preview-banner ~ .site-header,
.preview-banner ~ .story-header {
  margin-top: 28px;
}
.photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-cover {
  object-fit: cover;
}
.brand {
  display: block;
  width: 210px;
}
.brand img {
  width: 100%;
  height: 40px;
  object-fit: contain;
}
.site-header {
  height: 116px;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header nav {
  display: flex;
  gap: 38px;
  font-size: 12px;
}
.site-header a[aria-current] {
  text-decoration: none;
  color: var(--ink);
}
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.site-footer a {
  border-bottom: 0;
}
.site-footer .site-footer-signature { border-bottom: 0; }
.site-footer-signature {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
}
.site-footer-signature img {
  display: block;
  width: clamp(74px, 6.5vw, 104px);
  height: auto;
}
.site-footer-contact {
  justify-self: center;
  text-align: center;
  transition: opacity 180ms ease;
}
.site-footer-contact:hover,
.site-footer-contact:focus-visible {
  opacity: .62;
}
.site-footer-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  gap: 8px;
}
/* Hero: responsive visual crop explicitly authorized on 2026-10-13. Originals stay intact. */
.hero {
  --hero-ui-opacity: 1;
  height: 100svh;
  width: 100vw;
  min-height: 500px;
  position: relative;
  background: #141414;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.page-home {
  overflow-x: clip;
}
.page-home:not(.hero-edit-mode) .hero {
  position: sticky;
  top: 0;
  z-index: 0;
}
.page-home:not(.hero-edit-mode) .hero-brand,
.page-home:not(.hero-edit-mode) .hero-nav,
.page-home:not(.hero-edit-mode) .hero-playback {
  translate: 0 var(--hero-exit-shift, 0px);
  will-change: translate;
}
.hero-images,
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image .photo {
  object-fit: contain;
}
.hero-image[hidden] {
  display: none;
}
.hero-image {
  z-index: 0;
}
.hero-image.is-current {
  z-index: 1;
}
.hero-image.is-zooming .photo {
  animation: hero-drift var(--hero-drift, 10200ms) linear both;
  transform-origin: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%);
  will-change: transform;
}
.hero.is-paused .hero-image.is-zooming .photo {
  animation-play-state: paused;
}
@property --hero-reveal {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.hero-image.is-entering {
  z-index: 2;
  mask-image: radial-gradient(
    ellipse at 38% 50%,
    #000 max(0%, calc(var(--hero-reveal) - 60%)),
    #0008 max(0%, calc(var(--hero-reveal) - 35%)),
    transparent var(--hero-reveal)
  );
  -webkit-mask-image: radial-gradient(
    ellipse at 38% 50%,
    #000 max(0%, calc(var(--hero-reveal) - 60%)),
    #0008 max(0%, calc(var(--hero-reveal) - 35%)),
    transparent var(--hero-reveal)
  );
  animation: organic-reveal var(--hero-transition)
    cubic-bezier(0.22, 0.6, 0.22, 1) both;
}
.hero-top,
.hero-bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 4;
  display: flex;
  justify-content: space-between;
}
.hero-top {
  top: 32px;
  align-items: flex-start;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 6px #000;
}
.hero-top > div {
  display: flex;
  gap: 0;
}
.hero-top button,
.hero-top a {
  min-height: 30px;
}
.hero-top > span {
  opacity: var(--hero-ui-opacity, 0);
  transition: opacity 0.22s linear;
}
.hero-bottom {
  inset: 0 var(--gutter);
  pointer-events: none;
}
.hero-brand {
  position: absolute;
  z-index: 5;
  left: var(--hero-logo-x, 82%);
  top: var(--hero-logo-y, 86%);
  transform: translate(-50%, -50%) scale(var(--hero-logo-scale, 1));
  width: clamp(270px, 34vw, 530px);
  pointer-events: auto;
  filter: none;
}
.hero-brand img {
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: contain;
}
.hero-nav {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 28.5px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  white-space: nowrap;
  font-size: 12px;
  text-shadow: 0 1px 5px #000;
  opacity: var(--hero-ui-opacity, 0);
  transition: opacity 0.22s linear;
  pointer-events: auto;
  isolation: isolate;
}
.hero-nav:before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: calc(100% + clamp(210px, 28vw, 470px));
  height: 28px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(0 0 0 / 10%) 20%,
    rgb(0 0 0 / 34%) 38%,
    rgb(0 0 0 / 46%) 48%,
    rgb(0 0 0 / 46%) 52%,
    rgb(0 0 0 / 34%) 62%,
    rgb(0 0 0 / 10%) 80%,
    transparent 100%
  );
  filter: none;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-nav a {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.hero-nav a::after {
  content: none;
}
.hero-nav a:hover::after,
.hero-nav a:focus-visible::after {
  content: none;
}
.hero-nav:focus-within {
  opacity: 1;
}
.hero-discover {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  bottom: 53px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 8px;
  opacity: var(--hero-ui-opacity, 0);
  transition: opacity 0.22s linear;
  text-shadow: 0 1px 5px #000;
}
.hero-admin {
  flex: 0 0 auto;
}
.fullscreen-intro {
  width: min(520px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: clamp(28px, 4vw, 54px);
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.fullscreen-intro::backdrop {
  background: #1118;
  backdrop-filter: blur(3px);
}
.fullscreen-intro h2 {
  margin: 24px 0;
  font-size: clamp(32px, 3.4vw, 46px);
}
.fullscreen-intro > p:not(.eyebrow) {
  font-size: 13px;
}
.fullscreen-actions {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.fullscreen-actions button {
  min-height: 44px;
  font-size: 12px;
}
.fullscreen-intro small {
  display: block;
  margin-top: 22px;
  font-size: 10px;
  color: var(--muted);
}
.fullscreen-status {
  margin-top: 16px;
}
body.fullscreen-intro-open {
  overflow: hidden;
}
.hero-playback {
  --hero-ui-opacity: 1;
  position: fixed;
  /* Viewport reference; JS gives it the same upward exit as logo and menu. */
  z-index: 1;
  bottom: 24px;
  left: auto;
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px #000;
  transition: opacity 0.18s linear, visibility 0.18s linear;
}
.hero-playback.is-after-hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-playback button {
  width: 20px;
  height: 30px;
  display: grid;
  place-items: center;
}
.hero-counter,
.hero-total {
  width: 20px;
  height: 30px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  filter: drop-shadow(0 1px 4px #000);
  opacity: var(--hero-ui-opacity, 0);
  transition: opacity 0.22s linear;
}
.hero-page-nav {
  width: 120px;
  height: 30px;
  display: flex;
  flex: 0 0 120px;
}
.hero-page-nav .hero-icon-button {
  flex: 0 0 20px;
}
.hero-icon-button {
  width: 20px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 1px 4px #000);
  opacity: var(--hero-ui-opacity, 0);
  transition: opacity 0.22s linear;
}
.hero-icon-button:focus-visible {
  opacity: 1;
}
.hero-pause .play-symbol,
.hero-pause.is-paused .pause-symbol {
  display: none;
}
.hero-pause.is-paused .play-symbol {
  display: block;
}
.hero:focus-within .hero-top > span,
.hero-nav:focus-within,
.hero-discover:focus-visible {
  opacity: 1;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    #0005,
    transparent 30%,
    transparent 85%,
    #0003
  );
}
@keyframes organic-reveal {
  0% {
    opacity: 0;
    --hero-reveal: 0%;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    --hero-reveal: 170%;
  }
}
@keyframes hero-drift {
  from {
    transform: scale(var(--hero-photo-scale, 1));
  }
  to {
    transform: scale(calc(var(--hero-photo-scale, 1) * var(--hero-zoom, 1.015)));
  }
}
.menu-reveal {
  height: 210svh;
  position: relative;
  z-index: 2;
  background: var(--paper);
  --opening: 0;
}
.menu-stage {
  height: 100svh;
  min-height: 540px;
  position: sticky;
  top: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--paper);
}
.menu-inner {
  width: min(850px, 84vw);
  text-align: center;
}
.menu-inner nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 30px 0;
}
.menu-inner nav a {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 82px);
  letter-spacing: -0.045em;
  line-height: 1.35;
  transition: color 0.38s ease, opacity 0.38s ease;
}
.menu-inner nav a::after {
  content: none;
}
.menu-inner nav a:hover,
.menu-inner nav a:focus-visible {
  color: var(--accent);
}
.menu-inner nav a:hover::after,
.menu-inner nav a:focus-visible::after {
  content: none;
}
.menu-inner nav span {
  font: 300 10px var(--sans);
  letter-spacing: 0;
  display: inline-block;
  vertical-align: middle;
  margin-right: 26px;
  color: var(--accent);
}
.menu-inner > p:last-child {
  font-size: 12px;
}
.curtain {
  position: absolute;
  /* Two-pixel overlap removes half-pixel seams on odd viewport widths. */
  width: calc((100% - var(--gutter) * 2) / 2 + 1px);
  aspect-ratio: 6 / 5;
  max-height: 80svh;
  top: 50%;
  padding: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}
.curtain .photo {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--menu-photo-scale, 1));
  transform-origin: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.curtain-left {
  left: var(--gutter);
  transform: translateY(-50%) translateX(calc(var(--opening) * -40%));
}
.curtain-right {
  right: var(--gutter);
  transform: translateY(-50%) translateX(calc(var(--opening) * 40%));
}
.menu-open {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 8px 16px;
  font-size: 11px;
  border: 1px solid var(--line);
}
.menu-admin {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 28px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border: 1px solid var(--line);
}
.home-note {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: #171717;
  color: #fff;
}
/* Solapa un píxel la tercera pantalla para cubrir el redondeo subpíxel del
   scroll animado y evitar que asome el fondo marfil en el borde superior. */
.journey-home-plane > #mirada {
  margin-top: -1px;
  min-height: calc(100svh + 1px);
  height: calc(100svh + 1px);
}
.journey-root:is(.is-third-cover-active, .is-third-cover-moving) #mirada {
  position: absolute;
  top: var(--third-cover-top, 0px);
  right: 0;
  left: 0;
  z-index: 12;
  width: 100vw;
  min-height: 100svh;
  height: 100svh;
  margin: 0;
  will-change: transform;
}
.home-note-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #171717;
}
.home-note-photo .photo {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: var(--home-photo-x, 50%) var(--home-photo-y, 50%);
  transform: scale(var(--home-photo-scale, 1));
  transform-origin: center;
}
.home-note::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111d 0%, #1119 28%, transparent 58%);
  pointer-events: none;
}
.home-note-copy {
  position: relative;
  z-index: 1;
  width: min(680px, 48vw);
  margin-left: var(--gutter);
  text-shadow: 0 1px 14px #0008;
  padding-bottom: 72px;
}
.home-note-copy .eyebrow {
  margin-bottom: clamp(26px, 4vh, 48px);
  color: #fff;
}
.home-note h1 {
  max-width: 760px;
  font-size: clamp(46px, 5.2vw, 88px);
  line-height: 0.98;
  color: #fff;
  white-space: pre-line;
}
.home-note-copy > p:not(.eyebrow) {
  max-width: 480px;
  margin-top: clamp(28px, 5vh, 58px);
  font-size: 13px;
  line-height: 1.95;
}
.home-note .text-link {
  display: inline-block;
  margin-top: 24px;
  color: #fff;
  border-color: #fff8;
}
.home-note-footer {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  color: #fff;
  background: transparent;
  border-color: #ffffff38;
  text-shadow: 0 1px 10px #000a;
}
.home-note-footer a {
  color: inherit;
  border-color: #ffffff70;
}
.home-note-footer .site-footer-signature img {
  filter: drop-shadow(0 1px 8px #0008);
}
.pure-limitless-credit {
  display: block;
  width: clamp(92px, 8vw, 132px);
  border: 0 !important;
}
.pure-limitless-credit img {
  display: block;
  width: 100%;
  height: auto;
}
.site-footer:not(.home-note-footer) .pure-limitless-credit img {
  filter: brightness(0);
  opacity: .68;
}
.home-note-admin {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 28px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1116;
  border: 1px solid #ffffff66;
  backdrop-filter: blur(8px);
}
@media (hover: hover) {
  .hero-nav:has(a:hover) a:not(:hover),
  .menu-inner nav:has(a:hover) a:not(:hover) {
    opacity: 0.46;
  }
}
.stories-index-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}
.stories-index {
  min-height: calc(100svh - 191px);
  padding: 70px var(--gutter) 70px;
}
.index-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  row-gap: 28px;
  margin-bottom: 95px;
}
.index-heading > .eyebrow {
  grid-column: 1/-1;
}
.index-heading h1 {
  font-size: clamp(72px, 10vw, 156px);
  line-height: 1;
}
.index-heading > p:last-child {
  justify-self: end;
  font-size: 12px;
  padding: 0 3vw 8px 0;
}
.story-index-link {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr auto;
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
  gap: 20px;
  transition:
    padding 0.4s,
    color 0.4s;
}
.story-index-link:hover {
  padding-left: 14px;
  color: var(--accent);
}
.story-index-link h2 {
  font-size: clamp(38px, 4.1vw, 62px);
}
.story-number {
  font-size: 10px;
  align-self: start;
  padding-top: 12px;
}
.story-index-link > div {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
}
.story-index-link > div span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.story-index-thumb {
  display: block;
  width: clamp(112px, 7.8vw, 150px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--line);
}
.story-index-thumb .story-index-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
}
.story-index-link:hover .story-index-photo {
  transform: scale(1.035);
}
.index-footnote {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 35px;
}
/* Story: scene-level navigation; CSS without JS remains a readable document. */
.story-header {
  height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 34px;
  font-size: 11px;
  position: relative;
  z-index: 10;
  background: var(--paper);
}
.story-header .brand {
  width: 175px;
}
.story-brand-light {
  display: none;
}
.story-header .view-toggle {
  font-size: 10px;
}
.story-viewer {
  --story-gap: clamp(16px, 1.15vw, 24px);
}
.scene {
  position: relative;
  min-height: 650px;
  min-height: calc(100svh - 142px);
  overflow: hidden;
}
.scene-surface {
  position: relative;
  min-height: inherit;
}
.scene-full-photo {
  position: absolute;
  inset: 0;
  background: var(--paper);
}
.editorial-panel {
  position: relative;
  z-index: 2;
  background: var(--paper);
  width: 50%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 7vw;
  transition:
    transform 0.8s cubic-bezier(0.22, 0.7, 0.25, 1),
    opacity 0.6s;
}
.editorial-panel h1 {
  font-size: clamp(45px, 6.4vw, 104px);
  margin: 38px 0;
  max-width: 600px;
}
.editorial-panel .eyebrow {
  max-width: 260px;
}
.begin-story {
  margin-top: 16px;
  font-size: 11px;
  border-bottom: 0;
  padding-bottom: 0;
}
.begin-story span {
  margin-left: 32px;
  font-size: 19px;
}
.panel-credit {
  position: absolute;
  bottom: 34px;
  left: 7vw;
  font-size: 9px;
  color: var(--muted);
}
.intro-text {
  font-size: 13px;
  max-width: 420px;
  margin-top: -15px;
  margin-bottom: 24px;
}
.closing-copy {
  font-size: 16px;
}
.closing-back {
  font-size: 10px;
  margin-top: 18px;
}
.credits {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 30px;
}
.credits h2 {
  font-size: clamp(48px, 7vw, 104px);
  margin: 34px 0;
}
.credits dl {
  margin: 14px 0 40px;
  display: flex;
  flex-wrap: wrap;
  max-width: 840px;
  justify-content: center;
  gap: 26px 60px;
}
.credits dt {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 8px;
  color: var(--muted);
}
.credits dd {
  margin: 0;
  font-size: 15px;
}
.credits > p:last-child {
  font-size: 11px;
  color: var(--muted);
}
.photo-composition {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--story-gap);
  padding: var(--story-gap);
}
.scene-frame {
  min-width: 0;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-frame .photo {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.scene-frame .photo-cover {
  object-fit: cover;
}
.layout-dos .scene-frame .photo,
.layout-tres .scene-frame .photo,
.scene-full .scene-frame .photo,
.scene-ruptura-vertical .scene-frame .photo {
  object-fit: cover;
}
.layout-una .scene-frame {
  max-width: none;
}
.scene-full .photo-composition,
.scene-ruptura-vertical .photo-composition {
  padding: 0;
  gap: 0;
  background: var(--ink);
}
.scene-full .scene-frame {
  height: 100%;
}
.scene-ruptura-vertical .photo-composition {
  flex-direction: column;
}
.scene-ruptura-vertical .scene-frame {
  flex: none;
  width: 100%;
  height: 100%;
}
.vertical-note {
  position: absolute;
  bottom: 22px;
  left: 34px;
  color: #fff;
  font-size: 10px;
  text-shadow: 0 1px 4px #000;
}
.scene-caption {
  position: absolute;
  bottom: 20px;
  left: 6vw;
  font-size: 10px;
}
.story-footer {
  position: relative;
  padding: 0 34px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  background: var(--paper);
  z-index: 10;
}
.story-controls {
  display: flex;
  gap: 22px;
  align-items: center;
}
.story-controls button {
  font-size: 10px;
  padding: 10px 4px;
  min-width: 60px;
}
.scene-count {
  font-size: 9px;
  min-width: 94px;
  text-align: center;
}
.navigation-hint {
  font-size: 9px;
  color: var(--muted);
}
.context-cursor {
  position: fixed;
  z-index: 40;
  display: none;
  pointer-events: none;
  padding: 7px 12px;
  font-size: 10px;
  border: 1px solid #ffffff60;
  border-radius: 30px;
  background: #f6f3eedd;
  color: #242424;
  backdrop-filter: blur(8px);
}
.noscript-note {
  padding: 20px var(--gutter);
}
.is-horizontal {
  --story-header-height: 86px;
  --story-footer-height: 56px;
  --story-preview-height: 0px;
  height: 100svh;
  overflow: hidden;
}
.is-horizontal .story-header {
  position: fixed;
  inset: var(--story-preview-height) 0 auto;
  margin-top: 0;
  height: var(--story-header-height);
  background: transparent;
}
.is-horizontal .story-footer {
  position: fixed;
  inset: auto 0 0;
  height: var(--story-footer-height);
  background: transparent;
}
.is-horizontal .story-viewer {
  height: 100svh;
  overflow: hidden;
  touch-action: pinch-zoom;
}
.is-horizontal .scene-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.24, 0.68, 0.18, 1);
  will-change: transform;
}
.is-horizontal .scene {
  height: 100%;
  min-height: 0;
  flex: 0 0 100%;
  background: var(--paper);
}
/* Cada escena conserva su encuadre durante todo el desplazamiento lateral. */
.is-horizontal .scene-surface {
  position: absolute;
  inset: calc(var(--story-header-height) + var(--story-preview-height)) 0 var(--story-footer-height);
  min-height: 0;
  overflow: hidden;
}
.is-horizontal .scene[data-immersive="true"] .scene-surface {
  top: var(--story-preview-height);
  bottom: 0;
}
.is-horizontal .scene[data-immersive="true"] .scene-surface::before,
.is-horizontal .scene[data-immersive="true"] .scene-surface::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  pointer-events: none;
}
.is-horizontal .scene[data-immersive="true"] .scene-surface::before {
  top: 0;
  height: var(--story-header-height);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent);
}
.is-horizontal .scene[data-immersive="true"] .scene-surface::after {
  bottom: 0;
  height: var(--story-footer-height);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), transparent);
}
.is-horizontal .editorial-panel,
.is-horizontal .credits,
.is-horizontal .photo-composition {
  height: 100%;
  min-height: 0;
}
.is-horizontal .scene-full .scene-frame {
  height: 100%;
}
.is-horizontal .scene-ruptura-vertical .photo-composition {
  position: relative;
  display: block;
}
.is-horizontal .scene-ruptura-vertical .scene-frame {
  position: absolute;
  inset: 0;
  height: auto;
  width: auto;
  transition: transform 0.75s cubic-bezier(0.25, 0.7, 0.2, 1);
}
.is-horizontal .scene-ruptura-vertical .scene-frame:nth-child(2) {
  transform: translateY(100%);
}
.is-horizontal .scene-ruptura-vertical.is-revealed .scene-frame:nth-child(2) {
  transform: translateY(0);
}
.is-horizontal .scene-apertura.is-revealed .editorial-panel {
  transform: translateX(102%);
  opacity: 0;
  pointer-events: none;
}
.is-horizontal .scene.is-entering .editorial-panel,
.is-horizontal .scene.is-entering .scene-frame {
  transition: none;
}

@media (min-width: 761px) {
  .is-horizontal .scene-apertura .scene-full-photo {
    right: 0;
    padding: 0;
  }
  .is-horizontal .scene-cierre .scene-full-photo {
    right: 50%;
    padding: var(--story-gap);
  }
  .story-ready.is-horizontal .scene-cierre .scene-full-photo {
    transition: right 0.8s cubic-bezier(0.22, 0.7, 0.25, 1);
  }
  .is-horizontal .scene-apertura .scene-full-photo .photo,
  .is-horizontal .scene-cierre .scene-full-photo .photo {
    object-fit: cover;
  }
  .is-horizontal .editorial-panel {
    margin-left: auto;
  }
}

/* Las revelaciones dobles ocupan el viewport completo: la interfaz flota sobre la fotografía. */
.is-horizontal.story-immersive .story-header {
  color: #fff;
}
.story-immersive .story-brand-default {
  display: none;
}
.story-immersive .story-brand-light {
  display: block;
}
.is-horizontal.story-immersive .story-header a,
.is-horizontal.story-immersive .story-header button,
.is-horizontal.story-immersive .story-footer button,
.is-horizontal.story-immersive .navigation-hint {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.52);
}
.is-horizontal.story-immersive .story-footer {
  color: #fff;
}
/* Durante el cruce conviven foto y papel: la interfaz se adapta a ambos fondos. */
.is-horizontal.story-moving .story-header,
.is-horizontal.story-moving .story-footer {
  color: #fff;
  mix-blend-mode: difference;
}
.story-moving .story-brand-default { display: none; }
.story-moving .story-brand-light { display: block; }
.is-horizontal.story-moving .story-header a,
.is-horizontal.story-moving .story-header button,
.is-horizontal.story-moving .story-footer button,
.is-horizontal.story-moving .navigation-hint {
  color: #fff;
  text-shadow: none;
}
.is-horizontal .scene-ruptura-vertical .photo-composition,
.is-horizontal .scene-ruptura-vertical .scene-frame {
  width: 100%;
  height: 100%;
}
.is-horizontal .vertical-note {
  bottom: 72px;
}
.is-horizontal .scene:not(.is-active) {
  pointer-events: none;
}
.story-viewer.cursor-active {
  cursor: none;
}
.story-viewer.cursor-active .is-active a,
.story-viewer.cursor-active .is-active button {
  cursor: pointer;
}
.story-viewer.cursor-active ~ .context-cursor {
  display: block;
}
.story-viewer.cursor-active ~ .context-cursor.over-control {
  display: none;
}
.continuous .scene {
  border-bottom: 1px solid var(--line);
}
.continuous .story-footer {
  position: sticky;
  bottom: 0;
}
.continuous .navigation-hint,
.continuous .story-controls {
  display: none;
}
.continuous .begin-story {
  display: none;
}
.continuous .scene-apertura .scene-full-photo {
  position: relative;
  height: 70svh;
}
.continuous .scene-apertura .editorial-panel {
  width: 100%;
  min-height: 340px;
  padding: 55px var(--gutter) 90px;
}
.continuous .photo-composition {
  padding: var(--story-gap);
  gap: var(--story-gap);
  flex-wrap: wrap;
}
.continuous .scene-frame {
  min-width: 240px;
  height: auto;
}
.continuous .scene-frame .photo {
  height: auto;
  max-height: 80svh;
}
.continuous .scene {
  min-height: 0;
}
.continuous .scene-full .scene-frame,
.continuous .scene-ruptura-vertical .scene-frame {
  height: auto;
}
.continuous .scene-ruptura-vertical .photo-composition {
  padding: 0;
}
.continuous .scene-ruptura-vertical .scene-frame .photo {
  max-height: none;
}
.continuous .scene-cierre {
  min-height: 75svh;
}
.page-about,
.about-edit-mode { overflow: hidden; }
.about-page-shell {
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: 116px minmax(0, 1fr) auto;
  overflow: hidden;
}
.about-page-shell > .site-header { height: 116px; }
.about-layout {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(38px, 6vw, 112px);
  padding: clamp(18px, 2.8vh, 34px) var(--gutter);
  align-items: center;
  overflow: hidden;
}
.about-visual {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  position: relative;
  transform: translateY(-16px);
}
.about-instant {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: clamp(10px, .9vw, 15px) clamp(10px, .9vw, 15px) clamp(38px, 4vw, 60px);
  background: #f5f4ef;
  color: #272724;
  box-shadow: 0 13px 30px #18171217, 0 2px 5px #18171214;
}
.about-instant-media {
  width: min(48vw, 760px, calc((100svh - 316px) * 1.5));
  aspect-ratio: 3 / 2;
  line-height: 0;
  overflow: hidden;
  background: #e9e6df;
}
.about-instant .photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: var(--about-photo-x, 50%) var(--about-photo-y, 50%);
  transform: scale(var(--about-photo-scale, 1));
  transform-origin: var(--about-photo-x, 50%) var(--about-photo-y, 50%);
  background: transparent;
}
.about-instant figcaption {
  min-height: 1.4em;
  margin-top: 12px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .04em;
  color: #686761;
}
.about-copy-panel {
  min-height: 0;
  height: 100%;
  max-width: 575px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: center;
  padding-top: 22px;
  transform: translateY(-32px);
}
.about-copy-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 clamp(16px, 2vw, 34px) 28px 0;
}
.about-copy-scroll::-webkit-scrollbar { width: 0; height: 0; }
.about-layout h1 {
  white-space: pre-line;
  font-size: clamp(46px, 5vw, 78px);
  line-height: .98;
  margin: 0 0 42px;
  padding-right: clamp(16px, 2vw, 34px);
}
.about-layout p { font-size: 13px; line-height: 1.95; }
.about-layout p.lead { font-size: 17px; line-height: 1.8; margin-bottom: 30px; }
.about-layout .eyebrow { font-size: 10px; }
.about-body-copy p + p { margin-top: 18px; }
.about-page-footer { padding-top: 10px; padding-bottom: 10px; background: transparent; }
.about-page-footer .site-footer-signature strong {
  font: 300 10px/1.2 var(--sans);
  letter-spacing: .04em;
}
.about-page-admin {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(8px);
}
.about-editor-toolbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid #29292922;
  background: #f3f1ed;
  color: #20201e;
}
.about-editor-toolbar > div,
.about-editor-toolbar > div:last-child { display: flex; align-items: center; gap: 14px; }
.about-editor-toolbar > div:first-child { align-items: flex-start; flex-direction: column; gap: 3px; }
.about-editor-toolbar a,
.about-editor-toolbar button,
.about-photo-dock button {
  border: 1px solid #28282635;
  padding: 10px 14px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.about-editor-toolbar .publish-button { background: #222; color: #fff; }
.about-edit-mode .about-page-shell { grid-template-rows: 86px minmax(0, 1fr) auto; }
.about-edit-mode [contenteditable] {
  outline: 1px dashed transparent;
  outline-offset: 6px;
  transition: outline-color 160ms ease, background 160ms ease;
}
.about-edit-mode [contenteditable]:hover,
.about-edit-mode [contenteditable]:focus {
  outline-color: color-mix(in srgb, var(--accent) 72%, transparent);
  background: color-mix(in srgb, var(--paper) 76%, transparent);
}
.about-photo-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #121212e8;
  color: #fff;
  backdrop-filter: blur(12px);
}
.about-photo-dock small { margin-left: auto; max-width: 240px; font-size: 9px; opacity: .65; }
.about-selected-photos { display: flex; gap: 5px; max-width: 42%; overflow-x: auto; }
.about-selected-photos button { position: relative; flex: 0 0 50px; height: 42px; padding: 2px; }
.about-selected-photos button[aria-selected="true"] { border-color: #fff; }
.about-selected-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-selected-photos span {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-size: 8px;
  text-shadow: 0 1px 4px #000;
}
.about-editor-feedback {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 12px 16px;
  background: #222;
  color: #fff;
  box-shadow: 0 8px 30px #0003;
}
.about-editor-feedback.is-error { background: #6e2630; }
.about-photo-picker [data-about-pick].is-selected { opacity: .36; }
.contact-page-shell {
  height: 100svh;
  min-height: 650px;
  display: grid;
  grid-template-rows: 104px minmax(0, 1fr) auto;
  overflow: hidden;
}
.contact-page-shell > .site-footer {
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.contact-layout {
  width: 100%;
  max-width: 2200px;
  margin: 0 auto;
  min-height: 0;
  padding: clamp(14px, 2.2vh, 28px) var(--gutter) clamp(12px, 2vh, 24px);
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr);
  gap: clamp(54px, 7vw, 118px);
  align-items: center;
}
.contact-intro {
  max-width: 610px;
}
.contact-layout h1 {
  font-size: clamp(56px, 5.4vw, 94px);
  margin: 12px 0 20px;
}
.contact-lead {
  max-width: 500px;
  font-size: clamp(13px, .9vw, 16px);
  line-height: 1.75;
}
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
  margin-top: clamp(22px, 3vh, 34px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.contact-details > div:last-child { grid-column: 1 / -1; }
.contact-details span,
.contact-submit-row span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.contact-details a,
.contact-details address {
  font-size: 12px;
  line-height: 1.65;
}
.contact-details address { font-style: normal; }
.contact-form-panel {
  width: min(100%, 820px);
  justify-self: end;
  align-self: center;
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}
.contact-form-panel h2 {
  max-width: 590px;
  margin: 7px 0 13px;
  font-size: clamp(34px, 3vw, 52px);
  line-height: .98;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
}
.contact-form > label:not(.contact-consent),
.contact-form > .contact-form-row,
.contact-form > .contact-submit-row,
.contact-form > .contact-form-status,
.contact-form > .local-notice { grid-column: 1 / -1; }
.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-form label:not(.contact-consent) {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); outline: 0; }
.contact-form textarea::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.contact-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.contact-consent input { margin: 2px 0 0; accent-color: var(--accent); }
.contact-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-submit-row button {
  min-width: 154px;
  padding: 9px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
}
.contact-submit-row span { margin: 0; }
.contact-form-status {
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-size: 11px;
  line-height: 1.6;
}
.local-notice {
  color: var(--muted);
  font-size: 9px !important;
  line-height: 1.4;
  margin-top: 0 !important;
}
.contact-page-shell .site-footer-signature img {
  width: clamp(68px, 5.2vw, 92px);
}
.contact-page-shell .pure-limitless-credit {
  width: clamp(84px, 7vw, 112px);
}

/* En escritorio, la fotografía de Hablemos es una columna a sangre. La
   cabecera, el contenido y el pie pertenecen exclusivamente al lado derecho. */
@media (min-width: 901px) {
  .contact-page-shell {
    grid-template-columns: 43% minmax(0, 57%);
    grid-template-rows: 92px minmax(0, 1fr) auto;
  }
  .contact-page-shell > .site-header {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
  }
  .contact-page-shell > .contact-layout {
    display: contents;
  }
  .contact-page-shell .contact-visual {
    grid-column: 1;
    grid-row: 1 / -1;
    min-height: 100%;
    background: #171717;
  }
  .contact-page-shell .contact-form-panel {
    grid-column: 2;
    grid-row: 2;
  }
  .contact-page-shell > .contact-right-footer {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 761px) and (max-height: 800px) {
  .contact-page-shell { grid-template-rows: 88px minmax(0, 1fr) auto; }
  .contact-layout { padding-top: 8px; padding-bottom: 8px; }
  .contact-layout h1 { font-size: clamp(50px, 4.8vw, 78px); margin: 8px 0 13px; }
  .contact-lead { line-height: 1.6; }
  .contact-details { margin-top: 16px; padding-top: 11px; gap: 8px 28px; }
  .contact-form-panel h2 { font-size: clamp(32px, 2.7vw, 46px); }
  .contact-form { gap: 6px 16px; }
  .contact-form input:not([type="checkbox"]),
  .contact-form textarea { padding-top: 4px; padding-bottom: 4px; }
  .contact-form textarea { max-height: 62px; }
  .local-notice { font-size: 8px !important; }
}

/* Hablemos: fotografía editorial + formulario de líneas con placeholders. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.contact-page-shell {
  grid-template-rows: 92px minmax(0, 1fr) auto;
}
.contact-page-shell .contact-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(360px, 43%) minmax(0, 57%);
  gap: 0;
  align-items: stretch;
}
.contact-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 82%, var(--line));
}
.contact-photo-stage {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  outline-offset: -3px;
}
.contact-photo-stage .contact-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--contact-photo-x) var(--contact-photo-y) !important;
  transform: scale(var(--contact-photo-scale));
  transform-origin: var(--contact-photo-x) var(--contact-photo-y);
}
.contact-page-shell .contact-form-panel {
  width: min(100%, 920px);
  justify-self: center;
  align-self: center;
  padding: clamp(22px, 3.4vh, 44px) clamp(42px, 6vw, 104px);
  border-top: 0;
}
.contact-page-shell .contact-form-panel h1 {
  margin: 5px 0 8px;
  font-size: clamp(52px, 4.6vw, 78px);
  line-height: .95;
}
.contact-page-shell .contact-lead {
  max-width: 650px;
  font-size: clamp(12px, .82vw, 15px);
  line-height: 1.65;
}
.contact-page-shell .contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 24px;
  margin-top: 12px;
  padding: 0 0 12px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.contact-page-shell .contact-details a,
.contact-page-shell .contact-details address {
  font-size: clamp(12px, .72vw, 14px);
  line-height: 1.55;
  color: var(--muted);
}
.contact-page-shell .contact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.contact-page-shell .contact-field-wide,
.contact-page-shell .contact-consent,
.contact-page-shell .contact-submit-row,
.contact-page-shell .contact-form-status,
.contact-page-shell .local-notice {
  grid-column: 1 / -1;
}
.contact-page-shell .contact-form > .contact-field:not(.contact-field-wide) {
  grid-column: auto;
}
.contact-page-shell .contact-field {
  position: relative;
  display: block;
}
.contact-page-shell .contact-field input,
.contact-page-shell .contact-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 0 8px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: transparent;
  color: var(--ink);
  font: italic 400 clamp(15px, 1.05vw, 18px)/1.4 var(--serif);
  letter-spacing: 0;
  text-transform: none;
  resize: none;
}
.contact-page-shell .contact-field textarea {
  min-height: 84px;
  margin-top: 13px;
  padding: 15px 18px;
  border-bottom: 0;
  background: color-mix(in srgb, var(--line) 24%, transparent);
}
.contact-page-shell .contact-field input::placeholder,
.contact-page-shell .contact-field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 58%, transparent);
  opacity: 1;
}
.contact-page-shell .contact-field input:focus,
.contact-page-shell .contact-field textarea:focus {
  border-bottom-color: var(--accent);
  outline: 0;
}
.contact-page-shell .contact-consent {
  margin-top: 10px;
  justify-self: end;
  max-width: 330px;
}
.contact-page-shell .contact-submit-row {
  margin-top: 9px;
}
.contact-page-shell .contact-submit-row button {
  min-width: 150px;
  padding: 9px 18px;
}
.contact-page-shell .local-notice {
  margin-top: 4px !important;
}
.contact-page-admin {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: #1117;
  border: 1px solid #ffffff66;
  backdrop-filter: blur(8px);
}
.contact-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.contact-editor-toolbar > div { display: flex; align-items: center; gap: 12px; }
.contact-editor-toolbar > div:first-child { display: grid; gap: 3px; }
.contact-editor-toolbar a,
.contact-editor-toolbar button { padding: 9px 11px; font-size: 10px; }
.contact-photo-controls {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: #fff;
  background: #111c;
  backdrop-filter: blur(10px);
}
.contact-variant-tabs { display: flex; gap: 4px; }
.contact-variant-tabs button { min-width: 48px; }
.contact-variant-tabs button[aria-selected="true"] {
  color: #171717;
  background: #f6f3ee;
}
.contact-photo-controls button { padding: 8px 10px; border: 1px solid #ffffff44; color: inherit; }
.contact-photo-controls label { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 9px; }
.contact-photo-controls input { width: 110px; padding: 0; }
.contact-photo-stage[tabindex] { cursor: grab; touch-action: none; }
.contact-photo-stage.is-dragging { cursor: grabbing; }
.contact-photo-picker [data-contact-pick].is-selected { opacity: .36; }

@media (max-width: 760px) {
  .contact-page-shell { height: auto; min-height: 100svh; overflow: visible; grid-template-rows: auto auto auto; }
  .contact-page-shell .contact-layout { display: grid; grid-template-columns: 1fr; padding: 0; gap: 0; }
  .contact-visual { height: 52svh; min-height: 390px; }
  .contact-page-shell .contact-form-panel {
    width: 100%;
    margin: 0;
    padding: 38px 22px 34px;
  }
  .contact-page-shell .contact-form-panel h1 { font-size: 58px; }
  .contact-page-shell .contact-details { gap: 5px 14px; }
  .contact-page-shell .contact-form { grid-template-columns: 1fr; gap: 0; }
  .contact-page-shell .contact-form > .contact-field:not(.contact-field-wide) { grid-column: 1 / -1; }
  .contact-page-shell .contact-consent { justify-self: stretch; max-width: none; }
  .contact-editor-toolbar { min-height: 76px; padding: 8px 12px; }
  .contact-editor-toolbar > div:last-child a:not(#contact-cancel) { display: none; }
  .contact-editor-toolbar a,
  .contact-editor-toolbar button { padding: 8px; font-size: 9px; }
  .contact-photo-controls { flex-wrap: wrap; }
  .contact-photo-controls label { margin-left: 0; }
}
.local-notice a { border-bottom: 0; }

/* Hablemos se divide en dos escenas interiores para mantener aire editorial. */
@media (min-width: 761px) {
  .page-contact { overflow: hidden; }
  .contact-edit-mode [data-contact-panel="1"] { visibility: hidden; }
  .contact-page-shell .contact-form-panel {
    position: relative;
    height: calc(100% - 46px);
    min-height: 520px;
    max-height: 720px;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
  }
  .contact-panel-track {
    position: relative;
    height: 100%;
  }
  .contact-panel {
    position: absolute;
    inset: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 3.4vh, 44px) 0 clamp(42px, 5.5vh, 62px);
    transition: transform 720ms cubic-bezier(.72, 0, .18, 1);
    will-change: transform;
  }
  .contact-panel-intro {
    padding-bottom: clamp(250px, 30vh, 320px);
    transform: translate3d(0, 0, 0);
  }
  .contact-panel-form {
    padding-top: clamp(190px, 21vh, 230px);
    transform: translate3d(0, 100%, 0);
  }
  .contact-form-panel[data-contact-panel-index="1"] .contact-panel-intro {
    transform: translate3d(0, -100%, 0);
  }
  .contact-form-panel[data-contact-panel-index="1"] .contact-panel-form {
    transform: translate3d(0, 0, 0);
  }
  .contact-shared-title {
    position: absolute;
    z-index: 3;
    top: calc(100% - clamp(210px, 24vh, 240px));
    right: clamp(42px, 6vw, 104px);
    left: clamp(42px, 6vw, 104px);
    pointer-events: none;
    transition: top 720ms cubic-bezier(.72, 0, .18, 1);
  }
  .contact-form-panel[data-contact-panel-index="1"] .contact-shared-title {
    top: clamp(22px, 3.4vh, 44px);
  }
  .contact-shared-title .eyebrow {
    margin: 0 0 9px;
  }
  .contact-shared-title h2 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(40px, 3.6vw, 62px);
    line-height: .98;
  }
  .contact-panel-nav {
    position: absolute;
    right: clamp(42px, 6vw, 104px);
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .12em;
  }
  .contact-panel-nav button {
    width: 25px;
    min-height: 25px;
    color: color-mix(in srgb, var(--ink) 72%, var(--paper));
    opacity: 1;
    transition: color 180ms ease;
  }
  .contact-panel-nav button[aria-current="true"] {
    color: var(--ink);
  }
  .contact-panel-nav button:hover,
  .contact-panel-nav button:focus-visible { color: var(--ink); }
}

@media (min-width: 761px) and (max-height: 760px) {
  .contact-page-shell .contact-form-panel {
    height: calc(100% - 18px);
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .contact-panel { padding-top: 14px; padding-bottom: 38px; }
  .contact-panel-form h2 { margin-bottom: 6px; font-size: clamp(32px, 3vw, 46px); }
  .contact-panel-intro { padding-bottom: 162px; }
  .contact-panel-form { padding-top: 140px; }
  .contact-shared-title {
    top: calc(100% - 154px);
  }
  .contact-form-panel[data-contact-panel-index="1"] .contact-shared-title { top: 14px; }
  .contact-shared-title h2 { font-size: clamp(32px, 3vw, 46px); }
  .contact-page-shell .contact-field input,
  .contact-page-shell .contact-field textarea { min-height: 38px; padding-top: 7px; padding-bottom: 5px; }
  .contact-page-shell .contact-field textarea { min-height: 62px; margin-top: 6px; }
  .contact-page-shell .contact-consent,
  .contact-page-shell .contact-submit-row { margin-top: 5px; }
  .contact-panel-nav { bottom: 8px; }
}

@media (max-width: 760px) {
  .contact-panel-track { position: static; height: auto; display: grid; gap: 52px; }
  .contact-panel { position: static; inset: auto; transform: none !important; transition: none; }
  .contact-panel-form { padding-top: 42px; border-top: 1px solid var(--line); }
  .contact-panel-form h2 { margin: 8px 0 18px; font-size: 43px; line-height: 1; }
  .contact-panel-nav { display: none; }
  .contact-shared-title { position: static; margin: 34px 0 20px; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel,
  .contact-shared-title { transition-duration: 1ms; }
}
.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.login-panel {
  width: 100%;
  max-width: 440px;
}
.login-panel > a {
  font-size: 11px;
}
.login-panel .eyebrow {
  margin-top: 48px;
}
.login-panel h1 {
  font-size: 52px;
  margin: 22px 0 30px;
}
.login-panel > p {
  font-size: 13px;
}
.login-panel form {
  margin-top: 28px;
}
.login-panel label {
  display: block;
  font-size: 12px;
  margin-top: 22px;
}
.login-panel small {
  font-size: 10px;
  color: var(--muted);
}
input,
select,
textarea {
  background: #fff8;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
  max-width: 100%;
  font-size: 13px;
}
input,
textarea {
  width: 100%;
}
.login-panel input {
  margin: 7px 0;
}
.primary-button {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  font-size: 12px;
  min-height: 44px;
}
.login-panel .primary-button {
  margin-top: 25px;
  width: 100%;
}
.error-text {
  color: #8d253b;
  background: #fff5f5;
  padding: 12px;
  font-size: 12px;
}
.error-page {
  max-width: 800px;
  margin: 12vh auto;
  padding: 40px;
}
.error-page h1 {
  font-size: 55px;
  margin: 25px 0;
}
.error-page > a {
  margin-right: 30px;
}
@media (hover: none) {
  .hero-nav {
    opacity: 1 !important;
  }
  .hero-top > span,
  .hero-discover,
  .hero-counter,
  .hero-total,
  .hero-admin,
  .hero-icon-button {
    opacity: 1 !important;
  }
  .context-cursor {
    display: none !important;
  }
  .menu-open,
  .story-controls button {
    min-height: 44px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 95px;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .brand {
    width: 165px;
  }
  .brand img {
    height: 30px;
  }
  .site-header nav {
    gap: 20px;
    font-size: 10px;
  }
  .site-footer {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
    font-size: 9px;
  }
  .contact-page-shell > .site-footer {
    row-gap: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 8px;
  }
  .contact-page-shell .site-footer-signature img { width: 62px; }
  .contact-page-shell .pure-limitless-credit { width: 78px; }
  .site-footer-contact {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .hero-top {
    top: 24px;
    font-size: 8px;
  }
  .hero-top > div {
    gap: 16px;
  }
  .hero-bottom {
    inset: 0 var(--gutter);
  }
  .hero-brand {
    width: clamp(104px, 36vw, 270px);
  }
  .hero-nav {
    font-size: clamp(9px, 2.5vw, 12px);
    gap: clamp(18px, 5vw, 40px);
  }
  .hero-image .photo {
    object-fit: contain;
  }
  .hero {
    background: #161616;
  }
  .hero:after {
    background: linear-gradient(0deg, #0005, transparent 55%);
  }
  .menu-reveal {
    height: 175svh;
  }
  .menu-stage {
    min-height: 0;
  }
  .home-note {
    min-height: 100svh;
  }
  .home-note h1 {
    font-size: clamp(42px, 12vw, 66px);
  }
  .home-note-copy {
    width: auto;
    margin: 0 var(--gutter);
    font-size: 13px;
    padding-bottom: 92px;
  }
  .home-note-copy > p:not(.eyebrow) {
    max-width: 34rem;
    margin-top: 28px;
  }
  .home-note::after {
    background: linear-gradient(90deg, #111e 0%, #111a 54%, #1114 100%);
  }
  .home-note-footer {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .site-footer-actions {
    justify-self: end;
  }
  .pure-limitless-credit {
    width: 104px;
  }
  .stories-index {
    padding-top: 45px;
    min-height: calc(100svh - 160px);
  }
  .index-heading {
    margin-bottom: 60px;
  }
  .index-heading h1 {
    font-size: 70px;
  }
  .index-heading > p:last-child {
    font-size: 10px;
    padding-right: 0;
  }
  .story-index-link {
    grid-template-columns: 28px 1fr;
    gap: 17px 10px;
    padding: 28px 0;
  }
  .story-index-link h2 {
    font-size: 40px;
  }
  .story-index-link > div {
    grid-column: 2;
    font-size: 11px;
  }
  .story-index-thumb {
    grid-column: 2;
    justify-self: end;
    width: 110px;
  }
  .index-footnote {
    flex-direction: column;
    gap: 8px;
  }
  .story-header {
    height: 72px;
    padding: 0 18px;
    font-size: 9px;
    gap: 12px;
  }
  .story-header .brand {
    width: 120px;
  }
  .story-header .brand img {
    height: 28px;
  }
  .story-header .view-toggle {
    font-size: 8px;
    max-width: 55px;
  }
  .story-header > a:first-child {
    max-width: 65px;
  }
  .story-footer {
    min-height: 64px;
    padding: 0 14px;
  }
  .story-label,
  .navigation-hint {
    display: none;
  }
  .story-controls {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .story-controls button {
    min-height: 44px;
    min-width: 75px;
  }
  .is-horizontal {
    --story-header-height: 72px;
    --story-footer-height: 64px;
  }
  .scene {
    min-height: calc(100svh - 136px);
  }
  .editorial-panel {
    width: 100%;
    min-height: 0;
    height: 48% !important;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 26px;
    justify-content: center;
  }
  .editorial-panel h1 {
    font-size: 52px;
    margin: 15px 0;
  }
  .editorial-panel .eyebrow {
    font-size: 8px;
    max-width: none;
  }
  .panel-credit {
    bottom: 15px;
    left: 26px;
    font-size: 8px;
  }
  .editorial-panel .begin-story {
    margin-top: 0;
    font-size: 10px;
    padding-bottom: 6px;
  }
  .editorial-panel .begin-story span {
    font-size: 13px;
  }
  .is-horizontal .scene-apertura .scene-full-photo {
    height: 100%;
  }
  .is-horizontal .scene-apertura.is-revealed .editorial-panel {
    transform: translateY(102%);
  }
  .is-horizontal .scene-cierre .scene-full-photo {
    height: 50%;
  }
  .closing-copy {
    font-size: 12px;
  }
  .scene-cierre .editorial-panel h1 {
    font-size: 42px;
    margin: 12px 0;
  }
  .scene-cierre .text-link {
    font-size: 10px;
    margin-top: 12px;
    padding-bottom: 5px;
  }
  .scene-cierre .closing-back {
    margin-top: 8px;
    font-size: 9px;
  }
  .scene-cierre .panel-credit {
    display: none;
  }
  .credits h2 {
    font-size: 54px;
  }
  .is-horizontal .scene-fotos .photo-composition {
    padding: 20px;
  }
  .is-horizontal .scene-fotos .scene-frame {
    display: none;
    height: 100%;
    width: 100%;
    max-width: 100%;
  }
  .is-horizontal .scene-fotos .scene-frame.is-mobile-current {
    display: flex;
  }
  .is-horizontal .scene-fotos .scene-frame .photo {
    max-height: 100%;
  }
  .scene-caption {
    font-size: 9px;
    bottom: 12px;
  }
  .intro-text {
    font-size: 11px;
    margin: 0;
    max-height: 70px;
    overflow: auto;
  }
  .about-page-shell { min-height: 520px; grid-template-rows: 92px minmax(0, 1fr) auto; }
  .about-page-shell > .site-header { height: 92px; }
  .about-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(160px, 35%) minmax(0, 1fr);
    gap: 16px;
    padding: 10px var(--gutter) 14px;
    align-items: stretch;
  }
  .about-instant { padding: 7px 7px 25px; }
  .about-visual { transform: translateY(-6px); }
  .about-instant-media { width: min(82vw, calc(29svh * 1.5)); }
  .about-instant .photo { max-width: none; max-height: none; }
  .about-instant figcaption { margin-top: 6px; font-size: 8px; }
  .about-copy-panel { width: 100%; max-width: none; padding-top: 8px; transform: translateY(-12px); }
  .about-copy-scroll { width: 100%; padding: 0 10px 20px 0; }
  .about-layout h1 { margin: 0 0 22px; font-size: clamp(39px, 12vw, 62px); }
  .about-layout p.lead { font-size: 14px; margin-bottom: 22px; }
  .about-page-footer { padding-top: 7px; padding-bottom: 7px; }
  .about-editor-toolbar { min-height: 76px; padding: 8px 12px; }
  .about-editor-toolbar > div:last-child a:not(#about-cancel) { display: none; }
  .about-editor-toolbar a,
  .about-editor-toolbar button { padding: 8px; font-size: 9px; }
  .about-edit-mode .about-page-shell { grid-template-rows: 76px minmax(0, 1fr) auto; }
  .about-photo-dock { flex-wrap: wrap; }
  .about-photo-dock small { display: none; }
  .contact-layout {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 15px;
  }
  .contact-page-shell { height: auto; min-height: 100svh; overflow: visible; }
  .contact-layout { padding-bottom: 50px; }
  .contact-form-panel { margin-top: 36px; }
  .contact-form-row { grid-template-columns: 1fr; gap: 14px; }
  .continuous .scene-apertura .editorial-panel {
    position: relative;
    height: auto !important;
  }
  .continuous .scene-cierre {
    min-height: 85svh;
  }
  .continuous .photo-composition {
    flex-direction: column;
  }
  .continuous .scene-frame {
    width: 100%;
    min-width: 0;
  }
  .continuous .story-label {
    display: block;
  }
  .continuous .story-footer {
    min-height: 45px;
  }
  .continuous .scene-cierre .scene-full-photo {
    height: 50%;
  }
  .continuous .scene-cierre .editorial-panel {
    height: 50% !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-image {
    transform: none !important;
  }
  .hero-image .photo {
    animation: none !important;
    transform: scale(var(--hero-photo-scale, 1)) !important;
  }
  .menu-reveal {
    height: 100svh;
    --opening: 1 !important;
  }
  .curtain,
  .menu-open {
    display: none;
  }
}
/* Explicit hero-only authorization: editorial scene crops remain opt-in per photograph. */
.hero-image .photo {
  object-fit: cover;
  transform: scale(var(--hero-photo-scale, 1));
  transform-origin: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%);
}

/* Private inline hero editor. It changes only the versioned draft. */
.hero-edit-mode {
  overflow: hidden;
  background: #111;
}
.hero-edit-mode .site-footer {
  display: none;
}
.hero-edit-mode .home-note-footer {
  display: grid;
}
.hero.is-editing .hero-images {
  cursor: grab;
  touch-action: none;
  outline: none;
}
.hero.is-editing .hero-images:focus-visible {
  box-shadow: inset 0 0 0 2px #fff;
}
.hero.is-editing .hero-images.is-dragging {
  cursor: grabbing;
}
.hero-editor-toolbar {
  position: absolute;
  z-index: 12;
  left: 18px;
  right: 18px;
  top: 18px;
  min-height: 66px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #f6f3eef2;
  color: #242424;
  box-shadow: 0 8px 30px #0003;
  backdrop-filter: blur(12px);
}
.hero-editor-toolbar > div,
.hero-editor-toolbar > div:last-child {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-editor-toolbar > div:first-child {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}
.hero-editor-toolbar strong {
  font-size: 11px;
  font-weight: 400;
}
.hero-editor-toolbar a,
.hero-editor-toolbar button,
.hero-editor-actions button {
  min-height: 40px;
  padding: 0 15px;
  font-size: 10px;
}
.hero-editor-toolbar .publish-button {
  background: #63323e;
  color: #fff;
}
.hero-editor-toolbar .publish-button:hover,
.hero-editor-toolbar .publish-button:focus-visible {
  background: #4c2430;
}
.editor-screen-switch {
  display: flex;
  border: 1px solid #24242433;
}
.editor-screen-switch button {
  min-height: 32px;
  padding: 0 10px;
}
.editor-screen-switch button[aria-pressed="true"] {
  color: #fff;
  background: #242424;
}
.hero-editor-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  background: #111b;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.hero-editor-hint span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.hero-logo-handle {
  border: 1px dashed #fff9;
  padding: 10px;
  background: #1112;
  cursor: move;
  touch-action: none;
}
.hero-logo-handle:focus-visible,
.hero-logo-handle.is-dragging {
  border-style: solid;
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.hero-editor-dock {
  position: absolute;
  z-index: 12;
  left: 18px;
  right: auto;
  bottom: 18px;
  min-height: 82px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(860px, calc(100vw - 36px));
  background: #171717e8;
  color: #fff;
  box-shadow: 0 -8px 30px #0003;
  backdrop-filter: blur(12px);
}
.hero-editor-dock[hidden],
.menu-editor-dock[hidden] {
  display: none;
}
.hero-dock-handle {
  width: 28px;
  min-width: 28px;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid #fff3;
  color: #fff9;
  cursor: move;
  touch-action: none;
}
.hero-dock-handle.is-dragging {
  color: #fff;
}
.hero-slide-tabs,
.hero-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-slide-tabs {
  min-width: 160px;
  max-width: min(48vw, 720px);
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #f6f3ee99 transparent;
}
.hero-slide-tabs button {
  position: relative;
  width: 72px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  overflow: hidden;
  flex: 0 0 72px;
}
.hero-slide-tabs button.is-drop-target {
  border-color: #c59aa5;
}
.hero-slide-tabs button[aria-selected="true"] {
  border-color: #fff;
}
.hero-slide-tabs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-tabs span {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 2px 4px;
  background: #111c;
  font-size: 8px;
}
.hero-editor-actions button {
  border: 1px solid #fff5;
}
.hero-editor-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hero-random-order {
  min-height: 40px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #fff5;
  font-size: 9px;
  white-space: nowrap;
}
.hero-logo-scale {
  min-height: 40px;
  padding: 5px 12px;
  display: grid;
  grid-template-columns: auto 100px 38px;
  align-items: center;
  gap: 9px;
  border: 1px solid #fff5;
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-logo-scale input {
  width: 100px;
  accent-color: #f6f3ee;
}
.hero-logo-scale output {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hero-editor-feedback {
  position: absolute;
  z-index: 13;
  right: 28px;
  top: 100px;
  max-width: 420px;
  padding: 10px 14px;
  background: #f6f3ee;
  color: #242424;
  font-size: 11px;
}
.hero-editor-feedback.is-error {
  background: #8d253b;
  color: #fff;
}
.menu-editor-canvas,
.home-note-editor-canvas {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  color: #242424;
  background: #f6f3ee;
}
.menu-editor-canvas[hidden],
.home-note-editor-canvas[hidden] {
  display: none;
}
.home-note-editor-canvas {
  place-items: initial;
  color: #fff;
  background: #171717;
}
.home-note-editor-canvas .home-note-copy {
  transform: translateY(38px);
}
.home-note-photo-editor {
  cursor: grab;
  touch-action: none;
  outline: 0;
}
.home-note-photo-editor.is-dragging {
  cursor: grabbing;
}
.home-note-photo-editor:focus-visible {
  box-shadow: inset 0 0 0 2px #fff;
}
.home-note-photo-editor .photo {
  pointer-events: none;
}
.home-photo-scale {
  min-height: 40px;
  padding: 5px 10px;
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) 38px;
  align-items: center;
  gap: 7px;
  border: 1px solid #fff5;
  font-size: 9px;
}
.home-photo-scale input {
  width: 100%;
  accent-color: #f6f3ee;
}
.home-photo-scale output {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.menu-editor-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.menu-editor-copy {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}
.menu-editor-copy nav {
  margin: 28px 0;
  display: grid;
  justify-items: center;
  gap: 5px;
}
.menu-editor-copy nav div {
  position: relative;
  font: 400 clamp(40px, 5.5vw, 82px) / 1.04 var(--serif);
  letter-spacing: -0.045em;
}
.menu-editor-copy nav span {
  position: absolute;
  right: calc(100% + 16px);
  top: 0.6em;
  font: 500 9px/1 var(--sans);
  letter-spacing: 0.08em;
}
.menu-editor-copy nav strong {
  font: inherit;
}
.menu-editor-copy [contenteditable] {
  display: inline-block;
  min-width: 1ch;
  padding: 2px 5px;
  border-radius: 2px;
  outline: 1px dashed transparent;
  cursor: text;
}
.menu-editor-copy [contenteditable]:hover {
  outline-color: #63323e88;
}
.menu-editor-copy [contenteditable]:focus {
  outline: 2px solid #63323e;
  background: #fff9;
}
.menu-editor-copy > small {
  margin-top: 22px;
  color: #777;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-editor-canvas.is-menu-open .menu-editor-copy {
  opacity: 1;
  pointer-events: auto;
}
.menu-edit-frame {
  position: absolute;
  top: 50%;
  width: calc((100% - var(--gutter) * 2) / 2 + 1px);
  aspect-ratio: 6 / 5;
  max-height: 80svh;
  overflow: hidden;
  transform: translateY(-50%);
  transition: transform 620ms cubic-bezier(0.65, 0, 0.35, 1);
  cursor: grab;
  touch-action: none;
  outline: 0;
}
.menu-edit-frame.is-dragging {
  cursor: grabbing;
}
.menu-edit-frame.is-selected {
  box-shadow: inset 0 0 0 2px #63323e;
}
.menu-edit-frame:focus-visible {
  box-shadow: inset 0 0 0 3px #63323e;
}
.menu-edit-frame .photo {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transform: scale(var(--menu-edit-scale, 1));
  transform-origin: center;
  pointer-events: none;
}
.menu-edit-left {
  left: var(--gutter);
}
.menu-edit-right {
  right: var(--gutter);
}
.menu-editor-canvas.is-menu-open .menu-edit-left {
  transform: translateY(-50%) translateX(-80%);
}
.menu-editor-canvas.is-menu-open .menu-edit-right {
  transform: translateY(-50%) translateX(80%);
}
.menu-editor-dock {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-height: 68px;
  width: min(920px, calc(100vw - 36px));
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: #171717e8;
  box-shadow: 0 -8px 30px #0003;
  backdrop-filter: blur(12px);
}
.menu-editor-dock > button,
.menu-slot-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #fff5;
}
.menu-slot-tabs {
  display: flex;
}
.menu-slot-tabs button[aria-selected="true"] {
  color: #171717;
  background: #f6f3ee;
}
.menu-photo-scale {
  min-height: 40px;
  padding: 5px 12px;
  display: grid;
  grid-template-columns: auto 130px 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid #fff5;
  font-size: 9px;
  white-space: nowrap;
}
.menu-photo-scale input {
  width: 130px;
  accent-color: #f6f3ee;
}
.menu-photo-scale output {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.menu-editor-dock > span:last-child {
  font-size: 9px;
  color: #fffb;
}
.hero-picker {
  width: min(1080px, calc(100vw - 40px));
  height: min(760px, calc(100dvh - 40px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: #f6f3ee;
  color: #242424;
  overflow: hidden;
}
.hero-picker::backdrop {
  background: #080808c8;
  backdrop-filter: blur(3px);
}
.hero-picker-heading {
  position: relative;
  z-index: 2;
  top: 0;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f3eef2;
  border-bottom: 1px solid #d8d3cc;
  backdrop-filter: blur(10px);
}
.hero-picker-scroll {
  height: calc(100% - 105px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #63323e transparent;
}
.hero-picker-scroll::-webkit-scrollbar {
  width: 14px;
}
.hero-picker-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-left: 0;
}
.hero-picker-scroll::-webkit-scrollbar-thumb {
  min-height: 72px;
  border: 4px solid transparent;
  border-radius: 999px;
  background: #63323e;
}
.hero-picker-scroll::-webkit-scrollbar-thumb:hover {
  background: #3f2028;
}
.hero-picker-heading h2 {
  margin-top: 4px;
  font-size: 30px;
}
.hero-picker-heading button {
  min-height: 44px;
}
.hero-photo-grid,
.hero-logo-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hero-photo-grid button,
.hero-logo-grid button {
  padding: 0;
  text-align: left;
  border: 1px solid #d8d3cc;
  background: #fff;
}
.hero-photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-photo-grid span,
.hero-logo-grid span {
  display: block;
  padding: 8px 10px;
  font-size: 9px;
}
.hero-logo-grid {
  grid-template-columns: repeat(2, 1fr);
}
.hero-logo-grid img {
  width: 100%;
  height: 130px;
  padding: 26px;
  object-fit: contain;
}
@media (max-width: 760px) {
  .hero-editor-toolbar {
    left: 8px;
    right: 8px;
    top: 8px;
    align-items: flex-start;
  }
  .hero-editor-toolbar a {
    display: none;
  }
  .hero-editor-toolbar > div:last-child {
    gap: 6px;
  }
  .hero-editor-toolbar button {
    padding: 0 9px;
  }
  .hero-editor-dock {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: 8px;
    align-items: stretch;
    flex-direction: column;
  }
  .hero-slide-tabs {
    overflow-x: auto;
  }
  .hero-editor-actions button {
    flex: 1;
    padding: 0 8px;
  }
  .hero-logo-scale {
    grid-template-columns: auto minmax(70px, 1fr) 34px;
    width: 100%;
  }
  .hero-logo-scale input {
    width: 100%;
  }
  .hero-photo-grid,
  .hero-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
  }
  .hero-editor-hint {
    top: 43%;
  }
  .menu-editor-dock {
    bottom: 8px;
    width: calc(100vw - 16px);
    flex-wrap: wrap;
  }
  .menu-photo-scale {
    grid-template-columns: auto minmax(90px, 1fr) 38px;
  }
  .menu-editor-dock > span:last-child {
    display: none;
  }
  .home-photo-scale {
    width: 100%;
  }
  .home-photo-scale {
    grid-column: 1 / -1;
  }
}
.has-preview.is-horizontal {
  --story-preview-height: 28px;
}
@media (max-width: 760px) {
  .has-preview.is-horizontal {
    --story-preview-height: 40px;
  }
  .has-preview:not(.is-horizontal) .story-header {
    margin-top: 40px;
  }
  .preview-banner {
    font-size: 9px;
  }
  .preview-banner a {
    margin-left: 8px;
  }
}
.menu-inner {
  opacity: clamp(0, calc(var(--opening) * 1.7), 1);
}
@media (prefers-reduced-motion: reduce) {
  .menu-inner {
    opacity: 1;
  }
}
