/* ============================================================================
   deck.css: QUAD The Interior, the presentation (Rev02), built like the booth.
   Brand CI v1.0 core palette only: Deep Black #0D0D0F, Graphite Grey #4B4F54, Crystal Silver #C0C4C8,
   Ivory White #F5F5F2 (tints of two core colours where a surface needs depth). No gold, no champagne.
   A landscape screen (a laptop, a projector, a TV) first: the door at the left, its sheet at the right. A phone held
   upright gets the door above and the sheet below.
   Black throughout, as the booth (owner, 2026-11-06), and words in solid weights (500 and up for anything large or
   stressed: thin strokes on a dark ground read as outlines; owner, 2026-11-06). Thai, English and Chinese.
   ========================================================================== */
@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/ibm-plex-sans-thai-thai-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/ibm-plex-sans-thai-thai-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/ibm-plex-sans-thai-thai-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/ibm-plex-sans-thai-thai-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }

:root {
  --black: #0D0D0F; --graphite: #4B4F54; --silver: #C0C4C8; --ivory: #F5F5F2;
  --g-1: #141518; --g-2: #1B1D20; --g-3: #26292D;
  --line: rgba(192, 196, 200, 0.22); --line-2: rgba(192, 196, 200, 0.4);
  --ink-line: rgba(13, 13, 15, 0.14); --ink-line-2: rgba(13, 13, 15, 0.3);
  --sans: "Inter Tight", "IBM Plex Sans Thai", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --panel-w: clamp(360px, 31vw, 540px);
  --panel-h: 47vh;
  --pad: clamp(20px, 5vw, 96px);
  --dir: 1;
  color-scheme: dark;
}
@supports (height: 100dvh) { :root { --panel-h: 47dvh; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--black); color: var(--ivory); overflow: hidden; }
/* the screen does not zoom (owner, 2026-11-06): no pinch, no double-tap zoom; panning stays where a part scrolls */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
html[data-lang="th"] body { line-height: 1.5; }
html[data-lang="zh"] body { line-height: 1.55; }
html[data-lang="zh"] .s-kicker, html[data-lang="zh"] .dp-kicker, html[data-lang="zh"] .dp-h, html[data-lang="zh"] .dp-label, html[data-lang="zh"] .pl-title { letter-spacing: 0.06em; text-transform: none; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
img { display: block; }

#deck { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#stage:active { cursor: grabbing; }

/* --------------------------------------------------------------- loading */
.d-load { position: absolute; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 26px; background: radial-gradient(70% 50% at 50% 42%, var(--g-2), var(--black) 72%); transition: opacity 700ms var(--ease), visibility 0s 700ms; }
.d-load img { width: 140px; height: auto; animation: d-in 1.4s var(--ease) both; }
.d-load span { width: 120px; height: 1px; background: rgba(192, 196, 200, 0.2); position: relative; overflow: hidden; }
.d-load span::after { content: ""; position: absolute; inset: 0; background: var(--silver); transform-origin: 0 50%; animation: d-line 1.8s var(--ease) infinite; }
html.is-ready .d-load { opacity: 0; visibility: hidden; }
@keyframes d-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes d-line { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* --------------------------------------------------------------- the top bar */
.d-top { position: absolute; z-index: 30; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--pad) 34px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 13, 15, 0.82) 0%, rgba(13, 13, 15, 0.5) 55%, rgba(13, 13, 15, 0)); transition: right 600ms var(--ease), background 400ms var(--ease); }
.d-top > * { pointer-events: auto; }
.d-logo img { width: 150px; height: auto; transition: filter 400ms var(--ease); }
.d-tools { display: flex; align-items: center; gap: 8px; }
.d-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(13, 13, 15, 0.45); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ivory); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.d-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(13, 13, 15, 0.45); box-shadow: inset 0 0 0 1px var(--line); }
.d-lang button { min-width: 46px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font-size: 13.5px; color: var(--silver); }
.d-lang button[aria-pressed="true"] { background: var(--ivory); color: var(--black); font-weight: 500; }
.d-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(13, 13, 15, 0.45); box-shadow: inset 0 0 0 1px var(--line); color: var(--silver); }
.d-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the light slides: the mark and the tools in Deep Black */
html[data-slide="nations"] .d-top { background: none; }
html[data-slide="cover"] .d-top { background: none; }
html[data-slide="cover"] .d-logo { visibility: hidden; }
html[data-slide="door"] .d-top { background: linear-gradient(to bottom, rgba(13, 13, 15, 0.55) 0%, rgba(13, 13, 15, 0.22) 60%, rgba(13, 13, 15, 0)); }

