/* Yiskah — motion direction, September 2026.
   Scrolling is native. Every scene has a readable, static fallback. */
:root {
  --motion-ease: cubic-bezier(.16,1,.3,1);
  --page-progress: 0;
  --header-height: 90px;
}
body { overflow-x: clip; }
.site-header { transition: background .4s, border-color .4s, box-shadow .4s; }
.site-header.is-scrolled { background: #0b0b0cf5; border-color: #70404f; box-shadow: 0 8px 32px #0002; }
.reading-progress { position: absolute; inset: auto 0 -1px; height: 2px; overflow: hidden; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: linear-gradient(90deg,#76243c,#f0bace); transform: scaleX(var(--page-progress)); transform-origin: left; }
.hero-visual { transform-origin: 68% 45%; }
.hero-visual img { will-change: transform; }
.hero-frame { position: absolute; inset: 30px 3.4% 104px 54%; pointer-events: none; z-index: -1; color: #f3e9e288; }
.hero-frame i { position: absolute; width: 26px; height: 26px; border-color: #e3bfca77; border-style: solid; border-width: 0; }
.hero-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero-frame > span { position: absolute; top: 12px; right: 14px; font-size: 12px; letter-spacing: .12em; }
.hero-content h1 > span,.hero-content h1 > em { width: fit-content; perspective: 600px; }
.hero-char { display: inline-block; transform-origin: 50% 80%; }
.hero-char-space { width: .25em; }
.hero-content { position: relative; z-index: 1; }
.hero-bottom { align-items: center; }
.hero-location { margin-left: auto; }
.scroll-cue { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #b0839366; border-radius: 50%; flex-shrink: 0; font-size: 22px; line-height: 1; overflow: hidden; }
.scroll-cue span { display: block; }
.scroll-cue:hover { background: #76243c; }
.intro-strip { position: relative; overflow: hidden; }
.intro-strip p { position: relative; z-index: 1; }
.intro-strip p em { color: var(--rose); }
.motion-enabled .intro-strip p { color: #9b9297; }
.motion-enabled .intro-strip p em { background: linear-gradient(90deg,#e7b9c8 0%,#e7b9c8 var(--ink,100%),#78636c var(--ink,100%),#78636c 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.strip-wordmark { transform-origin: center; }
/* Photos stay in normal document flow, with no pinned scroll sequence. */
.motion-story { margin-block: 16px 0; padding-inline: var(--page); }
.story-stage { position: relative; }
.story-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 12px; letter-spacing: .13em; }
.story-heading > span { color: #f3ede8; }
.story-heading a { font-size: 14px; letter-spacing: .05em; color: #e8d2da; }
.story-scenes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.story-scene { position: relative; height: clamp(340px,39vw,520px); overflow: hidden; isolation: isolate; border: 1px solid #54414a; background: #161216; }
.story-image,.story-scrim { position: absolute; inset: 0; }
.story-image { overflow: hidden; z-index: -2; }
.story-image img { height: 100%; width: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.story-image-event img { object-position: 45% 50%; }
.story-scrim { z-index: -1; background: linear-gradient(0deg,#0a070bf5,transparent 90%); }
.story-copy { position: absolute; left: 22px; right: 22px; bottom: 24px; }
.story-copy p { font-size: 11px; letter-spacing: .12em; color: #efc6d2; margin-bottom: 12px; }
.story-copy h2 { font-size: clamp(1.8rem,3.1vw,3.4rem); letter-spacing: -.055em; line-height: 1.06; margin-bottom: 14px; }
.story-copy h2 em { display: block; color: #f0c3d0; }
.story-copy > span { display: block; font-size: 14px; line-height: 1.5; color: #e0d5d9; }
.motion-ribbon { overflow: hidden; border-block: 1px solid var(--line); margin-top: 54px; padding-block: 18px; }
.ribbon-track { display: flex; width: max-content; }
.ribbon-track > span { display: block; flex-shrink: 0; font-size: clamp(26px,3.2vw,48px); letter-spacing: .025em; line-height: 1.2; color: #d7cbd155; white-space: nowrap; padding-right: .5em; }
.ribbon-track i { display: inline-block; font-size: .75em; font-style: normal; color: #b97891; margin-inline: .75em; }
.motion-word-mask { display: inline-block; vertical-align: bottom; padding: .11em .055em; margin: -.11em -.055em; perspective: 650px; }
.motion-word { display: inline-block; transform-origin: 0 75%; }
.section-heading { position: relative; }
.section-heading::after { content: ''; position: absolute; bottom: -16px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,#b3789080,transparent); transform: scaleX(var(--heading-rule,1)); transform-origin: left; }
.portfolio-toolbar { padding-top: 12px; }
.filters { position: relative; }
.filter-indicator { position: absolute; bottom: 0; left: 0; height: 2px; background: #e1b1c2; transform-origin: left; pointer-events: none; transition: width .5s var(--motion-ease), transform .5s var(--motion-ease); }
.motion-enabled .filter:after { display: none; }
.photo-card { position: relative; transform-origin: 50% 65%; }
.photo-card button { position: relative; isolation: isolate; transform-origin: center; }
.photo-card button::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--pointer-x,50%) var(--pointer-y,50%),#fff2,transparent 65%); opacity: 0; transition: opacity .5s; }
.photo-card button:hover::after { opacity: 1; }
.photo-card img { transition: transform .8s var(--motion-ease), filter .5s; }
.photo-card figcaption { position: relative; }
.photo-card figcaption::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: #a36c8270; transform: scaleX(var(--caption-line,1)); transform-origin: left; }
.photo-open { transition: transform .65s var(--motion-ease), background .3s; }
.photo-card button:hover .photo-open { transform: rotate(90deg); background: #76243c; }
.event-album { overflow: hidden; transform-origin: center; }
.event-cover { overflow: hidden; }
.event-cover img { transform-origin: center; }
.event-album-details { position: relative; z-index: 1; }
.event-album-details::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 1px; background: linear-gradient(transparent,#cd8ba8,transparent); transform: scaleY(var(--event-line,1)); transform-origin: top; }
.event-day { font-variant-numeric: tabular-nums; }
.price-panel { isolation: isolate; transform-origin: center; }
.price-panel::before { content: ''; position: absolute; inset: -1px; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at var(--light-x,0%) 0%,#b448673b,transparent 65%); opacity: var(--panel-light,0); }
.price-panel::after { content: ''; position: absolute; inset: -1px -1px auto; height: 2px; background: linear-gradient(90deg,#814256,#e6acc0,#814256); transform: scaleX(var(--panel-line,1)); transform-origin: left; }
.event-panel::after { transform-origin: right; }
.price-list > div { position: relative; }
.price-list > div::after { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: #cfa4b780; transform: scaleX(var(--row-line,0)); transform-origin: left; }
.price-list dd { font-variant-numeric: tabular-nums; transition: color .3s; }
.price-list > div:hover dd { color: #efc7d4; }
.about-art { perspective: 950px; }
.about-photo { transform-origin: 50% 60%; }
.about-signature { transform-origin: 75% 50%; }
.contact { position: relative; isolation: isolate; overflow: hidden; background: #2b111d; }
.contact::before { content: ''; position: absolute; inset: 0; background: #411927; z-index: -1; clip-path: circle(var(--contact-radius,150%) at 12% 90%); }
.contact::after { content: ''; position: absolute; width: 52vw; height: 52vw; max-width: 730px; max-height: 730px; min-width: 350px; min-height: 350px; border: 1px solid #ca859e22; border-radius: 50%; right: -10%; top: 10%; transform: translate3d(0,var(--contact-orbit,0px),0); pointer-events: none; z-index: -1; }
.contact-links a { position: relative; border-color: #95677766; }
.contact-links a::after { content: ''; position: absolute; inset: auto 0 -1px; height: 1px; background: #e4b7c8; transform: scaleX(var(--contact-line,1)); transform-origin: left; }
.contact-links a > span { transition: transform .45s var(--motion-ease); }
.contact-links a:hover > span { transform: translateX(8px); }
.footer-mark { text-align: center; overflow: hidden; font: 400 clamp(5rem,20vw,21rem)/.9 var(--serif); letter-spacing: -.055em; color: #b7829866; padding: 20px 0 45px; margin-bottom: 30px; border-bottom: 1px solid var(--line); transform-origin: center bottom; }
.footer-mark > span { display: block; font: 12px/1 var(--sans); letter-spacing: .55em; padding-top: 22px; color: #b696a4; }
.motion-toggle { border: 1px solid #755263; border-radius: 20px; background: transparent; font-size: 12px; color: #cab5bf; padding: 8px 13px; margin-bottom: 20px; min-height: 36px; }
.motion-toggle::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 8px; background: var(--rose); vertical-align: 2px; }
.motion-toggle[aria-pressed="false"]::before { background: #777; }
.button,.header-book,.menu-toggle,.filter,.dialog-nav button { position: relative; isolation: isolate; overflow: hidden; }
.button,.header-book { transition: background .35s, border-color .35s, transform .4s var(--motion-ease), box-shadow .4s; }
.button::before,.header-book::before { content: ''; position: absolute; inset: -2px; z-index: -1; background: #ffffff15; transform: translateX(-105%) skewX(-12deg); transition: transform .6s var(--motion-ease); }
.button:hover::before,.button:focus-visible::before,.header-book:hover::before { transform: translateX(0) skewX(0); }
.button:hover { box-shadow: 0 8px 28px #0003; }
.button:active,.menu-toggle:active,.filter:active { transform: scale(.97); }
.text-link { position: relative; }
.text-link::after { content: ''; position: absolute; inset: auto 0 -1px; height: 1px; background: #f1cbd8; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--motion-ease); }
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.tap-ripple { position: absolute; pointer-events: none; z-index: 2; border-radius: 50%; background: #ffffff33; }
.dialog-stage { overflow: hidden; }
.dialog-stage img { transform-origin: center; }
.photo-bridge { position: fixed; z-index: 100; pointer-events: none; object-fit: fill; max-width: none; margin: 0; }
.dialog-error { text-align: center; max-width: 320px; color: #ddbecb; padding: 24px; }
@media (hover:hover) and (pointer:fine) {
  .photo-card button { transition: box-shadow .4s; }
  .photo-card button:hover { box-shadow: 0 20px 45px #0005; }
}
@media (min-width:901px) {
  .motion-enabled .pricing-grid { perspective: 1400px; }
}
@media (max-width:900px) {
  :root { --header-height: 80px; }
  .hero-frame { inset: 24px 4% 150px 44%; }
  .hero-location { display: none; }
  .hero-bottom { justify-content: space-between; }
  .motion-enabled .site-header nav { display: flex; visibility: hidden; pointer-events: none; opacity: 0; clip-path: inset(0 0 100%); transition: clip-path .55s var(--motion-ease), opacity .35s, visibility .55s; }
  .motion-enabled .site-header nav.is-open { visibility: visible; pointer-events: auto; opacity: 1; clip-path: inset(0); }
  .motion-enabled .site-header nav a { transform: translateX(-22px); opacity: 0; transition: transform .55s var(--motion-ease), opacity .4s; transition-delay: 0s; }
  .motion-enabled .site-header nav.is-open a { transform: none; opacity: 1; transition-delay: calc(var(--nav-i,0) * 45ms + 60ms); }
  .story-copy { left: 6%; right: 6%; }
  .story-copy h2 { font-size: clamp(1.6rem,3.5vw,2.6rem); }
}
@media (max-width:600px) {
  .hero { min-height: 650px; }
  .hero-content { padding-top: 240px; padding-bottom: 106px; }
  .hero-visual { height: 430px; }
  .hero-frame { inset: 20px 20px auto; height: 290px; }
  .hero-frame > span { font-size: 12px; }
  .hero-bottom { gap: 14px; padding-block: 18px; }
  .hero-bottom > span:first-child { font-size: 12px; letter-spacing: .035em; }
  .hero-bottom i { padding-inline: 3px; }
  .hero-bottom .scroll-cue { width: 32px; height: 32px; font-size: 20px; }
  .intro-strip { padding-block: 38px; }
  .motion-story { padding-inline: 14px; margin-top: 0; }
  .story-heading { padding: 18px 0; font-size: 10px; letter-spacing: .03em; gap: 8px; }
  .story-heading a { font-size: 12px; letter-spacing: 0; }
  .story-scenes { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .story-scene { height: 220px; }
  .story-scene-first { grid-column: 1 / -1; height: 280px; }
  .story-copy { left: 13px; right: 13px; bottom: 17px; }
  .story-copy h2 { font-size: clamp(1.3rem,5.8vw,1.9rem); margin-bottom: 0; }
  .story-scene-first h2 { font-size: 2.6rem; margin-bottom: 10px; }
  .story-copy p { font-size: 9px; letter-spacing: .07em; margin-bottom: 10px; }
  .story-copy > span { display: none; }
  .story-scene-first .story-copy > span { display: block; font-size: 14px; }
  .motion-ribbon { margin-top: 34px; padding-block: 16px; }
  .section-heading::after { bottom: -13px; }
  .event-album-details::after { inset: 0 0 auto; width: auto; height: 1px; transform: scaleX(var(--event-line,1)); transform-origin: left; }
  .footer-mark { font-size: 21vw; padding-bottom: 30px; }
  .footer-mark > span { font-size: 12px; letter-spacing: .35em; padding-top: 17px; }
}
@media (max-width:360px) {
  h1 { font-size: 3.45rem; }
  .story-copy { left: 18px; right: 18px; }
  .hero-content { padding-top: 245px; }
  .hero { min-height: 710px; }
  .story-heading { padding-inline: 14px; }
}
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion:reduce) {
  .hero-visual img { will-change: auto; }
  .photo-card img,.photo-open,.button,.header-book { transform: none !important; }
  .scroll-cue span { transform: none !important; }
}
@media print {
  .motion-story,.motion-ribbon,.hero-frame,.reading-progress,.motion-toggle { display: none !important; }
  .contact::before,.contact::after { display: none; }
}
