/* LUGOM v2.11 — motion tokens, type floor and per-world motion.
   Loaded after motion.css on every page (legal pages joined in v2.12; their text is untouched). */

/* 1. Tokens ---------------------------------------------------------------- */
:root{
 --ease-out:cubic-bezier(.22,1,.36,1);
 --ease-out-strong:cubic-bezier(.23,1,.32,1);
 --ease-in-out:cubic-bezier(.77,0,.175,1);
 --ease-drawer:cubic-bezier(.32,.72,0,1);
 --dur-press:140ms;
 --dur-ui:220ms;
 --dur-hover:480ms;
 --dur-reveal:900ms;
 --dur-scene:1500ms;
 --stagger:70ms;
 --tempo:1;
 --polish-ease:var(--ease-out);
}
.sample-hotel{--tempo:1.15}
.sample-beach{--tempo:1.1}
.sample-restaurant{--tempo:1}
.sample-retail{--tempo:.9}
.sample-dental{--tempo:.8}
.sample-spa{--tempo:1.35}

/* 2. Type floor: nothing functional below 11px ----------------------------- */
html body .eyebrow{font-size:11px!important;letter-spacing:.14em!important;line-height:1.55}
html body :is(.atelier-hero-copy,.cinema-copy,.coastal-title,.restaurant-title,.forma-title,.brightwell-copy,.soma-copy,.studio-intro,.page-intro,.bespoke-intro,.balanced-intro,.restaurant-visit-intro) .eyebrow{font-size:12px!important}
html body .brand small{font-size:10px!important;letter-spacing:.13em!important;line-height:1.4}
html body .tag,html body .showcase-caption .eyebrow,html body .work-card .tag{font-size:11px!important;letter-spacing:.13em}
html body .showcase-caption>span,html body .scene-caption{font-size:12px!important}
html body .sample-banner{font-size:11.5px!important;line-height:1.45}
html body :is(.room-tabs button,.menu-category,.collection-filter,.nav-toggle,.language-menu summary){font-size:12.5px!important}
html body :is(.duration,.room-size,.edition-number,.ritual-index,.restaurant-strip span,.restaurant-label,.coastal-ribbon>span,.collection-toolbar>span,.cinema-bottom,.cinema-bottom a){font-size:11px!important}
html body :is(.concept-note,.photo-note,.form-note,.micro,.fineprint,.assurance,.ritual-body span,.first-payment small){font-size:12px!important}
html body :is(.amenities li){font-size:13px!important}
html body .compact-footer :is(p,nav a,.footer-home,.motion-switch){font-size:12px!important}

/* Legal pages (v2.12): reading text never below 14px, labels and table cells never below 11–12px */
html body.policy-page .legal-document :is(p,li){font-size:15px;line-height:1.8}
html body.policy-page .legal-document :is(.page-kicker,.policy-kicker){font-size:11px;letter-spacing:.14em}
html body.policy-page .legal-document .updated{font-size:12px}
html body.policy-page .legal-document .policy-index a{font-size:12.5px;line-height:1.5}
html body.policy-page .legal-document :is(td,th){font-size:13px;line-height:1.6}
@media(max-width:800px){
 html body.policy-page .legal-document :is(p,li){font-size:14px;line-height:1.75}
 html body.policy-page .legal-document :is(td,th){font-size:12px}
 html body.policy-page .legal-document .policy-index a{display:inline-block;padding-block:4px}
}

/* Section kickers: the heading carries the section. Kept: hero labels, card categories, plan names, contact labels. */
main :is(.bespoke-heading,.section-heading,.closing>div,.hotel-welcome-copy,.forma-note>.container,.coastal-story-head .bespoke-heading)>.eyebrow:has(+h2){display:none}

/* 3. Layout repairs ---------------------------------------------------------- */
html body .compact-footer .footer-line{padding-inline:var(--gutter)!important;row-gap:6px}
.compact-footer .footer-line nav{row-gap:4px}
.compact-footer{padding-block:18px!important}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Footer motion switch */
.motion-switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;opacity:.9}
.motion-switch .switch-track{position:relative;width:30px;height:16px;border-radius:99px;border:1px solid currentColor;opacity:.75;flex:none}
.motion-switch .switch-track::after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:currentColor;transition:translate var(--dur-ui) var(--ease-out-strong)}
.motion-switch[aria-pressed="true"] .switch-track::after{translate:14px 0}
.motion-switch:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(hover:hover) and (pointer:fine){.motion-switch:hover{opacity:1}}