/* --------------------------------------------------------------- ‹ › */
.d-nav { position: absolute; z-index: 30; left: var(--pad); bottom: 22px; display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 10px; transition: bottom 600ms var(--ease); }
.d-arrow { width: 50px; height: 50px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(13, 13, 15, 0.55); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ivory); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 160ms var(--ease), opacity 200ms; }
.d-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-arrow:active { transform: scale(0.94); }
.d-arrow:disabled { opacity: 0.3; }
#btnNext { background: var(--ivory); color: var(--black); box-shadow: none; }
.d-where { min-width: 170px; padding: 0 6px; display: grid; gap: 1px; }
.d-count { margin: 0; font-size: 12.5px; letter-spacing: 0.16em; color: var(--silver); font-variant-numeric: tabular-nums; }
.d-count b { font-weight: 600; color: var(--ivory); }
.d-label { margin: 0; font-size: 15px; font-weight: 500; color: var(--ivory); white-space: nowrap; }
.d-dots { grid-column: 1 / -1; display: flex; gap: 6px; margin: 0; padding: 0 4px; list-style: none; }
.d-dots li { display: block; }
.d-dots button { display: block; width: 18px; height: 14px; padding: 0; border: 0; background: none; position: relative; }
.d-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: rgba(192, 196, 200, 0.35); transition: background 300ms var(--ease); }
.d-dots li.is-door button::after { background: rgba(192, 196, 200, 0.55); }
.d-dots li.is-on button::after { background: var(--ivory); top: 5px; height: 4px; }

