@font-face { font-family: 'Oxanium'; font-weight: 300; src: url('brand/fonts/Oxanium-Light.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Oxanium'; font-weight: 400; src: url('brand/fonts/Oxanium-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Oxanium'; font-weight: 500; src: url('brand/fonts/Oxanium-Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Oxanium'; font-weight: 600; src: url('brand/fonts/Oxanium-SemiBold.ttf') format('truetype'); font-display: swap; }
/* V5 tokens come from the live 52exploration.xquisiteyachts.com page (approved mockup 2). */
:root { --navy: #163254; --deep: 15, 34, 56; --pale: #afcbe4; --red: #ff3b2e; --soft: rgba(255,255,255,.86); --muted: rgba(252,252,255,.62); --hair: rgba(255,255,255,.2); --ease: cubic-bezier(0.22, 0.61, 0.36, 1); --gutter: 52px; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { font: 400 16px/1.5 'Oxanium', system-ui, sans-serif; color: #fff; background: #3d7fc4; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
#viewport { position: absolute; inset: 0; }
canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Navy fades instead of boxes: the controls sit on the page's own color */
.scrim { position: absolute; z-index: 1; pointer-events: none; transition: opacity .45s var(--ease); }
.scrim.top { left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(rgba(var(--deep), .6), rgba(var(--deep), 0)); }
.scrim.bottom { left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(rgba(var(--deep), 0), rgba(var(--deep), .72) 45%, rgba(var(--deep), .92)); }
.scrim.left { left: 0; top: 0; bottom: 0; width: 540px; opacity: 0; background: linear-gradient(90deg, rgba(var(--deep), .9) 0, rgba(var(--deep), .74) 310px, rgba(var(--deep), 0)); }
body:has(.feature:not([hidden])) .scrim.left { opacity: 1; }

/* Brand */
.head { position: absolute; z-index: 2; left: var(--gutter); top: 30px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.head img { display: block; width: 160px; height: auto; }
.head .name { font-size: 16px; font-weight: 300; letter-spacing: 1px; }

/* First load only */
#loading { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; min-width: 260px; text-shadow: 0 1px 8px rgba(var(--deep), .8); }
#loading p { margin: 0; font-size: 18px; font-weight: 300; letter-spacing: 1px; }
.spinner { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#loading button, #room-retry { height: 44px; padding: 0 20px; border: 1px solid rgba(255,255,255,.5); border-radius: 2px; font-size: 14px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; }
#loading button:hover, #room-retry:hover { background: rgba(255,255,255,.1); }

/* Drag cue */
.cue { position: absolute; z-index: 2; left: 50%; bottom: calc(var(--dock, 138px) + 12px); translate: -50% 0; width: min(34vw, 380px); pointer-events: none; text-align: center; filter: drop-shadow(0 1px 5px rgba(var(--deep), .5)); animation: sway 3.2s ease-in-out infinite, cuein .7s var(--ease) both; transition: opacity .45s var(--ease); }
.cue.is-leaving, body:has(.navigation-feedback:not([hidden])) .cue { opacity: 0; }
.cue svg { width: 100%; height: auto; display: block; }
.cue p { margin: 6px 0 0; font-size: 15px; font-weight: 400; letter-spacing: .3px; }
@keyframes sway { 0%,100% { translate: -50% 0; } 50% { translate: -50% 5px; } }
@keyframes cuein { from { opacity: 0; } to { opacity: 1; } }

/* Menu: the site's navigation type, no containers */
#viewer-dock { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; pointer-events: none; }
.bar { position: absolute; left: 0; right: 0; bottom: 26px; pointer-events: none; text-align: center; }
.tabs { display: flex; justify-content: center; gap: 44px; pointer-events: auto; width: max-content; margin: 0 auto; }
.tabs button { position: relative; min-height: 44px; font-size: 20px; font-weight: 300; letter-spacing: 1px; color: rgba(255,255,255,.62); padding: 4px 0 9px; transition: color .25s; }
.tabs button:hover, .tabs button[aria-selected="true"] { color: #fff; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff; transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs button.is-loading::after { transform: scaleX(var(--progress, .05)); transform-origin: left; background: rgba(255,255,255,.55); transition: transform .4s linear; }
.tabs button.is-loading[aria-selected="true"]::after { background: #fff; }
.pills { display: flex; align-items: center; justify-content: center; gap: 34px; width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin: 12px auto 0; padding-top: 12px; border-top: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
.pills::-webkit-scrollbar { display: none; }
.pills button { position: relative; flex: none; height: 44px; min-width: 44px; font-size: 16px; font-weight: 400; letter-spacing: .5px; white-space: nowrap; color: rgba(255,255,255,.72); transition: color .25s, opacity .3s; }
.pills button:hover { color: #fff; }
.pills button[aria-pressed="true"] { color: #fff; }
.pills button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 2px; background: #fff; }
.pills button:disabled { opacity: .38; }
.pills button.pending::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 2px; background: rgba(255,255,255,.7); animation: pending 1.2s ease-in-out infinite; }
@keyframes pending { 50% { opacity: .25; } }
.pills .group { display: flex; align-items: center; gap: 30px; flex: none; }
.pills .group + .group { padding-left: 34px; border-left: 1px solid var(--hair); }
.pills .label { font-size: 14px; color: var(--pale); white-space: nowrap; }
.pills .row-break { display: none; }
/* A suite's own rooms (CB04) follow it, tied to it by a dot; the group names show where the row has room. */
.pills button.sub { margin-left: -14px; color: rgba(255,255,255,.66); }
.pills button.sub::before { content: "\00b7"; margin-right: 10px; color: rgba(255,255,255,.45); }
.pills button.sub .long { display: none; }
@media (max-width: 1460px) and (min-width: 701px) { .pills[data-level="inside"] .label { display: none; } }
@media (min-width: 701px) and (max-width: 1100px) and (min-height: 600px) {
  .pills[data-level="inside"] { flex-direction: column; align-items: center; gap: 0; overflow: visible; }
  .pills[data-level="inside"] .group + .group { padding-left: 0; border-left: 0; }
}
@media (min-width: 1461px) { .pills button.sub .long { display: inline; } .pills button.sub .short { display: none; } }

/* Opening / failed message, on the fade above the menu */
.navigation-feedback { position: absolute; left: 50%; bottom: calc(var(--dock, 138px) + 12px); translate: -50% 0; display: flex; align-items: center; gap: 14px; pointer-events: auto; font-size: 15px; font-weight: 400; letter-spacing: .5px; white-space: nowrap; text-shadow: 0 1px 8px rgba(var(--deep), .9); animation: cuein .3s var(--ease) both; }
.navigation-feedback.load-failed { color: #ffd6c8; }

/* View tools: small square controls with the site's 2 px corners */
.tools { position: absolute; z-index: 3; right: var(--gutter); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tools .set { display: flex; flex-direction: column; gap: 2px; }
.tools .set button { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(var(--deep), .55); border-radius: 2px; transition: background .25s, opacity .3s; }
.tools .set button:hover { background: rgba(var(--deep), .85); }
.tools .set button:disabled { opacity: .38; }
.tools .set button[aria-pressed="true"] { background: rgba(var(--deep), .85); color: var(--pale); box-shadow: inset 0 0 0 1px rgba(175,203,228,.55); }
.tools .set button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tools .tv { position: relative; height: 44px; padding: 0 16px 0 42px; display: flex; align-items: center; font-size: 15px; font-weight: 400; letter-spacing: .3px; white-space: nowrap; background: rgba(var(--deep), .55); border-radius: 2px; transition: background .25s, color .25s; }
.tools .tv::before { content: ""; position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='12' rx='1.5'/%3E%3Cpath d='M8 20h8M12 17v3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='12' rx='1.5'/%3E%3Cpath d='M8 20h8M12 17v3'/%3E%3C/svg%3E") center/contain no-repeat; }
.tools .tv:hover { background: rgba(var(--deep), .85); }
.tools .tv[aria-pressed="true"] { background: rgba(var(--deep), .8); box-shadow: inset 0 0 0 1px rgba(175,203,228,.55); }

/* Feature panels: garage and guest cabin, on the left fade */
.feature { position: absolute; z-index: 3; left: var(--gutter); top: 150px; width: 330px; }
.feature h2 { margin: 0; font-size: 34px; font-weight: 300; letter-spacing: .5px; line-height: 1.15; }
.feature p { margin: 12px 0 0; color: var(--soft); }
.feature .note { display: none; }
.feature .rule { height: 1px; background: var(--hair); margin: 24px 0; }
/* No red call to action in the tour (Joseph, 2026-09-25): the garage's "Step aboard" and "Open garage" (garage-ui.js
   gives the primary one .cta) wear the same quiet hairline as "Close garage" and "See the whole cabin". */
.cta { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 2px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 16px; font-weight: 400; letter-spacing: .3px; white-space: nowrap; text-decoration: none; transition: background .2s; }
.cta:hover { background: rgba(255,255,255,.1); }
.ghost { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 2px; border: 1px solid rgba(255,255,255,.5); font-size: 16px; font-weight: 400; letter-spacing: .3px; white-space: nowrap; transition: background .2s; }
.ghost:hover { background: rgba(255,255,255,.1); }
.ghost[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.ghost:disabled { opacity: .5; }
.options { display: flex; gap: 26px; margin-top: 20px; }
.options button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 10px; color: rgba(255,255,255,.7); transition: color .2s; }
.options button:hover { color: #fff; }
.options svg { width: 34px; height: 34px; fill: none; stroke: var(--pale); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.options button[aria-checked="true"] { color: #fff; }
.options button[aria-checked="true"] svg { opacity: 1; }
.options button[aria-checked="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff; }
.spec { display: flex; gap: 14px; align-items: flex-start; }
.spec svg { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--pale); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.spec b { display: block; font-weight: 400; }
.spec span { display: block; font-size: 26px; font-weight: 300; line-height: 1.2; }
.spec small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.where { display: flex; gap: 14px; align-items: center; margin: 22px 0 0; }
.where img { width: 138px; height: auto; display: block; border: 1px solid var(--hair); }
.where figcaption { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Callouts: the film's line, node and logo X, capitals straight on the image. They draw on
   (callouts.js) so they appear at once; only hiding fades. */
.callouts { position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.callouts.is-on { opacity: 1; transition: none; }
.callouts svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callouts polyline, .callouts path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgba(6, 20, 34, .7)); }
.callouts rect { fill: none; stroke: #fff; stroke-width: 1.8; filter: drop-shadow(0 0 2px rgba(6, 20, 34, .7)); }
.callouts .tag { position: absolute; left: 0; top: 0; font-size: 15px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; line-height: 1; white-space: nowrap; text-shadow: 0 1px 6px rgba(6, 20, 34, .85), 0 0 2px rgba(6, 20, 34, .6); }

/* In-scene arrows (V8): an upright symbol that says what it does, the name beside it in sentence case.
   hotspots.js places each arrow clear of the others, the edges and every control; the picture takes
   the pointer (a drag that starts on a name still turns the view). */
.spots { position: absolute; z-index: 2; inset: 0; pointer-events: none; overflow: hidden; }
.spot { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; pointer-events: none; filter: drop-shadow(0 2px 10px rgba(7, 22, 31, .35)); }
.spot.flip { flex-direction: row-reverse; }
.spot.is-on { opacity: 1; visibility: visible; }
.spot i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--deep), .55); border: 1.5px solid rgba(255,255,255,.85); transition: background .25s; }
.spot i svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.spot span { font-size: 16px; font-weight: 400; letter-spacing: .3px; line-height: 22px; white-space: nowrap; color: #fff; text-shadow: 0 1px 6px rgba(6, 20, 34, .9), 0 0 2px rgba(6, 20, 34, .7); }
.spot.is-hover i { background: #fff; }
.spot.is-hover i svg { stroke: var(--navy); }
.spot:focus-visible { outline: none; }
.spot:focus-visible i { outline: 2px solid #fff; outline-offset: 3px; }
/* Homepage story plan (?embed=1): the saloon's plan in place of the roof (plan-reveal.js), names on the rooms,
   dot and name under it, clickable as before. */
.plan-reveal { position: absolute; left: 0; top: 0; width: 1043px; height: 627px; max-width: none; transform-origin: 0 0; pointer-events: none; opacity: 0; }
.spots.is-plan .spot { flex-direction: column; margin: -15px 0 0 -15px; pointer-events: auto; }
.spots.is-plan .spot i { width: 30px; height: 30px; }
.spots.is-plan .spot i svg { display: none; }
.spots.is-plan .spot i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.spots.is-plan .spot:hover i::before { background: var(--navy); }
.spots.is-plan .spot:hover i { background: #fff; }
.spots.is-plan .spot span { font-size: 15px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.spots.is-plan .spot span::after { content: " \203A"; letter-spacing: 0; }

body.clean-capture .spots, body.clean-capture .head, body.clean-capture #viewer-dock, body.clean-capture .tools, body.clean-capture .cue, body.clean-capture .feature, body.clean-capture .scrim, body.clean-capture .callouts { display: none; }

/* Phone */
@media (max-width: 700px) {
  :root { --gutter: 22px; }
  .head { top: 22px; gap: 7px; }
  .head img { width: 124px; }
  .head .name { font-size: 14px; }
  .scrim.bottom { height: 270px; }
  body:has(.feature:not([hidden])) .scrim.bottom { height: 400px; background: linear-gradient(rgba(var(--deep), 0), rgba(var(--deep), .82) 42%, rgba(var(--deep), .95)); }
  .scrim.left { display: none; }
  .bar { bottom: 12px; }
  .tabs { gap: 30px; }
  .tabs button { font-size: 18px; min-height: 44px; }
  .pills { justify-content: flex-start; width: auto; max-width: none; margin: 10px 0 0; padding: 10px var(--gutter) 0; gap: 26px; -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
  .pills .group { gap: 24px; }
  .pills .group + .group { padding-left: 24px; }
  /* PH07: nothing to hunt for. Exterior: two short lines. Interior: one row per deck, each first item in view. */
  .pills[data-level="outside"] { flex-wrap: wrap; column-gap: 18px; row-gap: 0; margin-top: 4px; padding-top: 4px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .pills[data-level="outside"] .row-break { display: block; flex-basis: 100%; height: 0; }
  .pills[data-level="inside"] { display: block; margin-top: 4px; padding: 4px 0 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .pills[data-level="inside"] .group { gap: 17px; flex-wrap: wrap; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
  .pills[data-level="inside"] .group::-webkit-scrollbar { display: none; }
  .pills[data-level="inside"] .group + .group { padding-left: var(--gutter); border-left: 0; }
  .pills .group[data-edge="end"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%); mask-image: linear-gradient(90deg, transparent, #000 16%); }
  .pills .group[data-edge="middle"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
  .pills .group[data-edge="none"] { -webkit-mask-image: none; mask-image: none; }
  .pills .label { display: none; }
  .pills button { font-size: 15px; min-width: 44px; }
  /* The three cabins in view on a phone; inside a suite its own rooms get a line of their own, under full names. */
  .pills button.sub { display: none; order: 3; margin-left: 0; }
  .pills button.sub::before { display: none; }
  .pills button.sub .long { display: inline; }
  .pills button.sub .short { display: none; }
  body[data-room^="master-"] .pills button.sub[data-destination^="master-"], body[data-room^="vip-"] .pills button.sub[data-destination^="vip-"] { display: inline-flex; }
  .pills .sub-break { display: none; order: 2; flex-basis: 100%; height: 0; }
  body[data-room^="master-"] .pills .sub-break, body[data-room^="vip-"] .pills .sub-break { display: block; }
  .pills[data-edge="end"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%); mask-image: linear-gradient(90deg, transparent, #000 16%); }
  .pills[data-edge="middle"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
  .pills[data-edge="none"] { -webkit-mask-image: none; mask-image: none; }
  .navigation-feedback { bottom: calc(var(--dock, 144px) + 18px); font-size: 15px; }
  .tools { top: 22px; right: var(--gutter); translate: none; flex-direction: row-reverse; align-items: flex-start; }
  .tools #zoom-in, .tools #zoom-out, .tools #rotate { display: none; }
  .tools .tv { height: 44px; padding: 0 14px 0 40px; font-size: 15px; }
  .tools .tv::before { left: 13px; }
  .feature { left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(var(--dock, 144px) + 20px); width: auto; }
  .feature h2 { font-size: 28px; }
  .feature p { font-size: 15px; margin-top: 8px; }
  .feature .note { display: block; }
  .feature .wide { display: none; }
  .feature .cta { width: 100%; margin-top: 18px; }
  .feature .ghost { margin-top: 16px; }
  .options { gap: 22px; margin-top: 14px; }
  .options svg { width: 30px; height: 30px; }
  .cue { bottom: calc(var(--dock, 144px) + 40px); width: 62vw; }
  .cue p .more { display: none; }
  body:has(.feature:not([hidden])) .cue { display: none; }
  .callouts .tag { font-size: 14px; letter-spacing: 1.6px; }
  .spot i { width: 36px; height: 36px; }
  .spot i svg { width: 18px; height: 18px; }
  .spot span { font-size: 15px; }
  .spots.is-plan .spot span { font-size: 14px; letter-spacing: 1px; }
}
@media (max-height: 520px) { .head { top: 14px; } .bar { bottom: 12px; } .cue { bottom: calc(var(--dock, 124px) + 10px); } .feature { top: 110px; } }

/* ---- homepage embed (?embed=1) and the scroll story: unchanged look ---- */
body.embed .head, body.embed #viewer-dock, body.embed .tools, body.embed #diagnostics, body.embed #loading, body.embed .scrim, body.embed .feature, body.embed .callouts { display: none !important; }
body.embed canvas { touch-action: pan-y; }
body.embed .cue { top: auto; bottom: 26px; width: min(40vw, 420px); }
body.embed .cue p { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
body.embed .cue p .more { display: none; }
.story-layer { position: absolute; inset: 0; pointer-events: none; }
#story-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 10px rgba(7, 22, 31, .35)); }
.story-item { transition: opacity .25s linear; }
.story-item line { stroke: #fff; stroke-width: 1.1; stroke-opacity: .95; }
.story-item .dot { fill: #fff; }
.story-item text { fill: #fff; font-family: 'Oxanium', system-ui, sans-serif; }
.story-item .fig { font-size: 40px; font-weight: 200; letter-spacing: .01em; }
.story-item .sub { font-size: 13px; font-weight: 500; letter-spacing: .3em; }
@media (max-width: 700px) {
  .story-item .fig { font-size: 28px; }
  .story-item .sub { font-size: 11px; letter-spacing: .24em; }
  body.embed .cue { width: 62vw; bottom: 18px; }
}

/* ---- V8 tour interface (fixer F, buyer review 2026-09-25) ---- */
/* Third cabin panel (CB08, CB13): the three layouts shown in 3D under their official names, one plain line each. */
.cabin { display: flex; flex-direction: column; align-items: flex-start; }
.cabin .feature-head { display: contents; }
.cabin h2 { order: 1; }
.cabin .lead { order: 2; margin-top: 10px; }
.cabin .options { order: 3; flex-direction: column; gap: 2px; width: 100%; margin-top: 18px; }
.cabin #cabin-plan { order: 4; margin-top: 18px; }
.cabin #cabin-plan[aria-pressed="true"] { background: rgba(var(--deep), .5); color: #fff; border-color: rgba(255,255,255,.7); }
.cabin .current { order: 5; display: none; }
.cabin .where { order: 7; }
.cabin .options button { flex-direction: row; align-items: center; gap: 14px; width: 100%; padding: 9px 12px 9px 12px; border-radius: 2px; text-align: left; }
.cabin .options button::after { display: none; }
.cabin .options button[aria-checked="true"] { background: rgba(255,255,255,.08); box-shadow: inset 2px 0 0 #fff; }
.cabin .options button:hover { background: rgba(255,255,255,.05); }
.cabin .options svg { width: 30px; height: 30px; flex: none; }
.cabin .opt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cabin .opt .n { font-size: 14px; color: var(--pale); }
.cabin .opt .name { font-size: 16px; line-height: 1.3; color: #fff; }
.cabin .opt .desc { font-size: 14px; line-height: 1.35; color: var(--muted); }
/* Phones (round 2, cabins re-review): a short name under each layout's icon; the list above keeps the full names. */
.cabin .opt .short { display: none; }

/* The tour is a viewer, not a page: a drag that starts on the brand, the menu, the tools, the panels or a place
   name never selects their words (main-deck re-review). */
.head, #viewer-dock, .tools, .spots, .feature, .cue, .navigation-feedback, .callouts, .deck-map, .deck-map-toggle { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Phones: the Evening button keeps its word, "Evening" or "Daylight" (evening.js draws it as a bare moon there), and one
   place, under Reset at the right, outside and in; the Deck plan button sits to its left in the rooms (deckmap.css). */
@media (max-width: 700px) {
  html body .tools button.mood, html body.interior .tools button.mood { right: 0; width: 118px; padding: 0 12px 0 40px; font-size: 15px; justify-content: flex-start; }
  html body .tools button.mood::before { left: 13px; translate: 0 -50%; }
}
.cabin .lead a { color: #fff; text-decoration: underline; text-decoration-color: rgba(175,203,228,.5); text-underline-offset: 3px; }

/* No TV button in the bathrooms and the wardrobe (CB04): there is no TV to see there. */
body[data-room="master-bathroom"] #tv-toggle, body[data-room="master-wardrobe"] #tv-toggle, body[data-room="vip-bathroom"] #tv-toggle { display: none !important; }

@media (max-width: 700px) {
  /* Third cabin: a short strip (PH09): title, the three layouts, the layout's name; the room stays in view. */
  .cabin { display: block; }
  .cabin .feature-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cabin h2 { font-size: 24px; }
  .cabin #cabin-plan { margin: 0; height: 44px; padding: 0 14px; font-size: 15px; }
  .cabin .lead, .cabin .opt .name, .cabin .opt .desc { display: none; }
  .cabin .options { flex-direction: row; gap: 6px; margin-top: 8px; }
  .cabin .options button { flex: 1; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 7px; text-align: center; }
  .cabin .options button[aria-checked="true"] { box-shadow: inset 0 -2px 0 #fff; }
  .cabin .options svg { width: 28px; height: 28px; }
  .cabin .opt .n { display: none; }
  .cabin .opt .short { display: block; font-size: 14px; color: inherit; }
  .cabin .current { display: block; margin: 6px 0 0; font-size: 15px; line-height: 1.35; color: var(--soft); }
  /* Garage: title and buttons; the tender stays above them (PH09). */
  #stern-actions > p { display: none; }
  #stern-actions .cta { margin-top: 12px; }
}

/* Phones turned sideways and short windows (wider than 700 px, up to 620 px high): the view tools sit top right,
   level with the logo, in two columns, so they end well above the menu: Evening on the first line, Raise TV beside
   the zoom, reset and turn buttons. The Deck plan button takes the place left of Evening (deckmap.css). */
@media (min-width: 701px) and (max-height: 620px) {
  .tools { top: 22px; translate: none; display: grid; grid-template-columns: auto 126px; grid-template-rows: 44px auto; gap: 10px; justify-items: end; align-items: start; }
  .tools .mood { grid-area: 1 / 2; }
  .tools .tv { grid-area: 2 / 1; }
  .tools .set { grid-area: 2 / 2; }
}

/* Phones turned sideways (short screens): the guest cabin panel is the short strip, clear of the menu; the garage
   panel keeps its title and button, as on phones held upright (PH09), so it ends above the menu. */
@media (min-width: 701px) and (max-height: 520px) {
  #stern-actions > p { display: none; }
  .cabin .lead, .cabin .opt .desc, .cabin .opt .name, .cabin .opt .n { display: none; }
  .cabin .opt .short { display: block; font-size: 14px; }
  .cabin .options { flex-direction: row; gap: 6px; margin-top: 8px; width: auto; }
  .cabin .options button { flex-direction: column; align-items: center; gap: 4px; width: auto; padding: 6px 10px; }
  .cabin h2 { font-size: 22px; }
  .cabin #cabin-plan { margin-top: 8px; height: 40px; }
}
/* inside the homepage (framed.js): the page's "Back to Home" takes the logo's place */
html.is-framed .head{display:none}
