/* Royal Capital Solutions, design system v2: components
   Single-class selectors. Movement only inside
   prefers-reduced-motion: no-preference; hover only on fine pointers.

   CONTENTS
   1.  Icons
   2.  Buttons: primary with arrow tab, secondary, ghost, glass, icon
   3.  Badges: live status, label pill, tag, verified mark
   4.  Header: logo, pill nav group, actions
   5.  Tiles: grey, white, deep, forest, photo
   6.  Glass cards: light, dark, frost
   7.  Data: ruler, schedule card, stat
   8.  Contour art (the logo's roofs as nested lines)
   9.  Income finder
   10. Feature row
   11. Inputs
   12. Mobile call bar
   13. Note under actions (.cta-note)
   14. Enquiry form: inline in the close and in the dialog
   15. Enquiry dialog: centred card, full-height sheet on phones
   16. Staging placeholders ([data-needs-real])
   ============================================================ */


/* 1. ICONS =================================================== */
.ic {
    width: 1.25rem; height: 1.25rem; flex-shrink: 0;
    fill: none; stroke: currentColor; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
}
.ic-sm { width: 1rem; height: 1rem; }


/* 2. BUTTONS =================================================
   Primary: solid ink with a plain arrow. Header action and hero
   primary are one family; the phone stays visibly secondary.    */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
    min-height: 3rem; padding: var(--s-2) var(--s-6);
    border: 1px solid transparent; border-radius: var(--r-control);
    font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.005em;
    line-height: 1.1; text-decoration: none; white-space: nowrap;
    user-select: none; -webkit-user-select: none;
    transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
    .btn { transition-property: background-color, border-color, color, transform; }
    .btn:not(:disabled):not([aria-disabled="true"]):active { transform: scale(0.97); transition-duration: var(--t-press); }
}

