/* ROX ADAMAS page, v2 compact product experience (design lab, D22). Mobile-first; homepage tokens from
   shared/css/internal-base.css only. Five chapters, one layout family each:
   studio stage · dark media/text split with step tabs · reversed split with a square film · comparison table +
   disclosures · conversion band. v1 is preserved in ../adamas-v1/. */

.sec-title { margin: 0; font-size: clamp(2rem, 7.4vw, 2.6rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.sec-title--sm { font-size: clamp(1.7rem, 6vw, 2.2rem); letter-spacing: -.03em; }
@media (min-width: 761px) { .sec-title { font-size: clamp(2.4rem, 4vw, 3.6rem); } .sec-title--sm { font-size: clamp(1.9rem, 2.6vw, 2.4rem); } }
figure { margin: 0; }

/* Film pause control (WCAG 2.2.2) */
.ad-film-btn { position: absolute; z-index: 3; inset-block-end: 10px; inset-inline-end: 10px; inline-size: 44px; block-size: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); background: rgba(13,15,16,.55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background var(--t-ui), color var(--t-ui); }
.ad-film-btn:hover { background: #fff; color: var(--ink); }
.ad-film-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ad-film-btn span[aria-hidden] { inline-size: 10px; block-size: 12px; border-inline: 3px solid currentColor; }
.ad-film-btn[aria-pressed="true"] span[aria-hidden] { border: 0; inline-size: 0; block-size: 0; border-block: 7px solid transparent; border-inline-start: 11px solid currentColor; margin-inline-start: 3px; }

/* ---------- 1. Studio: the 360° viewer is the page's opening ---------- */
.studio { padding-block: calc(var(--bar-h) + 22px) 8px; background: var(--paper); }
.studio__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.studio__id .crumbs { margin-block-end: 6px; color: var(--text-muted); }
.studio__title { margin: 0; font-size: clamp(2.3rem, 10vw, 3rem); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.studio__title .rise:first-child > span { font-weight: 300; }
.studio__line { margin: 6px 0 0; font-size: 16px; color: var(--text-muted); }
.studio__cta { display: none; }
.spin { position: relative; margin-block-start: 6px; }
.spin__stage { position: relative; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; margin-inline: calc(var(--gut) * -1); }
.spin.is-dragging .spin__stage { cursor: grabbing; }
.spin__poster, .spin__canvas, .spin__fade { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.spin__poster { object-fit: contain; }
.spin__poster, .spin__canvas, .spin__fade { -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, #000 86%, transparent 100%); }
.spin__fade { opacity: 0; pointer-events: none; }
/* A quiet hint inside the stage, gone after the first turn. */
.spin__hint { position: absolute; z-index: 2; inset-block-end: 10px; inset-inline-start: 50%; transform: translateX(-50%); margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(255,255,255,.9); border: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); white-space: nowrap; pointer-events: none; transition: opacity .6s; }
[dir="rtl"] .spin__hint { transform: translateX(50%); }
.spin__hint-ico { inline-size: 18px; block-size: 8px; border-block-end: 1.5px solid currentColor; border-inline: 1.5px solid currentColor; border-radius: 0 0 50% 50%; }
.spin__hint.is-gone { opacity: 0; }
.spin__bar { display: grid; gap: 12px; padding-block: 12px 0; }
.spin__turn { display: flex; align-items: center; gap: 10px; }
.spin__step { flex: none; inline-size: 44px; block-size: 44px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--paper); transition: background var(--t-ui), color var(--t-ui); }
.spin__step:hover { background: var(--ink); color: #fff; }
.spin__step span { inline-size: 10px; block-size: 10px; border-block-start: 2px solid currentColor; border-inline-start: 2px solid currentColor; transform: rotate(-45deg); margin-inline-start: 4px; }
.spin__step--next span { transform: rotate(135deg); margin-inline: 0 4px; }
[dir="rtl"] .spin__step span { transform: rotate(135deg); }
[dir="rtl"] .spin__step--next span { transform: rotate(-45deg); }
.spin__range { flex: 1; display: flex; align-items: center; min-block-size: 44px; }
.spin__range input { inline-size: 100%; accent-color: var(--ink); block-size: 24px; margin: 0; }
.spin__angle { margin: 0; min-inline-size: 3em; font-size: 14px; font-weight: 600; text-align: end; color: var(--text-muted); }
.spin__colours { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.spin__sw, .cabin__sw { display: flex; gap: 6px; }
.spin__sw button, .cabin__sw button { inline-size: 44px; block-size: 44px; padding: 3px; border: 1px solid transparent; background: none; transition: border-color var(--t-ui); }
.spin__sw button:hover, .cabin__sw button:hover { border-color: var(--graphite); }
.spin__sw [aria-checked="true"], .cabin__sw [aria-checked="true"] { border-color: var(--ink); }
.spin__sw img, .cabin__sw img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.spin__name { margin: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--text-muted); }
.spin__name b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.keyfig { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px 12px; margin: 16px 0 0; padding-block-start: 14px; border-block-start: 1px solid var(--rule); }
.keyfig div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.keyfig dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); line-height: 1.3; }
.keyfig dd { margin: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.keyfig dd b { font-size: 22px; letter-spacing: -.03em; }
@media (max-width: 420px) { .keyfig { grid-template-columns: 1fr 1fr; } }
@media (min-width: 761px) {
	.studio { padding-block: calc(var(--bar-h) + 30px) 12px; }
	.studio__title { font-size: clamp(2.6rem, 4.4vw, 3.6rem); }
	.studio__cta { display: inline-flex; }
	/* Height follows the viewport, bounded so the width-fitted 16:9 frames only ever lose white studio space above
	   and below the car (the car spans about 18-78% of the frame height). */
	.spin__stage { --sw: calc(min(100vw, var(--max)) - 2 * var(--gut)); margin-inline: 0; aspect-ratio: auto; block-size: clamp(calc(var(--sw) * .38), calc(100svh - 330px), calc(var(--sw) * .5625)); }
	.spin__poster { object-fit: cover; }
	.spin__bar { grid-template-columns: minmax(280px, 1fr) auto; align-items: center; gap: 20px 36px; }
	.spin__name { flex-direction: row; align-items: baseline; gap: 10px; }
	.keyfig { justify-content: start; gap: 8px 48px; }
	.keyfig dd b { font-size: 26px; }
}
@media (min-width: 1081px) {
	/* The car leads: the stage takes what the viewport allows after the bar, title and controls. */
	.spin__bar { grid-template-columns: minmax(320px, 1.1fr) auto auto; }
	/* On wide screens adamas.js moves the figures into the control row, so the section stays one screen tall. */
	.spin__bar .keyfig { margin: 0; padding-block: 0; padding-inline: 28px 0; border: 0; border-inline-start: 1px solid var(--rule); gap: 4px 28px; }
}

/* ---------- 2. Gliding driving: the page's single dark chapter ---------- */
.drive { background: var(--night); color: var(--on-night); padding-block: 40px; margin-block-start: 40px; }
.drive__in { display: grid; gap: 22px; }
.drive__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; margin-inline: calc(var(--gut) * -1); }
.drive__v { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.drive__v.is-on { opacity: 1; }
.drive__copy .sec-title { margin-block-end: 18px; }
.drive__tabs { display: flex; gap: 4px 20px; overflow-x: auto; scrollbar-width: none; border-block-end: 1px solid var(--line-night); margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
.drive__tabs::-webkit-scrollbar { display: none; }
.drive__tabs button { flex: none; min-block-size: 46px; padding: 0; border: 0; background: none; color: var(--on-night-2); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; transition: color var(--t-ui), box-shadow var(--t-ui); }
.drive__tabs button:hover { color: var(--on-night); }
.drive__tabs [aria-selected="true"] { color: var(--on-night); box-shadow: inset 0 -2px 0 var(--on-night); }
.drive__tabs button:focus-visible { outline-color: var(--on-night); }
.drive__panes { min-block-size: 104px; padding-block: 16px 4px; }
.drive__pane p { margin: 0; font-size: 17px; line-height: 1.55; max-inline-size: 46ch; }
.drive__pane.is-on p { animation: fade-up .6s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.drive__pane b { color: #fff; font-weight: 700; }
.drive__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 14px 0 0; padding-block-start: 16px; border-block-start: 1px solid var(--line-night); }
.drive__figs div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.drive__figs div:last-child { grid-column: 1 / -1; }
.drive__figs dt { font-size: 13px; color: var(--on-night-2); }
.drive__figs dd { margin: 0; font-size: 14px; font-weight: 600; }
.drive__figs dd b { font-size: 26px; letter-spacing: -.03em; }
.drive__figs .pending { display: block; margin-block-start: 2px; color: var(--pending-night); font-size: 12.5px; font-weight: 500; }
@media (min-width: 761px) {
	.drive { padding-block: clamp(48px, 6vw, 88px); margin-block-start: clamp(48px, 5vw, 72px); }
	.drive__stage { margin-inline: 0; }
	.drive__tabs { margin-inline: 0; padding-inline: 0; }
	.drive__figs { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; }
	.drive__figs div:last-child { grid-column: auto; }
	.drive__pane p { font-size: clamp(17px, 1.4vw, 20px); }
}
@media (min-width: 1081px) {
	.drive__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
}

/* ---------- 3. Luxury that calms: controls + genuine renders left, square official film right ---------- */
.cabin { padding-block: 48px 8px; }
.cabin__in { display: grid; gap: 24px; }
.cabin__lede { margin: 12px 0 0; max-inline-size: 52ch; color: var(--text-muted); }
.cabin__ctl { display: grid; gap: 16px; margin-block-start: 20px; }
.cabin__seats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cabin__seats button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-block-size: 56px; padding: 10px 12px; border: 1px solid var(--rule); background: var(--paper); text-align: start; transition: border-color var(--t-ui), background var(--t-ui); }
.cabin__seats button:hover { border-color: var(--graphite); }
.cabin__seats [aria-checked="true"] { border-color: var(--ink); background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--ink); }
.cabin__seats .seatmap { grid-row: 1 / span 2; }
.cabin__seats b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.cabin__seats i { font-style: normal; font-size: 12.5px; color: var(--text-muted); }
.seatmap { display: flex; gap: 4px; align-items: center; }
.seatmap > span { display: flex; flex-direction: column; gap: 3px; }
.seatmap s { display: block; inline-size: 8px; block-size: 6px; background: var(--ink); text-decoration: none; }
.cabin__k { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.cabin__k .pending { margin-inline-start: 6px; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.cabin__render { position: relative; margin-block-start: 16px; aspect-ratio: 16 / 9; background: var(--surface-alt); overflow: hidden; margin-inline: calc(var(--gut) * -1); }
.cabin__render img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.cabin__render.is-wipe img { animation: wipe .9s var(--ease-io); }
[dir="rtl"] .cabin__render.is-wipe img { animation-name: wipe-rtl; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes wipe-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
.cabin__views { position: absolute; z-index: 2; inset-block-start: 8px; inset-inline-end: 8px; display: flex; background: rgba(255,255,255,.94); border: 1px solid var(--line); }
.cabin__views button { min-block-size: 40px; padding: 0 12px; border: 0; background: none; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.cabin__views [aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--ink); }
.cabin__facts { display: grid; gap: 10px; margin: 16px 0 0; }
.cabin__facts div { display: grid; gap: 2px; }
.cabin__facts dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.cabin__facts dd { margin: 0; font-size: 15px; font-weight: 500; }
/* Phones: a 4:3 window onto the square film, so it does not take a full screen-width square. */
.cabin__film { position: relative; inline-size: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-alt); }
@media (min-width: 761px) { .cabin__film { inline-size: min(100%, 420px); aspect-ratio: 1; justify-self: center; } }
.cabin__film video { inline-size: 100%; block-size: 100%; object-fit: cover; }
@media (min-width: 761px) {
	.cabin { padding-block: clamp(56px, 6vw, 96px) 8px; }
	.cabin__ctl { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
	.cabin__render { margin-inline: 0; }
	.cabin__facts { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 1081px) {
	.cabin__in { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
	.cabin__film { inline-size: 100%; position: sticky; inset-block-start: 100px; margin-block-start: 8px; }
}

/* ---------- 4. Specifications: key comparison table, then disclosures ---------- */
.specs { padding-block: 48px 16px; }
.specs__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-block-end: 16px; }
.specs__key { overflow-x: auto; }
.specs__key:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ktable { inline-size: 100%; border-collapse: collapse; font-size: 14px; }
.ktable th, .ktable td { padding: 10px 12px 10px 0; text-align: start; vertical-align: top; }
.ktable thead th { padding-block: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); border-block-end: 1px solid var(--ink); }
.ktable tbody th { font-weight: 500; color: var(--text-muted); inline-size: 34%; }
.ktable tbody td { font-weight: 600; }
.ktable tbody tr:nth-child(odd) { background: var(--surface-alt); }
.ktable tbody th:first-child { padding-inline-start: 10px; }
/* Phones: each row stacks (label, then each version's value with its version name). */
@media (max-width: 760px) {
	.ktable, .ktable tbody, .ktable tr, .ktable th, .ktable td { display: block; }
	.ktable thead { display: none; }
	.ktable tbody tr { padding: 10px 10px 12px; }
	.ktable tbody th, .ktable tbody td { padding: 0; inline-size: auto; }
	.ktable tbody th { font-size: 13px; margin-block-end: 3px; }
	.ktable tbody th:first-child { padding-inline-start: 0; }
	.ktable td[data-v]::before { content: attr(data-v); display: block; margin-block-start: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
}
.specs__more { margin-block-start: 22px; border-block-start: 1px solid var(--rule); }
.sgroup { border-block-end: 1px solid var(--rule); }
.sgroup summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 52px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; }
.sgroup summary::-webkit-details-marker { display: none; }
.sgroup summary::after { content: ''; inline-size: 10px; block-size: 10px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); flex: none; }
.sgroup[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.sgroup summary:hover { text-decoration: underline; text-underline-offset: 5px; }
.sgroup summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sgroup dl { margin: 0; padding-block: 0 14px; display: grid; gap: 10px; }
.sgroup .srow { display: grid; gap: 2px; }
.sgroup dt { font-size: 13px; color: var(--text-muted); }
.sgroup dd { margin: 0; font-size: 15px; font-weight: 600; }
.sgroup dd small { display: block; margin-block-start: 2px; font-size: 12.5px; font-weight: 500; }
.sgroup .ver { display: block; }
.sgroup .ver i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-inline-end: 8px; }
.specs__src { margin: 14px 0 0; max-inline-size: 72ch; font-size: 12.5px; color: var(--text-muted); }
@media (min-width: 761px) {
	.specs { padding-block: clamp(56px, 6vw, 96px) 24px; }
	.ktable { font-size: 15px; }
	.ktable th, .ktable td { padding: 11px 20px 11px 0; }
	.specs__more { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); border: 0; }
	.sgroup:nth-child(-n+2) { border-block-start: 1px solid var(--rule); }
	.sgroup .srow { grid-template-columns: minmax(150px, 2fr) minmax(0, 3fr); gap: 16px; align-items: baseline; }
}

/* ---------- 5. Request a Test Drive ---------- */
.close { margin-block-start: 40px; padding-block: 36px; background: var(--surface-alt); }
.close__in { display: grid; gap: 20px; }
.close__copy p { margin: 10px 0 0; max-inline-size: 52ch; color: var(--text-muted); }
.close__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.close__tel { display: inline-flex; align-items: baseline; gap: 10px; font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; text-decoration: none; }
.close__tel span { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
@media (min-width: 1081px) {
	.close { margin-block-start: 56px; padding-block: 48px; }
	.close__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.studio__title .rise > span { transform: none !important; }
}
