/* Branded motion: compositor-friendly loops, paused outside the viewport. */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease-float: cubic-bezier(.45, 0, .55, 1);
}
.ambient .loop { animation-play-state: paused; }
.motion-ready .ambient.is-inview .loop { animation-play-state: running; }
.motion-inactive .ambient .loop,
.modal-open .ambient .loop { animation-play-state: paused !important; }
[hidden] { display: none !important; }

.coffee-seal {
  position: absolute;
  width: 122px;
  height: 122px;
  top: calc(var(--header-height) + 30px);
  right: var(--gutter);
  color: var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 5px 25px #172c3026;
  pointer-events: none;
}
.seal-ring { width: 100%; height: 100%; animation: turn 24s linear infinite; }
.seal-ring circle { fill: none; stroke: currentColor; stroke-width: .65; opacity: .65; }
.seal-ring text { fill: currentColor; font: 600 11px 'DM Sans', sans-serif; letter-spacing: 1.3px; }
.seal-cup { position: absolute; inset: 24%; width: 52%; height: 52%; }
.steam { animation: steam-rise 2.8s var(--ease-float) infinite; }
.steam:nth-of-type(3) { animation-delay: -.9s; }
.steam:nth-of-type(4) { animation-delay: -1.8s; }
.daylight {
  position: absolute;
  inset: -40% -50%;
  z-index: -1;
  pointer-events: none;
  opacity: .1;
  background: linear-gradient(115deg, transparent 35%, #fff6d9 46%, transparent 56%);
  animation: daylight-drift 15s var(--ease-float) infinite alternate;
}

.brand-ribbon { overflow: hidden; border-bottom: 1px solid var(--line); padding-block: 25px; color: var(--accent); background: var(--paper); }
.ribbon-track { display: flex; width: max-content; animation: ribbon-flow 34s linear infinite; }
.ribbon-group { display: flex; align-items: center; flex-shrink: 0; gap: 26px; padding-right: 26px; }
.ribbon-group span { font: 600 46px/.98 'Barlow Condensed', sans-serif; text-transform: uppercase; white-space: nowrap; }
.ribbon-group svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; }

.menu-section { overflow: hidden; }
.menu-section::before { right: -11px; animation: awning-flow 1.8s linear infinite; animation-play-state: paused; }
.motion-ready .menu-section.is-inview::before { animation-play-state: running; }
.motion-inactive .menu-section::before,
.modal-open .menu-section::before { animation-play-state: paused !important; }
.coffee-break { overflow: hidden; }
.break-image { position: relative; isolation: isolate; margin-block: 16px 22px; }
.brew-orbits { position: absolute; z-index: -1; inset: -7% -8%; pointer-events: none; display: grid; place-items: center; }
.orbit-lines { width: 108%; height: auto; max-width: none; fill: none; stroke: var(--accent); stroke-width: 1; opacity: .6; animation: turn 34s linear infinite; }
.orbit-lines circle { fill: var(--accent); stroke: none; }
.moment-note {
  position: absolute;
  z-index: 1;
  left: -10px;
  bottom: -20px;
  padding: 18px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--blue);
  color: var(--paper);
  font: 600 28px/.95 'Barlow Condensed', sans-serif;
  transform: rotate(-7deg);
  animation: note-float 6s var(--ease-float) infinite;
  pointer-events: none;
}
.moment-note svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.reviews-section { position: relative; overflow: hidden; isolation: isolate; }
.review-heading { position: relative; }
.review-flourish { position: absolute; z-index: -1; right: 0; top: -56px; font: 280px/1 Georgia, serif; opacity: .095; pointer-events: none; animation: quote-float 7s var(--ease-float) infinite; }