/* --------------------------------------------------------------- the door: hint, fade, plan */
.d-hint { position: absolute; z-index: 5; left: 40%; top: 40%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; pointer-events: none; transition: opacity 500ms var(--ease); }
.d-hint.is-gone, html:not([data-slide="door"]) .d-hint { opacity: 0; }
html.is-closeup .d-hint { display: none; }
.d-hint__hand { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: rgba(13, 13, 15, 0.55); box-shadow: 0 0 0 1px rgba(245, 245, 242, 0.25), 0 12px 30px -12px rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: d-drag 2.6s var(--ease) infinite; }
.d-hint__hand svg { width: 36px; height: 36px; fill: none; stroke: var(--ivory); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-hint__txt { padding: 8px 16px; border-radius: 999px; font-size: 14.5px; background: rgba(13, 13, 15, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
#hint.is-right .d-hint__hand { animation-name: d-drag-r; }
@keyframes d-drag-r { 0%, 12% { transform: translateX(-40px); } 62%, 76% { transform: translateX(40px); } 100% { transform: translateX(-40px); } }
@keyframes d-drag { 0%, 12% { transform: translateX(40px); } 62%, 76% { transform: translateX(-40px); } 100% { transform: translateX(40px); } }
.d-veil { position: absolute; inset: 0; z-index: 6; background: var(--black); opacity: 0; pointer-events: none; transition: opacity 280ms ease; }
.d-veil.is-on { opacity: 1; }

.d-plan { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; transition: opacity 320ms var(--ease); }
html:not([data-slide="door"]) .d-plan { opacity: 0 !important; }
.pl-card { fill: rgba(13, 13, 15, 0.62); stroke: rgba(192, 196, 200, 0.18); stroke-width: 1; }
.pl-title { fill: var(--silver); font: 500 10.5px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
html[data-lang="th"] .pl-title { letter-spacing: 0.04em; font-size: 11.5px; text-transform: none; }
.pl-wall { stroke: rgba(192, 196, 200, 0.6); stroke-width: 1; }
.pl-leaf { fill: rgba(245, 245, 242, 0.94); stroke: var(--ivory); stroke-width: 1; stroke-linejoin: round; }
.pl-leaf--fixed { fill: rgba(192, 196, 200, 0.5); stroke: rgba(192, 196, 200, 0.9); }
.pl-path { fill: none; stroke: rgba(192, 196, 200, 0.75); stroke-width: 1.2; stroke-dasharray: 3 4; stroke-linecap: round; }
.pl-grip { fill: var(--ivory); stroke: var(--black); stroke-width: 1; }
.pl-pin { fill: var(--black); stroke: var(--ivory); stroke-width: 1.2; }
.pl-casing { fill: var(--silver); stroke: var(--ivory); stroke-width: 0.8; }
.pl-dim { fill: none; stroke: var(--silver); stroke-width: 1; }
.pl-text { fill: var(--ivory); font: 400 12.5px var(--sans); font-variant-numeric: tabular-nums; }
.pl-text--soft { fill: var(--silver); font-size: 11px; }

/* --------------------------------------------------------------- the door's sheet: Ivory White */
.d-panel { position: absolute; z-index: 15; top: 0; right: 0; bottom: 0; width: var(--panel-w); display: grid; grid-template-rows: 1fr auto; background: linear-gradient(180deg, var(--g-2) 0%, var(--g-1) 38%, var(--black) 100%); color: var(--ivory); box-shadow: -30px 0 60px -40px rgba(0, 0, 0, 0.9), inset 1px 0 0 rgba(192, 196, 200, 0.16);
  transition: transform 700ms var(--ease), opacity 500ms var(--ease); }
html:not([data-slide="door"]) .d-panel { transform: translateX(104%); opacity: 0; pointer-events: none; }
.d-panel__scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: clamp(26px, 4.4vh, 52px) clamp(24px, 2.6vw, 44px) 18px; display: grid; align-content: start; gap: clamp(18px, 2.8vh, 30px); transition: opacity 260ms ease; }
.d-panel.is-swapping .d-panel__scroll { opacity: 0; transition: none; }
.d-panel__scroll { transition: opacity 420ms ease; }
.d-xfade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; opacity: 0; pointer-events: none; }
html:not([data-slide="door"]) .d-xfade { opacity: 0 !important; }
.dp-head { display: grid; gap: 6px; }
.dp-kicker { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); font-variant-numeric: tabular-nums; }
html[data-lang="th"] .dp-kicker { letter-spacing: 0.08em; font-size: 13px; }
.dp-name { margin: 0; font-size: clamp(28px, 2.3vw, 40px); font-weight: 600; line-height: 1.16; letter-spacing: -0.015em; color: var(--ivory); text-wrap: balance; }
.dp-code { margin: 0; font-size: 13.5px; letter-spacing: 0.05em; color: var(--silver); font-variant-numeric: tabular-nums; }
.dp-illus { justify-self: start; margin: 4px 0 0; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; letter-spacing: 0.06em; color: var(--silver); }
.dp-block { display: grid; gap: 10px; }
.dp-h { margin: 0; padding-bottom: 7px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); }
html[data-lang="th"] .dp-h { letter-spacing: 0.04em; font-size: 13.5px; }
.dp-specs { margin: 0; display: grid; }
.dp-specs div { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dp-specs dt { font-size: 14.5px; color: var(--silver); white-space: nowrap; }
.dp-specs dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ivory); text-align: right; font-variant-numeric: tabular-nums; }
.dp-specs dd small { font-size: 0.75em; font-weight: 500; color: var(--silver); margin-left: 2px; }
.dp-specs .is-big dd { font-size: clamp(19px, 1.45vw, 24px); font-weight: 600; letter-spacing: -0.005em; }
.dp-move { margin: -4px 0 0; font-size: 15.5px; line-height: 1.65; color: rgba(245, 245, 242, 0.82); text-wrap: pretty; max-width: 30em; }
.dp-move:empty { display: none; }
.dp-block--choose { gap: 14px; }
.dp-row { display: grid; gap: 8px; min-width: 0; }
.dp-label { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); }
html[data-lang="th"] .dp-label { letter-spacing: 0.03em; font-size: 13.5px; }
.dp-label b { font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--ivory); font-size: 14.5px; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { flex: none; height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px 0 6px; border: 0; border-radius: 11px; background: rgba(245, 245, 242, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease); }
.chip--hand { padding: 0 16px; }
.dp-chips.is-grid { display: grid; grid-template-columns: 1fr 1fr; }
.dp-chips.is-grid .chip { height: auto; min-height: 44px; padding: 6px 10px 6px 6px; white-space: normal; text-align: left; line-height: 1.25; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--black); box-shadow: none; }
/* Glass builds: one row each for the 8 mm and 10 mm choices, including laminate film. */
.chip--spec { justify-content: center; height: auto; min-height: 56px; min-width: 0; padding: 7px; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.3; }
.dp-glass { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hands { display: flex; gap: 6px; flex: none; }
.manual-pull { grid-column: 1 / -1; display: grid; gap: 4px; min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ivory); }
.manual-pull strong { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.manual-pull span { color: var(--silver); font-size: 12px; line-height: 1.45; white-space: normal; }
.dp-chips .hands:not(:first-child) { padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line); }
.chip__sym { width: 24px; height: 31px; flex: none; }
/* door symbols (js/doors.js thumb), in the CI's inks: Deep Black on Ivory, Ivory once chosen */
.chip__sym { --g-ink: var(--ivory); --g-accent: var(--silver); --g-bg: var(--g-1); }
.chip[aria-pressed="true"] .chip__sym { --g-ink: var(--black); --g-accent: var(--graphite); --g-bg: var(--ivory); }
.chip__sym .th-open { fill: none; stroke: var(--g-ink); stroke-width: 1.6px; }
.chip__sym .th-panel { fill: color-mix(in oklab, var(--g-ink) 6%, transparent); stroke: color-mix(in oklab, var(--g-ink) 75%, transparent); stroke-width: 1.4px; }
.chip__sym .th-fixed { fill: color-mix(in oklab, var(--g-ink) 18%, transparent); }
.chip__sym .th-sym, .chip__sym .th-shaft { fill: none; stroke: var(--g-accent); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; }
.chip__sym .th-head { fill: var(--g-accent); }
.chip__sym .th-axis { stroke: var(--g-ink); stroke-width: 1px; stroke-dasharray: 6 2.5 1.5 2.5; }
.chip__sym .th-pin, .chip__sym .th-motor { fill: var(--g-ink); }
.chip__sym .th-wall { fill: color-mix(in oklab, var(--g-ink) 12%, transparent); stroke: none; }
.chip__sym .th-hatch { fill: none; stroke: color-mix(in oklab, var(--g-ink) 40%, transparent); stroke-width: 0.8px; }
.chip__sym .th-park { fill: none; stroke: var(--g-accent); stroke-width: 1.2px; stroke-dasharray: 3 2; }
.chip__sym .th-letter { display: none; }

