/* Equinode x Soak, Seasons: Christmas. "The Quiet Gift" first screen and the unwrapping opening.
   Everything is scoped to .xm-*; the theme's header, logo and the rest of the page are not touched. */

/* ---- first screen ---- */
.xm-hero { position: relative; display: grid; grid-template-columns: 46fr 54fr; height: calc(100svh - 56px - 2 * var(--frame, 0px)); min-height: 540px; max-height: 1100px; background: #fff; }
.xm-hero.xm-solo { grid-template-columns: 1fr; }
.xm-night { position: relative; overflow: hidden; display: grid; align-content: center; padding: 0 clamp(28px, 6vw, 104px); color: #fff; background: linear-gradient(160deg, #1F2559 0%, #171B45 60%, #10133A 100%); }
.xm-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.xm-copy { position: relative; z-index: 3; display: grid; gap: clamp(18px, 2.6vh, 30px); justify-items: start; }
.xm-eyebrow { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--body, 'Raleway', system-ui, sans-serif); font-size: 10.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: #C9CEEF; }
.xm-eyebrow::before { content: ''; width: 34px; height: 1px; background: #C9CEEF; }
.xm-title { margin: 0; font-family: var(--display, 'Cormorant Garamond', Georgia, serif); font-weight: 300; font-size: clamp(50px, 6vw, 104px); line-height: .98; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.xm-title em { font-style: italic; font-weight: 300; }
.xm-text { margin: 0; max-width: 34ch; font-family: var(--body, 'Raleway', system-ui, sans-serif); font-size: 13.5px; font-weight: 400; line-height: 1.75; letter-spacing: .01em; word-spacing: normal; color: rgb(255 255 255 / .74); }
.xm-link { font-family: var(--body, 'Raleway', system-ui, sans-serif); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: #fff; padding-bottom: 8px; border-bottom: 1px solid rgb(255 255 255 / .55); transition: border-color .3s, letter-spacing .3s; }
.xm-link:hover, .xm-link:focus-visible { border-color: #fff; letter-spacing: .28em; color: #fff; }
.xm-who { position: absolute; left: clamp(28px, 6vw, 104px); bottom: clamp(22px, 4.5vh, 44px); z-index: 3; margin: 0; display: flex; gap: 26px; font-family: var(--display, 'Cormorant Garamond', Georgia, serif); font-style: italic; font-size: 17px; }
.xm-who a { text-decoration: none; color: rgb(255 255 255 / .78); padding: 6px 0; }
.xm-who a:hover, .xm-who a:focus-visible { color: #fff; }
.xm-sleigh { position: absolute; left: -200px; top: 9%; width: 150px; height: 70px; z-index: 2; opacity: .5; filter: brightness(0) invert(1); animation: xm-far 46s linear 3s infinite; }
@keyframes xm-far { 0% { transform: translateX(0) translateY(0); } 60%, 100% { transform: translateX(calc(46vw + 420px)) translateY(-3vh); } }

.xm-gallery { position: relative; display: grid; place-items: center; overflow: hidden; background: #fff; color: #1A1A1A; text-decoration: none; }
.xm-piece { position: relative; display: block; width: min(74%, 68vh); aspect-ratio: 1; animation: xm-in 1.8s cubic-bezier(.2, .7, .2, 1) both; }
.xm-piece img { width: 100%; height: 100%; object-fit: contain; display: block; filter: none; animation: xm-breathe 9s ease-in-out infinite; }
@keyframes xm-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes xm-breathe { 50% { transform: scale(1.025); } }
.xm-sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .85) 50%, transparent 58%); background-size: 300% 100%; mix-blend-mode: soft-light; animation: xm-sheen 7s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes xm-sheen { 0% { background-position: 120% 0; } 45%, 100% { background-position: -60% 0; } }
.xm-cap { position: absolute; right: clamp(20px, 3vw, 44px); bottom: clamp(22px, 4.5vh, 44px); text-align: right; display: grid; gap: 4px; }
.xm-cap b { font-family: var(--display, 'Cormorant Garamond', Georgia, serif); font-weight: 400; font-size: 18px; letter-spacing: .01em; }
.xm-cap span, .xm-no { font-family: var(--body, 'Raleway', system-ui, sans-serif); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #4A4845; }
.xm-no { position: absolute; left: clamp(20px, 3vw, 44px); top: clamp(20px, 4vh, 40px); letter-spacing: .3em; }
.xm-gallery:hover .xm-cap b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-aspect-ratio: 1/1) {
  .xm-hero { grid-template-columns: 1fr; grid-template-rows: 44% 56%; min-height: 600px; }
  .xm-hero.xm-solo { grid-template-rows: 1fr; }
  .xm-gallery { order: -1; }
  .xm-piece { width: min(60%, 32vh); translate: 0 -8%; }
  .xm-cap { bottom: 12px; right: 18px; } .xm-cap b { font-size: 14px; } .xm-cap span { font-size: 9px; } .xm-no { display: none; }
  .xm-night { padding: 0 22px 44px; }
  .xm-title { font-size: clamp(40px, 12vw, 56px); } .xm-copy { gap: 14px; } .xm-text { font-size: 13px; }
  .xm-who { left: 22px; bottom: 10px; font-size: 15px; gap: 20px; }
  .xm-sleigh { width: 110px; height: 52px; top: 5%; }
}
@media (prefers-reduced-motion: reduce) { .xm-piece, .xm-piece img, .xm-sheen, .xm-sleigh { animation: none; } .xm-sleigh { display: none; } }
html.so-still .xm-piece img, html.so-still .xm-sheen, html.so-still .xm-sleigh { animation-play-state: paused; }

/* ---- the unwrapping opening ---- */
.xm-paper { position: absolute; top: 0; bottom: 0; width: 50.2%; background: #D6D9F5 var(--xm-tile) repeat 0 0 / 150px 150px; will-change: transform; }
.xm-paper::before { content: ''; position: absolute; inset: 0; }
.xm-paper.xm-l { left: 0; background-position: right 0 top 0; }
.xm-paper.xm-r { right: 0; background-position: left 0 top 0; }
.xm-paper.xm-l::before { background: radial-gradient(ellipse 140% 90% at 100% 45%, rgb(255 255 255 / .5), transparent 60%), linear-gradient(90deg, rgb(27 32 77 / .16), transparent 45%); }
.xm-paper.xm-r::before { background: radial-gradient(ellipse 140% 90% at 0% 45%, rgb(255 255 255 / .5), transparent 60%), linear-gradient(270deg, rgb(27 32 77 / .16), transparent 45%); }
.xm-paper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 46px; opacity: 0; transition: opacity .5s; }
.xm-paper.xm-l::after { right: 0; background: linear-gradient(90deg, transparent, rgb(27 32 77 / .3)); }
.xm-paper.xm-r::after { left: 0; background: linear-gradient(270deg, transparent, rgb(27 32 77 / .3)); }
.xm-wrap.xm-lift { background: transparent; }
.xm-wrap.xm-lift .xm-paper::after { opacity: 1; }
.xm-rib { position: absolute; background: linear-gradient(90deg, #C9CCDB 0%, #F4F5FA 14%, #FFFFFF 34%, #E4E6F0 52%, #FFFFFF 70%, #EEF0F6 86%, #BFC3D4 100%); box-shadow: 0 5px 18px rgb(27 32 77 / .34), 0 0 0 1px rgb(27 32 77 / .05); will-change: transform; }
.xm-rib.xm-v { left: 50%; top: -2%; bottom: -2%; width: clamp(46px, 7.5vmin, 84px); translate: -50% 0; }
.xm-rib.xm-h { top: 50%; left: -2%; right: -2%; height: clamp(46px, 7.5vmin, 84px); translate: 0 -50%; background: linear-gradient(180deg, #C9CCDB 0%, #F4F5FA 14%, #FFFFFF 34%, #E4E6F0 52%, #FFFFFF 70%, #EEF0F6 86%, #BFC3D4 100%); }
.xm-bow { position: absolute; left: 50%; top: 50%; width: clamp(300px, 62vmin, 700px); height: auto; translate: -50% -40%; overflow: visible; filter: drop-shadow(0 12px 16px rgb(27 32 77 / .38)); }
.xm-bow .xm-part { transform-box: view-box; transform-origin: 200px 120px; }
.xm-card { position: absolute; left: 0; width: 50%; top: 25%; translate: 0 -50%; text-align: center; padding-right: 4vmin; box-sizing: border-box; color: #1B204D; font: italic 400 clamp(22px, 3vmin, 34px)/1.2 'Cormorant Garamond', Georgia, serif; letter-spacing: .02em; white-space: nowrap; }
.xm-card span { display: inline-block; padding: 16px 30px 18px; background: #fff; box-shadow: 0 6px 18px rgb(27 32 77 / .22); outline: 1px solid rgb(42 49 120 / .35); outline-offset: -6px; }
@media (max-width: 600px) { .xm-card { font-size: 14.5px; padding-right: 22px; } .xm-card span { padding: 11px 12px 12px; outline-offset: -4px; } }
