/* Jaguar layout refinement. Loaded last. The construction runway, room framing
   and choreography stay in their original stylesheets. */

/* ---- Hero, wide screens: copy anchored bottom-left, house left clear ---- */
@media(min-width:1001px) and (min-height:621px){
 .persistent-header:not(.header-scrolled){padding-block:14px}
 .persistent-header .brand img{width:auto;height:46px}
 .journey:not(.still) .stage:not([data-room=true]) .intro{left:4.8%;right:auto;top:auto;bottom:108px;width:min(50%,760px);display:flex;flex-wrap:wrap;align-items:center;align-content:flex-end;gap:0 26px;height:auto;text-align:left;text-shadow:0 2px 22px #000c,0 0 2px #0009}
 .journey:not(.still) .stage:not([data-room=true]) .intro h1{flex:0 0 100%;font-size:clamp(38px,3.7vw,56px);line-height:1.04;text-wrap:nowrap}
 .journey:not(.still) .stage:not([data-room=true]) .intro h1 span,.journey:not(.still) .stage:not([data-room=true]) .intro h1 em{display:inline}
 .journey:not(.still) .stage:not([data-room=true]) .intro h1 em{margin-left:.2em;font-size:1.1em;color:#f1d6a0}
 .journey:not(.still) .stage:not([data-room=true]) .intro>p{flex:0 0 100%;max-width:36rem;margin:14px 0 22px}
 .journey:not(.still) .stage:not([data-room=true]) .intro .hero-actions{justify-content:flex-start;margin:0}
 .journey:not(.still) .stage:not([data-room=true]) .intro .start{margin:0;padding:12px 0}
 .journey:not(.still) .stage:not([data-room=true]) .control-panel{width:min(470px,40%)}
}

/* ---- Build controls: one compact panel ---- */
@media(min-width:701px){
 .journey:not(.still) .stage:not([data-room=true]) .control-panel{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;padding:8px 16px 6px}
 .journey:not(.still) .stage:not([data-room=true]) .control-panel .scene-caption,.journey:not(.still) .stage:not([data-room=true]) .chapter-buttons{grid-column:1/-1}
 .journey:not(.still) .stage:not([data-room=true]) .transport{grid-column:1;margin:0;flex-wrap:nowrap}
 .journey:not(.still) .stage:not([data-room=true]) .timeline{grid-column:2;margin:0;flex-wrap:nowrap;border-top:1px solid #e4ded344}
}
@media(max-width:700px){
 /* Copy and actions together in the sky at the top; the house stays clear between them and the controls. */
 .journey:not(.still) .stage:not([data-room=true]) .intro{top:calc(var(--hero-header-end,8rem) + 1.25rem);bottom:auto;height:calc(max(var(--hero-header-end,8rem) + 27rem,100svh - 10.5rem) - var(--hero-header-end,8rem) - 2rem);display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto auto auto 1fr;justify-content:space-between;column-gap:16px}
 .journey:not(.still) .stage:not([data-room=true]) .intro h1,.journey:not(.still) .stage:not([data-room=true]) .intro>p:not(.eyebrow){grid-column:1/-1;justify-self:center}
 .journey:not(.still) .stage:not([data-room=true]) .intro>p:not(.eyebrow){margin:14px auto 0}
 .journey:not(.still) .stage:not([data-room=true]) .intro .hero-actions{display:contents}
 .journey:not(.still) .stage:not([data-room=true]) .intro .hero-actions .solid-button{grid-column:1/-1;grid-row:3;width:auto;min-width:min(100%,15rem);max-width:100%;min-height:46px;margin-top:16px;padding-block:10px;justify-self:center;pointer-events:auto;text-shadow:none}
 .journey:not(.still) .stage:not([data-room=true]) .intro .hero-secondary{display:none}
 .journey:not(.still) .stage:not([data-room=true]) .intro .start{grid-column:1/-1;grid-row:4;justify-self:center;align-self:start;min-height:44px;margin:0;padding:10px 0;font-size:.875rem}
 .journey:not(.still) .stage:not([data-room=true]) .control-panel{top:max(calc(var(--hero-header-end,8rem) + 27rem),calc(100svh - 10.5rem));display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;padding:8px 14px 4px}
 .journey:not(.still) .stage:not([data-room=true]) .control-panel .scene-caption,.journey:not(.still) .stage:not([data-room=true]) .chapter-buttons{grid-column:1/-1}
 .journey:not(.still) .stage:not([data-room=true]) .transport{grid-column:1;margin:0;flex-wrap:nowrap}
 .journey:not(.still) .stage:not([data-room=true]) .timeline{grid-column:2;margin:0;flex-wrap:nowrap;gap:8px;border-top:1px solid #e4ded344}
 .journey:not(.still) .stage:not([data-room=true]) #journey-range{min-width:0;flex:1}
}

/* ---- Kitchen: the chosen palette as a summary that leads into the quote ---- */
.kitchen-summary{margin:18px 0 14px;padding:16px 18px 6px;border:1px solid #d4b68166;border-radius:4px;background:#f0ece40d}
.kitchen-summary-title{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:0 0 12px;font-size:1.0625rem;color:#fff6e5}
.kitchen-summary-title em{font-size:.8125rem;font-style:normal;letter-spacing:.06em;text-transform:uppercase;color:#f1d6a0}
.kitchen-summary dl{margin:0}
.kitchen-summary dl div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-top:1px solid #e4ded326;font-size:.9375rem;line-height:1.4}
.kitchen-summary dt{color:#cfd3c8}
.kitchen-summary dd{margin:0;text-align:right;color:#fff6e5}
.kitchen-summary dd::first-letter{text-transform:uppercase}

/* ---- Lower sections: no body copy below 14px ---- */
.commercial-project dl,.commercial-project figcaption,.sample-notice,.tender-action p,.statement-status,.step-grid p,.decision-row p,.quote-reassurance span,.territory{font-size:.875rem;line-height:1.55}
.owner-lead,.faq-list p{font-size:1rem;line-height:1.6}

/* ---- Full-bleed rooms ---- */
@media(min-width:1100px) and (min-height:650px){
 .stage[data-room=true] .scene-shade{opacity:1;background:linear-gradient(180deg,#0b0f0fb8,transparent 20%,transparent 72%,#0b0f0f8c)}
 .stage[data-room=true] .demo-note{display:none}
 .stage[data-room=true] .control-panel{border:1px solid #60706466;border-radius:4px;backdrop-filter:blur(6px)}
}
/* Kitchen build: the photograph fills the stage; caption and controls sit over its lower edge. */
.kitchen-section:not(.kitchen-narrow):not(.kitchen-manual) .kitchen-stage{width:100%;max-width:none}
.kitchen-narrow:not(.kitchen-manual) .kitchen-stage{justify-content:flex-end}
.kitchen-narrow:not(.kitchen-manual) .kitchen-visual{position:absolute;inset:0;height:auto;aspect-ratio:auto}
.kitchen-narrow:not(.kitchen-manual) .kitchen-visual img{object-fit:cover;object-position:51% 60%}
.kitchen-narrow:not(.kitchen-manual) .kitchen-controls{padding-top:64px;background:linear-gradient(#11191600,#111916d9 56px,#111916f5 120px)}
.kitchen-narrow:not(.kitchen-manual) .kitchen-heading{width:100%}
.kitchen-narrow:not(.kitchen-manual) .kitchen-heading:before{inset:0 0 -40px;background:linear-gradient(#101b15e6,#101b15b3 55%,#101b1500);mask-image:none}

/* ---- Phones: five stages always fit one row ----
   Each stage shows its number; the current one also shows its name. The names
   stay in the markup, so every button keeps its full accessible name. */
@media(max-width:700px){
 .journey .stage .chapter-buttons{counter-reset:stage;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;gap:0;overflow:visible}
 .journey .stage .chapter-buttons button{counter-increment:stage;flex:0 0 auto;min-width:44px;min-height:44px;font-size:0;text-align:center;white-space:nowrap}
 .journey .stage .chapter-buttons button::before{content:counter(stage,decimal-leading-zero);font-size:.8125rem;font-variant-numeric:tabular-nums;letter-spacing:.02em}
 .journey .stage .chapter-buttons button[aria-pressed=true]{font-size:.8125rem;padding-inline:2px}
 .journey .stage .chapter-buttons button[aria-pressed=true]::before{margin-right:.55em;color:#d4b681}
}
@media(max-width:340px){.journey .stage .chapter-buttons button{min-width:36px}}

/* ---- Still view: controls and status stay in normal flow ----
   Offsets written for the pinned, absolutely positioned stage were also being
   applied here, where these elements are position:relative. That pushed the
   controls off the stage and slid the status line up over the buttons. */
.journey.still .stage .control-panel,.journey.still .stage .load-status{inset:auto}

/* ---- Hero on upright tablets: the house fills most of the frame,
   so the copy and actions sit bottom-left on the lawn, beside the build controls. ---- */
@media(min-width:701px) and (max-width:1000px) and (min-height:800px){
 .journey:not(.still) .stage:not([data-room=true]) .intro{left:5%;right:auto;top:auto;bottom:64px;width:38%;height:auto;display:flex;flex-wrap:wrap;align-items:center;align-content:flex-end;gap:0 20px;text-align:left;text-shadow:0 2px 22px #000c,0 0 2px #0009}
 .journey:not(.still) .stage:not([data-room=true]) .intro h1{flex:0 0 100%;font-size:clamp(30px,4.3vw,38px);line-height:1.06}
 .journey:not(.still) .stage:not([data-room=true]) .intro h1 em{color:#f1d6a0}
 .journey:not(.still) .stage:not([data-room=true]) .intro>p:not(.eyebrow){flex:0 0 100%;max-width:none;margin:12px 0 16px;font-size:.9375rem;line-height:1.5}
 .journey:not(.still) .stage:not([data-room=true]) .intro .hero-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:0 20px;margin:0}
 .journey:not(.still) .stage:not([data-room=true]) .intro .hero-actions .solid-button{min-height:46px}
 .journey:not(.still) .stage:not([data-room=true]) .intro .start{margin:0;padding:8px 0;font-size:.875rem}
}

/* ---- Hero on the narrowest phones: smaller copy, so the actions clear the roofline. ---- */
@media(max-width:340px){
 .journey:not(.still) .stage:not([data-room=true]) .intro h1{font-size:30px;line-height:1.06}
 .journey:not(.still) .stage:not([data-room=true]) .intro>p:not(.eyebrow){margin-top:8px;font-size:.875rem;line-height:1.45}
 .journey:not(.still) .stage:not([data-room=true]) .intro .hero-actions .solid-button{min-height:44px;margin-top:10px;padding-block:8px}
 .journey:not(.still) .stage:not([data-room=true]) .intro .start{min-height:40px;padding:6px 0;font-size:.8125rem}
}
