.rex {
    --rex-ink: var(--color-text-brown, #4a4a43);
    --rex-navy: var(--color-navy, #2b4060);
    --rex-paper: var(--color-cream, #f3f3f2);
    --rex-line: #d9dcd9;
    color: var(--rex-ink);
    font-family: var(--font-secondary, 'Nunito', sans-serif);
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.rex *, .rex *::before, .rex *::after { box-sizing: border-box; }
.rex [hidden] { display: none !important; }
.rex :is(h1, h2, h3) {
    color: var(--rex-navy);
    font-family: var(--font-primary, 'Libre Caslon Display', Georgia, serif);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.02em;
}
.rex :is(a, button):focus-visible { outline: 3px solid var(--rex-navy); outline-offset: 5px; }
.rex a { color: var(--rex-navy); text-underline-offset: .22em; scroll-margin-block: 170px 24px; }
.rex-showroom { border-top: 1px solid var(--rex-line); margin-block: 64px 32px; padding-top: 56px; scroll-margin-top: 170px; }
.rex .rex-eyebrow { font-size: 11px; letter-spacing: .15em; font-weight: 700; margin: 0 0 18px; }
.rex .rex-intro { max-width: 740px; margin-bottom: 36px; }
.rex .rex-intro h2 { font-size: clamp(32px, 4.5vw, 54px); margin: 0 0 22px; }
.rex .rex-intro > p:last-child { max-width: 640px; margin: 0; }
.rex .rex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rex .rex-card { border: 1px solid var(--rex-line); background: #fff; display: flex; flex-direction: column; min-width: 0; margin: 0; transition: box-shadow 0.22s ease; }
.rex .rex-card:hover { box-shadow: 0 6px 26px rgba(43,64,96,.12); }
.rex .rex-card-image { display: block; overflow: hidden; height: 0; padding-bottom: 56.25%; position: relative; }
.rex .rex-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transform: scale(1.12); transform-origin: center center; will-change: transform; transition: transform .1s linear; }
.rex .rex-card-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.rex .rex-card-number { color: var(--rex-navy); font-size: 12px; margin-bottom: 24px; letter-spacing: .12em; }
.rex .rex-card h3 { font-size: clamp(28px, 3.5vw, 38px); margin: 0 0 20px; }
.rex .rex-card h3 a { text-decoration: none; }
.rex .rex-card h3 a:hover { text-decoration: underline; }
.rex .rex-card-summary { margin: 0 0 20px; }
.rex .rex-card-audience { font-size: 14px; line-height: 1.6; border-top: 1px solid var(--rex-line); padding-top: 18px; margin: auto 0 0; }
/* ── Price badge on card ─────────────────────────────────────── */
.rex-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--rex-line);
}
.rex-card-audience + .rex-card-price { border-top: 0; padding-top: 10px; }
.rex-card-price-from {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: .6;
    text-transform: uppercase;
}
.rex-card-price-value { color: var(--rex-navy); font-size: 16px; font-weight: 700; }
/* ── Showroom global price strip ─────────────────────────────── */
.rex .rex-showroom-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 20px;
    background: var(--rex-paper);
    border-left: 3px solid var(--rex-navy);
    padding: 16px 22px;
    margin: 0 0 32px;
}
.rex .rex-showroom-price-value {
    color: var(--rex-navy);
    font-family: var(--font-primary, 'Libre Caslon Display', Georgia, serif);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 400;
    line-height: 1.1;
}
.rex .rex-showroom-price-note { font-size: 14px; margin: 0; max-width: 480px; }
/* ── Card link → button ──────────────────────────────────────── */
.rex .rex-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    border: 1px solid var(--rex-navy);
    background: var(--rex-navy);
    color: #fff;
    transition: background .18s;
    margin-top: auto;
}
.rex .rex-card-link:hover { background: var(--rex-paper); color: var(--rex-navy); border-color: var(--rex-navy); }
.rex .rex-card-link > span[aria-hidden] { font-size: 18px; flex-shrink: 0; }
.rex .rex-note { max-width: 740px; margin: 28px 0 0; font-size: 14px; }
/* ── Card animations ─────────────────────────────────────────── */
.rex-card.rex-animate { opacity: 0; transform: translateY(18px); transition: opacity 0.46s ease, transform 0.46s ease; }
.rex-card.rex-animate.rex-visible { opacity: 1; transform: translateY(0); }
/* ── Detail shell ────────────────────────────────────────────── */
.rex-detail-shell { max-width: 1136px; padding: 180px 28px 80px; margin: auto; }
.rex .rex-breadcrumb { margin-bottom: 48px; }
.rex .rex-breadcrumb a, .rex .rex-return { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; text-decoration: underline; }
.rex .rex-detail-heading { max-width: 850px; margin-bottom: 42px; }
.rex .rex-detail-heading h1 { font-size: clamp(40px, 6.5vw, 80px); margin: 0 0 24px; }
.rex .rex-lead { font-size: clamp(18px, 2.5vw, 22px); max-width: 700px; margin-bottom: 28px; }
.rex .rex-button { display: inline-flex; justify-content: center; align-items: center; padding: 15px 25px; min-height: 48px; border: 1px solid var(--rex-navy); color: #fff; background: var(--rex-navy); font-size: 14px; text-decoration: none; gap: 10px; line-height: 1.5; text-align: center; }
.rex .rex-button:hover { background: #1e304b; color: #fff; }
.rex .rex-contact-hint { font-size: 13px; margin: 12px 0 0; }
.rex .rex-detail-image { margin-bottom: 40px; overflow: hidden; max-height: 520px; position: relative; }
.rex .rex-detail-image img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; transform: scale(1.1); transform-origin: center center; will-change: transform; transition: transform .1s linear; }
.rex .rex-description { max-width: 760px; margin-bottom: 40px; }
.rex .rex-description > h2 { font-size: 32px; }
.rex .rex-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.rex .rex-fact { border-top: 1px solid var(--rex-line); padding: 26px 0 24px; }
.rex .rex-fact h2 { font-size: 28px; margin: 0 0 16px; }
.rex .rex-fact p { margin: 0; }
.rex .rex-next { background: var(--rex-paper); padding: clamp(28px, 5vw, 48px); margin-top: 32px; }
.rex .rex-next h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 20px; }
.rex .rex-next > p:not(.rex-eyebrow, .rex-contact-hint) { max-width: 620px; }
.rex .rex-return { margin-top: 24px; }
.rex .rex-language-note { background: var(--rex-paper); padding: 16px; }
/* ── Price bar on detail ─────────────────────────────────────── */
.rex-price-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    background: var(--rex-paper);
    border-left: 3px solid var(--rex-navy);
    padding: 16px 22px;
    margin: 0 0 36px;
}
.rex-price-bar-value {
    flex: 0 0 auto;
    color: var(--rex-navy);
    font-family: var(--font-primary, 'Libre Caslon Display', Georgia, serif);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 400;
    line-height: 1.1;
}
.rex-price-bar-value span {
    display: block;
    font-family: var(--font-secondary, 'Nunito', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .65;
    margin-bottom: 3px;
}
.rex-price-bar-note { font-size: 14px; margin: 0; max-width: 480px; }
/* ── Request form ────────────────────────────────────────────── */
.rex-request { background: var(--rex-paper); margin-top: 48px; padding: clamp(28px, 5vw, 48px); scroll-margin-top: 170px; }
.rex-request > :is(h2, p, .rex-request-form) { max-width: 680px; }
.rex-request-progress { color: var(--rex-navy); font-size: 13px; font-weight: 700; letter-spacing: .08em; margin: 22px 0 0; text-transform: uppercase; }
.rex-request-form { background: #fff; border: 1px solid var(--rex-line); margin-top: 20px; padding: clamp(24px, 4vw, 36px); }
.rex-request fieldset { border: 0; margin: 0; padding: 0; }
.rex-request fieldset fieldset { border-top: 1px solid var(--rex-line); margin-top: 24px; padding-top: 20px; }
.rex-request legend { font-size: clamp(25px, 3vw, 32px); margin-bottom: 16px; }
.rex-request label { display: block; font-weight: 700; margin: 18px 0 0; }
.rex-request input, .rex-request select, .rex-request textarea { background: #fff; border: 1px solid #aeb4b8; border-radius: 0; color: var(--rex-ink); display: block; font: inherit; line-height: 1.5; margin-top: 7px; min-height: 48px; padding: 11px 12px; width: 100%; }
.rex-request input:focus, .rex-request select:focus, .rex-request textarea:focus { border-color: var(--rex-navy); outline: 3px solid color-mix(in srgb, var(--rex-navy) 25%, transparent); outline-offset: 1px; }
.rex-request input[type=radio], .rex-request input[type=checkbox] { accent-color: var(--rex-navy); display: inline-block; min-height: 0; width: auto; }
.rex-request fieldset fieldset label { font-weight: 400; }
.rex-request-date { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.rex-request-date legend, .rex-request-date-input, .rex-request-date > input { grid-column: 1 / -1; }
.rex-request-consent { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.rex-request-consent input { flex: 0 0 auto; margin-top: 5px !important; }
.rex-request textarea { min-height: 128px; resize: vertical; }
.rex-request button { background: var(--rex-navy); border: 1px solid var(--rex-navy); color: #fff; cursor: pointer; font: inherit; font-weight: 700; margin-top: 28px; min-height: 48px; padding: 12px 22px; }
.rex-request button:hover { background: #1e304b; }
.rex-request button:disabled { opacity: .65; }
.rex-request-back { background: transparent !important; color: var(--rex-navy) !important; }
.rex-request-review { background: var(--rex-paper); margin: 16px 0 0; padding: 20px; }
.rex-request-review dt { color: var(--rex-navy); font-weight: 700; margin-top: 14px; }
.rex-request-review dt:first-child { margin-top: 0; }
.rex-request-review dd { margin: 2px 0 0; white-space: pre-wrap; }
.rex-request-help { font-size: 14px; margin: 16px 0 0; }
.rex-request-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.rex-request-actions button { margin-top: 28px; }
.rex-request-status { font-weight: 700; margin: 0 0 16px; }
.rex-honeypot { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.rex .rex-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* ── Send button loading spinner ─────────────────────────────── */
.rex-request-send[aria-busy="true"] { cursor: wait; }
.rex-request-send[aria-busy="true"]::after {
    content: '';
    display: inline-block;
    width: 13px; height: 13px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rex-spin .6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes rex-spin { to { transform: rotate(360deg); } }
/* ── Sent state: hide form, show success ─────────────────────── */
.rex-request.rex-sent > :not(.rex-request-success) { display: none !important; }
/* ── Success section ─────────────────────────────────────────── */
.rex-request-success { padding-top: 4px; }
.rex-request-success h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; }
.rex-sent-reference { color: var(--rex-navy); font-size: 17px; font-weight: 700; margin: 0 0 24px; }
.rex-sent-review { background: #fff; border: 1px solid var(--rex-line); margin: 0 0 24px; padding: 20px; max-width: 640px; }
.rex-sent-review dt { color: var(--rex-navy); font-weight: 700; margin-top: 14px; }
.rex-sent-review dt:first-child { margin-top: 0; }
.rex-sent-review dd { margin: 2px 0 0; white-space: pre-wrap; }
.rex-sent-next { font-size: 15px; margin: 0 0 28px; max-width: 560px; }
.rex-sent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rex-sent-print {
    background: transparent;
    border: 1px solid var(--rex-navy);
    color: var(--rex-navy);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    min-height: 48px;
    padding: 12px 22px;
    transition: background .18s, color .18s;
}
.rex-sent-print:hover { background: var(--rex-navy); color: #fff; }
/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .rex-showroom { margin-top: 40px; padding-top: 36px; }
    .rex .rex-grid, .rex .rex-facts { grid-template-columns: 1fr; }
    .rex-detail-shell { padding: 140px 20px 48px; }
    .rex .rex-breadcrumb { margin-bottom: 28px; }
    .rex .rex-button { width: 100%; }
    .rex-request-date { grid-template-columns: 1fr; }
    .rex-request-actions > button { width: 100%; }
    .rex-sent-actions { flex-direction: column; }
    .rex-sent-actions > * { width: 100%; justify-content: center; }
}
/* ── Print / download as PDF ─────────────────────────────────── */
@media print {
    body * { visibility: hidden; }
    .rex-request-success, .rex-request-success * { visibility: visible; }
    .rex-request-success {
        background: #fff;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        padding: 24px;
    }
    .rex-sent-actions { display: none !important; }
}
/* ── Form step transitions ───────────────────────────────────── */
@keyframes rex-step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rex-step-entering { animation: rex-step-in 0.24s ease both; }
/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .rex { scroll-behavior: auto; }
    .rex-card.rex-animate { opacity: 1; transform: none; transition: none; }
    .rex .rex-card-image img, .rex .rex-detail-image img { will-change: auto; }
    .rex-request-send[aria-busy="true"]::after { animation: none; }
    .rex-step-entering { animation: none; }
}
