/* =====================================================================================================================
   OBSIDIAN /interior/ (site/css/interior.css, owned by the interior page)
   The seat you clean yourself (.seat-*), the cabin map whose five zones light up as you scroll (.zones-*, .cabin-*),
   and the down-deep collage (.deep-*). interior.js draws the mess and runs both.
   ===================================================================================================================== */

/* ---------- hero ---------- */
.int-hero .phero-media img { object-position: 50% 30%; }
.int-hero .mega { max-width: 15ch; }
.int-marquee { --mq-bg: var(--bg); }

/* ---------- the seat ---------- */
.seat-sec .head { margin-bottom: clamp(36px, 4.4vw, 64px); }
.seat-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.78fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
/* touch-action: pan-y, so a finger going up or down always scrolls the page; a sideways rub cleans (interior.js) */
.seat-stage { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--r-lg); background: #0b0c0d; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 0 0 1px var(--line), 0 50px 120px rgba(0, 0, 0, 0.6); }
.seat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; -webkit-user-drag: none; }
.seat-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.7s var(--ease); }
.seat-cv.gone { opacity: 0; }
.seat-sheen { mix-blend-mode: screen; }
@media (hover: hover) and (pointer: fine) { .seat-stage { cursor: none; } }
/* glass edge, like every frame on the site */
.seat-stage::after { content: ""; position: absolute; z-index: 6; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), transparent 24%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }

/* the extractor head that follows the pointer */
.seat-nozzle { --r: 44px; position: absolute; z-index: 5; left: 0; top: 0; width: calc(var(--r) * 2); height: calc(var(--r) * 0.62); margin: calc(var(--r) * -0.31) 0 0 calc(var(--r) * -1);
  border-radius: 999px; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  box-shadow: inset 0 0 0 1.5px rgba(214, 249, 255, 0.95), 0 0 18px rgba(139, 233, 255, 0.55), inset 0 0 14px rgba(139, 233, 255, 0.35);
  background: linear-gradient(90deg, transparent 8%, rgba(139, 233, 255, 0.16) 50%, transparent 92%); will-change: transform; }
.seat-nozzle::before { content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 10px var(--ice); }
.seat-nozzle.on { opacity: 1; }