/* Contact (v2.12): email + form only. Cards take the height of their content; the form panel has its own inner padding. */
.contact-grid{align-items:start}
.contact-primary p{margin:10px 0 0;max-width:38ch;font-size:15px;line-height:1.6;color:var(--muted)}
.contact-option.contact-primary h2{margin:22px 0 0;font-size:clamp(26px,2.2vw,32px);line-height:1.15}
.contact-option:not(.contact-primary) h2{font-size:clamp(22px,1.9vw,26px);line-height:1.2}
.lugom-studio .brief-form-panel{padding:clamp(24px,3vw,40px)}
.lugom-studio .brief-form-panel>h2{margin:0 0 10px;font-size:clamp(28px,2.6vw,34px)}
.lugom-studio .brief-form-panel>p{margin:0 0 24px}
.lugom-studio .brief-form-panel>.micro{margin:18px 0 0}
.lugom-studio .brief-form>label:first-of-type{margin-top:0}
.lugom-studio .brief-form .form-status:empty{margin:0;min-height:0}
@media(min-width:801px){
 .contact-options{display:flex;flex-direction:column;gap:14px}
 .contact-options>.contact-primary{padding:30px 32px}
}
@media(max-width:800px){
 .contact-option.contact-primary h2{font-size:22px;margin-top:16px}
 .contact-option:not(.contact-primary) h2{font-size:21px}
 .lugom-studio .brief-form{padding:22px 18px}
}