.dp-sw { display: flex; gap: 14px; }
.sw { display: grid; justify-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--silver); font-size: 12.5px; font-weight: 500; }
.sw i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(245, 245, 242, 0.3), inset 0 -6px 12px rgba(0, 0, 0, 0.18); transition: box-shadow 200ms var(--ease); }
.sw[aria-pressed="true"] { color: var(--ivory); }
.sw[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--black), 0 0 0 3.5px var(--ivory), inset 0 -6px 12px rgba(0, 0, 0, 0.18); }
.dp-glass { display: flex; flex-wrap: wrap; gap: 6px; }
.gl { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: none; }
.gl__s { width: 36px; height: 36px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(13, 13, 15, 0.22); background: linear-gradient(135deg, color-mix(in oklab, var(--tint) 70%, #fff) 0%, var(--tint) 60%, color-mix(in oklab, var(--tint) 80%, #000) 100%); }
.gl__s--tint { background: linear-gradient(135deg, color-mix(in oklab, var(--tint) 55%, #fff) 0%, var(--tint) 70%); }
.gl__s--milky { background: linear-gradient(135deg, #fbfbf8, #e2e1dc); }
.gl__s--fluted { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 2px, color-mix(in oklab, var(--tint) 85%, #fff) 2px 6px, color-mix(in oklab, var(--tint) 70%, #000) 6px 8px); }
.gl__s--mesh { background: repeating-linear-gradient(0deg, rgba(13, 13, 15, 0.35) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(13, 13, 15, 0.35) 0 1px, transparent 1px 4px), color-mix(in oklab, var(--tint) 45%, #fff); }
.gl__s--gradient { background: linear-gradient(0deg, var(--tint), #fff); }
.gl[aria-pressed="true"] .gl__s { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3.5px var(--black); }
.dp-note { margin: 0; font-size: 12px; color: var(--silver); }
.dp-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 14px clamp(24px, 2.6vw, 44px) calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--black); }
html.is-twoway .dp-foot { grid-template-columns: 1fr 1fr 0.9fr; }

/* --------------------------------------------------------------- buttons */
.d-btn { height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ivory); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: transform 160ms var(--ease), background 200ms var(--ease); }
.d-btn svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-btn:active { transform: scale(0.97); }
.d-btn--solid { background: var(--ivory); color: var(--black); box-shadow: none; }
.d-btn--light { background: var(--ivory); color: var(--black); box-shadow: none; }
.d-link { color: var(--silver); font-size: 14px; text-underline-offset: 4px; }

/* --------------------------------------------------------------- the slides that are not doors */
.d-slides { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.slide { position: absolute; inset: 0; overflow: hidden; background: var(--black); opacity: 0; visibility: hidden; transform: translateX(calc(var(--dir) * 36px));
  transition: opacity 600ms var(--ease), transform 800ms var(--ease), visibility 0s 600ms; }
.slide.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 600ms var(--ease), transform 800ms var(--ease), visibility 0s; }
.s-wrap { position: absolute; inset: 0; padding: clamp(96px, 14vh, 150px) var(--pad) clamp(120px, 16vh, 170px); display: grid; align-content: center; gap: 18px; }
.s-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver); }
html[data-lang="th"] .s-kicker { letter-spacing: 0.08em; font-size: 14px; }
.s-title { margin: 0; font-size: clamp(32px, 4vw, 64px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; color: var(--ivory); }
html[data-lang="th"] .s-title { line-height: 1.25; letter-spacing: -0.005em; }
html[data-lang="zh"] .s-title { line-height: 1.25; letter-spacing: 0.01em; }
.s-lede { margin: 0; font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; color: rgba(245, 245, 242, 0.78); }

/* a sideways swipe is the deck's (it changes slide), an upright one scrolls a slide that is taller than the screen;
   set on every part that scrolls too, as a scroller starts its own touch-action again */
.slide, .s-wrap, .mosaic { touch-action: pan-y; }

/* the cover: half the screen the film of the 4.5 folding door, half the mark and the words (owner, 2026-11-06: 50:50) */
.s-cover { display: grid; grid-template-columns: 1fr 1fr; }
.s-cover__film { position: relative; grid-column: 1; height: 100%; overflow: hidden; background: var(--g-1); }
.s-cover__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.s-cover__film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(13, 13, 15, 0) 70%, rgba(13, 13, 15, 0.85) 100%), linear-gradient(to bottom, rgba(13, 13, 15, 0.5), rgba(13, 13, 15, 0) 16%, rgba(13, 13, 15, 0) 84%, rgba(13, 13, 15, 0.6)); pointer-events: none; }
.s-cover__sim { position: absolute; z-index: 1; left: var(--pad); top: 28px; margin: 0; padding: 3px 9px; border-radius: 999px; background: rgba(13, 13, 15, 0.55); font-size: 11.5px; font-weight: 500; color: var(--silver); letter-spacing: 0.02em; }
.s-cover__brand { grid-column: 2; align-self: center; display: grid; justify-items: start; gap: 14px; padding: 90px clamp(28px, 4vw, 80px) 120px clamp(32px, 5vw, 96px); }
.s-cover__place { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.3em; color: var(--silver); }
.s-cover__logo { width: clamp(110px, 9vw, 160px); height: auto; margin: 6px 0 10px; }
.s-cover__tag { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.32em; color: var(--ivory); }
.s-cover__title { margin: 14px 0 0; font-size: clamp(28px, 2.75vw, 50px); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance; max-width: 15em; }
html[data-lang="th"] .s-cover__title, html[data-lang="zh"] .s-cover__title { line-height: 1.3; letter-spacing: 0; }
.s-cover__sub { margin: 0; font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; color: rgba(245, 245, 242, 0.8); }
.s-cover__go { margin-top: 18px; padding: 0 22px 0 26px; }
html[data-slide="cover"] .d-nav .d-where, html[data-slide="cover"] .d-nav .d-dots { display: none; }
.s-cover__title { white-space: pre-line; }

/* the four nations: a film of four QUAD glass doors with the partners' flags, then the four, on Deep Black */
.s-nations { background: radial-gradient(90% 70% at 50% 20%, var(--g-2), var(--black) 70%); }
.s-nations__inner { position: absolute; inset: 0; padding: clamp(84px, 11vh, 120px) var(--pad) clamp(116px, 15vh, 160px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(14px, 2.6vh, 28px); }
.s-nations__head { display: grid; gap: 8px; }
.s-nations .s-title { font-size: clamp(28px, 3.2vw, 52px); }
.s-nations__film { position: relative; min-height: 0; border-radius: 6px; overflow: hidden; background: var(--g-1); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--line); }
.s-nations__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; display: block; }
.nations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 40px); }
.nation { display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 12px; row-gap: 2px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.nation__n { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--silver); font-variant-numeric: tabular-nums; }
.nation__flag { grid-row: span 3; width: 48px; height: 32px; object-fit: cover; margin: 6px 0 0; box-shadow: 0 0 0 1px var(--line); border-radius: 2px; }
.nation__country { margin: 0; font-size: clamp(20px, 1.7vw, 28px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--ivory); }
.nation__name { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ivory); }
.nation__role { margin: 0; font-size: 14px; font-weight: 500; color: var(--silver); }

/* made to size: the figures large */
.s-made { background: radial-gradient(80% 70% at 75% 30%, var(--g-3), var(--black) 70%); }
.ledger { list-style: none; margin: clamp(22px, 5vh, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 40px); }
.ledger li { display: grid; align-content: start; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.ledger__n { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--silver); font-variant-numeric: tabular-nums; }
.ledger b { font-size: clamp(30px, 3.4vw, 56px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger__k { font-size: 15.5px; font-weight: 500; color: rgba(245, 245, 242, 0.78); max-width: 16em; }

/* installed: the photographs */
.s-installed { display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: clamp(18px, 3vh, 34px); padding: clamp(92px, 12vh, 130px) var(--pad) clamp(118px, 15vh, 160px); }
.s-installed__head { justify-self: stretch; display: grid; gap: 10px; }
.s-installed .s-title { font-size: clamp(30px, 3.4vw, 56px); }
.mosaic { --cell: min(calc((100vw - 2 * var(--pad) - 7 * 8px) / 8), calc((100vh - 400px) / 2)); display: grid; grid-template-columns: repeat(8, var(--cell)); grid-auto-rows: var(--cell); gap: 8px; align-self: start; }
.tile { position: relative; padding: 0; border: 0; background: var(--g-2); overflow: hidden; border-radius: 4px; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; font-size: 12.5px; font-weight: 500; line-height: 1.35; text-align: left; color: var(--ivory); background: linear-gradient(to top, rgba(13, 13, 15, 0.85), rgba(13, 13, 15, 0)); opacity: 0; transition: opacity 300ms var(--ease); }
.tile:hover span, .tile:focus-visible span, .tile--big span { opacity: 1; }
.tile--big span { font-size: 14px; padding: 40px 14px 12px; }

/* the close */
.s-close { background: radial-gradient(70% 60% at 50% 40%, var(--g-3), var(--black) 72%); display: grid; place-items: center; }
.s-close__inner { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 0 var(--pad); max-width: 1100px; }
.s-close__logo { width: clamp(110px, 9vw, 150px); height: auto; margin-bottom: 12px; }
.s-close__title { margin: 16px 0 0; font-size: clamp(28px, 3.2vw, 50px); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.s-close__sub { margin: 0; font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; color: var(--ivory); }
.s-close__process { margin: 0; font-size: 14.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--silver); }
.s-close__links { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; }

/* a photograph, large */
.d-lightbox { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 70px var(--pad); background: rgba(13, 13, 15, 0.94); animation: d-fade 300ms var(--ease); }
.d-lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.d-lightbox img { max-width: min(88vw, 1000px); max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; }
.d-lightbox figcaption { font-size: 15.5px; font-weight: 500; color: var(--ivory); text-align: center; }
.d-lightbox__close { position: absolute; top: 20px; right: 20px; }
@keyframes d-fade { from { opacity: 0; } }

/* ================================================================ landscape: the door left, its sheet right === */
html.is-wide[data-slide="door"] .d-top { right: var(--panel-w); }
html.is-wide[data-slide="door"] .d-hint { /* placed on the door by the script */ }

/* ================================================================ upright (a phone): the door above, the sheet below === */
html:not(.is-wide) { --pad: 18px; }
html:not(.is-wide) .d-top { padding: 12px 14px 26px; }
html:not(.is-wide) .d-logo img { width: 118px; }
html:not(.is-wide) .d-pill span { display: none; }
html:not(.is-wide) .d-pill { width: 40px; padding: 0; justify-content: center; }
html:not(.is-wide) .d-tools { gap: 6px; }
html:not(.is-wide) .d-lang button { min-width: 40px; padding: 0 9px; }
html:not(.is-wide) .d-panel { top: auto; left: 0; width: auto; height: var(--panel-h); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, 0.9); }
html:not(.is-wide):not([data-slide="door"]) .d-panel { transform: translateY(104%); }
html:not(.is-wide) .d-panel__scroll { padding: 20px 18px 14px; gap: 18px; }
html:not(.is-wide) .dp-name { font-size: 24px; }
html:not(.is-wide) .dp-foot { padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); }
html:not(.is-wide) .d-btn { height: 46px; font-size: 14.5px; }
html:not(.is-wide) .d-nav { left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); grid-template-columns: auto 1fr auto; }
html:not(.is-wide) .d-dots { display: none; }
html:not(.is-wide) .d-where { min-width: 0; text-align: center; }
html:not(.is-wide)[data-slide="door"] .d-nav { bottom: calc(var(--panel-h) + 10px); }
html:not(.is-wide)[data-slide="door"] .d-arrow { width: 42px; height: 42px; }
html:not(.is-wide)[data-slide="door"] .d-where { opacity: 0; }
/* A portrait detail keeps the action footer, including the return-to-full-view button. */
html.is-closeup:not(.is-wide) .d-panel { height: auto; grid-template-rows: auto; }
html.is-closeup:not(.is-wide) .d-panel__scroll { display: none; }
html.is-closeup:not(.is-wide)[data-slide="door"] .d-nav { bottom: calc(var(--close-panel-h, 67px) + 10px); }
html.is-closeup:not(.is-wide) .dp-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 14px; padding-right: 14px; gap: 6px; }
html.is-closeup.is-twoway:not(.is-wide) .dp-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.is-closeup:not(.is-wide) .dp-foot .d-btn { min-width: 0; padding: 0 6px; gap: 4px; font-size: 13px; line-height: 1.2; white-space: normal; }
html.is-closeup:not(.is-wide) .dp-foot .d-btn svg { width: 18px; height: 18px; }
html.is-closeup:not(.is-wide) .dp-foot .d-btn span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  html.is-closeup:not(.is-wide) .d-top { flex-wrap: wrap; gap: 6px; }
  html.is-closeup:not(.is-wide) .d-logo img { width: 92px; }
  html.is-closeup:not(.is-wide) .d-tools { gap: 4px; margin-left: auto; flex-shrink: 0; }
  html.is-closeup:not(.is-wide) .d-lang button { min-width: 36px; padding: 0 4px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  html.is-closeup:not(.is-wide) .d-icon { width: 36px; height: 36px; flex-shrink: 0; }
  html.is-closeup:not(.is-wide) .d-pill { width: 34px; flex-shrink: 0; }
}
/* the cover upright: the film above (half), the words below */
html:not(.is-wide) .s-cover { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
html:not(.is-wide) .s-cover__film { grid-column: 1; grid-row: 1; }
html:not(.is-wide) .s-cover__film::after { background: linear-gradient(to bottom, rgba(13, 13, 15, 0.7), rgba(13, 13, 15, 0) 22%, rgba(13, 13, 15, 0) 72%, rgba(13, 13, 15, 0.95) 100%); }
html:not(.is-wide) .s-cover__brand { grid-column: 1; grid-row: 2; align-self: start; padding: 4px 18px 90px; gap: 8px; }
html:not(.is-wide) .s-cover__logo, html:not(.is-wide) .s-cover__place { display: none; }
html:not(.is-wide) .s-cover__title { font-size: 28px; margin-top: 4px; }
html:not(.is-wide) .s-cover__go { display: none; }
html:not(.is-wide) .s-cover__sim { top: 64px; bottom: auto; left: auto; right: 12px; }
html:not(.is-wide) .s-nations__inner { position: absolute; inset: 0; overflow-y: auto; display: block; padding: 78px 18px 110px; }
html:not(.is-wide) .s-nations__film { height: 46vw; margin: 16px 0 20px; }
html:not(.is-wide) .s-wrap { align-content: start; overflow-y: auto; padding-top: 84px; padding-bottom: 110px; }
html:not(.is-wide) .nations, html:not(.is-wide) .ledger { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
html:not(.is-wide) .nation__country { font-size: 20px; }
html:not(.is-wide) .ledger b { font-size: 30px; white-space: normal; }
html:not(.is-wide) .s-installed { display: block; overflow-y: auto; padding: 80px 14px 110px; }
html:not(.is-wide) .s-installed__head { margin-bottom: 18px; }
html:not(.is-wide) .mosaic { --cell: calc((100vw - 28px - 16px) / 3); grid-template-columns: repeat(3, var(--cell)); }
html:not(.is-wide) .tile span { opacity: 1; font-size: 11px; padding: 18px 6px 5px; }
html:not(.is-wide) .s-close__links { flex-direction: column; }

/* a short landscape window (a phone on its side): tighter */
@media (max-height: 560px) {
  html.is-wide { --panel-w: clamp(300px, 40vw, 380px); }
  html.is-wide .d-top { padding: 10px 16px 20px; }
  html.is-wide .d-logo img { width: 112px; }
  html.is-wide .d-nav { bottom: 10px; }
  html.is-wide .d-arrow { width: 40px; height: 40px; }
  html.is-wide .d-dots { display: none; }
  html.is-wide .d-panel__scroll { padding: 16px 18px 10px; gap: 14px; }
  html.is-wide .dp-name { font-size: 22px; }
  html.is-wide .d-btn { height: 42px; font-size: 14px; }
  html.is-wide .dp-foot { padding: 8px 18px 10px; }
  .s-wrap { padding-top: 64px; padding-bottom: 70px; }
  .s-title { font-size: 30px; }
  .ledger b { font-size: 30px; }
  .s-cover__title { font-size: 26px; }
  .s-cover__logo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .d-hint__hand, .d-load img { animation: none; }
  .slide, .slide.is-on { transform: none; transition: opacity 300ms linear, visibility 0s; }
}

/* every pattern and size button one width (owner, 2026-11-06): the sizes in four equal columns, the hands on a row of their own */
.dp-chips.is-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dp-chips.is-sizes > .chip { width: 100%; min-width: 0; padding: 0 6px 0 5px; gap: 5px; font-size: 13px; }
.dp-chips.is-grid .hands, .dp-chips.is-sizes .hands { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 2px 0 0; padding: 0; border: 0; }
.dp-chips .hands .chip { width: 100%; justify-content: center; }
.dp-chips:not(.is-grid):not(.is-sizes) .hands { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 260px); }
/* Room styling remains reachable in the compact and close-up controls. */
.room-toggle { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(245, 245, 242, 0.035); color: var(--ivory); font-size: 13px; font-weight: 500; line-height: 1.2; text-align: left; transition: background 180ms var(--ease), border-color 180ms var(--ease); }
.room-toggle:hover { background: rgba(245, 245, 242, 0.065); border-color: var(--line-2); }
.room-toggle__name, .room-toggle__value { display: flex; align-items: center; gap: 8px; }
.room-toggle__name { min-width: 0; }
.room-toggle__name svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; color: var(--silver); }
.room-toggle__value { flex: none; color: var(--silver); font-size: 12px; }
.room-toggle__switch { position: relative; width: 34px; height: 20px; flex: none; border: 1px solid rgba(192, 196, 200, 0.3); border-radius: 99px; background: rgba(192, 196, 200, 0.12); transition: background 180ms var(--ease); }
.room-toggle__switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--silver); transition: transform 180ms var(--ease), background 180ms var(--ease); }
.room-toggle[aria-pressed="true"] .room-toggle__switch { background: #bdb5a5; border-color: #bdb5a5; }
.room-toggle[aria-pressed="true"] .room-toggle__switch::after { transform: translateX(14px); background: #fffefa; }
.room-toggle[aria-pressed="true"] .room-toggle__value { color: var(--ivory); }
@media (prefers-reduced-motion: reduce) { .room-toggle, .room-toggle__switch, .room-toggle__switch::after { transition: none; } }

@media (max-width: 480px) {
  html:not(.is-wide) .dp-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.is-twoway:not(.is-wide) .dp-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html:not(.is-wide) .dp-foot .d-btn { min-width: 0; padding: 0 6px; gap: 4px; font-size: 13px; line-height: 1.2; white-space: normal; }
  html:not(.is-wide) .dp-foot .d-btn svg { width: 18px; height: 18px; }
  html:not(.is-wide) .dp-foot .d-btn span { min-width: 0; overflow-wrap: anywhere; }
}

/* ================================================================ a phone (owner, 2026-11-14) ===
   "Easy on a phone, the animation full screen, the tools and the details as icons, the whole door clear."
   The door has the screen. The sheet folds to one bar of icons at the foot (open, close-up, plan, options, details,
   full screen) under the door's name and the slide arrows. Options and details open above the bar, one at a time, with
   the door still in view. Full screen leaves the door, its open button and the way back.
   Only where the screen's short side is 540 px or less (html.is-phone, set by tools/src3d/phone-view.js); a laptop,
   a projector and a tablet keep the layout above. */
.ph-only, .ph-bar, .d-name { display: none; }
html.is-phone .ph-only { display: inline-flex; }
html.is-phone #btnFull { display: none; }
#btnFullView[aria-pressed="true"] .off, #btnFullView[aria-pressed="false"] .on { display: none; }

/* the bar of icons (an upright phone, and the foot of the side panel on a phone turned on its side) */
html.is-phone .d-panel .dp-foot { display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: none; }
html.is-phone .d-panel .dp-foot .d-btn { flex: 1 1 0; min-width: 0; height: 54px; padding: 5px 2px 4px; flex-direction: column; justify-content: center; gap: 3px; border-radius: 14px; background: none; box-shadow: none; color: var(--silver); font-size: 10.5px; font-weight: 500; line-height: 1.15; letter-spacing: 0; white-space: nowrap; transition: background 200ms var(--ease), color 200ms var(--ease); }
html.is-phone .d-panel .dp-foot .d-btn svg { width: 23px; height: 23px; stroke-width: 1.5; }
html.is-phone .d-panel .dp-foot .d-btn span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
html.is-phone .d-panel .dp-foot .d-btn--solid { background: var(--ivory); color: var(--black); }
html.is-phone .d-panel .dp-foot .d-btn[aria-pressed="true"]:not(.d-btn--solid), html.is-phone .d-panel .dp-foot .d-btn[aria-expanded="true"] { background: rgba(245, 245, 242, 0.12); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ivory); }
html.is-phone.is-wide #btnDesign, html.is-phone.is-wide #btnInfo { display: none; }
html.is-phone.is-wide .d-panel .dp-foot { padding: 6px 10px 8px; }
html.is-phone.is-wide .d-panel .dp-foot .d-btn { height: 48px; }
html.is-phone .d-panel .dp-foot .room-toggle { flex: 1 0 100%; margin-bottom: 4px; }

/* an upright phone: the sheet is the bar, a part of it opens above */
html.is-phone:not(.is-wide) .d-panel { top: auto; height: auto; display: flex; flex-direction: column; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, rgba(27, 29, 32, 0.95) 0%, rgba(13, 13, 15, 0.98) 100%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -18px 40px -26px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(192, 196, 200, 0.16); }
html.is-phone:not(.is-wide) .d-panel__scroll { display: none; }
html.is-phone:not(.is-wide)[data-sheet] .ph-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 6px 18px; box-shadow: 0 1px 0 var(--line); }
html.is-phone:not(.is-wide)[data-sheet] .d-panel__scroll { display: grid; flex: 0 1 auto; min-height: 0; max-height: clamp(200px, calc(100dvh - 400px), 520px); padding: 6px 16px 16px; gap: 16px; animation: ph-up 360ms var(--ease) both; }
@keyframes ph-up { from { opacity: 0; transform: translateY(14px); } }
.ph-bar__title { margin: 0; display: grid; gap: 1px; min-width: 0; }
.ph-bar__title span { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ivory); }
.ph-bar__title small { font-size: 12px; color: var(--silver); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-bar__close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(245, 245, 242, 0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory); }
.ph-bar__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* options: the pattern, the hands, the track, the frame colour, the glass, the room */
html.is-phone:not(.is-wide)[data-sheet="design"] .dp-head,
html.is-phone:not(.is-wide)[data-sheet="design"] .dp-move,
html.is-phone:not(.is-wide)[data-sheet="design"] .dp-block:not(.dp-block--choose),
html.is-phone:not(.is-wide)[data-sheet="design"] .dp-block--choose > .dp-h,
html.is-phone:not(.is-wide)[data-sheet="design"] .dp-block--choose > .qc-editor { display: none; }
/* details: the code, how it opens, the figures, the opening size and the cart */
html.is-phone:not(.is-wide)[data-sheet="info"] .dp-kicker,
html.is-phone:not(.is-wide)[data-sheet="info"] .dp-name,
html.is-phone:not(.is-wide)[data-sheet="info"] .dp-block--choose > :not(.qc-editor) { display: none; }
html.is-phone:not(.is-wide) .dp-move { font-size: 14.5px; line-height: 1.6; }
html.is-phone:not(.is-wide) .dp-specs dt { font-size: 13.5px; white-space: normal; }
html.is-phone:not(.is-wide) .dp-specs dd { font-size: 14.5px; }
html.is-phone:not(.is-wide) .dp-specs .is-big dd { font-size: 16px; }
html.is-phone:not(.is-wide) .dp-block--choose .room-toggle { margin-top: 2px; }

