/* Motion stage: decorative compositions, ambient loops and interaction states.
   All original merchant content and 3:4 photo containers keep their layout. */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

/* Ambient motion runs only near the viewport and while this page is active. */
.ambient-element { animation-play-state: paused !important; }
.ambient-in-view .ambient-element { animation-play-state: running !important; }
.page-motion-paused .ambient-element { animation-play-state: paused !important; }
.hero-image { animation: photo-breathe 20s ease-in-out infinite alternate; }
@keyframes photo-breathe {
  from { transform: scale(1.001); }
  to { transform: scale(1.018) translateY(-.15%); }
}
.hero-seal {
  position: absolute;
  top: calc(var(--header-height) + 34px);
  right: max(48px, calc((100% - 1264px) / 2));
  width: 154px;
  aspect-ratio: 1;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: seal-float 6s ease-in-out infinite;
}
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: brand-turn 24s linear infinite; }
.seal-ring text { fill: currentColor; font-size: 11px; font-weight: 500; letter-spacing: 1px; }
.seal-centre { font-size: 52px; line-height: 1; letter-spacing: -.08em; font-weight: 500; transform: rotate(-9deg); padding-right: 8px; }
.seal-centre > span { font-size: 20px; vertical-align: super; letter-spacing: -.04em; }
@keyframes brand-turn { to { transform: rotate(360deg); } }
@keyframes seal-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(12px) rotate(3deg); }
}

.brand-ribbon { overflow: hidden; background: var(--accent); color: var(--paper); padding-block: 16px; }
.ribbon-track { display: flex; width: max-content; animation: ribbon-flow 28s linear infinite; }
.ribbon-group { display: flex; align-items: center; flex: none; gap: 28px; padding-right: 28px; }
.ribbon-group > span:not(.ribbon-flower) { font-size: clamp(28px, 2.2vw, 34px); letter-spacing: -.04em; line-height: 1.1; white-space: nowrap; }
.ribbon-flower {
  width: 20px; height: 20px; display: block; flex: none; background: currentColor;
  clip-path: polygon(50% 0,59% 28%,85% 15%,72% 41%,100% 50%,72% 59%,85% 85%,59% 72%,50% 100%,41% 72%,15% 85%,28% 59%,0 50%,28% 41%,15% 15%,41% 28%);
}
@keyframes ribbon-flow { to { transform: translateX(-50%); } }

.about-section { overflow: clip; }
.about-figure { position: relative; isolation: isolate; }
.photo-outline {
  position: absolute; inset: 0 0 32px; border: 1px solid var(--accent);
  pointer-events: none; z-index: -1; opacity: .65;
  animation: photo-frame-drift 7s ease-in-out infinite;
}
@keyframes photo-frame-drift {
  0%, 100% { transform: translate(-13px, 10px) rotate(-3deg); }
  50% { transform: translate(15px, -12px) rotate(2deg); }
}