/* Home: live index for the sticky showcase column (desktop only) */
.showcase-index{display:none}
@media(min-width:1101px){
 .showcase-index{display:grid;list-style:none;margin:44px 0 0;padding:0;border-top:1px solid #ffffff1f;max-width:340px}
 .showcase-index li{border-bottom:1px solid #ffffff1f}
 .showcase-index a{display:grid;grid-template-columns:34px 1fr auto;align-items:baseline;gap:10px;padding:15px 0;text-decoration:none;color:#c9cccb;transition:color var(--dur-ui) var(--ease-out-strong)}
 .showcase-index .idx-num{font:500 12px/1 Manrope,sans-serif;letter-spacing:.08em;color:#9fa7a6;font-variant-numeric:tabular-nums}
 .showcase-index .idx-name{font:400 21px/1.2 Outfit,sans-serif;letter-spacing:-.02em}
 .showcase-index .idx-cat{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#9fa7a6}
 .showcase-index .idx-bar{grid-column:1/-1;height:1px;background:#dec8a2;transform-origin:left;scale:0 1;transition:scale var(--dur-hover) var(--ease-out)}
 .showcase-index li.is-active a{color:#f4eee5}
 .showcase-index li.is-active .idx-num{color:#dec8a2}
 .showcase-index li.is-active .idx-bar{scale:1 1}
 .showcase-index a:hover{color:#f4eee5}
}

@media(max-width:520px){.showcase-caption{flex-wrap:wrap;row-gap:10px}html body .showcase-caption>span{max-width:none;white-space:nowrap}}

/* Long words (ES/TR) hyphenate first, then break only if they would overflow */
:is(h1,h2,h3,h4){overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto}
.header-inner>.brand{min-width:0;flex-shrink:1}
html body .brand strong{white-space:normal;overflow-wrap:anywhere;line-height:1.12}
.header-tools{flex-shrink:0}

/* 4. Motion primitives ------------------------------------------------------- */
/* Images driven through custom properties, so the legacy `transform:none!important` locks stay intact. */
img[data-m],[data-m-var]{translate:var(--m-x,0px) var(--m-y,0px);scale:var(--m-s,1);rotate:var(--m-r,0deg)}
.title-mask{display:block;overflow:clip;padding-bottom:.1em;margin-bottom:-.1em}
.title-line{display:block}

/* Hero copy waits for the entrance script; a failsafe shows it if the script never runs. */
@media(prefers-reduced-motion:no-preference){
 html.m-js:not(.m-off):not(.m-ready) :is(.atelier-hero-copy,.cinema-copy,.coastal-title,.restaurant-title,.forma-title,.forma-cover,.brightwell-copy,.brightwell-photo,.soma-copy,.soma-image,.restaurant-window,.cinema-photo,.studio-intro,.page-intro .split>div:first-child,.bespoke-intro,.balanced-intro,.restaurant-visit-intro){opacity:0;animation:m-failsafe 1ms linear 2.4s forwards}
}
@keyframes m-failsafe{to{opacity:1}}

/* Press feedback composes with any transform (independent `scale`) */
.button,.filter,.room-tabs button,.menu-category,.collection-filter,.coastal-round,.contact-option,.scene-toggle,.motion-switch{transition-property:background-color,color,border-color,box-shadow,opacity,scale;transition-duration:var(--dur-ui);transition-timing-function:var(--ease-out-strong)}
:is(.button,.filter,.room-tabs button,.menu-category,.collection-filter,.coastal-round,.contact-option,.motion-switch):active{scale:.97;transition-duration:var(--dur-press)}
/* Hover lifts only where hover exists */
.button:hover{transform:none}
@media(hover:none){.contact-option:hover,.coastal-round:hover{transform:none}}
@media(hover:hover) and (pointer:fine){
 .button .arrow{transition:transform var(--dur-hover) var(--ease-out)}
 .button:hover .arrow{transform:translate(2px,-2px)}
 .work-card img{transition:scale var(--dur-hover) var(--ease-out)}
 .work-card:hover img{scale:1.035}
 .collection-item .photo img,.life-grid .photo img,.coastal-editorial-grid .photo img{transition:scale calc(var(--dur-hover) * 1.4) var(--ease-out)}
 .collection-item:hover .photo img,.life-grid article:hover .photo img,.coastal-editorial-grid figure:hover .photo img{scale:1.04}
}
@media(hover:none){.button:hover .arrow,.text-link:hover .ui-icon,.showcase-panel:hover .showcase-caption>span .ui-icon{transform:none}}

/* Form focus */
.brief-form :is(input,textarea){transition:border-color var(--dur-ui) var(--ease-out-strong),box-shadow var(--dur-ui) var(--ease-out-strong)}
.brief-form :is(input,textarea):focus-visible{outline:none;border-color:#193b32;box-shadow:0 0 0 3px #dec8a28c}

/* Accordions open with their real height where supported */
@media(prefers-reduced-motion:no-preference){
 html:not(.m-off){interpolate-size:allow-keywords}
 html:not(.m-off) :is(.ritual-list,.bespoke-faq,.faq,.care-accordion) details::details-content{block-size:0;overflow-y:clip;transition:block-size calc(380ms * var(--tempo)) var(--ease-drawer),content-visibility calc(380ms * var(--tempo)) allow-discrete}
 html:not(.m-off) :is(.ritual-list,.bespoke-faq,.faq,.care-accordion) details[open]::details-content{block-size:auto}
 :is(.bespoke-faq,.faq) summary>span,.ritual-plus{transition:transform var(--dur-ui) var(--ease-out-strong)}
}

/* Lightbox enters from slightly below scale, exits faster */
@media(prefers-reduced-motion:no-preference){
 html:not(.m-off) .lightbox{transition:opacity 180ms var(--ease-out-strong),scale 180ms var(--ease-out-strong),overlay 180ms allow-discrete,display 180ms allow-discrete;opacity:0;scale:.97}
 html:not(.m-off) .lightbox[open]{opacity:1;scale:1;transition-duration:280ms;transition-timing-function:var(--ease-drawer)}
 @starting-style{html:not(.m-off) .lightbox[open]{opacity:0;scale:.97}}
 html:not(.m-off) .lightbox::backdrop{transition:opacity 280ms var(--ease-out);opacity:1}
 @starting-style{html:not(.m-off) .lightbox[open]::backdrop{opacity:0}}
}

/* Page transitions: removed in v2.12. Chromium aborts cross-document View Transitions on many
   ordinary navigations and logs an InvalidStateError ("ViewTransition opt-in disabled"), even on a
   two-page test with one script that sets a class on load. Navigation is instant instead. */

/* 5. World details ---------------------------------------------------------- */
/* Process: rail that fills as the steps are read */
.lugom-studio .timeline{position:relative}
.timeline-rail{position:absolute;left:68px;top:30px;bottom:30px;width:1px;background:#ffffff1c;pointer-events:none}
.timeline-rail>span{position:absolute;inset:0;background:#dec8a2;transform-origin:top;scale:1 0}
.m-live .lugom-studio .timeline .number{transition:color var(--dur-hover) var(--ease-out),opacity var(--dur-hover) var(--ease-out)}
.m-live .lugom-studio .timeline li:not(.is-reached) .number{opacity:.38}
@media(max-width:800px){.timeline-rail{left:37px}}

/* Beach: horizon line and sun track */
.coastal-ribbon{position:relative}
.horizon-line{position:absolute;left:var(--gutter);right:var(--gutter);top:50%;height:1px;background:var(--line);transform-origin:center;pointer-events:none;z-index:-1;scale:0 1}
.coastal-ribbon>*:not(.horizon-line){position:relative;background:var(--bg);padding-inline:18px}
.coastal-ribbon>span:first-of-type{padding-left:0}.coastal-ribbon>span:last-child{padding-right:0}
.coastal-timeline{position:relative}
.sun-track{position:absolute;left:-28px;top:4px;bottom:22px;width:1px;background:var(--line);pointer-events:none}
.sun-track>i{position:absolute;left:-5px;top:0;width:11px;height:11px;border-radius:50%;background:#e7a85a;box-shadow:0 0 0 4px #e7a85a2e}
.m-live .coastal-timeline li time{transition:color var(--dur-hover) var(--ease-out)}
.m-live .coastal-timeline li.is-passed time{color:#b8732f}
@media(max-width:1100px){.sun-track{display:none}}
.sample-beach .coastal-opening::after{background:linear-gradient(90deg,#061d31b8,#061d3133 62%,transparent 86%),linear-gradient(0deg,#061d31a6,transparent 64%)}

/* Restaurant: menu line grows under the dish on hover */
.menu-item{position:relative}
.menu-item::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:#d8b181;transform-origin:left;scale:0 1;transition:scale var(--dur-hover) var(--ease-out)}
@media(hover:hover) and (pointer:fine){.menu-item:hover::after{scale:1 1}.menu-item>span{transition:translate var(--dur-hover) var(--ease-out)}.menu-item:hover>span{translate:-4px 0}}

/* Clinic: steps light up in order */
.m-live .patient-steps article>span{transition:background-color 320ms var(--ease-out),color 320ms var(--ease-out)}
.m-live .patient-steps article.is-lit>span{background:#214b4e;color:#f1f5e5}

/* Retail: the note rule draws in */
.forma-cover-note{position:relative}

/* 6. Hotel / beach life grids after the photo-repeat fix ---------------------- */
.life-grid.life-pair{grid-template-columns:1.25fr 1fr}
html body .life-grid.life-pair .photo{height:clamp(300px,31vw,460px)!important}
.life-grid.life-pair img[src*="miami-entrance"]{object-position:50% 62%}
@media(max-width:800px){.life-grid.life-pair{grid-template-columns:1fr}.life-grid.life-pair article:first-child{grid-column:auto}}

/* 8. Phone layer (mobile-native) --------------------------------------------- */
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%}
:is(button,a,summary,[role="tab"],label){touch-action:manipulation}
:is(button,.button,summary,[role="tab"],.nav-toggle,.filter,.menu-category,.collection-filter,.motion-switch,.coastal-round){-webkit-user-select:none;user-select:none}
.button,.coastal-round{-webkit-touch-callout:none}
@media(pointer:coarse){input,select,textarea{font-size:16px!important}}

/* Pool water (v2.12, assets/lugom-water.js): a masked layer over the pool area only */
.water-canvas{position:absolute;pointer-events:none}
@media(prefers-reduced-motion:reduce){.water-canvas{display:none}}
html.m-off .water-canvas{display:none}

/* 7. Reduced motion and the visitor's own switch ------------------------------ */
@media(prefers-reduced-motion:reduce){
 .showcase-index .idx-bar,.motion-switch .switch-track::after{transition:none}
 img[data-m]{translate:none;scale:none;rotate:none}
}
html.m-off img[data-m],html.m-off [data-m-var]{translate:none;scale:none;rotate:none}
html.m-off *,html.m-off *::before,html.m-off *::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;transition-delay:0s!important}
html.m-off .motion-switch .switch-track::after{transition-duration:1ms}

@media print{.motion-switch,.showcase-index,.timeline-rail,.sun-track,.horizon-line,.water-canvas{display:none}}

/* LUGOM emblem (v2.12 logo): mark to the left of the wordmark in the header and footer. LUGOM pages only, not demos. */
.lugom-studio .brand.has-mark{display:inline-flex;align-items:center;gap:12px}
.lugom-studio .brand-mark{display:block;flex:none;width:40px;height:40px}
.lugom-studio .brand-text{display:grid;gap:3px;min-width:0}
.lugom-studio .footer-mark{flex:none;text-decoration:none;color:#f4eee5}
.lugom-studio .footer-mark .brand-mark{width:36px;height:36px}
.lugom-studio .footer-mark strong{font-size:22px}
@media(max-width:800px){
 .lugom-studio .brand.has-mark{gap:9px}
 .lugom-studio .brand-mark{width:30px;height:30px}
 .lugom-studio .footer-mark .brand-mark{width:30px;height:30px}
 .lugom-studio .footer-mark{flex-basis:100%}
}
/* phones: make room for the emblem so the wordmark stays on one line */
@media(max-width:420px){
 html body.lugom-studio .site-header .header-tools{gap:8px}
 .lugom-studio .brand.has-mark{gap:8px}
 .lugom-studio .site-header .brand-mark{width:28px;height:28px}
 html body.lugom-studio .site-header .brand small{letter-spacing:.1em!important}
}
@media(max-width:350px){
 .lugom-studio .site-header .language-menu summary>span:first-child{display:none}
 html body.lugom-studio .site-header .brand strong{font-size:22px;letter-spacing:.14em}
}
.compact-footer .footer-email{display:inline-flex;align-items:center;min-height:44px;font-size:12px;letter-spacing:.02em;color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.compact-footer .footer-email:hover,.compact-footer .footer-email:focus-visible{border-bottom-color:currentColor}
.detail-panel .service-pay{margin:18px 0 28px;border:1px solid color-mix(in srgb,currentColor 38%,transparent)!important;color:inherit}
