/* Refinements for the v8 palette, homepage and catalogue. */
:root { --refine-gap: clamp(24px, 5vw, 72px); --refine-pad: clamp(48px, 6vw, 86px); }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
.nav a, .btn, .link { -webkit-tap-highlight-color: transparent; }
.link { color: var(--action); }
.link:hover { text-decoration: underline; text-underline-offset: 5px; }

.refined-hero { position: relative; display: grid; isolation: isolate; min-height: clamp(420px, 39.8vw, 710px); background: #101c2d; color: #fff; }
.refined-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.refined-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.refined-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#0d1b2bd9 0%,#0d1b2b3b 31%,transparent 51%); }
.refined-hero-copy { align-self: center; padding-block: 54px; animation: soft-entry 440ms ease-out both; }
.refined-hero h1 { font-size: clamp(43px, 4.5vw, 72px); max-width: 14ch; text-wrap: initial; }
.refined-hero .eyebrow { color: #d4e2f1; }
.refined-hero .hero-lead { margin-block: 19px 23px; max-width: 33ch; color: #e1ebf7; font-size: clamp(16px, 1.5vw, 20px); }
.refined-hero .btn--secondary { color: #fff; border-color: #acbed4; }
.refined-hero .btn--secondary:hover { background: #ffffff1c; }
.quote-mobile-contact { display: none; }

.range-heading { align-items: center; }
.ranges-section .range-card { display: flex; flex-direction: column; height: 100%; border-radius: 10px; overflow: hidden; }
.ranges-section .range-image { isolation: isolate; overflow: hidden; border-radius: 9px; background: var(--p-surface); }
.ranges-section .range-title > span, .catalog-hero .range-title > span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: #154b92; background: #dfeafb; transition: background-color 180ms, color 180ms; }
.ranges-section .range-title h3 { text-wrap: wrap; }
.ranges-section .range-card .range-models { margin-top: auto; }
.ranges-section .range-card p { padding-bottom: 14px; }
.range-card:is(:hover, :focus-visible) .range-title > span { color: #fff; background: var(--action); }
.ranges-section .range-card:focus-visible { outline-offset: 2px; }
.home-compact { margin-top: clamp(24px, 4vw, 52px); }
.home-compact .range-image { padding: clamp(8px, 1.25vw, 17px); }
.home-compact .range-card[data-group="home"] .range-image img { transform: scale(1.08); }

.order-intro { grid-template-columns: 1fr 1fr; gap: 12px var(--refine-gap); align-items: start; }
.order-intro > .eyebrow { grid-column: 1 / -1; margin: 0 !important; }
.order-intro > div { display: flex; flex-direction: column; align-items: flex-start; }
.order-intro h2 { max-width: 14ch; }
.order-intro .link { margin-top: 10px; gap: 14px; }
.order-section .order-route article { display: grid; grid-template-rows: auto 1fr auto; align-content: start; }
.order-section .order-route h3 { min-height: 2.18em; max-width: none; }
.order-section .order-route .step { margin-bottom: 15px; }
.order-section .order-route p { margin-top: 8px; }
.order-bottom { align-items: baseline; }

.brand-scene { overflow: hidden; background: var(--p-surface); border-radius: 9px; aspect-ratio: 1.38; }
.brand-scene img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.oem-split:hover .brand-scene img { transform: scale(1.018); }
.oem-photo { margin: 0; min-width: 0; }
.oem-photo figcaption,.about-photo figcaption { color: var(--muted); font-size: 12px; margin-top: 8px; }
.oem-hero h1 { font-size: clamp(43px, 5vw, 72px); max-width: 11ch; }
.brand-options { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--hit-line); }
.brand-options li { border-bottom: 1px solid var(--hit-line); }
.brand-options .link { display: flex; justify-content: space-between; width: 100%; padding: 9px 4px; color: var(--ink); gap: 12px; transition: color 180ms, padding-inline 180ms, background-color 180ms; }
.brand-options .link:hover, .brand-options .link:focus-visible { padding-inline: 10px; background: var(--p-bg); color: var(--action); text-decoration: none; }
.custom-grid article { scroll-margin-top: 120px; }
.custom-grid article:target { background: var(--p-bg); }

.about-intro { background: var(--p-bg); padding-block: var(--refine-pad); }
.about-layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--refine-gap); }
.about-copy h1 { font-size: clamp(42px, 5.0vw, 72px); max-width: 13ch; }
.about-copy h1 + p { font-size: clamp(16px, 1.5vw, 20px); margin-block: 20px 24px; color: var(--muted); max-width: 39ch; }
.about-photo { margin: 0; min-width: 0; }
.about-photo img { width: 100%; aspect-ratio: 1.31; object-fit: cover; object-position: center 55%; border-radius: 9px; }
.about-paths { padding-block: var(--refine-pad); }
.about-path-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 27px; }
.about-path-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(17px, 2.3vw, 32px); border: 1px solid var(--hit-line); border-radius: 9px; }
.about-path-grid article h3 { font-size: clamp(23px, 2.1vw, 31px); margin-bottom: 12px; }
.about-path-grid p { color: var(--muted); margin-bottom: 13px; }
.about-path-grid .link { margin-top: auto; gap: 12px; }
.about-handover .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--refine-gap); padding-block: 34px 53px; border-top: 1px solid var(--hit-line); }
.about-handover h2 { font-size: clamp(29px, 3vw, 44px); }
.about-handover p { color: var(--muted); }
.about-handover .link { margin-top: 9px; gap: 12px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 13px; margin-bottom: clamp(20px, 2.4vw, 34px); }
.breadcrumbs a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.model-top, .model-range { background: var(--p-bg); padding-block: 26px var(--refine-pad); }
.model-range h1, .model-summary h1 { font-size: clamp(38px, 4.65vw, 68px); }
.model-range h1 + p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.model-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.model-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hit-line); border-radius: 9px; overflow: hidden; transition: transform 180ms, border-color 180ms; }
.model-card:hover { transform: translateY(-2px); border-color: var(--action); }
.model-card-art {
  display: grid;
  place-items: center;
  flex: none;
  height: clamp(160px, 23vw, 283px);
  container-type: size;
  overflow: hidden;
  isolation: isolate;
  background: var(--p-surface);
}
.model-card-art .photo-frame {
  width: min(89cqw, calc(85cqh * var(--photo-ratio)));
  mix-blend-mode: multiply;
}
.model-card-copy { padding: 17px; display: flex; flex-direction: column; flex: 1; }
.model-card h2 { font-size: clamp(21px,2vw,29px); }
.model-card p { color: var(--muted); margin-block: 8px 13px; font-size: 14px; }
.model-card-link { display: flex; justify-content: space-between; margin-top: auto; border-top: 1px solid var(--hit-line); padding-top: 12px; color: var(--action); font-size: 13px; font-weight: 650; }
.model-layout {
  display: grid;
  grid-template-columns: minmax(0,.94fr) minmax(0,1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "gallery heading" "gallery summary";
  align-items: start;
  gap: 15px var(--refine-gap);
}
.model-gallery { grid-area: gallery; min-width: 0; }
.model-stage { height: clamp(290px,32vw,450px); display: grid; place-items: center; background: var(--p-surface); isolation: isolate; border-radius: 10px; container-type: size; }
.photo-frame { position: relative; display: block; width: min(91cqw, calc(93cqh * var(--photo-ratio))); aspect-ratio: var(--photo-ratio); overflow: hidden; }
.photo-frame img { position: absolute; top: var(--photo-top); left: var(--photo-left); width: var(--photo-width); height: auto; max-width: none; }
.model-stage .photo-frame { mix-blend-mode: multiply; }
.model-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.model-thumbs button { width: 57px; height: 53px; border: 1px solid var(--hit-line); border-radius: 6px; background: #fff; cursor: pointer; padding: 4px; display: grid; place-items: center; container-type: size; }
.model-thumbs button[aria-pressed="true"] { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.model-heading { grid-area: heading; padding-top: clamp(4px, 2vw, 32px); min-width: 0; }
.model-summary { grid-area: summary; min-width: 0; }
.model-type { font-size: clamp(18px, 2vw, 26px); margin-top: 10px; }
.model-lead { color: var(--muted); font-size: 16px; }
.model-highlights { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 12px; border-block: 1px solid var(--hit-line); }
.model-highlights dt { font-size: 12px; color: var(--muted); }
.model-highlights dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; }
.model-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 17px; margin-top: 20px; }
.model-actions .link { gap: 9px; }
.model-hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.model-details { padding-block: clamp(32px,4vw,60px); }
.model-details h2, .model-order h2 { font-size: clamp(27px,3vw,38px); margin-bottom: 19px; }
.model-specs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(22px,4vw,54px); }
.model-specs > div { min-height: 43px; }
.spec-list { margin: 0; font-size: 14px; }
.spec-list > div { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 12px; padding: 10px; border-top: 1px solid var(--hit-line); overflow-wrap: anywhere; }
.spec-list > div:nth-child(4n+1), .spec-list > div:nth-child(4n+2) { background: var(--p-bg); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 650; }
.model-order { padding: clamp(18px, 2.6vw, 38px); margin-bottom: clamp(32px,4vw,60px); background: var(--p-bg); border: 1px solid var(--hit-line); border-radius: 10px; }
.packing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 24px clamp(24px,4vw,54px); }
.model-order h3 { font-size: 17px; margin: 0 0 10px; }
.model-order ul { padding-left: 20px; margin: 0; font-size: 15px; }
.model-order li + li { margin-top: 6px; }
.model-order p { max-width: 74ch; font-size: 14px; color: var(--muted); margin-top: 16px; }
.model-order .spec-list > div:nth-child(odd) { background: #fff; }
.model-order .spec-list > div:nth-child(even) { background: transparent; }
.model-details { scroll-margin-top: 92px; }
.contact-layout { grid-template-areas: "intro enquiry" "channels enquiry"; grid-template-rows: auto 1fr; row-gap: 30px; }
.contact-intro { grid-area: intro; min-width: 0; }
.enquiry-panel { grid-area: enquiry; min-width: 0; scroll-margin-top: calc(var(--nav) + 16px); }
.contact-channels { grid-area: channels; min-width: 0; }
.contact-channels .contact-methods { margin-top: 0; }
.contact-location { color: var(--muted); font-size: 13px; margin-top: 12px; }
.pilot-enquiry-reference { color: var(--muted); font-size: 14px; margin-top: 14px; overflow-wrap: anywhere; }
.enquiry-review { margin-top: 20px; border-top: 1px solid var(--hit-line); padding-top: 17px; }
.enquiry-review pre { font: inherit; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.about-handover h2,.brand-options .link,.model-hint { text-wrap: pretty; }

@keyframes soft-entry { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .refined-hero { min-height: 0; display: flex; flex-direction: column; }
  .refined-hero-copy { align-self: auto; padding-block: 36px 17px; }
  .refined-scene { order: 2; position: relative; z-index: auto; aspect-ratio: 1.68; }
  .refined-scene img { object-position: right center; }
  .refined-scene::after { background: linear-gradient(#101c2d,transparent 20%); }
  .about-path-grid { gap: 12px; }
}
@media (max-width: 820px) {
  .model-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  :root { --nav: 64px; }
  .nav-row { justify-content: space-between; }
  .nav-row > .btn { display: none; }
  .nav nav.is-open { padding-block: 12px 24px; }
  .nav nav.is-open > a { min-height: 54px; font-size: 20px; }
  .refined-hero-copy { padding-block: 28px 4px; }
  .refined-hero .hero-lead { margin-block: 15px 18px; }
  .refined-hero .btn { min-height: 48px; }
  .refined-hero .btn--secondary { border-color: transparent; }
  .refined-scene::after { background: linear-gradient(#101c2d,transparent 28%); }
  .quote-band .close-top { gap: 12px; padding-block: 24px; }
  .quote-actions { column-gap: 16px; row-gap: 4px; }
  .quote-band .contact-link { align-items: center; min-height: 44px; font-weight: 650; }
  .quote-mobile-contact { display: grid; font-size: 14px; }
  .quote-mobile-contact a { display: flex; align-items: center; min-height: 44px; color: var(--action); }
  .quote-mobile-contact span { color: var(--muted); }
  .closing--with-quote .footer-contact { display: none; }
  .closing .footer-grid { gap: 18px 20px; padding-block: 24px; }
  .closing .footer-grid h3 { margin-bottom: 8px; }
  .closing .footer-grid a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
  .contact-layout { grid-template-areas: "intro" "enquiry" "channels"; grid-template-rows: auto; gap: 24px; }
  .contact-main { padding-block: 32px 40px; }
  .contact-intro > p:not(.eyebrow) { margin-top: 16px; line-height: 1.6; }
  .contact-methods > a, .contact-methods > div { padding-block: 14px; }
}
@media (max-width: 700px) {
  .order-intro, .about-layout, .about-handover .wrap, .model-specs { grid-template-columns: minmax(0, 1fr); }
  .model-layout { grid-template: auto auto auto / minmax(0, 1fr); grid-template-areas: "heading" "gallery" "summary"; gap: 16px; }
  .model-specs > div:nth-child(odd) { background: var(--p-bg); }
  .model-specs > div:nth-child(even) { background: transparent; }
  .order-section .order-route h3 { min-height: 0; }
  .about-path-grid { grid-template-columns: minmax(0, 1fr); }
  .about-layout { gap: 23px; }
  .about-photo img { aspect-ratio: 1.5; }
  .model-heading { padding-top: 0; }
  .model-stage { height: clamp(215px,56vw,350px); }
  .model-summary { display: flex; flex-direction: column; align-items: flex-start; }
  .model-highlights { order: 1; width: 100%; }
  .model-actions .link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 510px) {
  .refined-hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .refined-hero .btn-row { gap: 8px; }
  .refined-hero .btn { gap: 7px; padding-inline: 11px; font-size: 13px; }
  .refined-hero .btn--secondary { padding-inline: 5px; }
  .refined-scene { aspect-ratio: 1.64; }
  .ranges-section { padding-top: 36px; }
  .range-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .catalog-nav .filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
  .catalog-nav .filters button { padding-inline: 4px; }
  .model-card-copy { padding: 12px; }
  .model-card-art { height: 150px; }
  .model-card-link { gap: 5px; }
  .quote-actions .btn, .model-actions .btn { min-width: 0; padding-inline: 14px; gap: 12px; }
  .model-actions { gap: 4px 14px; }
}
@media (max-width: 360px) {
  .model-list { grid-template-columns: minmax(0,1fr); }
  .model-card-art { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .refined-hero-copy { animation: none; }
  .range-card, .range-card img, .range-title > span, .brand-scene img, .brand-options .link, .model-card { transition: none !important; }
  .range-card:hover, .brand-scene img, .model-card:hover { transform: none !important; }
}
