/* Customer experience: layout, readable controls and restrained feedback. */
html { scrollbar-gutter: stable; }
#app { min-height: 65vh; }
#app:focus { outline: none; }
#app img { max-width: 100%; }
.route-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.route-progress { position: fixed; top: 0; left: 0; z-index: 300; width: 100%; height: 2px; background: var(--meeture-line); opacity: 0; pointer-events: none; }
.route-pending .route-progress { opacity: 1; }
.route-progress::after { content: ''; display: block; width: 36%; height: 100%; background: var(--meeture-wine); }
.route-pending .route-progress::after { animation: route-travel 1.15s ease-in-out infinite alternate; }
@keyframes route-travel { to { transform: translateX(178%); } }
[data-nav].is-pending { color: var(--meeture-wine); }
.desktop-nav a.is-pending::after { transform: scaleX(.55); }
.page-head { max-width: 1280px; margin-inline: auto; padding-top: clamp(40px, 6vw, 80px); padding-bottom: 32px; }
.page-head p { max-width: 52ch; line-height: 1.85; }
.page-title { text-wrap: balance; overflow-wrap: anywhere; }
.section-heading h2 { text-wrap: balance; }
.service-detail-copy { min-width: 0; }
.service-detail-options li { row-gap: 8px; }
.booking-form input, .booking-form select, .booking-form textarea, .auth-form input { min-height: 48px; font-size: max(16px, 1em); }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { border-color: var(--meeture-wine); box-shadow: 0 0 0 3px #5d20360b; }
.booking-form label { line-height: 1.65; }
#modal { max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
#modal::backdrop, .case-viewer::backdrop { background: #302b2d80; backdrop-filter: blur(5px); }
.curated-cases { background: var(--meeture-paper); }
.case-section-note { margin: 12px 0 0; color: var(--meeture-muted); font-size: calc(14px * var(--meeture-text-scale, 1)); line-height: 1.85; }
.case-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin-top: 30px; }
.case-card { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--meeture-ink); text-align: left; cursor: pointer; }
.case-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 3/4; background: var(--meeture-panel, #efedeb); border-radius: var(--meeture-radius, 2px); }
.case-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 550ms var(--meeture-ease); }
.case-photo > span { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--meeture-wine); background: var(--meeture-paper); }
.case-card-caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; }
.case-card-caption small { display: block; color: var(--meeture-copper); font: 11px/1.7 var(--serif); }
.case-card-caption strong { display: block; margin-top: 6px; font-size: calc(21px * var(--meeture-text-scale,1)); font-weight: 400; line-height: 1.55; }
.case-card-number { color: var(--meeture-copper); font: 16px/1.7 var(--serif); }
.case-card:active { opacity: .85; }
.case-card-wide { grid-column: span 2; }
.case-card-wide .case-photo { aspect-ratio: 3/2; }
.case-viewer { width: min(800px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: var(--meeture-paper); color: var(--meeture-ink); overscroll-behavior: contain; }
.case-viewer-content { position: relative; padding: clamp(24px, 5vw, 48px); }
.case-viewer h2 { max-width: 85%; margin: 16px 0; font: 400 clamp(26px, 4vw, 40px)/1.4 var(--serif); color: var(--meeture-wine); }
.case-viewer p { line-height: 1.9; }
.case-close { position: sticky; top: 12px; float: right; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--meeture-line); border-radius: 50%; background: var(--meeture-paper); color: var(--meeture-wine); cursor: pointer; font-size: 26px; }
.case-viewer figure { margin: 30px 0; }
.case-viewer figure img { display: block; width: 100%; height: auto; }
.case-viewer figcaption { display: flex; gap: 20px; margin-top: 14px; color: var(--meeture-muted); font-size: 13px; line-height: 1.8; }
.case-viewer figcaption span { color: var(--meeture-copper); font-family: var(--serif); }
body:has(dialog[open]) { overflow: hidden; }
@media (hover: hover) and (pointer: fine) { .case-card:hover .case-photo img { transform: scale(1.025); } }
@media (max-width: 760px) {
  .section { padding-inline: 24px; padding-block: 40px; }
  .page-head { padding: 36px 24px 20px; }
  .section-heading { gap: 16px; align-items: flex-start; }
  .section-heading h2 { font-size: calc(27px * var(--meeture-text-scale,1)); }
  .section-heading .text-link { flex-shrink: 0; font-size: 12px; }
  .curated-cases .section-heading { flex-wrap: wrap; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 24px; }
  body[data-page="home"] .case-card:first-child { grid-column: span 2; }
  body[data-page="home"] .case-card:first-child .case-photo { aspect-ratio: 4/5; }
  .case-card-caption { padding-top: 12px; gap: 8px; }
  .case-card-caption strong { font-size: calc(17px * var(--meeture-text-scale,1)); }
  .case-card-caption small { font-size: 9px; }
  .case-card-number { font-size: 13px; }
  .case-viewer-content { padding: 24px 20px; }
  .mobile-nav a { min-height: 54px; }
  .mobile-nav a.active { position: relative; }
  .mobile-nav a.active::before { content: ''; position: absolute; top: 3px; width: 18px; height: 2px; border-radius: 2px; background: var(--meeture-wine); }
  .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .route-progress::after { animation: none !important; } .case-photo img { transition: none; } .case-card:hover .case-photo img { transform: none; } }
