/* Device layouts: keep the spatial desktop, use a flowing composition on touch screens. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { min-width: 0; }
a, button, label { touch-action: manipulation; }
button, .button, .text-link, .mast nav a, .mast-contact { min-height: 44px; }
.mast .wordmark { min-height: 44px; align-items: center; }
.mast nav a { min-width: 44px; }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; }
.sheet-main .reel-toggle { min-height: 48px; font-size: 12px; }
.sheet-main .reel-caption { padding: 3px 12px; align-items: center; }
.reel-caption a { display: inline-flex; align-items: center; min-height: 44px; }
.hero-sticky { max-width: 1920px; margin-inline: auto; }
.spatial-ready .hero-sticky,
.spatial-ready .gallery[data-view='gallery'] .gallery-camera { min-height: 0; }
.case-picture { position: relative; }
.case-play { position: absolute; z-index: 4; bottom: 12px; left: 12px; display: inline-flex; align-items: center; justify-content: center; min-width: 82px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 1px; background: var(--warm-white); color: var(--ink); font-size: 12px; }
.case-play:hover { background: var(--paper); }
.case-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.booking-services label > span::after { flex-shrink: 0; margin-left: 8px; }
.booking-services label > span { justify-content: space-between; }
.brief-note textarea { font-size: 16px; }
.booking-app, .booking-receipt, .service-aside, .demo-tabs { min-width: 0; }
.demo-tabs button { min-height: 48px; white-space: normal; text-align: left; }
.demo-steps button { white-space: normal; }
.bot-links a { min-height: 48px; }
#case-tish .sign-tish { color: #fffaf1; text-shadow: 0 1px 10px #28190c; }
#case-tish .case-frame::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(145deg, rgb(20 16 11 / 43%), transparent 40%); }
#case-tish:has(.case-motion.is-playing) .case-frame::before { opacity: 0; }

/* A normal document flow is also the fallback for zoom, small windows and reduced motion. */
html:not(.spatial-ready) .hero { height: auto; padding: 0; }
html:not(.spatial-ready) .hero-sticky { position: relative; height: auto; min-height: 0; max-height: none; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 0; align-items: center; padding-block: 145px 28px; }
html:not(.spatial-ready) .hero-copy { position: relative; top: auto; left: auto; width: auto; padding-left: var(--gutter); }
html:not(.spatial-ready) .hero-space { position: relative; inset: auto; width: 100%; height: clamp(330px,40vw,650px); perspective-origin: 50% 50%; }
html:not(.spatial-ready) .hero-sheet { left: 50%; top: 46%; }
html:not(.spatial-ready) .hero-world, html:not(.spatial-ready) .hero-sheet { transform-style: flat; }
html:not(.spatial-ready) .hero-sheet::before { z-index: -1; transform: none; }
html:not(.spatial-ready) .sheet-main { z-index: 3; width: min(66%,620px); transform: translate(-47%,-25%) rotateY(-12deg) rotateX(5deg) rotateZ(-3deg); }
html:not(.spatial-ready) .sheet-entro { z-index: 1; width: min(34%,290px); transform: translate(-99%,-55%) translateZ(-70px) rotateY(-18deg) rotateZ(-12deg); }
html:not(.spatial-ready) .sheet-shok { z-index: 2; width: min(34%,290px); transform: translate(7%,-48%) translateZ(-70px) rotateY(-13deg) rotateZ(10deg); }
html:not(.spatial-ready) .hero-bottom { position: static; grid-column: 1/-1; padding-inline: var(--gutter); margin-top: 25px; }
html:not(.spatial-ready) .motion-toggle { position: static; grid-column: 1/-1; justify-self: end; margin-right: var(--gutter); min-height: 44px; font-size: 12px; }
html:not(.spatial-ready) .gallery[data-view='gallery'] .gallery-camera { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 50px 30px; }
html:not(.spatial-ready) .gallery[data-view='gallery'] .case { margin: 0; }
html:not(.spatial-ready) .gallery[data-view='gallery'] #case-tish { grid-column: 1/-1; }
html:not(.spatial-ready) .gallery[data-view='gallery'] .case-copy { grid-template-columns: minmax(0,1fr); }
html:not(.spatial-ready) .gallery[data-view='gallery'] #case-tish .case-copy { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
html:not(.spatial-ready) .gallery .case-copy h3 { font-size: clamp(32px,4vw,56px); }
html:not(.spatial-ready) .gallery[data-view='gallery'] #case-entro .case-frame,
html:not(.spatial-ready) .gallery[data-view='gallery'] #case-shok .case-frame { aspect-ratio: 1.25; }
html:not(.spatial-ready) .service-aside { position: static; }
html:not(.spatial-ready) .footer-word img { transform: none !important; }

