body.is-xurih {
  background: #fff;
}
body.is-xurih .grain {
  display: none;
}

.xr {
  color: #111;
  background: #fff;
  font-weight: 400;
}

.xr-stage {
  position: relative;
  isolation: isolate;
}

.xr-hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 34rem;
  background: #d8d4cc;
  overflow: hidden;
}
.xr-hero > img:first-of-type {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
/* Brand title sits above the hillside photo but under every cloud/mist/white sheet. */
.xr-hero__title {
  position: absolute;
  left: clamp(1.15rem, 4vw, 3.4rem);
  right: 1.2rem;
  bottom: clamp(1.8rem, 7vh, 4.2rem);
  z-index: 1;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.7rem, 6.6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 12px 36px rgba(0, 0, 0, 0.22);
  opacity: calc(1 - var(--xr-mist, 0) * 1.2);
  transform: translateY(calc(var(--xr-mist, 0) * -1.1rem));
  pointer-events: none;
}
/* Latin wordmark is longer ("XURIH DESIGN") — give it room without awkward wrap. */
html[lang="en"] .xr-hero__title,
html[lang="ja"] .xr-hero__title {
  max-width: min(13.5ch, calc(100vw - 2.6rem));
  letter-spacing: -0.04em;
}


.xr-clouds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint;
}
/*
  Scroll rise uses transform + --xr-mist (JS only while catching up).
  Lateral/billow motion is CSS keyframes on `translate` so JS does not
  thrash styles every frame (that loop was freezing tabs).
*/
.xr-cloud {
  position: absolute;
  left: -22%;
  width: 144%;
  height: auto;
  bottom: -16%;
  display: block;
  max-width: none;
  opacity: calc(min(1, var(--xr-mist, 0) * 1.45) * var(--xr-cloud-gain, 1));
  transform:
    translate3d(0, calc((1 - var(--xr-mist, 0)) * 62%), 0)
    scale(calc(1.04 + (1 - var(--xr-mist, 0)) * 0.16));
  translate: 0 0;
  backface-visibility: hidden;
}
.xr-cloud--1 { --xr-cloud-gain: 1; }
.xr-cloud--2 {
  --xr-cloud-gain: 1;
  left: -28%;
  width: 156%;
  bottom: -22%;
  transform:
    translate3d(0, calc((1 - var(--xr-mist, 0)) * 76%), 0)
    scale(calc(1.07 + (1 - var(--xr-mist, 0)) * 0.2));
}
.xr-cloud--3 {
  --xr-cloud-gain: 0.92;
  left: -32%;
  width: 164%;
  bottom: -28%;
  transform:
    translate3d(0, calc((1 - var(--xr-mist, 0)) * 88%), 0)
    scale(calc(1.1 + (1 - var(--xr-mist, 0)) * 0.22));
}
.xr-cloud--4 {
  --xr-cloud-gain: 0.88;
  left: -16%;
  width: 138%;
  bottom: -12%;
  transform:
    translate3d(0, calc((1 - var(--xr-mist, 0)) * 54%), 0)
    scaleX(-1) scale(calc(1.05 + (1 - var(--xr-mist, 0)) * 0.14));
}
.xr-cloud--veil {
  left: -12%;
  width: 124%;
  height: 120%;
  bottom: -40%;
  object-fit: cover;
  --xr-cloud-gain: 0.5;
  /* No live blur filter — that was a major GPU cost on large PNGs. */
  opacity: calc(min(1, var(--xr-mist, 0) * 1.2) * var(--xr-cloud-gain, 1));
  transform: translate3d(0, calc((1 - var(--xr-mist, 0)) * 58%), 0);
}
.xr-cloud--sheet {
  top: -2% !important;
  right: -2% !important;
  bottom: -2% !important;
  left: -2% !important;
  width: auto !important;
  height: auto !important;
  background: #fff;
  opacity: var(--xr-white, 0);
  transform: none !important;
  translate: none !important;
  animation: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  /* Drift ~2.75× slower than craft-13 for a soft, unhurried billow. */
  .xr-hero.is-xr-animating .xr-cloud--1 {
    animation: xr-billow-1 9.9s ease-in-out infinite alternate;
  }
  .xr-hero.is-xr-animating .xr-cloud--2 {
    animation: xr-billow-2 11.6s ease-in-out infinite alternate;
  }
  .xr-hero.is-xr-animating .xr-cloud--3 {
    animation: xr-billow-3 13.8s ease-in-out infinite alternate;
  }
  .xr-hero.is-xr-animating .xr-cloud--4 {
    animation: xr-billow-4 10.7s ease-in-out infinite alternate;
  }
  .xr-hero.is-xr-animating .xr-cloud--veil {
    animation: xr-billow-veil 16.5s ease-in-out infinite alternate;
  }
  .xr-hero.is-xr-settled .xr-cloud {
    animation: none !important;
    translate: 0 0 !important;
  }
}