body[data-motion="off"] .route-progress::after { animation: none; }
/* Light footer must reset the older dark-footer foreground colors. */
.footer .footer-links, .footer .footer-links a { color: var(--meeture-muted); }
.footer .footer-links a:hover { color: var(--meeture-wine); }
.footer .motion-toggle { color: var(--meeture-wine); background: transparent; border: 1px solid var(--meeture-line); border-radius: var(--meeture-radius, 2px); }
.footer > p { display: block; }

/* Botanical linework gives the ivory space a quiet, tactile rhythm. */
body:not(.custom-no-decoration) .creative-hero {
  background: radial-gradient(ellipse at 14% 40%, #ead4d740, transparent 53%), radial-gradient(ellipse at 87% 75%, #e6d9c844, transparent 50%), var(--meeture-paper);
}
body:not(.custom-no-decoration) .creative-hero::before {
  content: ''; display: block; position: absolute; inset: 22px; width: auto; height: auto;
  border: 1px solid #89766c26; border-radius: 0; background: none; transform: none; pointer-events: none; z-index: -1;
}
body:not(.custom-no-decoration) .creative-hero::after {
  content: ''; display: block; position: absolute; left: 43%; right: auto; top: 2%; bottom: auto;
  width: 270px; height: 94%; border: 0; border-radius: 0; background: url('/assets/atelier-botanical.svg') center / contain no-repeat;
  transform: rotate(-15deg); opacity: .42; pointer-events: none; z-index: -1;
}
body:not(.custom-no-decoration) .creative-hero .line-hero-copy { padding-left: 12px; }
body:not(.custom-no-decoration) .creative-hero .line-hero-copy .eyebrow { display: flex; align-items: center; gap: 16px; }
body:not(.custom-no-decoration) .creative-hero .line-hero-copy .eyebrow::before { content: ''; display: block; width: 42px; height: 1px; background: var(--meeture-copper); opacity: .65; }
body:not(.custom-no-decoration) .creative-hero .hero-photograph { position: relative; }
body:not(.custom-no-decoration) .creative-hero .hero-photograph::before {
  content: ''; position: absolute; inset: -12px 12px 32px -12px; border: 1px solid #89766c6b; pointer-events: none; z-index: -1;
}
body:not(.custom-no-decoration) .creative-hero .hero-photograph::after {
  content: ''; position: absolute; width: 94px; height: 94px; left: -48px; bottom: 52px;
  background: var(--meeture-paper) url('/assets/atelier-petal.svg') center / 88px no-repeat; border-radius: 50%; pointer-events: none;
}
body:not(.custom-no-decoration) .brand-note { background: #eee5df66; border-top: 1px solid #89766c26; }
body:not(.custom-no-decoration) .curated-cases { position: relative; isolation: isolate; overflow: hidden; }
body:not(.custom-no-decoration) .curated-cases::before {
  content: ''; position: absolute; top: 4px; right: -38px; width: 230px; height: 280px;
  background: url('/assets/atelier-botanical.svg') center / contain no-repeat; opacity: .28; transform: rotate(36deg); pointer-events: none; z-index: -1;
}
body:not(.custom-no-decoration) .section-heading { position: relative; }
body:not(.custom-no-decoration) .section-heading::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 7px; height: 7px; border: 1px solid var(--meeture-copper);
  background: var(--meeture-paper); transform: rotate(45deg); pointer-events: none;
}
body:not(.custom-no-decoration) .case-photo::after { content: ''; position: absolute; inset: 10px; border: 1px solid #fff8eb6b; pointer-events: none; }
body:not(.custom-no-decoration) .creative-services { background: radial-gradient(ellipse at 3% 90%, #e0c4cb26, transparent 46%), #f0efea; }
body:not(.custom-no-decoration) .creative-services .service-card { background: #fffdfa70; padding: 28px 24px; border: 1px solid #89766c30; }
body:not(.custom-no-decoration) .creative-services .service-card .service-number { color: var(--meeture-copper); }
body:not(.custom-no-decoration) .creative-invitation { position: relative; isolation: isolate; overflow: hidden; }
body:not(.custom-no-decoration) .line-invitation.creative-invitation::before {
  content: ''; display: block; position: absolute; inset: 14px; width: auto; height: auto;
  background: none; border: 1px solid #fff5e338; border-radius: 0; transform: none; pointer-events: none; z-index: -1;
}
body:not(.custom-no-decoration) .line-invitation.creative-invitation::after {
  content: ''; display: block; position: absolute; width: 280px; height: 360px; right: -55px; left: auto; top: -88px;
  background: url('/assets/atelier-botanical.svg') center / contain no-repeat; border: 0; border-radius: 0; transform: rotate(-30deg); filter: brightness(2.1); opacity: .52; pointer-events: none; z-index: -1;
}
body:not(.custom-no-decoration) .page-head { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 95% 0%, #ead4d74d, transparent 65%); }
body:not(.custom-no-decoration) .page-head::after {
  content: ''; display: block; position: absolute; width: 170px; height: 230px; top: 0; right: 24px; left: auto;
  background: url('/assets/atelier-botanical.svg') center / contain no-repeat; border: 0; border-radius: 0; transform: rotate(30deg); opacity: .25; pointer-events: none; z-index: -1;
}
body:not(.custom-no-decoration) .footer { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(120deg, #ede4df61, transparent 65%), var(--meeture-paper); }
body:not(.custom-no-decoration) .footer::after {
  content: ''; position: absolute; width: 145px; height: 190px; top: 30px; right: 35px;
  background: url('/assets/atelier-botanical.svg') center / contain no-repeat; opacity: .3; transform: rotate(40deg); pointer-events: none; z-index: -1;
}
@media (max-width: 760px) {
  body:not(.custom-no-decoration) .creative-hero::before { inset: 12px; }
  body:not(.custom-no-decoration) .creative-hero::after { left: auto; right: -35px; top: 10px; width: 180px; height: 320px; opacity: .34; transform: rotate(12deg); }
  body:not(.custom-no-decoration) .creative-hero .line-hero-copy { padding-left: 0; }
  body:not(.custom-no-decoration) .creative-hero .hero-photograph::before { inset: -8px 8px 30px -8px; }
  body:not(.custom-no-decoration) .creative-hero .hero-photograph::after { width: 64px; height: 64px; background-size: 60px; left: -14px; bottom: 36px; }
  body:not(.custom-no-decoration) .curated-cases::before { width: 145px; height: 210px; top: 18px; right: -30px; opacity: .25; }
  body:not(.custom-no-decoration) .creative-services .service-card { padding: 26px 20px; }
  body:not(.custom-no-decoration) .page-head::after { width: 110px; height: 180px; right: -18px; opacity: .21; }
  body:not(.custom-no-decoration) .line-invitation.creative-invitation::after { width: 190px; height: 260px; top: -25px; right: -45px; opacity: .4; }
  body:not(.custom-no-decoration) .footer::after { width: 120px; height: 165px; right: 8px; top: 18px; opacity: .23; }
}