@media (max-width: 1099px) {
 :root { --gutter: max(22px,4.8vw,env(safe-area-inset-left),env(safe-area-inset-right)); }
 html:not(.spatial-ready) .hero-sticky { grid-template-columns: minmax(0,1fr); padding-top: 135px; }
 html:not(.spatial-ready) .hero-copy { padding-inline: var(--gutter); }
 html:not(.spatial-ready) .hero-space { max-width: 860px; height: clamp(350px,60vw,600px); margin: 12px auto 0; }
 .hero h1 { font-size: clamp(52px,8.1vw,86px); }
 .hero h1 > span:last-child { font-size: 1.06em; }
 .hero-kicker { font-size: 12px; }
 .hero-lead { font-size: 18px; max-width: 46ch; }
 .hero-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; }
 .hero-actions .button, .hero-actions .text-link { font-size: 14px; min-height: 48px; }
 .hero-bottom { font-size: 12px; }
 .scroll-cue { margin: 0; }
 .work h2 { font-size: clamp(48px,7.5vw,82px); }
 .services-heading, .system-heading, .proof-copy { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .services h2, .system h2, .proof h2 { font-size: clamp(48px,8vw,86px); }
 .services-heading p, .system-heading > p, .proof-explanation > p { max-width: 54ch; font-size: 17px; }
 .service-composition { grid-template-columns: minmax(0,1fr); margin-top: 35px; gap: 45px; }
 .service-aside { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 30px; align-items: center; }
 .service-orbit { width: 100%; height: 370px; margin: 0; }
 .orbit-label { min-width: 0; font-size: 21px; padding: 14px; }
 .orbit-label span { font-size: 10px; }
 .orbit-core, .orbit-core img { width: 104px; height: 104px; }
 .service-aside-note { padding: 0; margin: 0; }
 .service-aside-note h3 { font-size: clamp(30px,3.7vw,40px); }
 .services-flow { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; }
 .services-flow h3 { font-size: clamp(29px,3.4vw,36px); }
 .services-flow p { font-size: 16px; }
 .service-examples { font-size: 12px; }
 .system { padding-top: 75px; }
 .proof-copy { margin-bottom: 32px; }
 .proof-media.booking-workbench { padding: 28px; gap: 24px; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
 .booking-app, .booking-receipt { padding: 22px; }
 .booking-services label > span, .booking-time-options label > span { font-size: 13px; }
 .booking-receipt { transform: none; }
 .receipt-date { gap: 18px; }
 #receipt-day { font-size: 105px; }
 .contact-in { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 38px; align-items: start; }
 .contact h2 { font-size: clamp(45px,5.8vw,68px); }
 .contact-copy p { font-size: 17px; }
 .contact-options label span { font-size: 13px; }
}
@media (max-width: 850px) {
 .proof-media.booking-workbench { grid-template-columns: minmax(0,1fr); padding: 26px; gap: 26px; }
 .booking-app, .booking-receipt { padding: 28px; }
 .booking-app-top > span { font-size: 15px; }
 .booking-services label > span, .booking-time-options label > span { font-size: 14px; min-height: 48px; }
 .booking-day-options label > span { min-height: 65px; }
 #booking-preview legend { font-size: 13px; }
 #booking-preview legend > span { font-size: 12px; }
 .booking-submit { min-height: 50px; font-size: 14px; }
 .booking-disclaimer { font-size: 12px; }
 .receipt-date { margin-top: 28px; }
 #receipt-day { font-size: 112px; }
 #receipt-service { min-height: 0; }
 #receipt-message, .receipt-footnote { min-height: 0; }
 .receipt-footnote { margin-top: 22px; }
 .contact-in { grid-template-columns: minmax(0,1fr); }
 .contact-form { width: 100%; max-width: none; }
 .contact h2 { font-size: clamp(46px,8.3vw,74px); }
 .contact-copy p { max-width: 48ch; }
}
@media (max-width: 640px) {
 :root { --gutter: max(18px,4.8vw,env(safe-area-inset-left),env(safe-area-inset-right)); }
 .mast { padding-top: max(13px,env(safe-area-inset-top)); }
 .mast .wordmark { font-size: 33px; }
 .mast nav { gap: 20px; }
 .mast nav a { padding-right: 7px; }
 .mast-contact { font-size: 12px; }
 html:not(.spatial-ready) .hero-sticky { padding-top: calc(130px + env(safe-area-inset-top)); padding-bottom: 16px; }
 .hero-kicker { font-size: 11px; margin-bottom: 19px; }
 .hero h1 { font-size: clamp(36px,10.1vw,65px); }
 .hero-lead { font-size: 16px; line-height: 1.55; margin-top: 24px; max-width: 40ch; }
 .hero-actions { margin-top: 23px; gap: 6px 15px; }
 .hero-actions .button, .hero-actions .text-link { font-size: 13px; }
 .hero-actions .button { padding-inline: 13px; }
 html:not(.spatial-ready) .hero-space { height: clamp(320px,83vw,480px); margin-top: 16px; }
 html:not(.spatial-ready) .hero-sheet { top: 44%; }
 html:not(.spatial-ready) .sheet-main { width: 73%; transform: translate(-47%,-12%) rotateY(-12deg) rotateX(5deg) rotateZ(-3deg); }
 html:not(.spatial-ready) .sheet-entro, html:not(.spatial-ready) .sheet-shok { width: 43%; }
 .sheet-main .reel-caption { padding: 2px 9px; font-size: 11px; }
 .sheet-main .reel-toggle { min-height: 46px; font-size: 11px; padding: 8px 10px; }
 html:not(.spatial-ready) .hero-bottom { margin-top: 12px; }
 .scroll-cue { font-size: 11px; gap: 10px; }
 .work-heading { padding-top: 35px; }
 .work h2 { font-size: clamp(38px,10.6vw,64px); }
 html:not(.spatial-ready) .gallery[data-view='gallery'] .gallery-camera { grid-template-columns: minmax(0,1fr); gap: 42px; }
 html:not(.spatial-ready) .gallery[data-view='gallery'] #case-tish .case-copy { grid-template-columns: minmax(0,1fr); }
 .case-copy > p { font-size: 16px; line-height: 1.5; }
 .case-copy h3 { margin-top: 6px; }
 .case-open { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; right: 10px; bottom: 10px; }
 .case-play { left: 10px; bottom: 10px; }
 .gallery { padding-bottom: 55px; }
 .services h2, .system h2, .proof h2 { font-size: clamp(42px,11.1vw,64px); }
 .services-heading p, .system-heading > p, .proof-explanation > p { font-size: 16px; }
 .service-aside { display: block; }
 .service-orbit { width: min(100%,440px); height: 360px; margin-inline: auto; }
 .service-orbit .orbit-core { top: 50%; }
 .service-orbit .orbit-bot { top: 10%; }
 .orbit-label { font-size: 21px; padding: 13px; }
 .orbit-label span { font-size: 10px; max-width: 13ch; }
 .service-aside-note { max-width: 38ch; margin: 28px 0 0; }
 .service-aside-note h3 { font-size: 36px; }
 .service-aside-note p { font-size: 16px; }
 .services-flow { display: block; }
 .services-flow h3 { font-size: clamp(28px,7.5vw,37px); }
 .services-flow > li { padding-block: 23px 28px; }
 .services-bottom { flex-direction: column; align-items: start; gap: 14px; }
 .services-bottom .text-link { white-space: normal; }
 .demo-tabs { gap: 0 15px; }
 .demo-tabs button { font-size: 13px; padding-block: 12px; }
 .demo-main { grid-template-columns: minmax(0,1fr); gap: 17px; }
 .demo-steps { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; gap: 5px 12px; }
 .demo-steps button { min-height: 56px; gap: 7px; }
 .demo-steps button strong { font-size: 16px; overflow-wrap: anywhere; }
 .demo-steps::before, .demo-steps::after { display: none; }
 .demo-output { padding: 24px 20px; min-height: 290px; }
 .demo-output h3 { font-size: clamp(28px,8.2vw,38px); }
 .demo-origin { font-size: 12px; }
 #demo-copy { font-size: 15px; }
 .demo-bottom .button { width: 100%; justify-content: space-between; min-height: 50px; }
 .proof { padding-block: 0 60px; }
 .proof-media.booking-workbench { padding: 12px; gap: 18px; }
 .booking-app { padding: 20px 15px; }
 .booking-receipt { padding: 25px 22px; }
 .booking-app-top { gap: 9px; }
 .booking-app-top > span { font-size: 13px; }
 .booking-app-top .booking-demo-tag { font-size: 10px; }
 .booking-app-top img { width: 26px; height: 26px; }
 .booking-services label > span { font-size: 13px; padding-inline: 9px; }
 .booking-day-options, .booking-time-options { gap: 4px; }
 .booking-day-options label > span { min-height: 63px; }
 #booking-preview legend { font-size: 12px; }
 #booking-preview legend > span { font-size: 11px; }
 .booking-time-options label > span { font-size: 13px; }
 .booking-disclaimer { font-size: 11px; }
 .contact h2 { font-size: clamp(42px,10.8vw,68px); }
 .contact-copy p { font-size: 16px; }
 .contact-in { gap: 28px; }
 .contact-options { gap: 8px; }
 .contact-options label span { padding: 8px 11px; font-size: 13px; }
 .contact .button { width: 100%; justify-content: space-between; min-height: 50px; }
 .footer-in { grid-template-columns: 1fr auto; padding-bottom: max(22px,env(safe-area-inset-bottom)); }
 .footer-in > span { grid-area: 2/1/3/-1; max-width: 32ch; }
 .footer-in > a:last-child { grid-column: 2; grid-row: 1; }
 .footer-word { padding-bottom: 26px; }
}
@media (max-width: 360px) {
 .hero-actions { gap: 7px; }
 .hero-actions .button { padding-inline: 10px; }
 .hero-actions .button, .hero-actions .text-link { font-size: 12px; }
 .proof-media.booking-workbench { padding: 8px; }
 .booking-app { padding: 18px 12px; }
 .booking-app-top { gap: 6px; }
 .booking-app-top > span { font-size: 12px; }
 .booking-app-top .booking-demo-tag { font-size: 9px; }
 .booking-day-options strong { font-size: 24px; }
 .orbit-label { font-size: 19px; }
 .orbit-core, .orbit-core img { width: 92px; height: 92px; }
 .demo-steps { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 641px) and (max-height: 540px) {
 html:not(.spatial-ready) .hero-sticky { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); padding-top: 110px; }
 html:not(.spatial-ready) .hero-space { height: 380px; margin-top: 0; }
 .hero h1 { font-size: clamp(38px,5.3vw,66px); }
 .hero-lead { font-size: 16px; }
 .hero-actions { gap: 6px 14px; }
 .hero-actions .button, .hero-actions .text-link { font-size: 12px; }
}
@media (min-width: 1100px) and (max-height: 850px) {
 .service-aside { top: 28px; }
 .service-orbit { height: 350px; }
 .service-aside-note { padding-top: 22px; }
 .service-aside-note h3 { font-size: 36px; }
 .service-aside-note p { font-size: 14px; }
 .hero-copy { top: 23%; }
 .hero h1 { font-size: clamp(72px,6vw,100px); }
 .hero-lead { font-size: 17px; max-width: 39ch; }
 .hero-actions { margin-top: 23px; }
}
@media (hover: none), (pointer: coarse) {
 .case-frame:hover img { transform: none; }
 .motion-toggle { min-height: 48px; }
 .case-frame .case-open { background: var(--warm-white); }
 .hero .button-dark { background: var(--ink); color: var(--warm-white); }
}

/* Keep all service names in view while the selected example opens in place. */
.services-flow > li, .services-flow > li:first-child { padding-block: 0; }
.services-flow summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding-block: clamp(15px,1.4vw,22px);
  cursor: pointer; list-style: none;
}
.services-flow summary::-webkit-details-marker { display: none; }
.services-flow summary h3 { margin: 0; font-size: clamp(23px,2.3vw,37px); }
.services-flow summary::after {
  content: ""; width: 16px; height: 16px; flex: 0 0 16px;
  background: linear-gradient(currentColor,currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor,currentColor) center / 1.5px 100% no-repeat;
}
.services-flow details[open] summary::after { background-size: 100% 1.5px, 0 0; }
.services-flow summary:hover, .services-flow details[open] summary { color: var(--earth); }
.services-flow .service-detail { padding-bottom: 20px; }
.service-detail .service-examples { margin-top: 12px; }
.service-proof { margin-top: 4px; }
.services-bottom { justify-content: flex-end; }
.demo-product { width: 54px; height: 62px; object-fit: cover; grid-area: 1 / 1 / span 2; }
.demo-event:has(.demo-product:not([hidden])) { grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 2px 14px; }
.demo-event:has(.demo-product:not([hidden])) .demo-event-mark { display: none; }
.demo-event:has(.demo-product:not([hidden])) #demo-event-label { align-self: end; }
.demo-event:has(.demo-product:not([hidden])) #demo-event-value { align-self: start; }
.brief-note textarea { min-height: 110px; padding: 13px 0; font-size: clamp(17px,1.45vw,22px); }
.brief-hint { color: var(--light-ink); font-size: 13px; }
.booking-receipt:focus-visible { outline: 2px solid var(--earth); outline-offset: 3px; }
@media (max-width: 640px) {
  .services-flow summary { padding-block: 15px; }
  .services-flow summary h3 { font-size: clamp(23px,6.1vw,30px); }
  .service-composition { gap: 28px; }
}