@keyframes xr-billow-1 {
  from { translate: -14% 6%; }
  to { translate: 16% -8%; }
}
@keyframes xr-billow-2 {
  from { translate: 18% -7%; }
  to { translate: -16% 9%; }
}
@keyframes xr-billow-3 {
  from { translate: -12% 8%; }
  to { translate: 14% -6%; }
}
@keyframes xr-billow-4 {
  from { translate: 12% -5%; }
  to { translate: -15% 7%; }
}
@keyframes xr-billow-veil {
  from { translate: -6% 4%; }
  to { translate: 7% -3%; }
}

.xr-scroll {
  /* Sticky travel after hero: keep cloud→white readable, then hand off to collage quickly. */
  height: 34vh;
  pointer-events: none;
}

/* Pin scrub needs discrete scroll deltas; smooth root scrolling stretches settle. */
html:has(body.is-xurih) {
  scroll-behavior: auto !important;
}

.xr-gallery {
  position: relative;
  z-index: 4;
  background: #fff;
  /* Pin track owns height; avoid the old tall empty min-height runway. */
  min-height: 0;
  padding: 0;
  overflow: visible;
  overflow-anchor: none;
}
.xr-gallery__track {
  position: relative;
  /* Scroll budget: grow + short hold + shrink/dock should fill most of the pin. */
  height: 360vh;
}
.xr-gallery__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 36rem;
  overflow: hidden;
  overflow-anchor: none;
  background: #fff;
  /* Tight top pad: hand off from white sheet into photos without a blank runway. */
  padding: clamp(1.2rem, 2.8vh, 2.2rem) 0 0;
  box-sizing: border-box;
}
.xr-gallery__inner {
  position: relative;
  width: min(1560px, calc(100% - 0.75rem));
  margin: 0 auto;
  height: calc(100% - 0.35rem);
  min-height: 0;
}
.xr-gallery__title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: min(24rem, 36vw);
  margin: 0;
  padding: 2.4rem 1.6rem;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(1.8rem, 3.1vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.32;
  color: #111;
  pointer-events: none;
}
.xr-gallery__title span {
  display: block;
}
html[lang="en"] .xr-gallery__title {
  width: min(26rem, 36vw);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.26;
  padding: 2.3rem 1.5rem;
}

.xr-shot {
  position: absolute;
  z-index: 1;
  margin: 0;
  border: 0;
  background: none;
  overflow: hidden;
  border-radius: 0.85rem;
  will-change: transform, opacity;
}
.xr-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dominant desktop collage — fill perimeter; keep center title + nav clear. */
.xr-shot--1 { width: min(40vw, 510px); aspect-ratio: 16/9; left: -3.5%; top: 15%; transform: rotate(-3.8deg); }
.xr-shot--2 { width: min(42vw, 540px); aspect-ratio: 3/2; right: -5.5%; top: 13%; transform: rotate(2.8deg); }
.xr-shot--3 { width: min(22vw, 280px); aspect-ratio: 3/4; left: -0.5%; bottom: 2%; transform: rotate(2deg); }
.xr-shot--4 { width: min(44vw, 560px); aspect-ratio: 3/2; right: -5%; bottom: -1.5%; transform: rotate(-2.4deg); }
.xr-shot--5 { width: min(23vw, 290px); aspect-ratio: 1/1; left: -2.5%; top: 43%; transform: rotate(4deg); }
.xr-shot--6 { width: min(36vw, 460px); aspect-ratio: 3/2; left: 60%; right: auto; bottom: 0.5%; transform: rotate(-2.8deg); }