.btn-primary { background: var(--action); color: var(--on-action); }
.btn-tab { display: grid; place-items: center; }
.btn-tab .ic { transition: transform var(--t-ui) var(--ease); }
.btn-secondary { background: transparent; border-color: var(--line-control); color: var(--text); }
.btn-white { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.btn-ghost { min-height: 2.75rem; padding-inline: var(--s-2); color: var(--text); background: none; }
.btn-ghost .ic { color: var(--text-brand); }
.btn-glass {
    background: var(--glass-frost); border-color: var(--glass-dark-edge); color: var(--text-on-deep);
    -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.btn-sm { padding-inline: var(--s-4); font-size: var(--fs-xs); }
.btn-block { width: 100%; justify-content: space-between; padding-inline-start: var(--s-6); }

/* Icon button: circle, 48px hit area */
.btn-icon {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 3rem; height: 3rem; border-radius: var(--r-control);
    border: 1px solid var(--line-control); background: var(--surface); color: var(--text);
    transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.btn-icon-signal { background: var(--action-tab); border-color: var(--action-tab); color: var(--text); }

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { background: var(--action-hover); }
    .btn-secondary:hover { border-color: var(--text); background: var(--surface); }
    .btn-white:hover { background: var(--surface-mint); }
    .btn-ghost:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
    .btn-glass:hover { background: rgb(255 255 255 / 0.18); }
    .btn-icon:hover { border-color: var(--text); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .btn-primary:hover .btn-tab .ic { transform: translateX(2px); }
}

.btn:disabled, .btn[aria-disabled="true"] {
    background: var(--surface-grey); border-color: transparent; color: var(--text-3); cursor: not-allowed;
}
.btn[aria-busy="true"] .btn-tab { animation: v2-busy 0.9s var(--ease) infinite alternate; }
@keyframes v2-busy { to { opacity: 0.4; } }


/* 3. BADGES ================================================== */
/* One chip style: status, label and tag all share these values */
.live, .label, .label-on-deep, .tag {
    display: inline-flex; align-items: center; gap: var(--s-2);
    width: fit-content; min-height: 2rem;
    padding: var(--s-1) var(--s-3); border: 0; border-radius: var(--r-chip);
    background: var(--surface-mint); color: var(--text-brand-strong, var(--g-800));
    font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.live-dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--signal); }
.live[data-state="closed"] .live-dot { background: var(--text-3); }
@media (prefers-reduced-motion: no-preference) {
    .live:not([data-state="closed"]) .live-dot::after {
        content: ""; position: absolute; inset: -4px; border-radius: 50%;
        border: 1px solid var(--signal); animation: v2-ping 2.4s var(--ease) infinite;
    }
    @keyframes v2-ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
}

.verified { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 2.75rem; color: var(--text-brand); font-size: var(--fs-xs); font-weight: 600; }


/* 4. HEADER ==================================================
   Logo left, a pill group of links in the middle (Pelmatech),
   phone circle and primary on the right (Execora).             */
.hdr { position: sticky; top: 0; z-index: 50; padding-block: var(--s-3); background: var(--bg); }
.hdr-in { display: flex; align-items: center; gap: var(--s-4); }
.logo { display: flex; align-items: center; min-height: 2.75rem; flex-shrink: 1; min-width: 0; }
.logo img { width: auto; height: auto; max-height: 2.5rem; max-width: 100%; }
.navgroup { display: none; margin-inline: auto; }
.navgroup ul { display: flex; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.navgroup a {
    display: inline-flex; align-items: center; min-height: 2.75rem;
    padding: 0 var(--s-2); border-radius: var(--r-control);
    color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; text-decoration: none; white-space: nowrap;
    transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
.navgroup a[aria-current="page"] { color: var(--text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .navgroup a:hover { color: var(--text); } }
.hdr-act { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
.hdr-act .btn-primary { display: none; }
@media (min-width: 64rem) {
    .navgroup { display: block; }
    .hdr-act { margin-inline-start: 0; }
    .hdr-act .btn-primary { display: inline-flex; }
    .hdr-menu { display: none; }
}


/* 5. TILES ===================================================
   The bento's building block. 28px radius, nothing else shared:
   each tile has its own material.                              */
.tile {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column;
    min-height: 16rem; padding: clamp(var(--s-5), 1rem + 1.4vw, var(--s-10));
    border-radius: var(--r-tile); background: var(--surface-grey); color: var(--text);
}
.tile-white { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tile-deep { background: var(--surface-deep); color: var(--text-on-deep); }
.tile-forest { background: var(--surface-forest); color: var(--text-on-deep); }
.tile-photo { padding: var(--s-3); background: #2E302F; color: var(--text-on-deep); }
.tile-mint { background: var(--surface-mint); }

/* Forest tile light: soft beams (Pelmatech), static */
.tile-forest::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.10) 42%, transparent 52%),
        linear-gradient(115deg, transparent 55%, rgb(159 227 180 / 0.14) 63%, transparent 72%),
        radial-gradient(80% 70% at 100% 0%, rgb(91 196 138 / 0.35), transparent 60%);
}
.tile-deep .t-2, .tile-forest .t-2 { color: var(--text-on-deep-2); }

/* Photo tile: Robert under an emerald wash (Execora), text sits on glass */
.photo {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 15%;
}
.photo-wash {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(200deg, transparent 45%, rgb(6 42 25 / 0.55) 75%, rgb(6 42 25 / 0.85)),
        linear-gradient(90deg, rgb(31 107 52 / 0.55), transparent 55%);
    mix-blend-mode: normal;
}
.tile-photo .tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile-photo .tile-bottom { margin-top: auto; }

/* Silk canvas inside a deep tile */
.tile-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms var(--ease); }
.tile-canvas.is-ready { opacity: 0.85; }


/* 6. GLASS CARDS ============================================ */
.glass {
    position: relative; padding: var(--s-5);
    border-radius: var(--r-glass);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
}
.glass-light { background: var(--glass-light); border: 1px solid var(--glass-light-edge); color: var(--text); box-shadow: var(--shadow-2), var(--inner-light); }
.glass-dark { background: var(--glass-dark); border: 1px solid var(--glass-dark-edge); color: var(--text-on-deep); }
.glass-frost { background: var(--glass-frost); border: 1px solid var(--line-on-deep); color: var(--text-on-deep); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12); }
.glass-light .t-2 { color: var(--text-2); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-light { background: var(--surface); }
    .glass-dark { background: var(--surface-deep); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .glass, .btn-glass, .hdr { -webkit-backdrop-filter: none; backdrop-filter: none; }
    .glass-light { background: var(--surface); }
    .glass-dark, .glass-frost { background: var(--surface-deep); }
    .hdr { background: var(--bg); }
}

/* Person row inside glass: face, name, credential */
.who { display: flex; align-items: center; gap: var(--s-3); }
.face { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; outline: 2px solid var(--surface); }


/* 7. DATA ===================================================
   Ruler: a measured scale with an active range. Real program
   parameters only (12 to 24 months of statements).            */
.ruler { --ticks: 25; display: grid; gap: var(--s-2); }
.ruler-scale {
    position: relative; height: 2.25rem;
    background-image:
        linear-gradient(90deg, currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: calc(100% / (var(--ticks) - 1) - 0.001px) 0.625rem, calc((100% / (var(--ticks) - 1)) * 6 - 0.001px) 1.25rem;
    background-repeat: repeat-x;
    background-position: 0 100%, 0 100%;
    color: var(--line-on-deep);
    border-bottom: 1px solid currentColor;
}
.ruler-range {
    position: absolute; bottom: 0; height: 100%;
    left: calc(var(--from) / (var(--ticks) - 1) * 100%);
    width: calc((var(--to) - var(--from)) / (var(--ticks) - 1) * 100%);
    border-inline: 2px solid var(--text-lumen);
    background: linear-gradient(to top, rgb(159 227 180 / 0.28), rgb(159 227 180 / 0.04));
}
.ruler-labels { display: flex; justify-content: space-between; color: var(--text-on-deep-2); }
.tile-white .ruler-scale { color: var(--line-strong); }

/* Schedule card (Pelmatech): Robert's real hours */
.sched { display: grid; gap: var(--s-4); }
.sched-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.sched-times { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: var(--s-4); }
.sched-time { display: grid; gap: var(--s-1); }
.sched-time strong { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.sched-track {
    position: relative; height: 1.25rem; margin-bottom: 0.2rem;
    background-image: linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 6.25% 100%;
    color: rgb(255 255 255 / 0.28);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.sched-dur {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    padding: 0.125rem var(--s-2); border-radius: var(--r-pill);
    background: var(--surface-deep); color: var(--text-on-deep); white-space: nowrap;
}
.glass-light .sched-track { color: var(--line-strong); }
@media (max-width: 30rem) { .sched-dur { display: none; } }

/* Stat: a real figure with its label */
.stat { display: grid; gap: var(--s-2); }


/* 8. CONTOUR ART ============================================
   The logo's three roofs, each drawn as nested contour lines.  */
.contour { width: 100%; height: auto; overflow: visible; }
.contour use { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }


/* 9. INCOME FINDER ========================================== */
.finder { display: grid; gap: var(--s-5); }
.finder fieldset { display: grid; gap: var(--s-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.finder legend { padding: 0; margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
    display: inline-flex; align-items: center; min-height: 2.5rem; padding: var(--s-2) var(--s-4);
    border: 1px solid var(--line-control); border-radius: var(--r-pill); background: var(--surface);
    font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
    transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
.chip input:checked + span { background: var(--action); border-color: var(--action); color: var(--on-action); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):hover + span { border-color: var(--text); } }
.finder-out { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); min-height: 8rem; }
.finder-out a { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-brand); font-size: var(--fs-sm); font-weight: 600; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
@media (prefers-reduced-motion: no-preference) {
    .finder-out.is-swapping { animation: v2-swap 280ms var(--ease); }
    @keyframes v2-swap { from { opacity: 0; transform: translateY(4px); } }
}


/* 10. FEATURE ROW (Pelmatech) =============================== */
.features { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature { position: relative; display: grid; align-content: start; gap: var(--s-2); padding: var(--s-5) var(--s-5) var(--s-5) 0; font-size: var(--fs-sm); }
.feature .ic { color: var(--text-brand); }
.feature::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 3rem; height: 2px; background: transparent; }
.feature:first-child::before { background: var(--signal); }


/* 11. INPUTS ================================================ */
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-xs); font-weight: 600; }
.input {
    width: 100%; min-height: 3rem; padding: var(--s-3) var(--s-4);
    border: 1px solid var(--line-control); border-radius: var(--r-sm); background: var(--surface);
    font-size: 1rem; transition: border-color var(--t-ui) var(--ease);
}
.input::placeholder { color: var(--text-3); opacity: 1; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field-error .input { border-color: var(--error); }
.err { display: flex; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 600; color: var(--error); }
@media (hover: hover) and (pointer: fine) { .input:hover { border-color: var(--text); } }


/* 12. MOBILE CALL BAR ======================================= */
.callbar {
    position: fixed; inset: auto var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom, 0px)) var(--s-3); z-index: 40;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2);
    padding: var(--s-2); border-radius: var(--r-pill);
    background: rgb(12 18 15 / 0.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: var(--shadow-2);
}
.callbar .btn-icon { width: 2.75rem; height: 2.75rem; }
@media (min-width: 64rem) { .callbar { display: none; } }


/* 13. NOTE UNDER ACTIONS ====================================
   Says what the button above it does. A hairline on its start
   edge ties it to the button group; smaller and quieter than
   any sentence around it.                                       */
.cta-note {
    max-width: 44ch; padding-inline-start: var(--s-3);
    border-inline-start: 1px solid var(--line-strong);
    font-size: var(--fs-xs); line-height: 1.5; color: var(--text-2); text-wrap: pretty;
}
.tile-deep .cta-note { border-color: rgb(255 255 255 / 0.22); color: var(--text-on-deep-2); }
.hx-actions + .cta-note { margin-top: calc(var(--s-1) * -1); }


/* 14. ENQUIRY FORM ==========================================
   One form, two homes: the close's .enq-slot and the dialog.
   Two columns once the form itself is 30rem wide, whatever
   holds it. Errors sit under their field with an icon.         */
.enq { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.enq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
/* A long option in a dropdown must never set the form's minimum width: fields shrink to their column */
.enq .field, .enq .input { min-width: 0; max-width: 100%; }
.enq select.input { text-overflow: ellipsis; }
@container (min-width: 30rem) {
    .enq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
    .enq-wide { grid-column: 1 / -1; }
}
.enq .field { align-content: start; gap: var(--s-2); }
.enq .field label { color: var(--text); }
.enq-opt { font-weight: 400; color: var(--text-3); }
.enq select.input {
    -webkit-appearance: none; appearance: none; padding-inline-end: var(--s-10); cursor: pointer;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F4A44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right var(--s-3) center / 1.25rem;
}
.enq textarea.input { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.enq-hint { font-size: var(--fs-xs); line-height: 1.45; color: var(--text-3); }
.enq .err { align-items: flex-start; line-height: 1.4; }
.enq .err .ic { margin-top: 1px; }
.enq[hidden], .enq .err[hidden], .enq .field[hidden] { display: none; }
.enq [aria-invalid="true"] { border-color: var(--error); }
.enq-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-1) var(--s-3); align-items: start; }
.enq-consent input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--g-600); cursor: pointer; }
.enq-consent label { font-size: var(--fs-xs); font-weight: 400; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.enq-consent .err { grid-column: 2; }
.enq-consent:has([aria-invalid="true"]) input { outline: 2px solid var(--error); outline-offset: 2px; }
.enq-send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.enq-send .btn { min-height: 3.25rem; }
.enq-privacy { max-width: 32ch; font-size: var(--fs-xs); line-height: 1.45; color: var(--text-2); }
.enq-privacy a { color: var(--text); font-weight: 600; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.enq-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.enq-hp input { width: 1px; min-width: 0; }
@container (max-width: 29.99rem) { .enq-send .btn { width: 100%; justify-content: space-between; } }

/* Confirmation: replaces the form in place */
.enq-done { display: grid; justify-items: start; gap: var(--s-3); padding-block: var(--s-4); }
.enq-done[hidden] { display: none; }
.enq-done:focus { outline: none; }
.enq-done-mark { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: var(--s-2); border-radius: 50%; background: var(--surface-mint); color: var(--text-brand); }
.enq-done-mark .ic { width: 1.5rem; height: 1.5rem; stroke-width: 2; }
.enq-done p { max-width: 46ch; font-size: var(--fs-sm); color: var(--text-2); }
.enq-done .btn { margin-top: var(--s-2); }

/* The slot in the deep close: a white sheet, the page's one form */
.enq-slot { scroll-margin-top: calc(var(--hdr-h, 4.5rem) + var(--s-4)); }
.tile-deep .enq-slot {
    padding: clamp(var(--s-4), 0.6rem + 1.4vw, var(--s-8)); border-radius: var(--r-card);
    background: var(--surface); color: var(--text);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 24px 48px rgb(3 20 12 / 0.35);
}
.tile-deep .enq-slot :focus-visible { outline-color: var(--focus); }


/* 15. ENQUIRY DIALOG ========================================
   Deep head with the goal's heading, white body with the form.
   Phones get a full-height sheet. Motion answers the click
   only: rise and fade in, instant close.                       */
html.enq-open { overflow: hidden; }
.enq-dialog {
    width: min(40rem, calc(100% - var(--s-8))); max-width: none;
    max-height: calc(100vh - var(--s-12)); margin: auto; padding: 0;
    max-height: calc(100vh - var(--s-12)); max-height: calc(100dvh - var(--s-12)); margin: auto; padding: 0;
    border: 0; border-radius: var(--r-card); background: var(--surface); color: var(--text);
    box-shadow: 0 32px 80px rgb(3 20 12 / 0.45);
    overflow: auto; overscroll-behavior: contain;
    scrollbar-width: none; -ms-overflow-style: none;
}
.enq-dialog::-webkit-scrollbar { display: none; }
.enq-dialog::backdrop { background: rgb(6 42 25 / 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.enq-dialog-head {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4); align-items: start;
    padding: var(--card-pad); padding-block-end: var(--s-6);
    background: var(--surface-deep); color: var(--text-on-deep);
}
.enq-dialog-head::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 28rem; aspect-ratio: 1; top: -70%; right: -18%; border-radius: 50%;
    background: linear-gradient(215deg, rgb(91 196 138 / 0.5), rgb(34 165 91 / 0.12) 50%, transparent 72%);
}
.enq-dialog-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.enq-dialog-head p { grid-column: 1 / -1; max-width: 48ch; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-on-deep-2); text-wrap: pretty; }
.enq-close {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: calc(var(--s-2) * -1) calc(var(--s-2) * -1) 0 0;
    border: 1px solid rgb(255 255 255 / 0.22); border-radius: var(--r-control);
    background: rgb(255 255 255 / 0.08); color: var(--text-on-deep);
    transition: background-color var(--t-ui) var(--ease);
}
.enq-close:focus-visible { outline-color: var(--text-lumen); }
.enq-dialog-body { padding: var(--card-pad); padding-block-start: var(--s-6); }
@media (hover: hover) and (pointer: fine) { .enq-close:hover { background: rgb(255 255 255 / 0.18); } }
@media (max-width: 47.99rem) {
    .enq-dialog { width: 100%; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
    .enq-dialog-head { position: sticky; top: 0; z-index: 1; padding-top: calc(var(--card-pad) + env(safe-area-inset-top, 0px)); }
    .enq-dialog-body { padding-bottom: calc(var(--s-8) + env(safe-area-inset-bottom, 0px)); }
}
@keyframes enq-fade { from { opacity: 0; } }
@keyframes enq-rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: no-preference) {
    .enq-dialog[open] { animation: enq-rise 260ms var(--ease); }
    .enq-dialog[open]::backdrop { animation: enq-fade 260ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
    .enq-dialog[open], .enq-dialog[open]::backdrop { animation: enq-fade 160ms linear; }
}


/* 15b. REJECTED-REQUEST POPUP ================================
   Opened by js/form.js when the spam filter or the Turnstile
   check turns a request away. Same dialog family as above, so a
   real person gets a ready-written email or a call instead of a
   dead end. The email is the one filled button. Phones get a
   bottom sheet, not the full-height form sheet.                 */
.enq-blocked { width: min(30rem, calc(100% - var(--s-8))); }
.enq-blocked-actions { display: grid; gap: var(--s-3); }
.enq-blocked-actions .btn {
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.125rem;
    width: 100%; min-height: 3.5rem; padding-block: var(--s-3); text-align: start; white-space: normal;
}
.enq-blocked-actions .btn span { font-weight: 400; }
.enq-blocked-actions .btn-ghost { flex-direction: row; justify-content: center; align-items: center; min-height: 2.75rem; text-align: center; }
@media (max-width: 47.99rem) {
    .enq-blocked { width: 100%; height: auto; max-height: calc(100dvh - var(--s-8)); margin: auto 0 0; border-radius: var(--r-card) var(--r-card) 0 0; }
    .enq-blocked .enq-dialog-head { position: static; }
    .enq-blocked .enq-dialog-body { padding-bottom: calc(var(--card-pad) + env(safe-area-inset-bottom, 0px)); }
}


/* 16. STAGING PLACEHOLDERS ==================================
   [data-needs-real] waits on Robert. With `hidden` it takes no
   space at all; a visible section gets a dashed frame and a tag
   so nobody mistakes it for finished. Never shipped.           */
[data-needs-real][hidden] { display: none !important; }
.hm-sec[data-needs-real]:not([hidden]) { position: relative; }
.hm-sec[data-needs-real]:not([hidden])::after {
    content: ""; position: absolute; pointer-events: none;
    inset: calc(var(--sec-gap) - var(--s-5)) calc(var(--page) - var(--s-3)) calc(var(--s-5) * -1);
    border: 1.5px dashed var(--line-control); border-radius: var(--r-card);
}
.hm-sec[data-needs-real]:not([hidden])::before {
    content: "Needs real content · " attr(data-needs-real); position: absolute; z-index: 1;
    top: calc(var(--sec-gap) - var(--s-5)); inset-inline-start: calc(var(--page) + var(--s-3));
    transform: translateY(-50%); padding: var(--s-1) var(--s-3); border-radius: var(--r-chip);
    background: var(--text); color: var(--on-action);
    font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--tr-mono); line-height: 1.4;
}