/* the hint, the little meter for phones, the text-back */
.seat-hint { position: absolute; z-index: 5; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 17px; border-radius: 999px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 500 12.5px/1 var(--mono); letter-spacing: 0.04em; color: var(--ink); background: rgba(4, 5, 6, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.5s, transform 0.6s var(--ease); }
.seat-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); animation: pulse 2.2s ease-in-out infinite; }
.seat-stage.touched .seat-hint, .seat-stage.is-done .seat-hint { opacity: 0; transform: translate(-50%, 10px); }
.seat-pill { position: absolute; z-index: 5; left: 14px; top: 14px; display: none; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; pointer-events: none;
  font: 500 12px/1 var(--mono); color: var(--dim); background: rgba(4, 5, 6, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.seat-pill b { font-weight: 600; color: var(--ink); }
.seat-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.seat-notif { position: absolute; z-index: 7; left: 50%; top: 16px; width: min(400px, calc(100% - 28px)); transform: translate(-50%, -140%); opacity: 0; pointer-events: none;
  transition: transform 0.75s var(--spring), opacity 0.35s; }
.seat-stage.is-done .seat-notif { transform: translate(-50%, 0); opacity: 1; transition-delay: 0.7s; }

/* the done moment: an LED strip sweeps across, the leather catches the light */
.seat-sweep { position: absolute; z-index: 4; top: -10%; bottom: -10%; left: -8%; width: 3px; pointer-events: none; opacity: 0; background: #fff; transform: skewX(-12deg);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.95), 0 0 50px 12px rgba(139, 233, 255, 0.45); }
.seat-sweep::after { content: ""; position: absolute; top: 0; bottom: 0; right: 2px; width: 220px; background: linear-gradient(90deg, transparent, rgba(214, 249, 255, 0.12)); }
.seat-stage.is-done .seat-sweep { animation: seat-sweep 1.3s var(--ease-io) forwards; }
@keyframes seat-sweep { 0% { left: -8%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: 108%; opacity: 0; } }
.seat-gloss { position: absolute; z-index: 3; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity 1.4s var(--ease) 0.5s;
  background: radial-gradient(40% 30% at 38% 26%, rgba(214, 249, 255, 0.16), transparent 70%), linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.07) 48%, transparent 58%); }
.seat-stage.is-done .seat-gloss { opacity: 1; }

/* the panel: how clean it is, what's left */
.seat-panel { display: grid; align-content: start; gap: 18px; }
.seat-state { position: relative; height: 1.1em; overflow: hidden; font-size: clamp(22px, 1.9vw, 30px); font-weight: 900; font-stretch: 125%; }
.seat-state span { display: block; transition: transform 0.7s var(--ease), opacity 0.4s; }
.seat-s2 { position: absolute; left: 0; top: 0; color: transparent; -webkit-text-stroke: max(1.2px, 0.025em) var(--ice); text-shadow: 0 0 0.24em rgba(139, 233, 255, 0.35); transform: translateY(110%); opacity: 0; }
.seat-panel.is-done .seat-s1 { transform: translateY(-110%); opacity: 0; }
.seat-panel.is-done .seat-s2 { transform: none; opacity: 1; }
.seat-meter { display: flex; align-items: baseline; gap: 8px; margin-top: -4px; }
.seat-meter b { font: 900 clamp(64px, 6.4vw, 104px)/0.86 var(--display); font-stretch: 125%; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; transition: color 0.5s, text-shadow 0.5s; }
.seat-meter span { font: 500 13px/1 var(--mono); letter-spacing: 0.04em; color: var(--dim); }
.seat-panel.is-done .seat-meter b { color: var(--ice); text-shadow: 0 0 0.3em rgba(139, 233, 255, 0.45); }
.seat-bar { --f: 0; position: relative; height: 3px; border-radius: 3px; background: var(--faint); overflow: hidden; }
.seat-bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--f)); background: linear-gradient(90deg, #fff, var(--ice)); box-shadow: 0 0 10px var(--ice); transition: transform 0.35s var(--ease); }
.seat-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.seat-list li { --f: 0; position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; padding: 13px 0 15px; border-bottom: 1px solid var(--line); }
.seat-list li > i { grid-row: 1 / span 2; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); transition: background-color 0.4s, box-shadow 0.4s; }
.seat-list li b { font-weight: 650; font-size: 16.5px; line-height: 1.25; transition: color 0.4s; }
.seat-list li small { grid-column: 2; font: 500 12px/1.3 var(--mono); color: var(--mute); letter-spacing: 0.02em; }
/* each line's own progress, an LED filling along its foot */
.seat-list li s { position: absolute; left: 38px; right: 0; bottom: -1px; height: 1px; text-decoration: none; transform-origin: 0 50%; transform: scaleX(var(--f)); background: var(--ice); box-shadow: 0 0 8px var(--ice); opacity: 0.85; transition: transform 0.3s var(--ease), opacity 0.4s; }
.seat-list li.done > i { background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4l3.3 3.3L17.2 8.6' fill='none' stroke='%2303161b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 0 0 4px rgba(139, 233, 255, 0.1), 0 0 16px rgba(139, 233, 255, 0.5); animation: seat-pop 0.5s var(--spring); }
.seat-list li.done small { color: var(--ice); }
.seat-list li.done s { opacity: 0; }
@keyframes seat-pop { 0% { transform: scale(0.6); } 100% { transform: none; } }
.seat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seat-actions .btn { flex: 1 1 auto; }
.seat-book { margin-top: auto; }
.seat-panel.is-done .seat-book { animation: seat-glow 1.6s ease-out 1.1s 2; }
@keyframes seat-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(139, 233, 255, 0.55), 0 10px 32px rgba(139, 233, 255, 0.24); } 50% { box-shadow: 0 0 0 1px #fff, 0 10px 50px rgba(139, 233, 255, 0.6), 0 0 90px rgba(139, 233, 255, 0.35); } }
html:not(.js) .seat-actions, html:not(.js) .seat-hint { display: none; }

/* touch screens held sideways (a phone in landscape, a tablet): the seat never fills the screen, so there is always
   room around it to scroll. Portrait phones and tablets keep the full width (the cap is wider than they are). */
@media (pointer: coarse) {
  .seat-stage { justify-self: center; width: min(100%, calc(72svh * 1.25)); }
}

/* ---------- five zones ---------- */
/* the headline gets the whole row, so each beat stays on one line; the lead sits under it, over the list */
@media (min-width: 901px) {
  .zones-sec .head.row { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: clamp(36px, 5vw, 96px); }
  .zones-sec .head.row > h2 { grid-column: 1 / -1; }
  .zones-sec .head.row > .lead { grid-column: 2; grid-row: 3; align-self: start; max-width: 30em; }
}
.zones { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 96px); align-items: start; }
.zones-map { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; }
.zones-card { position: relative; display: grid; gap: 18px; padding: clamp(22px, 2.4vw, 36px); border-radius: var(--r-lg);
  background: radial-gradient(70% 60% at 50% 100%, rgba(139, 233, 255, 0.07), transparent 70%), linear-gradient(180deg, #0d1013, #08090b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px var(--line), 0 40px 90px rgba(0, 0, 0, 0.5); }
/* the room's light strip over the map */
.zones-card::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); box-shadow: 0 0 12px rgba(190, 240, 255, 0.6); }
.zones-now { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font: 500 13px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.zones-name { color: var(--ice); transition: opacity 0.3s; }
.zones-count { color: var(--dim); white-space: nowrap; }
.zones-count b { font-weight: 600; color: var(--ink); }
.cabin { width: 100%; height: auto; overflow: visible; }
.cabin-tyres rect { fill: #1a1d21; stroke: rgba(243, 245, 247, 0.12); stroke-width: 1; }
.cabin-body { fill: url(#cabin-body); stroke: rgba(243, 245, 247, 0.3); stroke-width: 1.5; transition: stroke 0.8s, filter 0.8s; }
.cabin-mirror { fill: #101317; stroke: rgba(243, 245, 247, 0.22); stroke-width: 1.2; }
.cabin-wheel { fill: none; stroke: rgba(243, 245, 247, 0.35); stroke-width: 2.4; }
.z > * { fill: #0d1013; stroke: rgba(243, 245, 247, 0.26); stroke-width: 1.3; transition: fill 0.6s, stroke 0.6s, stroke-opacity 0.4s; }
.z .z-floor { fill: #0a0c0e; stroke: rgba(243, 245, 247, 0.08); }
.z .z-seam { fill: none; }
.z-glass > * { fill: rgba(170, 225, 245, 0.05); stroke: rgba(214, 249, 255, 0.3); }
.z.lit > * { fill: #0c2127; stroke: rgba(170, 236, 255, 0.75); }
.z.lit .z-floor { fill: #0a181c; stroke: rgba(139, 233, 255, 0.25); }
.z.lit .z-seam { fill: none; }
.z-glass.lit > * { fill: rgba(139, 233, 255, 0.2); }
.z.now { filter: url(#cabin-glow); }
.z.now > * { stroke: var(--ice); animation: zone-on 0.5s linear; }
.z.now > *:not(.z-seam) { fill: #0f2f37; }
.z-glass.now > * { fill: rgba(139, 233, 255, 0.32); }
.z.now .z-floor { fill: #0b2026; }
.z.peek > * { stroke: rgba(214, 249, 255, 0.9); }
@keyframes zone-on { 0% { stroke-opacity: 0.2; } 25% { stroke-opacity: 1; } 40% { stroke-opacity: 0.3; } 60% { stroke-opacity: 1; } 75% { stroke-opacity: 0.6; } 100% { stroke-opacity: 1; } }
.cabin.all .cabin-body { stroke: var(--ice); filter: drop-shadow(0 0 8px rgba(139, 233, 255, 0.6)); }
/* an LED line scans across the car each time a zone switches on */
.cabin-scan { fill: #fff; opacity: 0; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px rgba(139, 233, 255, 0.8)); }
.cabin-scan.run { animation: cabin-scan 0.9s var(--ease-io); }
@keyframes cabin-scan { 0% { transform: translateX(40px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(690px); opacity: 0; } }
.zones-dots { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.zones-dots li { height: 3px; border-radius: 3px; background: var(--faint); transition: background 0.4s, box-shadow 0.4s; }
.zones-dots li.lit { background: #fff; box-shadow: 0 0 10px var(--ice); }

.zones-list { list-style: none; display: grid; padding-block: 18vh 14vh; }
.zone { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 22px; align-content: center; min-height: 44vh; padding: 28px 0; border-top: 1px solid var(--line); }
.zone:last-child { border-bottom: 1px solid var(--line); }
.zone-n { grid-row: 1 / span 2; padding-top: 0.5em; font: 500 13px/1 var(--mono); color: var(--mute); transition: color 0.5s; }
/* a zone name is an unlit sign until it's done, then it switches on */
.zone-name { font-size: clamp(32px, 3.6vw, 60px); font-weight: 900; font-stretch: 125%; line-height: 0.95; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: max(1px, 0.018em) rgba(243, 245, 247, 0.32); transition: color 0.4s, -webkit-text-stroke-color 0.4s, text-shadow 0.6s; }
.zone p { grid-column: 2; color: var(--mute); max-width: 30em; transition: color 0.5s; }
.zone-done { position: absolute; right: 0; top: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--ice);
  box-shadow: inset 0 0 0 1px rgba(139, 233, 255, 0.4); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.zone-done::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4l3.3 3.3L17.2 8.6' fill='none' stroke='%2303161b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.zone.lit .zone-n { color: var(--ice); }
.zone.lit .zone-name { color: var(--ink); -webkit-text-stroke-color: transparent; }
.zone.now .zone-name { animation: sign-on 0.55s linear; text-shadow: 0 0 0.4em rgba(214, 249, 255, 0.25); }
.zone.lit p { color: var(--dim); }
.zone.lit .zone-done { opacity: 1; transform: none; }
@keyframes sign-on { 0% { opacity: 0.3; } 20% { opacity: 1; } 35% { opacity: 0.35; } 55% { opacity: 1; } 70% { opacity: 0.7; } 100% { opacity: 1; } }

/* ---------- down deep ---------- */
.deep-pics { position: relative; padding: 0 12% 18% 0; }
.deep-a { aspect-ratio: 3 / 2.1; }
.deep-b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; box-shadow: 0 0 0 6px var(--bg), 0 40px 80px rgba(0, 0, 0, 0.6); }
.deep-sec .stack { gap: 24px; }
.deep-sec .checks { margin: 4px 0 6px; }

/* ---------- reduced motion / no script: everything done and lit ---------- */
html.no-motion .zone .zone-n, html:not(.js) .zone .zone-n { color: var(--ice); }
html.no-motion .zone-name, html:not(.js) .zone-name { color: var(--ink); -webkit-text-stroke-color: transparent; }
html.no-motion .zone p, html:not(.js) .zone p { color: var(--dim); }
html.no-motion .zone-done, html:not(.js) .zone-done { opacity: 1; transform: none; }
html.no-motion .zones-list { padding-block: 0; }
html.no-motion .zone { min-height: 0; padding: 34px 0; }
html.no-motion .zones-map { height: auto; top: calc(var(--hdr-h) + 24px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .seat-grid { grid-template-columns: minmax(0, 1fr); }
  .seat-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px 28px; }
  .seat-panel > .seat-state, .seat-panel > .seat-meter, .seat-panel > .seat-bar { grid-column: 1; }
  .seat-panel > .seat-list { grid-column: 2; grid-row: 1 / span 4; }
  .seat-panel > .seat-actions, .seat-panel > .seat-book { grid-column: 1; }
}
@media (max-width: 899px) {
  .zones { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* the map rides along at the top while the zones scroll under it */
  .zones-map { z-index: 3; height: auto; top: 0; margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad) 18px; transition: top 0.5s var(--ease);
    background: linear-gradient(180deg, var(--bg) 82%, rgba(4, 5, 6, 0)); }
  .hdr:not(.is-hidden) ~ main .zones-map { top: calc(var(--hdr-h) - 4px); }
  .zones-card { gap: 10px; padding: 14px 16px 16px; }
  .zones-list { padding-block: 6vh 10vh; }
  .zone { min-height: 52vh; padding: 26px 0; }
  .zone-done { top: 26px; }
  html.no-motion .zones-map { position: relative; top: 0; }
  .split .deep-pics { margin-bottom: 8px; }
}
@media (max-width: 720px) {
  .seat-stage { aspect-ratio: 1 / 1.04; border-radius: 22px; margin-inline: calc(var(--pad) * -0.4); }
  .seat-img { object-position: 30% 50%; }
  .seat-pill { display: inline-flex; }
  .seat-hint { bottom: 14px; }
  .seat-notif { top: 12px; padding: 12px 13px; gap: 11px; }
  .seat-notif .notif-app { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
  .seat-notif p { font-size: 14px; }
  .seat-panel { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; gap: 16px; }
  .seat-panel > .seat-list { grid-column: 1; grid-row: auto; }
  .seat-meter b { font-size: 64px; }
  .seat-actions .btn { min-height: 48px; }
  .zone-name { font-size: min(9.4vw, 44px); }
  .zone { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .zone-n { grid-row: auto; padding-top: 0; }
  .zone p { grid-column: 1; }
  .zone-done { top: 24px; }
  .zones-now { font-size: 11.5px; }
  .deep-pics { padding: 0 8% 22% 0; }
}

@media (pointer: coarse) and (max-width: 720px) {
  .seat-stage { width: min(100% + var(--pad) * 0.8, calc(72svh / 1.04)); }
}
