/* ==========================================================================
   asp-works.com front page: the example hotel in 3D (owner-approved 1 Nov 2026).
   Only the front page loads this, after site.css and site-refresh.css.

   Two layouts for the opening:
   - wide screens (1180px and wider, 600px and taller): the words sit over the left
     of the 3D scene and scroll away while the building stays;
   - everything else (phones, tablets, short laptop windows, phones turned sideways):
     the words come first, then the 3D scene fills the screen on its own, so the
     words never cover the building.
   The building is fitted by /assets/home.js into whatever part of the scene the
   words, the live feed, the caption and the labels leave free.
   Shared parts (chips, labels, room cards, role screens) are in hotel.css, loaded first.
   ========================================================================== */

/* ---------- top bar floats over the night on this page ---------- */
body.mk-index .nav{position:fixed;left:0;right:0;top:0;background:transparent;border-bottom-color:transparent;
  -webkit-backdrop-filter:none;backdrop-filter:none}
body.mk-index .nav.solid{background:rgba(6,20,28,.94);border-bottom-color:rgba(255,255,255,.08)}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  body.mk-index .nav.solid{background:rgba(6,20,28,.8);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}}
html:not(.js) body.mk-index .nav{background:rgba(6,20,28,.94)}

/* ---------- the opening ---------- */
.h-story{position:relative;background:var(--night);color:var(--on-night)}
.h-copy{position:relative;z-index:5;padding:calc(64px + env(safe-area-inset-top,0px) + 28px) 0 36px;
  background:radial-gradient(700px 420px at 85% 0%,rgba(17,71,90,.75),rgba(17,71,90,0) 70%)}
.h-copy-in{max-width:600px}
.h-kicker{display:inline-flex;align-items:center;gap:10px;color:var(--on-night-2);font-size:14px;font-weight:600;line-height:1.3;
  padding:7px 14px 7px 12px;border-radius:999px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
body.mk .h-h1{font-size:clamp(38px,10.4vw,56px);line-height:.98;color:#fff;margin:20px 0 0}
.h-lead{font-size:17px;line-height:1.55;color:var(--on-night-2);margin:18px 0 24px;max-width:520px}
.h-trust{display:flex;flex-wrap:wrap;gap:6px 18px;margin:20px 0 0;color:var(--on-night-3);font-size:14px;font-weight:500}
.h-trust span{display:inline-flex;align-items:flex-start;gap:8px}
.h-trust span::before{content:"";flex:0 0 6px;width:6px;height:6px;margin-top:.5em;border-radius:50%;background:var(--glow);opacity:.8}
.h-hint{display:none;margin:22px 0 0;color:var(--on-night-3);font-size:14px;align-items:center;gap:10px}
.h-hint svg{flex:none}
@media (max-width:560px){.h-ctas .btn{flex:1 1 100%}}

.h-stage{position:relative;height:200vh;height:200svh}
.h-sticky{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:var(--night)}
#scene{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:pan-y;cursor:grab;-webkit-tap-highlight-color:transparent}
#scene.drag{cursor:grabbing}
/* the lobby photo is a background set only by the no-3D rules below, so a browser that shows the 3D hotel never downloads it */
body.mk .h-photo{display:none;position:absolute;inset:0;width:100%;height:100%;background:var(--night) 50% 40% / cover no-repeat}
.h-scrim{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(6,20,28,.85) 0,rgba(6,20,28,0) 140px),linear-gradient(0deg,rgba(6,20,28,.85) 0,rgba(6,20,28,0) 32%)}
.h-tip{position:absolute;z-index:4;left:50%;top:calc(64px + env(safe-area-inset-top,0px) + 14px);transform:translateX(-50%);margin:0;
  padding:7px 14px;border-radius:999px;background:rgba(6,20,28,.7);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
  color:var(--on-night-2);font-size:13.5px;font-weight:600;white-space:nowrap;pointer-events:none;opacity:0}
.h-caption{position:absolute;z-index:4;left:0;right:0;top:calc(64px + env(safe-area-inset-top,0px) + 16px);opacity:0;visibility:hidden;pointer-events:none}
.h-caption-in{max-width:560px}
.h-caption .h-h2{font-size:clamp(26px,7vw,52px);line-height:1.02;color:#fff}
.h-caption p{color:var(--on-night-2);font-size:15.5px;line-height:1.5;margin:10px 0 0}

/* the live feed */
.h-feed{position:absolute;z-index:4;left:var(--gut-l);right:var(--gut-r);bottom:calc(14px + env(safe-area-inset-bottom,0px));
  padding:11px 14px;border-radius:18px;background:rgba(6,20,28,.78);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);color:var(--on-night);pointer-events:none}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.h-feed{background:rgba(6,20,28,.62);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}
.h-feed-h{display:flex;align-items:center;gap:9px;font-weight:700;font-size:14px;margin-bottom:6px}
.h-clock{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--on-night-3);font-weight:600}
.h-feed ol{list-style:none;margin:0;padding:0;display:grid;gap:2px;min-height:24px}
.h-feed li{display:flex;gap:10px;align-items:baseline;font-size:13.5px;line-height:1.35;padding:4px 0;color:var(--on-night-2)}
.h-feed li:first-child{color:#fff;animation:h-slide .5s ease both}
.h-feed li:nth-child(n+3){display:none}
.h-feed li time{flex:none;width:58px;color:var(--on-night-3);font-variant-numeric:tabular-nums;font-size:12.5px}
.h-feed li .h-sw{width:8px;height:8px;border-radius:2px;transform:translateY(-1px)}
.h-feed li span{min-width:0}

/* the keyboard room list (sweep 42, W68): out of sight until a keyboard or screen reader reaches it, then a box at the
   top of the scene. It shows the same words as tapping a window. */
.h-roompick{position:absolute;z-index:6;left:var(--gut-l);right:var(--gut-r);top:calc(64px + env(safe-area-inset-top,0px) + 14px);
  margin:0;padding:12px 14px;border-radius:18px;background:rgba(6,20,28,.92);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);color:var(--on-night)}