/* the door's name and the arrows, over the bar (they step aside while a part of the sheet is open) */
html.is-phone:not(.is-wide)[data-slide="door"] .d-nav { bottom: calc(var(--sheet-h, 70px) + 6px); transition: bottom 360ms var(--ease), opacity 260ms var(--ease); }
html.is-phone:not(.is-wide)[data-slide="door"] .d-where { opacity: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 8px; min-width: 0; padding: 5px 12px 6px; border-radius: 14px; background: rgba(13, 13, 15, 0.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line); }
html.is-phone:not(.is-wide)[data-slide="door"] .d-count { font-size: 11px; letter-spacing: 0.12em; }
html.is-phone:not(.is-wide)[data-slide="door"] .d-label { font-size: 11.5px; font-weight: 500; color: var(--silver); }
html.is-phone:not(.is-wide)[data-slide="door"] .d-name { display: block; flex: 1 0 100%; min-width: 0; margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.is-phone:not(.is-wide)[data-slide="door"] .d-arrow { width: 44px; height: 44px; }
html.is-phone:not(.is-wide)[data-sheet] .d-nav { opacity: 0; pointer-events: none; }
html.is-phone:not(.is-wide)[data-slide="door"] .d-top { padding-bottom: 18px; }

/* full screen: the door alone; the open button (and the pivot's pull) with the way back, floating at the foot */
html.is-immersive .d-top, html.is-immersive .d-nav, html.is-immersive .d-plan, html.is-immersive .d-hint { opacity: 0 !important; pointer-events: none !important; }
html.is-immersive #deck .d-panel { top: auto; right: auto; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; height: auto; display: block; transform: translateX(-50%); border-radius: 999px; background: rgba(13, 13, 15, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px -20px rgba(0, 0, 0, 0.8); }
html.is-immersive .ph-bar, html.is-immersive .d-panel__scroll, html.is-immersive .d-panel #btnDecor, html.is-immersive #btnNear, html.is-immersive #btnPlan, html.is-immersive #btnDesign, html.is-immersive #btnInfo { display: none !important; }
html.is-immersive .d-panel .dp-foot { flex-wrap: nowrap; gap: 4px; padding: 5px; border: 0; }
html.is-immersive .d-panel .dp-foot .d-btn { flex: none; width: 70px; height: 52px; border-radius: 26px; }

/* the top bar inside the phone's width; below 360 px the Q mark alone (cropped from the lockup) */
html.is-phone:not(.is-wide) .d-logo img { width: 104px; }
@media (max-width: 359px) { html.is-phone:not(.is-wide) .d-logo img { width: 34px; height: 34px; object-fit: cover; object-position: 0 50%; } }