.reading-progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.desktop-nav>a { position: relative; }
.desktop-nav>a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform 220ms var(--ease-out); }
.desktop-nav>a[aria-current="location"]::after { transform: scaleX(1); }
.button,.icon-link,.gallery-open { transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.button:active,.icon-link:active { transform: scale(.96); }
.gallery-open:active { transform: scale(.985); }
.button svg,.text-link svg,.enlarge-icon { transition: transform 220ms var(--ease-out); }
.gallery-open img,.menu-item .portrait img { transition: transform 600ms var(--ease-out); }
.gallery-open { outline-offset: 5px; }
.enlarge-icon { width: 44px; height: 44px; }
.nav-dialog nav>a { transition: transform 220ms var(--ease-out), color 180ms ease; }
.reveal-pending { opacity: 0; }
.reveal-pending:focus-within { opacity: 1; }
.lightbox-inner { position: relative; }
.lightbox-stage { touch-action: pan-y pinch-zoom; }
.lightbox-image { user-select: none; -webkit-user-drag: none; }
.lightbox-image.is-settling { transition: transform 180ms var(--ease-out), opacity 180ms ease; }
.photo-status { position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); padding: 9px 16px; background: #14282eef; color: var(--paper); font-size: 12px; text-align: center; pointer-events: none; }

@media (hover:hover) and (pointer:fine) {
  .desktop-nav>a:hover::after { transform: scaleX(1); }
  .button:hover svg { transform: translateX(4px); }
  .text-link:hover svg { transform: translate(3px,-3px); }
  .gallery-open:hover img,.menu-item:hover .portrait img { transform: scale(1.045); }
  .gallery-open:hover .enlarge-icon { transform: rotate(90deg); }
  .nav-dialog nav>a:hover { transform: translateX(5px); }
  .brand-ribbon:hover .ribbon-track { animation-play-state: paused; }
}
@media(min-width:768px) {
  .coffee-seal { width: 162px; height: 162px; right: max(var(--gutter), calc((100vw - 1200px)/2)); top: calc(var(--header-height) + 42px); }
  .ribbon-group { gap: 26px; padding-right: 26px; }
  .ribbon-group span { font-size: 48px; }
  .ribbon-group svg { width: 26px; height: 26px; }
  .brand-ribbon { padding-block: 20px; }
  .break-image { margin-block: 0; }
  .moment-note { font-size: 26px; left: -18px; }
  .review-flourish { right: 22%; top: -90px; font-size: 330px; }
}
@media(min-width:1024px) {
  .coffee-seal { width: 180px; height: 180px; }
  .moment-note { padding: 23px 25px; font-size: 35px; bottom: -20px; }
  .moment-note svg { width: 30px; height: 30px; }
}
@media(max-height:650px) {
  .coffee-seal { width: 86px; height: 86px; top: calc(var(--header-height) + 12px); }
  .hero-content { padding-top: 170px; }
}

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes steam-rise { 0%,100% { transform: translateY(3px); opacity: .45; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes ribbon-flow { to { transform: translateX(-50%); } }
@keyframes daylight-drift { from { transform: translateX(-12%); opacity: .035; } to { transform: translateX(12%); opacity: .12; } }
@keyframes awning-flow { to { transform: translateX(-11px); } }
@keyframes note-float { 0%,100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-13px) rotate(-3deg); } }
@keyframes quote-float { 0%,100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(13px) rotate(3deg); } }

/* Keyboard commands remain immediate, and reduced motion reveals every section. */
html[data-input="keyboard"] :is(.button,.icon-link,.gallery-open,.nav-dialog nav>a,.desktop-nav>a::after) { transition: none; }
.motion-reduced .reveal-pending { opacity: 1; }
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; }
  .daylight { display: none; }
  .ribbon-track { width: 100%; }
  .ribbon-group { width: 100%; flex-wrap: wrap; justify-content: center; gap: 12px 20px; padding: 0 20px; }
  .ribbon-group span { font-size: clamp(25px,4.3vw,64px); }
  .ribbon-group svg { width: 20px; height: 20px; }
  .ribbon-group:nth-child(2) { display: none; }
  .gallery-open:hover img,.menu-item:hover .portrait img { transform: none; }
  .button:active,.icon-link:active,.gallery-open:active { transform: none; }
}