@media (prefers-reduced-motion: no-preference) {
  html.xr-prep:not(.xr-go) .xr-hero__title {
    opacity: 0;
    transform: translateY(1.15rem);
  }
  html.xr-go .xr-hero__title {
    transition:
      opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
      transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
  }
  /*
    Second-layer entrance: soft opacity + translate/scale, long ease-out,
    staggered by depth/size (heroes first, accents later, title with care).
  */
  .xr-gallery__title:not(.is-in),
  .xr-shot:not(.is-in) {
    opacity: 0;
  }
  .xr-shot--1:not(.is-in) { transform: rotate(-3.8deg) translate3d(-1.15rem, 1.55rem, 0) scale(0.94); }
  .xr-shot--2:not(.is-in) { transform: rotate(2.8deg) translate3d(1.25rem, 1.35rem, 0) scale(0.93); }
  .xr-shot--3:not(.is-in) { transform: rotate(2deg) translate3d(-0.85rem, 1.7rem, 0) scale(0.92); }
  .xr-shot--4:not(.is-in) { transform: rotate(-2.4deg) translate3d(1.05rem, 1.6rem, 0) scale(0.93); }
  .xr-shot--5:not(.is-in) { transform: rotate(4deg) translate3d(-0.7rem, 1.25rem, 0) scale(0.91); }
  .xr-shot--6:not(.is-in) { transform: rotate(-2.8deg) translate3d(0.75rem, 1.55rem, 0) scale(0.93); }
  .xr-gallery__title:not(.is-in) {
    transform: translate(-50%, calc(-50% + 0.9rem)) scale(0.985);
  }
  .xr-gallery__title.is-in,
  .xr-shot.is-in {
    opacity: 1;
    transition:
      opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
      transform 1.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .xr-shot--2.is-in { transition-delay: 0.02s; }
  .xr-shot--1.is-in { transition-delay: 0.1s; }
  .xr-shot--4.is-in { transition-delay: 0.16s; }
  .xr-gallery__title.is-in { transition-delay: 0.2s; }
  .xr-shot--6.is-in { transition-delay: 0.28s; }
  .xr-shot--3.is-in { transition-delay: 0.36s; }
  .xr-shot--5.is-in { transition-delay: 0.44s; }
}

body.is-xurih .xr-nav-lead {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
body.is-xurih .nav {
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.34s ease,
    top 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    left 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    right 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    width 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    height 1s ease,
    padding 1s ease,
    background 0.9s ease,
    border-color 0.9s ease,
    box-shadow 0.9s ease,
    backdrop-filter 0.9s ease !important;
}
/*
  Keep geometry (top/left/width/…) on the same long ease as island→corner
  entry. a1776c8 shortened this rule to transform+opacity only, which made
  park() snap because is-ready is already on when is-corner is added.
  Scroll-away still feels snappy via the shorter transform/opacity times.
*/
body.is-xurih .nav.is-corner.is-ready {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.34s ease,
    top 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    left 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    right 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    width 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    height 1s ease,
    padding 1s ease,
    background 0.9s ease,
    border-color 0.9s ease,
    box-shadow 0.9s ease,
    backdrop-filter 0.9s ease !important;
}
/*
  Root cause of stray photo sliver above nav: explore island keeps
  top: var(--nav-island-top) (~0.9rem). Corner mode must pin to top:0
  so collage never paints in the gap above the bar.
*/
body.is-xurih .nav.is-corner,
body.is-xurih .nav.is-corner.is-solid,
body.is-xurih .nav.is-corner.is-ready,
body.is-xurih.is-explore .nav.is-corner,
body.is-xurih.is-explore .nav.is-corner.is-solid,
body.is-xurih.is-explore .nav.is-corner.is-ready,
body.is-xurih.is-explore .nav.is-corner.is-solid.is-ready {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
  /* Left brand/links: editorial inset (not flush ~11px). Right lang/contact unchanged. */
  padding-left: max(clamp(1.35rem, 3.4vw, 2.75rem), env(safe-area-inset-left, 0px)) !important;
  padding-right: max(0.35rem, env(safe-area-inset-right, 0px)) !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  color: #111 !important;
  z-index: 90 !important;
}
/* Solid white cover once collage is under the bar — no photo bleed/gap. */
body.is-xurih.is-xr-white .nav.is-corner,
body.is-xurih.is-xr-white .nav.is-corner.is-solid,
body.is-xurih.is-xr-white .nav.is-corner.is-ready {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.is-xurih .nav.is-corner::before,
body.is-xurih .nav.is-corner::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}
body.is-xurih .nav.is-corner .nav__inner {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
}
body.is-xurih .nav.is-corner .nav__actions {
  justify-self: end;
}
body.is-xurih .nav.is-corner .nav__link,
body.is-xurih .nav.is-corner .lang__btn,
body.is-xurih .nav.is-corner .nav__burger,
body.is-xurih.is-xr-white .nav.is-corner .nav__link,
body.is-xurih.is-xr-white .nav.is-corner .lang__btn,
body.is-xurih.is-xr-white .nav.is-corner .nav__burger,
body.is-xurih.is-xr-white .nav.is-corner .nav__cta {
  color: #111;
  text-shadow: none;
}
body.is-xurih.is-xr-white .nav.is-corner .nav__cta {
  border-color: #111 !important;
}
/* Scroll-away: whole header slides up + fades (XURIH only). */
body.is-xurih .nav.is-corner.is-xr-away,
body.is-xurih .nav.is-corner.is-solid.is-xr-away,
body.is-xurih .nav.is-corner.is-ready.is-xr-away,
body.is-xurih.is-explore .nav.is-corner.is-xr-away,
body.is-xurih.is-explore .nav.is-corner.is-solid.is-xr-away,
body.is-xurih.is-explore .nav.is-corner.is-ready.is-xr-away,
body.is-xurih.is-explore .nav.is-corner.is-solid.is-ready.is-xr-away {
  transform: translate3d(0, calc(-100% - 0.85rem), 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.is-xurih .nav,
  body.is-xurih .nav.is-ready,
  body.is-xurih .nav.is-corner,
  .xr-hero__title,
  .xr-cloud,
  .xr-shot,
  .xr-gallery__title {
    transition: none !important;
    animation: none !important;
  }
  body.is-xurih .nav.is-xr-away {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .xr-gallery .xr-gallery__title,
  .xr-gallery .xr-shot,
  .xr-gallery__title.is-in,
  .xr-shot.is-in {
    opacity: 1 !important;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .xr-gallery__title {
    width: min(20rem, 34vw);
    font-size: clamp(1.65rem, 2.6vw, 2.3rem);
    padding: 2rem 1.3rem;
  }
  html[lang="en"] .xr-gallery__title {
    width: min(24rem, 40vw);
  }
  .xr-shot--1 { width: min(38vw, 430px); top: 14%; left: -3%; }
  .xr-shot--2 { width: min(42vw, 470px); top: 11%; right: -3%; }
  .xr-shot--3 { width: min(20vw, 240px); }
  .xr-shot--4 { width: min(44vw, 500px); }
  .xr-shot--5 { width: min(22vw, 250px); left: -2%; top: 43%; }
  .xr-shot--6 { width: min(36vw, 420px); left: 56%; bottom: 1%; }
}

@media (max-width: 900px) {
  /*
    Mobile collage: contained composition inside the sticky stage.
    No negative edge offsets / tilt — those clipped photos past the viewport
    and shoved the headline off-center. Desktop rules above stay untouched.
  */
  .xr-gallery {
    min-height: 0;
    padding: 0;
    /* Keep overflow visible on the section — hidden here breaks position:sticky. */
    overflow: visible;
  }
  .xr-gallery__track {
    height: 320vh;
  }
  .xr-gallery__sticky {
    min-height: 0;
    height: 100svh;
    padding-top: 0.7rem;
    /* Clip collage bleed inside the pinned stage only (sticky itself may overflow). */
    overflow: hidden;
  }
  .xr-gallery__inner {
    width: calc(100% - 1.5rem);
    height: calc(100% - 0.35rem);
    min-height: 0;
    display: block;
    margin-inline: auto;
    overflow: hidden;
  }
  /*
    Editorial mobile collage — scale contrast, asymmetric offsets,
    controlled overlaps + elevation. Not a two-column list.
    Headline ~80vw (beats desktop en 36vw rule). All AABBs stay in-viewport.
  */
  .xr-gallery__title,
  html[lang="en"] .xr-gallery__title {
    position: absolute;
    left: 50%;
    top: 33%;
    transform: translate(-50%, calc(-50% + var(--xr-depth, 0) * -5px));
    width: 80vw;
    max-width: 80vw;
    margin: 0;
    padding: 0.4rem 0.2rem;
    font-size: clamp(1.35rem, 5.1vw, 1.7rem);
    line-height: 1.3;
    letter-spacing: -0.03em;
    z-index: 8;
    text-align: center;
    /* Soft veil so type stays legible when layered over photos */
    text-shadow:
      0 0 1.1rem rgba(255, 255, 255, 0.95),
      0 0 0.35rem #fff,
      0 1px 0 rgba(255, 255, 255, 0.8);
  }
  html[lang="en"] .xr-gallery__title {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    line-height: 1.28;
    letter-spacing: -0.02em;
  }
  .xr-shot {
    position: absolute;
    border-radius: 0.65rem;
    box-shadow: 0 0.4rem 1.05rem rgba(17, 17, 17, 0.07);
  }
  /* Small lead — underlaps the focus hero */
  .xr-shot--1 {
    width: 36%;
    aspect-ratio: 16 / 10;
    left: 3%;
    top: 12%;
    right: auto;
    bottom: auto;
    z-index: 2;
  }
  /* Focus hero — largest, anchors the upper field */
  .xr-shot--2 {
    width: 60%;
    aspect-ratio: 4 / 3;
    right: 2.5%;
    top: 5.5%;
    left: auto;
    bottom: auto;
    z-index: 5;
    box-shadow: 0 0.75rem 1.85rem rgba(17, 17, 17, 0.12);
  }
  /* Compact square accent — left of title band */
  .xr-shot--5 {
    width: 21%;
    aspect-ratio: 1 / 1;
    left: 5%;
    top: 42%;
    right: auto;
    bottom: auto;
    z-index: 4;
    box-shadow: 0 0.45rem 1.15rem rgba(17, 17, 17, 0.09);
  }
  /* Portrait — right, staggered below hero */
  .xr-shot--3 {
    width: 27%;
    aspect-ratio: 3 / 4;
    right: 4%;
    top: 39%;
    left: auto;
    bottom: auto;
    z-index: 3;
  }
  /* Mid-wide — overlaps bottom hero slightly */
  .xr-shot--6 {
    width: 52%;
    aspect-ratio: 4 / 3;
    left: 2.5%;
    top: 58%;
    right: auto;
    bottom: auto;
    z-index: 3;
    box-shadow: 0 0.55rem 1.35rem rgba(17, 17, 17, 0.09);
  }
  /* Secondary hero — bottom right, larger than mid accents */
  .xr-shot--4 {
    width: 50%;
    aspect-ratio: 16 / 10;
    right: 2.5%;
    top: 67%;
    left: auto;
    bottom: auto;
    z-index: 4;
    box-shadow: 0 0.7rem 1.65rem rgba(17, 17, 17, 0.11);
  }
  /* Entrance → layered rest pose; --xr-depth adds refined scroll parallax */
  .xr-shot--1:not(.is-in) { transform: translate3d(-0.7rem, 1.05rem, 0) scale(0.94); }
  .xr-shot--2:not(.is-in) { transform: translate3d(0.85rem, 1.1rem, 0) scale(0.92); }
  .xr-shot--3:not(.is-in) { transform: translate3d(0.55rem, 1.15rem, 0) scale(0.93); }
  .xr-shot--4:not(.is-in) { transform: translate3d(0.7rem, 1.2rem, 0) scale(0.93); }
  .xr-shot--5:not(.is-in) { transform: translate3d(-0.45rem, 0.95rem, 0) scale(0.92); }
  .xr-shot--6:not(.is-in) { transform: translate3d(-0.55rem, 1.1rem, 0) scale(0.93); }
  .xr-shot--1.is-in { transform: translate3d(0, calc(var(--xr-depth, 0) * -11px), 0); }
  .xr-shot--2.is-in { transform: translate3d(0, calc(var(--xr-depth, 0) * -4px), 0); }
  .xr-shot--3.is-in { transform: translate3d(0, calc(var(--xr-depth, 0) * -14px), 0); }
  .xr-shot--4.is-in { transform: translate3d(0, calc(var(--xr-depth, 0) * -6px), 0); }
  .xr-shot--5.is-in { transform: translate3d(0, calc(var(--xr-depth, 0) * -16px), 0); }
  .xr-shot--6.is-in { transform: translate3d(0, calc(var(--xr-depth, 0) * -9px), 0); }
  .xr-gallery.is-morphing .xr-shot:not(.xr-shot--focus).is-in,
  .xr-gallery.is-intro .xr-shot:not(.xr-shot--focus).is-in {
    transform: none;
  }
}

@media (max-width: 800px) {
  .xr-hero {
    min-height: 28rem;
  }
  .xr-hero__title {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }
  .xr-scroll {
    height: 28vh;
  }
  body.is-xurih .nav .nav__inner,
  body.is-xurih .nav.is-corner .nav__inner {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }
  body.is-xurih .nav .nav__actions,
  body.is-xurih .nav.is-corner .nav__actions {
    grid-column: 2;
    justify-self: end;
  }
}

/* —— Focus carousel in collage shot--2 —— */
.xr-shot--focus {
  z-index: 5;
}
.xr-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.xr-carousel__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #eceae6;
}
.xr-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  background: #eceae6;
}
.xr-carousel__slide.is-on {
  opacity: 1;
  z-index: 1;
}
.xr-carousel__toggle {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 3;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.72);
  color: #111;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: pointer;
}
.xr-shot--focus:hover .xr-carousel__toggle,
.xr-shot--focus:focus-within .xr-carousel__toggle {
  opacity: 0.92;
  pointer-events: auto;
}
.xr-gallery.is-morphing .xr-carousel__toggle,
.xr-gallery.is-intro .xr-carousel__toggle,
.xr-gallery.is-morphing .xr-shot--focus:hover .xr-carousel__toggle,
.xr-gallery.is-intro .xr-shot--focus:hover .xr-carousel__toggle {
  opacity: 0 !important;
  pointer-events: none !important;
}
.xr-carousel__toggle:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
  opacity: 1;
  pointer-events: auto;
}

/* Absolute morph inside sticky stage (not body-fixed; avoids overflow trap regressions). */
.xr-shot--focus.is-fixed {
  position: absolute !important;
  left: var(--xr-fx, 0) !important;
  top: var(--xr-fy, 0) !important;
  width: var(--xr-fw, 40vw) !important;
  height: var(--xr-fh, 28vw) !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  /* Unwrap collage tilt over early grow — no instant rotate kill. */
  transform: rotate(var(--xr-rot, 0deg)) !important;
  border-radius: var(--xr-fr, 0.85rem) !important;
  z-index: 30 !important;
  overflow: hidden !important;
  will-change: left, top, width, height, border-radius, transform;
}
.xr-shot--focus.is-fixed .xr-carousel__slide {
  /* Keep collage framing at onset — no object-position snap on handoff. */
  object-position: 50% 50%;
}
/* Soft white veil + surround fade driven by --xr-surround (slow, coordinated). */
.xr-gallery.is-morphing .xr-gallery__sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #fff;
  opacity: calc(var(--xr-surround, 0) * 0.94);
  pointer-events: none;
}
.xr-gallery.is-morphing .xr-gallery__title {
  opacity: calc(1 - var(--xr-surround, 0));
  pointer-events: none;
}
.xr-gallery.is-morphing .xr-shot:not(.xr-shot--focus) {
  opacity: calc(1 - var(--xr-surround, 0));
  pointer-events: none;
}