.h-roompick:not(:focus-within){clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0;white-space:nowrap}
.h-roompick[hidden]{display:none}
.h-roompick-h{margin:0 0 8px;font-weight:700;font-size:14px}
/* the list on one row, Previous room and Next room side by side on the next one, so a 390px phone never breaks a pair */
.h-roompick-row{display:flex;align-items:center;gap:8px}
.h-roompick-steps{margin-top:8px}
.h-roompick-lab{font-size:13.5px;color:var(--on-night-2)}
.h-roompick select,.h-roompick-step{min-height:40px;border-radius:10px;border:1px solid rgba(255,255,255,.28);background:#0B2530;color:#fff;
  font:600 14px var(--f-text);padding:0 12px}
.h-roompick select{flex:1 1 auto;min-width:0}
.h-roompick-step{cursor:pointer;flex:1 1 0;min-width:0;white-space:nowrap}
.h-roompick-out{margin:10px 0 0;font-size:14px;line-height:1.45;color:var(--on-night-2);white-space:normal}
.h-roompick-out b{color:#fff}
.h-roompick-out:empty{display:none}

/* ---------- wide screens: words over the scene ---------- */
@media (min-width:1180px) and (min-height:600px){
  .h-copy{position:relative;height:100vh;height:100svh;padding:72px 0 0;display:flex;align-items:center;pointer-events:none;background:none}
  .h-copy .wrap{width:100%}
  .h-copy-in{max-width:560px;pointer-events:auto}
  body.mk .h-h1{font-size:clamp(52px,min(6.2vw,9.6vh),92px);line-height:.94}
  .h-lead{font-size:clamp(17px,1.4vw,19.5px);margin:22px 0 28px}
  .h-hint{display:flex}
  .h-stage{margin-top:-100vh;margin-top:-100svh;height:230vh;height:230svh}
  .h-scrim{background:linear-gradient(90deg,rgba(6,20,28,.94) 0%,rgba(6,20,28,.66) 34%,rgba(6,20,28,0) 56%),linear-gradient(180deg,rgba(6,20,28,.7) 0,rgba(6,20,28,0) 140px),linear-gradient(0deg,rgba(6,20,28,.8),rgba(6,20,28,0) 26%)}
  .h-tip{display:none}
  .h-caption{top:auto;bottom:56px}
  .h-feed{left:auto;right:max(24px,env(safe-area-inset-right,0px));bottom:28px;width:330px;padding:14px 16px}
  .h-roompick{left:auto;right:max(24px,env(safe-area-inset-right,0px));width:380px}
  .h-feed li:nth-child(n+3){display:flex}
  .h-pin-card{width:236px}
}
@media (min-width:1180px) and (min-height:600px) and (max-height:760px){.h-hint{display:none}.h-lead{margin:16px 0 22px}}
/* tablets and phones turned sideways: the feed is a box on the right, the caption on the left */
@media (min-width:600px) and (max-width:1179px),(min-width:600px) and (max-height:599px){
  .h-feed{left:auto;width:320px;right:max(20px,env(safe-area-inset-right,0px))}
  .h-copy-in{max-width:680px}
  body.mk .h-h1{font-size:clamp(44px,7vw,72px)}
}
@media (min-aspect-ratio:1/1) and (max-width:1179px),(min-aspect-ratio:1/1) and (max-height:599px){
  .h-caption{top:auto;bottom:24px}
  .h-caption-in{max-width:min(46vw,520px)}
  .h-caption .h-h2{font-size:clamp(24px,3.6vw,44px)}
}
@media (max-height:599px) and (min-aspect-ratio:1/1){
  .h-copy{padding-top:calc(64px + 20px)}
  body.mk .h-h1{font-size:clamp(34px,calc(6vh + 2vw),52px)}
  .h-lead{margin:12px 0 18px;font-size:16px}
  .h-ctas .btn{flex:0 0 auto}
  .h-feed{padding:9px 12px;bottom:12px;width:300px}
  .h-feed-h{font-size:13px;margin-bottom:2px}
  .h-feed li{font-size:12.5px;padding:2px 0}
  .h-caption p{display:none}
  .h-cat-label{font-size:12px}
  .h-cat-label span{padding:3px 9px 3px 8px}
  .h-tip{top:calc(64px + 8px)}
}

/* ---------- when there is no 3D: the lobby photo instead ---------- */
.nogl .h-stage{height:auto;margin-top:0}
.nogl .h-sticky{position:relative;height:62vh;height:62svh;min-height:360px}
.nogl #scene,.nogl .h-tip,.nogl .h-caption,.nogl #pins,.nogl #labels{display:none}
.nogl body.mk .h-photo{display:block;background-image:url("/assets/photos/hero-lobby-1000.jpg")}
.nogl .h-scrim{background:linear-gradient(180deg,rgba(6,20,28,.9),rgba(6,20,28,.1) 30%,rgba(6,20,28,.1) 60%,rgba(6,20,28,.9))}
@media (min-width:1180px) and (min-height:600px){
  .nogl .h-stage{margin-top:-100vh;margin-top:-100svh}
  .nogl .h-sticky{height:100vh;height:100svh}
  .nogl body.mk .h-photo{left:auto;width:52%;background-position:50% 50%}
  .nogl .h-scrim{background:linear-gradient(90deg,var(--night) 46%,rgba(6,20,28,.5) 62%,rgba(6,20,28,.15)),linear-gradient(0deg,rgba(6,20,28,.8),rgba(6,20,28,0) 30%)}
}
@media (scripting:none){
  .h-stage{height:auto;margin-top:0}
  .h-sticky{position:relative;height:62vh;height:62svh;min-height:360px}
  #scene,.h-tip,.h-caption,.h-feed,#pins,#labels,.h-pulse,.h-tabs,.h-devwrap{display:none}
  body.mk .h-photo{display:block;background-image:url("/assets/photos/hero-lobby-1000.jpg")}
  .h-scrim{background:linear-gradient(180deg,rgba(6,20,28,.9),rgba(6,20,28,.1) 30%,rgba(6,20,28,.1) 60%,rgba(6,20,28,.9))}
  .h-rolebox{grid-template-columns:1fr}
}
@media (scripting:none) and (min-width:1180px) and (min-height:600px){
  .h-stage{margin-top:-100vh;margin-top:-100svh}
  .h-sticky{height:100vh;height:100svh}
  body.mk .h-photo{left:auto;width:52%}
  .h-scrim{background:linear-gradient(90deg,var(--night) 46%,rgba(6,20,28,.5) 62%,rgba(6,20,28,.15))}
}

/* ---------- the numbers strip ---------- */
.h-pulse{background:var(--night);color:var(--on-night);border-top:1px solid rgba(255,255,255,.08)}
.h-pulse .wrap{padding-block:30px 36px}
.h-pulse-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 20px;margin-bottom:18px}
.h-pulse-h b{font-size:15.5px;color:#fff}
.h-pulse-h span{color:var(--on-night-3);font-size:14px}
.h-nums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.08);border-radius:18px;overflow:hidden}
@media (min-width:768px){.h-nums{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1180px){.h-nums{grid-template-columns:repeat(6,minmax(0,1fr))}}
.h-num{background:var(--night-2);padding:16px 16px 14px;min-width:0}
.h-num strong{display:block;font:800 32px/1 var(--f-disp);letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#fff}
@media (min-width:768px){.h-num strong{font-size:40px}.h-num{padding:18px 18px 16px}}
.h-num span{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14px;color:var(--on-night-2)}
.h-num canvas{display:block;width:100%;height:26px;margin-top:10px}

/* the eight categories (generated cards, restyled) */
body.mk .h-cats .section-head{margin-bottom:36px}
body.mk .h-cats .eyebrow{font-size:14px}
body.mk .h-cats .feature-grid{gap:1px;background:var(--pp-line);border-radius:24px;overflow:hidden;box-shadow:0 0 0 1px var(--pp-line)}
@media (min-width:1025px){body.mk .h-cats .feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
body.mk .h-cats .feature-card{border:0;border-radius:0;padding:28px 24px 30px;position:relative;min-width:0}
body.mk .h-cats .feature-card::before{content:"";position:absolute;left:24px;width:36px;top:0;height:3px;border-radius:0 0 3px 3px;background:var(--layer,var(--pp-accent))}
body.mk .h-cats .feature-card:nth-child(1){--layer:#FFB35C}body.mk .h-cats .feature-card:nth-child(2){--layer:#38E1D4}
body.mk .h-cats .feature-card:nth-child(3){--layer:#B9A8F5}body.mk .h-cats .feature-card:nth-child(4){--layer:#9FD3FF}
body.mk .h-cats .feature-card:nth-child(5){--layer:#FF9E8A}body.mk .h-cats .feature-card:nth-child(6){--layer:#8CE3A6}
body.mk .h-cats .feature-card:nth-child(7){--layer:#C9D3DC}body.mk .h-cats .feature-card:nth-child(8){--layer:#F6D96B}
body.mk .h-cats .feature-card h3{font-size:18.5px}
.h-cats-note{margin:28px 0 0;font-size:16px;line-height:1.6;color:var(--pp-muted);max-width:720px}

/* guest journey */
.h-journey{list-style:none;padding:0;display:grid;grid-template-columns:1fr;gap:32px;margin:48px 0 0;position:relative}
@media (min-width:561px){.h-journey{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 22px}}
@media (min-width:1080px){.h-journey{grid-template-columns:repeat(4,minmax(0,1fr))}
  .h-journey::before{content:"";position:absolute;left:20px;right:20px;top:19px;height:2px;background:linear-gradient(90deg,var(--pp-accent),var(--lamp))}}
.h-stop{min-width:0}
.h-step{position:relative;z-index:1;width:40px;height:40px;border-radius:50%;background:var(--pp-paper);box-shadow:inset 0 0 0 2px var(--pp-accent);
  display:flex;align-items:center;justify-content:center;font:800 16px var(--f-disp);color:var(--pp-accent)}
.h-when{font-size:14px;color:#095F66;font-weight:700;margin-top:16px}
.h-stop figure{margin:12px 0 16px;border-radius:20px;overflow:hidden;aspect-ratio:4/3;background:#DDE3E9}
body.mk .h-stop img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
@media (hover:hover){.h-stop:hover img{transform:scale(1.05)}}
.h-stop h3{font:700 19px var(--f-text);margin:0 0 6px;color:var(--pp-ink)}
.h-stop p{margin:0;font-size:15.5px;line-height:1.55;color:var(--pp-muted)}

/* facts */
.h-facts{display:grid;grid-template-columns:1fr;border-top:2px solid var(--pp-ink);margin-top:44px}
@media (min-width:561px){.h-facts{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}}
@media (min-width:1025px){.h-facts{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:40px}}
.h-fact{padding:24px 0;min-width:0;border-bottom:1px solid var(--pp-line)}
.h-fact .stat-num{font:800 clamp(44px,5vw,64px)/1 var(--f-disp);letter-spacing:-.045em;color:var(--pp-ink)}
.h-fact .stat-label{margin-top:12px;font-size:15.5px;line-height:1.55;color:var(--pp-muted);font-weight:400;max-width:380px}

/* pricing */
body.mk-index .pricing-teaser{background:var(--pp-paper);border:0;padding-block:72px}
@media (min-width:1025px){body.mk-index .pricing-teaser{padding-block:120px}}
.h-plans{display:grid;grid-template-columns:1fr;gap:14px;margin-top:40px}
@media (min-width:768px){.h-plans{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}
.h-plan{background:#fff;border-radius:24px;padding:28px;box-shadow:0 0 0 1px var(--pp-line);min-width:0;display:flex;flex-direction:column}
.h-plan.h-pick{background:var(--pp-ink);color:#fff;box-shadow:0 30px 70px rgba(15,25,36,.22)}
.h-plan h3{margin:0;font:700 17px var(--f-text);color:inherit}
.h-price{font:800 54px/1 var(--f-disp);letter-spacing:-.045em;margin:18px 0 8px}
.h-price small{font:500 15.5px var(--f-text);letter-spacing:0;opacity:.75}
.h-plan p{margin:0 0 20px;font-size:15.5px;line-height:1.5;opacity:.85}
.h-plan .btn{margin-top:auto;width:100%}
.h-plans-note{margin:22px 0 0;font-size:15.5px;line-height:1.6;color:var(--pp-muted)}

/* closing band */
.h-end{position:relative;overflow:hidden;margin:0 max(16px,env(safe-area-inset-left,0px)) 0;padding:80px 20px 150px;border-radius:30px;text-align:center;
  background:radial-gradient(900px 500px at 70% 0%,var(--deep),var(--night) 70%);color:#fff}
@media (min-width:561px){.h-end{padding-bottom:170px}}
@media (min-width:1025px){.h-end{margin:0 24px;padding:112px 24px 190px;border-radius:36px}}
.h-end .h-h2{color:#fff;margin:0 auto;font-size:clamp(34px,5vw,68px);line-height:.98;max-width:760px;position:relative;z-index:1}
.h-end p{color:var(--on-night-2);font-size:18px;margin:18px auto 28px;max-width:520px;line-height:1.55;position:relative;z-index:1}
.h-end .h-ctas{justify-content:center;position:relative;z-index:1}
/* the echo stands under the buttons: 72px wide (126px tall) on a phone, inside the 150px bottom padding */
body.mk .h-end .mk-echo{left:50%;right:auto;margin-left:-36px;width:72px;opacity:.6}
@media (min-width:561px){body.mk .h-end .mk-echo{margin-left:-48px;width:88px}}
@media (min-width:1025px){body.mk .h-end .mk-echo{margin-left:-56px;width:104px}}
body.mk-index .site-footer{margin-top:56px}

@media (max-width:420px){.h-caption p{font-size:14.5px}}

/* ---------- teasers: each lower section ends in a link to its own page ---------- */
.h-facts-lead{max-width:760px}
.h-roles-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.h-roles-row a{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 18px 0 14px;border-radius:999px;background:#fff;
  box-shadow:inset 0 0 0 1.5px var(--pp-line-strong);font:600 15px var(--f-text);color:var(--pp-ink-soft);text-decoration:none;
  transition:box-shadow .2s ease,transform .2s ease}
.h-roles-row a::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--pp-accent)}
.h-roles-row a:hover{box-shadow:inset 0 0 0 1.5px var(--pp-accent);transform:translateY(-2px)}
.h-stop-link{display:block;color:inherit;text-decoration:none;border-radius:20px}
.h-stop-link:hover h3{color:var(--pp-accent)}
.h-stop-go{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-weight:650;font-size:15px;color:var(--pp-accent)}
.h-stop-go::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:2px 2px 0 0;transform:rotate(45deg);transition:transform .2s ease}
.h-stop-link:hover .h-stop-go::after{transform:translateX(3px) rotate(45deg)}

@media (prefers-reduced-motion:reduce){
  .h-feed li:first-child{animation:none}
}