.moments-heading { position: relative; }
.day-night-art { position: relative; width: 156px; height: 156px; flex: none; align-self: center; color: var(--accent); }
.orbit-halo { position: absolute; inset: 13px; border: 1px solid currentColor; border-radius: 50%; opacity: .25; animation: orbit-breathe 5s ease-in-out infinite; }
.orbit-turn { position: absolute; inset: 0; border: 1px solid #841b2655; border-radius: 50%; animation: brand-turn 22s linear infinite; }
.orbit-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 26px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.orbit-label > .orbit-to { font-size: 11px; line-height: 1; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.orbit-sun { position: absolute; top: 50%; left: -12px; width: 24px; height: 24px; margin-top: -12px; background: var(--accent); border: 5px solid var(--rose); border-radius: 50%; box-shadow: 0 0 0 1px var(--accent); }
.orbit-moon { position: absolute; top: 50%; right: -13px; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--accent); overflow: hidden; }
.orbit-moon::after { content: ""; position: absolute; width: 22px; height: 22px; left: 10px; top: -3px; border-radius: 50%; background: var(--rose); }
@keyframes orbit-breathe { 0%,100% { transform: scale(.86); opacity: .2; } 50% { transform: scale(1.07); opacity: .55; } }

.footer-invite { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 48px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.footer-invite > p { font-size: clamp(38px, 4.8vw, 68px); letter-spacing: -.05em; line-height: 1.06; font-weight: 500; }
.footer-invite > p > span { color: var(--accent); }
.coffee-art { width: 152px; height: auto; flex: none; color: var(--accent); overflow: visible; }
.steam { animation: steam-rise 3.6s ease-in-out infinite; }
.steam-two { animation-delay: -1.2s; }
.steam-three { animation-delay: -2.4s; }
@keyframes steam-rise {
  0% { transform: translateY(9px); opacity: .12; }
  35% { opacity: .95; }
  75% { opacity: .55; }
  100% { transform: translateY(-14px); opacity: .08; }
}

/* JS adds pending states only after an observer exists. No-JS content stays visible. */
.reveal-pending { opacity: 0; }
.button { transition: transform 140ms var(--ease-out), background 180ms ease, color 180ms ease; }
.button:active, .icon-link:active { transform: scale(.96); }
.icon-link { transition: transform 140ms var(--ease-out), background 180ms ease, color 180ms ease; }
.button > span, .text-link > span { display: inline-block; transition: transform 240ms var(--ease-out); }
.gallery-open { transition: transform 160ms var(--ease-out); }
.gallery-open:active { transform: scale(.985); }
.gallery-open .portrait img { transition: transform 600ms var(--ease-out); }
.photo-expand { transition: transform 240ms var(--ease-out), background 180ms ease, color 180ms ease; }
.menu-tabs { position: relative; }
.menu-tabs button { border-bottom-color: transparent; transition: color 160ms ease; }
.menu-tabs [aria-selected="true"] { border-bottom-color: transparent; }
.menu-tab-indicator { position: absolute; bottom: 0; left: 0; height: 2px; width: 1px; background: var(--accent); transform-origin: 0 50%; pointer-events: none; }
.lightbox-stage { position: relative; touch-action: pan-y pinch-zoom; }
.lightbox-stage img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.lightbox-stage.is-dragging { cursor: grabbing; }
.media-status { color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.lightbox .media-status { color: #fff; position: absolute; bottom: 0; left: 0; right: 0; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  .button:hover > span { transform: translate(3px, -3px); }
  .button:active { transform: translateY(0) scale(.96); }
  .icon-link:hover { transform: translateY(-2px); }
  .icon-link:active { transform: scale(.96); }
  .gallery-open:hover .portrait img { transform: scale(1.045); }
  .gallery-open:hover .photo-expand { transform: scale(1.08); }
}
@media (hover: none) {
  .text-link:hover span { transform: none; }
}
/* Keyboard commands are immediate; ambient decoration has no focusable controls. */
.keyboard-input { scroll-behavior: auto; }
.keyboard-input .button, .keyboard-input .icon-link, .keyboard-input .gallery-open,
.keyboard-input .button > span, .keyboard-input .text-link > span,
.keyboard-input .menu-tab-indicator, .keyboard-input .menu-tabs button { transition: none !important; }
.keyboard-input .button:active, .keyboard-input .icon-link:active, .keyboard-input .gallery-open:active { transform: none; }

@media (max-width: 1199px) and (min-width: 768px) {
  .day-night-art { width: 112px; height: 112px; }
  .moments-heading { flex-wrap: wrap; }
  .moments-heading > .heading-note { width: 100%; max-width: none; }
}
@media (max-width: 767px) {
  .hero-seal { width: 110px; right: 23px; top: calc(var(--header-height) + 25px); }
  .seal-centre { font-size: 37px; padding-right: 6px; }
  .seal-centre > span { font-size: 15px; }
  .brand-ribbon { padding-block: 22px; }
  .ribbon-group { gap: 25px; padding-right: 25px; }
  .ribbon-group > span:not(.ribbon-flower) { font-size: 34px; }
  .ribbon-flower { width: 23px; height: 23px; }
  .day-night-art { position: absolute; width: 92px; height: 92px; right: 8px; top: 28px; }
  .moments-heading > div:first-child { max-width: calc(100% - 105px); }
  .moments-heading h2 { font-size: clamp(32px, 8.4vw, 38px); }
  .orbit-label { font-size: 19px; }
  .orbit-label > .orbit-to { font-size: 9px; }
  .orbit-sun { width: 20px; height: 20px; left: -10px; margin-top: -10px; border-width: 4px; }
  .orbit-moon { width: 22px; height: 22px; right: -11px; margin-top: -11px; }
  .orbit-moon::after { width: 19px; height: 19px; left: 8px; }
  .footer-invite { margin-bottom: 32px; padding-bottom: 30px; gap: 12px; }
  .footer-invite > p { font-size: clamp(30px, 8.3vw, 37px); }
  .coffee-art { width: 94px; }
}
@media (max-width: 374px) {
  .hero-seal { width: 94px; }
  .seal-centre { font-size: 32px; }
  .seal-centre > span { font-size: 13px; }
  .day-night-art { width: 72px; height: 72px; right: 5px; top: 35px; }
  .moments-heading > div:first-child { max-width: calc(100% - 82px); }
  .moments-heading h2 { font-size: 30px; }
  .coffee-art { width: 74px; }
}
@media (max-height: 620px) {
  .hero-seal { width: 90px; top: calc(var(--header-height) + 18px); right: 28px; }
  .seal-centre { font-size: 31px; }
  .seal-centre > span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-element { animation: none !important; }
  .hero-image, .hero-seal, .seal-ring, .orbit-turn, .steam { transform: none; }
  .photo-outline { transform: translate(-8px, 7px) rotate(-2deg); }
  .orbit-halo { opacity: .35; }
  .steam { opacity: .65; }
  .reveal-pending { opacity: 1; }
  .ribbon-track { width: 100%; transform: none; display: block; }
  .ribbon-group { flex-wrap: wrap; justify-content: center; gap: 12px 24px; padding: 0 20px; }
  .ribbon-group > span:not(.ribbon-flower) { font-size: clamp(19px, 3vw, 36px); white-space: normal; text-align: center; }
  .ribbon-group + .ribbon-group, .ribbon-flower { display: none; }
  .button:hover, .button:active, .button:hover > span, .icon-link:hover, .gallery-open:hover .portrait img,
  .gallery-open:hover .photo-expand, .gallery-open:active, .icon-link:active { transform: none; }
}