.xr-shot--focus.is-docked {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  border-radius: 0.45rem !important;
  z-index: 2;
}

/* Intro overlays the pinned sticky stage; copy reveals as photo docks. */
.xr-intro {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 10vh, 6rem) clamp(1.25rem, 5vw, 3.5rem);
  box-sizing: border-box;
  background: #fff;
  opacity: var(--xr-intro, 0);
  pointer-events: none;
}
.xr-intro.is-live {
  pointer-events: auto;
}
.xr-gallery.is-intro .xr-intro {
  opacity: 1;
}
.xr-gallery.is-intro {
  --xr-copy: 1;
}
.xr-intro__block {
  position: relative;
  width: min(46rem, 92vw);
  max-width: 100%;
}
.xr-intro__copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.95rem;
  align-items: start;
  margin: 0;
  color: #111;
  font-size: clamp(1.55rem, 3.6vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.38;
  opacity: var(--xr-copy, 0);
}
.xr-intro__thumb-slot {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: clamp(5.6rem, 11vw, 8.2rem);
  aspect-ratio: 3 / 2;
  margin: 0.2em 0 0;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #eceae6;
}
.xr-intro__copy > [data-xr="intro"] {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.xr-intro__rule {
  width: 100%;
  height: 1px;
  margin-top: 1.35rem;
  background: rgba(0, 0, 0, 0.18);
  opacity: var(--xr-copy, 0);
}

@media (prefers-reduced-motion: reduce) {
  .xr-carousel__slide { transition: none !important; }
  .xr-gallery__track { height: auto; }
  .xr-gallery__sticky {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 2rem;
  }
  .xr-intro {
    position: relative;
    opacity: 1 !important;
    padding-top: 2rem;
  }
  .xr-shot--focus.is-fixed {
    position: absolute !important;
  }
}

@media (max-width: 900px) {
  /* Center thumbnail + intro copy in the pinned viewport (not bottom-docked). */
  .xr-intro {
    padding: 1.25rem 1.15rem;
    align-items: center;
    justify-content: center;
  }
  .xr-intro__block { width: 100%; }
  .xr-intro__thumb-slot {
    width: clamp(4.8rem, 30vw, 7rem);
  }
  .xr-intro__copy {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
    line-height: 1.42;
  }
  .xr-carousel__toggle {
    font-size: 0.62rem;
    /* Park control off the photo face during collage — keyboard still reaches it. */
    right: 0.4rem;
    bottom: auto;
    top: 0.4rem;
  }
  .xr-gallery:not(.is-morphing):not(.is-intro) .xr-carousel__toggle {
    opacity: 0;
    pointer-events: none;
  }
  .xr-gallery:not(.is-morphing):not(.is-intro) .xr-carousel__toggle:focus-visible {
    opacity: 1;
    pointer-events: auto;
  }
}
