/* The public site's one stylesheet (C07 onwards), moved from mockups/qatana-landing-mockup.html and cleaned:
   logical properties only (DESIGN.md §0.2; the floating button's position is one of the two physical exceptions, §11),
   role tokens only (§0.1), every value a --q-* variable from tokens.css. No build step: the layout hashes the URL
   (asp-append-version). Each card adds the sections it moves from the mock-up. */

/* ============================================================
   DECORATION COLOURS (ADR 0018 §3, owner's decision 2026-10-29)
   The one place in this file that points at ramp steps: the mock-up's decorative layers have no role token. Only
   decoration reads these (the page light below; the patterns of C08 and C09 join here). No component does: components
   use role tokens only (§0.1). Values exactly as approved in the mock-up.
   ============================================================ */
:root {
  /* The page ground: a deeper surface lit from two corners, fixed to the screen (body::before, no script). */
  --m-page-glow:
    radial-gradient(ellipse 80% 70% at 80% 100%, var(--q-color-teal-100), transparent 75%),
    radial-gradient(ellipse 55% 45% at 5% 0%, color-mix(in srgb, var(--q-color-teal-50) 90%, transparent), transparent 70%),
    var(--q-surface-page);
  /* The moving page light (page-glow.js): the ground, then the light from centre to edge. */
  --m-glow-ground: var(--q-surface-page);
  --m-glow-a: var(--q-color-teal-100);
  --m-glow-b: var(--q-color-teal-50);
  --m-glow-c: var(--q-surface-page);
  /* The canvas fades in over the still picture slowly, so the first paint never flickers (mock-up value). */
  --m-glow-fade: 3s cubic-bezier(0.45, 0, 0.55, 1);
  /* The hero (C08): its ground under the picture, the line colour, the veil behind the copy, its title and lead. */
  --m-hero-bg: var(--q-surface-sunken);
  --m-hero-line: var(--q-color-teal-700);
  --m-hero-veil: var(--q-surface-page);
  --m-hero-title: var(--q-text-heading);
  --m-hero-lead: var(--q-text-secondary);
  /* The hero still under the footage: the theme in effect only, so the other one is never fetched (B2). */
  --m-hero-still: url("/media/hero/istanbul-day.webp");
  --m-hero-still-tall: url("/media/hero/istanbul-day-portrait.webp");
  /* The ground of a photo slot before its image arrives, and the districts' toggles in the search panel (C08). */
  --m-media: var(--q-color-neutral-100);
  --m-chip-bg: var(--q-color-neutral-100);
  /* The windows lighting up as a building is chosen in the search panel: brand gold on the teal body, never on the
     light surface (rule 3). */
  --m-flash: var(--q-color-brand-gold);
  /* The patterns (§8): the chamfer field behind the projects (C08) and the Kufic key of the request section (C09). */
  --m-kufic-ink: var(--q-color-teal-800);
  --m-kufic-opacity: 0.12;
  /* The halo behind the bare arrows over a card photo: the card ground (mock-up). */
  --m-card-bg: var(--q-surface-card);
  /* The project page photo's frame, under its blurred copy: the brand's darkest teal in both themes (owner, 2026-11-13). */
  --m-photo-frame: var(--q-color-teal-950);
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --m-page-glow:
      radial-gradient(ellipse 80% 70% at 80% 100%, color-mix(in srgb, var(--q-color-teal-500) 65%, transparent), color-mix(in srgb, var(--q-color-teal-700) 35%, transparent) 45%, transparent 75%),
      radial-gradient(ellipse 60% 50% at 5% 0%, color-mix(in srgb, var(--q-color-teal-700) 60%, transparent), transparent 70%),
      linear-gradient(180deg, var(--q-color-teal-950), var(--q-surface-page) 55%, var(--q-color-teal-950));
    --m-glow-ground: var(--q-surface-page);
    --m-glow-a: var(--q-color-teal-600);
    --m-glow-b: var(--q-color-teal-800);
    --m-glow-c: var(--q-color-teal-950);
    --m-hero-bg: var(--q-color-teal-900);
    --m-hero-line: var(--q-color-brand-gold);
    --m-hero-veil: var(--q-overlay-scrim);
    --m-hero-title: var(--q-text-on-inverse);
    --m-hero-lead: var(--q-text-secondary-on-inverse);
    --m-hero-still: url("/media/hero/istanbul-night.webp");
    --m-hero-still-tall: url("/media/hero/istanbul-night-portrait.webp");
    --m-media: var(--q-color-neutral-900);
    --m-chip-bg: var(--q-color-neutral-900);
    --m-flash: var(--q-color-gold-100);
    --m-kufic-ink: var(--q-color-brand-cream);
    --m-kufic-opacity: 0.12;
    --m-card-bg: color-mix(in srgb, white 3%, var(--q-color-neutral-900));
  }
}
:root[data-theme="dark"] {
  --m-page-glow:
    radial-gradient(ellipse 80% 70% at 80% 100%, color-mix(in srgb, var(--q-color-teal-500) 65%, transparent), color-mix(in srgb, var(--q-color-teal-700) 35%, transparent) 45%, transparent 75%),
    radial-gradient(ellipse 60% 50% at 5% 0%, color-mix(in srgb, var(--q-color-teal-700) 60%, transparent), transparent 70%),
    linear-gradient(180deg, var(--q-color-teal-950), var(--q-surface-page) 55%, var(--q-color-teal-950));
  --m-glow-ground: var(--q-surface-page);
  --m-glow-a: var(--q-color-teal-600);
  --m-glow-b: var(--q-color-teal-800);
  --m-glow-c: var(--q-color-teal-950);
  --m-hero-bg: var(--q-color-teal-900);
  --m-hero-line: var(--q-color-brand-gold);
  --m-hero-veil: var(--q-overlay-scrim);
  --m-hero-title: var(--q-text-on-inverse);
  --m-hero-lead: var(--q-text-secondary-on-inverse);
  --m-hero-still: url("/media/hero/istanbul-night.webp");
  --m-hero-still-tall: url("/media/hero/istanbul-night-portrait.webp");
  --m-media: var(--q-color-neutral-900);
  --m-chip-bg: var(--q-color-neutral-900);
  --m-flash: var(--q-color-gold-100);
  --m-kufic-ink: var(--q-color-brand-cream);
  --m-kufic-opacity: 0.12;
  --m-card-bg: color-mix(in srgb, white 3%, var(--q-color-neutral-900));
}

/* ============================================================
   MOCK-UP MEASURES (C08, ADR 0019)
   The approved mock-up's values that have no token, each named once here so that no rule below writes a bare number
   for a size, a ratio or a curve. Values exactly as in the mock-up.
   ============================================================ */
:root {
  /* The hero title is the one heading above the scale: 30 → 46px (D15). Its lead: the h3 size at line-height 1.6 (D25). */
  --m-hero-title-size: clamp(1.875rem, 1.45rem + 1.9vw, 2.875rem);
  --m-hero-lead-leading: 1.6;
  --m-hero-copy-max: 60rem;
  --m-hero-logo-size: clamp(5.5rem, 4rem + 4vw, 7.5rem);
  --m-hero-logo-ratio: 495.997 / 609.914;
  --m-hero-fold-gap: clamp(1.5rem, 4svh, 3rem);
  /* Half the search panel before hero.js measures it, at each width the panel changes at (measured in C08: about 580px
     tall on phones, 530px from 600px, 410px from 960px). The mock-up's single 4.5rem moved the hero copy when the
     script corrected it (a 0.18 layout shift on a phone). */
  --m-search-half-fallback: 18rem;
  --m-hero-fade-min: 6rem;
  /* The project card: its 4:3 picture (§12), the price and unit figures at line-height 1.2, the 2px between a caption
     and its figure, the photo dots and the dimmed arrow at the strip's end. */
  --m-card-art-ratio: 4 / 3;
  --m-figure-leading: 1.2;
  --m-stack-tight: 2px;
  --m-dot-size: 6px;
  --m-dot-gap: 6px;
  --m-dot-rest-opacity: 0.35;
  --m-nav-disabled-opacity: 0.3;
  /* The chamfer field (D30): its tile, and how far above the cards bottom edge it ends. */
  --m-chamfer-size: clamp(432px, 45vw, 648px);
  --m-chamfer-end: 10rem;
}

/* ============================================================
   BASE
   The shared base, type styles, icons and buttons are in base.css (C12). Here: the public page's own room.
   ============================================================ */
body {
  /* Reserve room so the floating WhatsApp button never covers the last line of content. */
  padding-block-end: calc(var(--q-size-fab) + var(--q-size-fab-offset) * 2);
}

/* ============================================================
   PAGE LIGHT (mock-up): the ground behind every page
   ============================================================ */
/* The gradient sits on its own fixed layer behind everything, so it stays put while the content scrolls
   (background-attachment: fixed is unreliable on phones). This is the whole picture without script. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--m-page-glow); }
/* With script, a canvas paints the same ground with lights that drift (page-glow.js) and fades in over the picture
   above. Reduced motion: the script draws one still frame. */
.page-glow { position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 100%; block-size: 100lvh; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity var(--m-glow-fade); }
.page-glow.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .page-glow { transition: none; } }
@media print { .page-glow { display: none; } }

/* Floating WhatsApp button (§10.3). Physical bottom-right in every language (D1: the thumb zone does not follow the
   reading direction), one of the two physical exceptions of §11. Below md only; header.js hides it while a
   [data-wa-primary] button is on screen. */
.q-fab {
  position: fixed; z-index: var(--q-z-index-fab);
  bottom: calc(var(--q-size-fab-offset) + env(safe-area-inset-bottom, 0px));
  right: calc(var(--q-size-fab-offset) + env(safe-area-inset-right, 0px));
  display: inline-flex; align-items: center; gap: var(--q-space-2); min-block-size: var(--q-size-fab);
  padding-inline: var(--q-space-4) var(--q-space-5); font-size: var(--q-type-small-size); font-weight: var(--q-font-weight-medium);
  border-radius: var(--q-radius-base); background: var(--q-whatsapp-bg); color: var(--q-whatsapp-text);
  box-shadow: var(--q-shadow-4); text-decoration: none;
  transition: background-color var(--q-motion-duration-fast) var(--q-motion-easing-standard),
              opacity var(--q-motion-duration-base) var(--q-motion-easing-standard),
              visibility var(--q-motion-duration-base) var(--q-motion-easing-standard);
}
.q-fab:hover { background: var(--q-whatsapp-bg-hover); color: var(--q-whatsapp-text); }
.q-fab:active { background: var(--q-whatsapp-bg-active); }
.q-fab.is-hidden { opacity: 0; visibility: hidden; }

/* ============================================================
   HEADER (§10.9): icon logo, theme toggle, WhatsApp. No section links, no line under it (D9, D14).
   ============================================================ */
.q-header {
  position: sticky; inset-block-start: env(safe-area-inset-top, 0px); z-index: var(--q-z-index-header);
  display: flex; align-items: center; gap: var(--q-space-4); min-block-size: var(--q-size-header-height);
  padding-inline: var(--q-space-gutter); background: transparent;
  transition: background-color var(--q-motion-duration-base) var(--q-motion-easing-standard), box-shadow var(--q-motion-duration-base) var(--q-motion-easing-standard);
}
/* Over a hero picture the header is transparent; once content reaches it, it takes the page surface (header.js).
   Without script, and on a page with no hero, it is solid from the start. */
.is-solid .q-header, :root:not(.js) .q-header { background: var(--q-surface-page); box-shadow: var(--q-shadow-1); }
.q-header-logo { display: block; flex: none; block-size: var(--q-logo-icon-header-height); padding: 0; }
.q-header-end { display: flex; align-items: center; gap: var(--q-space-2); margin-inline-start: auto; }
.q-header-cta { display: none; }

/* Theme-aware logo: light surfaces get 01/03, dark surfaces get 02/05 (approved pairings, §9). */
.q-when-dark { display: none; }
.q-when-light, .q-when-dark { block-size: 100%; }
.q-when-light img, .q-when-dark img { display: block; block-size: 100%; inline-size: auto; }
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .q-when-light { display: none; }
  :root:not([data-theme="light"]) .q-when-dark { display: block; }
}
@media screen {
  :root[data-theme="dark"] .q-when-light { display: none; }
  :root[data-theme="dark"] .q-when-dark { display: block; }
}

/* Logo hand-off (D16): while a hero shows its large copy of the logo, the header logo is hidden, not just transparent,
   so an invisible link never takes focus; it fades in once the copy reaches the header. Header WhatsApp hand-off (D26),
   the same way. Opacity only, no movement. Without a hero, or without script, both simply show. */
.has-hero-logo .q-header-logo { opacity: 0; visibility: hidden;
  transition: opacity var(--q-motion-duration-reveal) var(--q-motion-easing-standard), visibility 0s linear var(--q-motion-duration-reveal); }
.logo-docked .q-header-logo { opacity: 1; visibility: visible; transition: opacity var(--q-motion-duration-reveal) var(--q-motion-easing-standard), visibility 0s; }
.has-hero-cta .q-header-cta { opacity: 0; visibility: hidden;
  transition: opacity var(--q-motion-duration-reveal) var(--q-motion-easing-standard), visibility 0s linear var(--q-motion-duration-reveal); }
.cta-docked .q-header-cta { opacity: 1; visibility: visible; transition: opacity var(--q-motion-duration-reveal) var(--q-motion-easing-standard), visibility 0s; }

/* ============================================================
   FOOTER (§10.10): the teal band, lockup 02, contact, social marks, one hairline above the copyright line.
   ============================================================ */
.q-footer {
  display: grid; gap: var(--q-space-6);
  padding-block: var(--q-space-12) var(--q-space-6);
  padding-inline: max(var(--q-space-gutter), calc((100% - var(--q-layout-container-max)) / 2 + var(--q-space-gutter)));
  background: var(--q-surface-inverse); color: var(--q-text-on-inverse);
}
.foot-brand { display: grid; gap: var(--q-space-3); justify-items: start; }
.q-footer-logo { display: block; block-size: var(--q-logo-lockup-min-height); }
.q-footer-logo img { display: block; block-size: 100%; inline-size: auto; }
.q-footer p, .q-footer li { color: var(--q-text-secondary-on-inverse); }
.q-footer h2 { margin-block-end: var(--q-space-3); color: var(--q-text-accent-on-inverse); font-size: var(--q-type-small-size); font-weight: var(--q-font-weight-medium); }
.q-footer li { font-size: var(--q-type-small-size); }
.q-footer ul { list-style: none; padding: 0; display: grid; gap: var(--q-space-2); }
.q-footer a { color: var(--q-text-on-inverse); }
.q-contact li { display: flex; align-items: center; gap: var(--q-space-2); }
.q-social { display: flex; flex-wrap: wrap; gap: var(--q-space-1); margin-inline-start: calc(var(--q-space-3) * -1); }
.q-social a {
  display: grid; place-items: center; inline-size: var(--q-size-touch-min); block-size: var(--q-size-touch-min);
  color: var(--q-brand-glyph-on-inverse); transition: translate var(--q-motion-duration-fast) var(--q-motion-easing-standard);
}
/* Hover lifts the mark 4px; it never changes its colour (§8). */
.q-social a:hover { color: var(--q-brand-glyph-on-inverse); translate: 0 calc(var(--q-space-1) * -1); }
.q-footer-bottom { padding-block-start: var(--q-space-6); border-block-start: var(--q-border-width-hairline) solid var(--q-border-on-inverse); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--q-space-2); }
.foot-bottom p { font-size: var(--q-type-caption-size); }
/* Development only: the owner inputs still missing, so a placeholder is never mistaken for a value (icon + text, rule 6). */
.q-dev-badge { flex-basis: 100%; display: flex; align-items: center; gap: var(--q-space-2); }
.q-footer .q-dev-badge { color: var(--q-text-accent-on-inverse); }

/* The footer's "privacy settings" (C11): a command, so a button, dressed as the link beside it. */
.foot-consent { padding: 0; border: 0; background: none; font: inherit; color: var(--q-text-on-inverse); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ============================================================
   CONSENT BANNER (C11, E15): a full-width band under the thumb, square because it meets the screen's edges, like the
   project page's bar (§6). One sentence and two outline buttons of the same weight and width: accepting is never the
   easier choice. Above the floating button and the project bar while it is open; it rises once, from below.
   ============================================================ */
.consent { position: fixed; z-index: var(--q-z-index-toast); inset-inline: 0; inset-block-end: 0;
  padding-block: var(--q-space-4) calc(var(--q-space-4) + env(safe-area-inset-bottom, 0px));
  padding-inline: max(var(--q-space-gutter), env(safe-area-inset-right, 0px)) max(var(--q-space-gutter), env(safe-area-inset-left, 0px));
  background: var(--q-surface-card); color: var(--q-text-secondary);
  border-block-start: var(--q-border-width-hairline) solid var(--q-border-subtle); box-shadow: var(--q-shadow-4);
  animation: consent-rise var(--q-motion-duration-slow) var(--q-motion-easing-enter); }
.consent[hidden] { display: none; }
.consent-inner { display: grid; gap: var(--q-space-4); max-inline-size: var(--q-layout-container-max); margin-inline: auto; }
.consent-text { display: grid; gap: var(--q-space-1); }
.consent-title { font-size: var(--q-type-h5-size); line-height: var(--q-type-h5-line-height); font-weight: var(--q-type-h5-weight); color: var(--q-text-heading); }
.consent-text p { max-inline-size: 70ch; font-size: var(--q-type-small-size); line-height: var(--q-type-small-line-height); }
.consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--q-space-3); }
@keyframes consent-rise { from { translate: 0 var(--q-motion-distance-rise); opacity: 0; } }
@media (min-width: 768px) {
  .consent-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--q-space-8); }
  .consent-actions { grid-template-columns: repeat(2, minmax(8.5rem, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }

/* ============================================================
   PRIVACY NOTICE (C11): a reading page. One column at the text measure, the heading and its version, then each part
   under a hairline, the way the project page divides its sections. A pending part shows its marker, icon + text.
   ============================================================ */
/* One reading column at the text measure, centred in the wrap: pinned to the start, it left half a wide screen empty. */
.legal-body { display: grid; grid-template-columns: minmax(0, var(--q-layout-measure-text)); justify-content: center; }
.legal-head { display: grid; gap: var(--q-space-2); padding-block-end: var(--q-space-8); }
.legal-version { font-size: var(--q-type-small-size); color: var(--q-text-muted); }
.legal-sec { display: grid; gap: var(--q-space-3); padding-block: var(--q-space-6); border-block-start: var(--q-border-width-hairline) solid var(--q-border-subtle); }
.legal-sec h2 { font-size: var(--q-type-h4-size); line-height: var(--q-type-h4-line-height); font-weight: var(--q-type-h4-weight); color: var(--q-text-heading); text-wrap: balance; }
.legal-sec p { color: var(--q-text-secondary); text-wrap: pretty; }
.legal-pending { display: flex; align-items: center; gap: var(--q-space-2); font-size: var(--q-type-small-size); color: var(--q-text-accent); }

/* ============================================================
   LANDING SECTIONS (C08), moved from the mock-up
   ============================================================ */
/* Sections are separated by space alone. One section unit between any two blocks: two plain sections in a row would
   otherwise add their paddings (D21). */
.sec + .sec:not(.sec--tinted) { padding-block-start: 0; }
[id] { scroll-margin-block-start: calc(var(--q-size-header-height) + var(--q-space-4)); }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--q-space-3) var(--q-space-10); margin-block-end: var(--q-space-8); }

/* Frosted glass, one recipe for the search panel, the project cards and the WhatsApp band (D18): the card surface at
   55% over a blur of what is behind it, and a faint rim at 30%. */
:root {
  --m-card-glass: color-mix(in srgb, var(--q-surface-card) 55%, transparent);
  --m-card-glass-line: color-mix(in srgb, var(--q-surface-card) 30%, transparent);
  --m-card-glass-blur: blur(10px) saturate(1.3);
}

/* The 45° chamfer on the inline-end top corner (G3, §8), mirrored under LTR. clip-path takes physical coordinates, so
   each direction has its own shape. Decorative, non-focusable elements only. */
.band, .proj { --cut: var(--k, var(--c)); clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.band:dir(ltr), .proj:dir(ltr) { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
/* Both joins of the cut rounded like the logo's bar bend (radius.chamferJoin). Without shape(), the sharp polygon. */
@supports (clip-path: shape(from 0 0, line to 1px 1px, close)) {
  .band, .proj {
    --t: min(calc(var(--j, var(--q-radius-chamfer-join)) * 0.4142), calc(var(--cut) * 0.7071));
    clip-path: shape(from calc(var(--cut) + var(--t)) 0, hline to 100%, vline to 100%, hline to 0, vline to calc(var(--cut) + var(--t)),
      arc to calc(var(--t) * 0.7071) calc(var(--cut) - var(--t) * 0.7071) of calc(var(--t) / 0.4142) cw,
      line to calc(var(--cut) - var(--t) * 0.7071) calc(var(--t) * 0.7071),
      arc to calc(var(--cut) + var(--t)) 0 of calc(var(--t) / 0.4142) cw, close);
  }
  .band:dir(ltr), .proj:dir(ltr) {
    clip-path: shape(from calc(100% - var(--cut) - var(--t)) 0, hline to 0, vline to 100%, hline to 100%, vline to calc(var(--cut) + var(--t)),
      arc to calc(100% - var(--t) * 0.7071) calc(var(--cut) - var(--t) * 0.7071) of calc(var(--t) / 0.4142) ccw,
      line to calc(100% - var(--cut) + var(--t) * 0.7071) calc(var(--t) * 0.7071),
      arc to calc(100% - var(--cut) - var(--t)) 0 of calc(var(--t) / 0.4142) ccw, close);
  }
}

/* The hero (§10.10, D15, D16, D25, D26). Clipped sideways only: the picture layer runs on below the hero, under the
   search panel. The first screen ends on the search panel, then a little air: hero height = screen height - where the
   hero starts - half the panel - the gap (hero.js measures the first two; the fallbacks keep a sensible layout). */
.hero {
  position: relative; isolation: isolate; display: grid; place-items: center; overflow-x: clip; overflow-y: visible;
  margin-block-start: calc(var(--q-size-header-height) * -1);
  padding: calc(var(--q-space-12) + var(--q-size-header-height)) var(--q-space-gutter)
    calc(var(--q-space-16) + var(--search-half, var(--m-search-half-fallback)));
  color: var(--m-hero-line); text-align: center;
  min-block-size: calc(100svh - var(--hero-top, 0px) - var(--search-half, var(--m-search-half-fallback)) - var(--m-hero-fold-gap));
  /* How the picture's bottom edge dissolves: the layer runs on past the hero by --hero-fade (the lower half of the
     search panel), and the fade starts a little above the panel's middle (--hero-fade-run adds space-10). */
  --hero-fade: max(var(--search-half, var(--m-search-half-fallback)), var(--m-hero-fade-min));
  --hero-fade-run: calc(var(--hero-fade) + var(--q-space-10));
}
/* The picture layer: it carries the ground colour and fades out at the bottom, so the hero never ends on a hard edge.
   The fade is on the layer, not on the picture inside it (owner, 2026-10-25). Eased, not linear: a straight ramp
   still reads as a line where it ends. The mask is alpha only, so its stops are black at a given opacity. */
.hero-art { position: absolute; inset: 0 0 calc(var(--hero-fade) * -1); z-index: -2;
  background: var(--m-hero-bg) var(--m-hero-still) center / cover no-repeat; }
/* A narrow upright screen shows only the middle of the still, since cover fills the height: there the still is its
   centre crop at the same resolution (720×900), framed the same at about half the weight (C15, B2). The query matches
   the preload in Index.cshtml, so only one still is fetched. */
@media (max-width: 767px) and (max-aspect-ratio: 2/3) { .hero-art { background-image: var(--m-hero-still-tall); } }
.hero-art, .hero::before {
  --hero-mask: linear-gradient(to bottom, black calc(100% - var(--hero-fade-run)),
    rgb(0 0 0 / 0.6) calc(100% - var(--hero-fade-run) * 0.7), rgb(0 0 0 / 0.25) calc(100% - var(--hero-fade-run) * 0.45),
    rgb(0 0 0 / 0.06) calc(100% - var(--hero-fade-run) * 0.2), transparent);
  -webkit-mask-image: var(--hero-mask); mask-image: var(--hero-mask);
}
/* One video per theme fills the layer like a photo; the one not in view stays hidden and never loads. */
.hero-video { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.q-video-dark { display: none; }
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .q-video-light { display: none; }
  :root:not([data-theme="light"]) .q-video-dark { display: block; }
}
@media screen {
  :root[data-theme="dark"] .q-video-light { display: none; }
  :root[data-theme="dark"] .q-video-dark { display: block; }
}
/* A translucent veil only behind the copy: it fades to nothing well inside the frame, so the footage around it keeps
   its full colour. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 38% at 50% 48%, color-mix(in srgb, var(--m-hero-veil) 72%, transparent),
    color-mix(in srgb, var(--m-hero-veil) 40%, transparent) 55%, transparent 100%); }
/* Graded spacing, not one gap: logo to title 48px (D25), title to lead 16px, lead to buttons 32px. */
.hero-copy { align-self: center; justify-self: center; display: grid; justify-items: center; gap: var(--q-space-4); max-inline-size: var(--m-hero-copy-max); }
.hero-copy .t-display { color: var(--m-hero-title); font-size: var(--m-hero-title-size); text-wrap: balance; }
/* The one heading allowed above 500 in Arabic (D15). Latin headings are already 600. */
:lang(ar) .hero-copy .t-display { font-weight: var(--q-font-weight-semibold); }
.hero-copy .t-lead { color: var(--m-hero-lead); font-size: var(--q-font-size-h3); line-height: var(--m-hero-lead-leading); text-wrap: balance; }
/* Footage moves under the copy, so the hero text carries a soft halo in the veil's colour (D22). */
.hero-copy .t-display, .hero-copy .t-lead {
  text-shadow: 0 1px 2px color-mix(in srgb, var(--m-hero-veil) 85%, transparent), 0 0 1.5rem var(--m-hero-veil); }
/* Logo hand-off (D16): the slot receives a copy of the header logo from header.js; without script it stays closed and
   the logo simply sits in the header. Opacity only, no movement. */
.hero-logo-slot { display: none; margin-block-end: var(--q-space-8); block-size: var(--m-hero-logo-size); aspect-ratio: var(--m-hero-logo-ratio); }
.hero-logo-slot img { display: block; block-size: 100%; inline-size: auto; }
/* With script, the slot keeps its place from the first paint, empty until header.js fills it, so the title never moves
   down under the reader (no layout shift). Without script it takes no room. */
@media (scripting: enabled) { .hero-logo-slot { display: block; visibility: hidden; } }
.has-hero-logo .hero-logo-slot { display: block; visibility: visible; transition: opacity var(--q-motion-duration-reveal) var(--q-motion-easing-standard); }
.logo-docked .hero-logo-slot { opacity: 0; }
/* The secondary button sits on moving footage, so it carries the veil colour behind its label. */
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--q-space-3); margin-block-start: var(--q-space-4); }
.hero-actions .q-btn--secondary { background: color-mix(in srgb, var(--m-hero-veil) 70%, transparent); }
.hero-actions .q-btn--secondary:hover { background: var(--q-action-secondary-bg-hover); }
@media (max-width: 599px) {
  .hero { padding-block-start: calc(var(--q-space-4) + var(--q-size-header-height)); }
  .hero-copy { gap: var(--q-space-3); }
}

/* The search panel (§10.10, D21): one glass panel straddling the hero's bottom edge, half over the picture. Every
   option on show, no dropdowns; nothing chosen in a group means the whole group. The panel reads as one street: the
   buildings (type, status) and the budget bars stand on one ground line, like the mark on its plinth (G6). The bare
   measures in this block are the mock-up's own (listed in ADR 0019); the CSP allows no style attribute, so what the
   mock-up set inline (a window's floor, a tick's place) is a class here. */
.search { position: relative; z-index: 2; margin-block-start: calc(var(--search-half, var(--m-search-half-fallback)) * -1); }
.search-box { margin: 0; border-radius: var(--q-radius-surface); display: grid; gap: var(--q-space-6); padding: var(--q-space-5);
  background: var(--m-card-glass); border: var(--q-border-width-hairline) solid var(--m-card-glass-line);
  -webkit-backdrop-filter: var(--m-card-glass-blur); backdrop-filter: var(--m-card-glass-blur); box-shadow: var(--q-shadow-3);
  --s-ground: 2.5rem;                                       /* building and bar height: the ground line sits this far under each legend */
  --s-thumb-w: 1.5rem; --s-thumb-h: 1.75rem;                /* slider handle hit box (24px wide, above the 2.5.8 floor) */
  --s-under: calc(var(--s-thumb-h) / 2 + var(--q-space-1)); /* names and ticks start below the handle, so both rows share a baseline */ }
/* City tabs: plain text, no bar and no box (rule 13). The chosen city takes field.checked and bold weight; each tab
   reserves its bold width with a hidden bold copy of its label, so choosing a city never shifts the row. */
.search-tabs { display: flex; gap: var(--q-space-1) var(--q-space-5); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--q-space-1) * -1); padding-inline: var(--q-space-1); }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tabs button { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-block-size: var(--q-size-control-sm); padding: 0;
  border: 0; background: none; color: var(--q-text-secondary); font-size: var(--q-type-small-size); font-weight: var(--q-font-weight-medium); cursor: pointer;
  transition: color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.search-tabs button::after { content: attr(data-label); block-size: 0; overflow: hidden; visibility: hidden; font-weight: var(--q-font-weight-bold); pointer-events: none; user-select: none; }
.search-tabs button:hover { color: var(--q-text-link-hover); }
.search-tabs button[aria-pressed="true"] { color: var(--q-field-checked); font-weight: var(--q-font-weight-bold); }
.s-group { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.s-legend { padding: 0; margin-block-end: var(--q-space-4); font-size: var(--q-type-caption-size); line-height: 1.25rem; color: var(--q-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-inline-size: 100%; }
.s-sum { color: var(--q-text-primary); font-weight: var(--q-font-weight-medium); }
.s-sum::before { content: "·"; margin-inline: var(--q-space-2); color: var(--q-text-muted); font-weight: var(--q-font-weight-regular); }
.s-bld input, .s-opt input, .s-sr { position: absolute; inline-size: 1px; block-size: 1px; margin: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Cities: one line with its label, as the legends read ("City · All cities · İstanbul"): plain words between raised
   dots, no box (owner, 2026-11-13). A chosen city, or "All cities" while none is, takes the chosen country tab's
   colour and weight (field.checked, bold); the others are secondary. Each option starts with its dot, so the line reads the same whatever a chosen
   country hides. The block size is the 24px target floor (WCAG 2.5.8). */
.s-line { display: flex; align-items: center; min-inline-size: 0; font-size: var(--q-type-caption-size); line-height: 1.25rem; }
.s-label { flex: none; color: var(--q-text-muted); }
.s-line > .s-scroller { flex: 1 1 auto; }
.s-opts { display: flex; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.s-opts::-webkit-scrollbar { display: none; }
.s-opt { position: relative; flex: none; display: inline-flex; align-items: center; min-block-size: 24px; padding: 0; border: 0; background: none;
  color: var(--q-text-secondary); font: inherit; font-weight: var(--q-font-weight-regular); white-space: nowrap; cursor: pointer;
  transition: color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.s-opt::before { content: "·"; margin-inline: var(--q-space-2); color: var(--q-text-muted); font-weight: var(--q-font-weight-regular); }
.s-opt:hover { color: var(--q-text-link-hover); }
/* Each option reserves its bold width with a hidden bold copy of its label, as the country tabs do, so choosing a
   city never shifts the line. */
.s-opt > span { display: inline-flex; flex-direction: column; }
.s-opt > span::after { content: attr(data-label); block-size: 0; overflow: hidden; visibility: hidden; font-weight: var(--q-font-weight-bold); pointer-events: none; user-select: none; }
.s-opt[aria-pressed="true"], .s-opt:has(input:checked) { color: var(--q-field-checked); font-weight: var(--q-font-weight-bold); }
.s-opt:focus-visible, .s-opt:has(input:focus-visible) { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: var(--q-focus-offset); }
/* Scroll chevrons: bare, over a fade at the edge that can still scroll. --s-to-end is the physical side the row ends on.
   min-inline-size: 0, or as a grid item the wrapper grows to the full row and the panel overflows instead. */
.s-scroller { position: relative; min-inline-size: 0; --s-to-end: right; --s-fade: 2.75rem; }
.s-scroller:dir(rtl) { --s-to-end: left; }
.s-scroller > .s-track { --fs: 0px; --fe: 0px; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to var(--s-to-end), transparent, black var(--fs), black calc(100% - var(--fe)), transparent);
  mask-image: linear-gradient(to var(--s-to-end), transparent, black var(--fs), black calc(100% - var(--fe)), transparent); }
.s-scroller.can-start > .s-track { --fs: var(--s-fade); }
.s-scroller.can-end > .s-track { --fe: var(--s-fade); }
.s-nudge { position: absolute; z-index: 1; inset-block-start: 50%; translate: 0 -50%; display: grid; place-items: center;
  inline-size: var(--q-size-control-sm); block-size: var(--q-size-touch-min); padding: 0; border: 0; border-radius: var(--q-radius-base);
  background: none; color: var(--q-text-heading); cursor: pointer; transition: color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.s-nudge:hover { color: var(--q-text-link-hover); }
.s-nudge:focus-visible { outline-offset: 0; }
.s-nudge--start { inset-inline-start: calc(var(--q-space-2) * -1); }
.s-nudge--end { inset-inline-end: calc(var(--q-space-2) * -1); }
/* The chevron is drawn pointing right: the end one points to the end, the start one to the start, in either direction. */
.s-nudge--start svg { transform: scaleX(-1); }
.s-nudge--start:dir(rtl) svg { transform: none; }
.s-nudge--end:dir(rtl) svg { transform: scaleX(-1); }

/* The street: type and status side by side, the budget under them; one row of three from 960px. Each group has its
   own ground line, all at the same height, so the groups read apart but stand level. */
.s-street { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); row-gap: var(--q-space-8); }
.s-street > .s-type { padding-inline-end: var(--q-space-6); }
.s-street > .s-budget { grid-column: 1 / -1; }
.s-row { position: relative; display: flex; gap: var(--q-space-2); }
.s-row::after, .s-range::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: var(--s-ground);
  block-size: var(--q-border-width-hairline); background: var(--q-border-default); pointer-events: none; }
.s-bld { position: relative; flex: 1 1 0; max-inline-size: 5rem; min-inline-size: 0; display: grid; justify-items: center; align-content: start; gap: var(--s-under);
  padding-block-end: var(--q-space-1); border-radius: var(--q-radius-base); color: var(--q-text-secondary); text-align: center; cursor: pointer;
  transition: color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.s-bld:hover { color: var(--q-text-link-hover); }
/* The buildings: not chosen, a lighter outline (border.strong, above 3:1); chosen, outline and body in field.checked,
   with the windows and doors as holes in the body. */
.s-glyph { display: block; inline-size: var(--s-ground); block-size: var(--s-ground); overflow: visible;
  fill: none; stroke: currentColor; stroke-width: var(--q-border-width-strong); stroke-linecap: square; stroke-linejoin: miter;
  color: var(--q-border-strong); transition: color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.s-bld:hover .s-glyph { color: var(--q-text-link-hover); }
.s-glyph .bd { stroke: none; fill: transparent; transition: fill var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.s-glyph .w { stroke: none; fill: var(--q-border-default); }
/* A window's floor: the order its light comes on, from the ground up. */
.s-glyph .f1 { --f: 1; } .s-glyph .f2 { --f: 2; } .s-glyph .f3 { --f: 3; } .s-glyph .f4 { --f: 4; }
.s-name { font-size: var(--q-type-small-size); font-weight: var(--q-font-weight-medium); line-height: 1.35; transition: color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.s-bld:has(input:checked), .s-bld:has(input:checked) .s-name, .s-bld:has(input:checked) .s-glyph { color: var(--q-field-checked); }
.s-bld input:checked ~ .s-glyph .bd { fill: currentColor; }
/* On the way, each floor's lights come on in gold, from the ground up, then settle into the opening. Unchoosing puts
   them back at once. */
.s-bld input:checked ~ .s-glyph .w { fill: transparent; animation: s-lights 420ms var(--q-motion-easing-standard) calc(var(--f, 0) * 70ms) both; }
@keyframes s-lights { 0% { fill: var(--q-border-default); } 35% { fill: var(--m-flash); } 70% { fill: var(--m-flash); } 100% { fill: transparent; } }

/* Budget: two native range inputs over one track (keyboard, screen readers and RTL come from the platform). Each input
   is a handle's width wider than the track, so a handle's centre lands exactly on a step boundary. */
.s-range { position: relative; block-size: var(--s-ground); }
.s-hist { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); column-gap: clamp(2px, 0.5vw, 6px); align-items: end; }
.s-hist i { display: block; block-size: 100%; background: var(--q-border-default); transform-origin: 50% 100%; transform: scaleY(var(--h, 0.1)); }
.s-hist i.on { background: var(--q-field-checked); }
.s-fill { position: absolute; z-index: 1; inset-block-start: calc(var(--s-ground) - 0.5px); inset-inline-start: 0; inline-size: 100%; block-size: var(--q-border-width-strong); background: var(--q-field-checked); pointer-events: none; }
.s-range input { position: absolute; z-index: 2; inset-inline-start: calc(var(--s-thumb-w) / -2); inset-block-start: calc(var(--s-ground) - var(--s-thumb-h) / 2);
  inline-size: calc(100% + var(--s-thumb-w)); block-size: var(--s-thumb-h); margin: 0; padding: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.s-range input.is-top { z-index: 3; }
.s-range input:focus { outline: none; }
.s-range input::-webkit-slider-runnable-track { block-size: 100%; background: none; border: 0; }
.s-range input::-moz-range-track { block-size: 100%; background: none; border: 0; }
/* The handle: a post through the ground with a square on it, the mark's square dot (G1), set off from the lit line by
   a ring of card colour. */
.s-range input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; inline-size: var(--s-thumb-w); block-size: var(--s-thumb-h); border: 0; border-radius: var(--q-radius-base); cursor: grab;
  background: linear-gradient(var(--q-text-heading), var(--q-text-heading)) center / 12px 12px no-repeat, linear-gradient(var(--q-surface-card), var(--q-surface-card)) center / 18px 18px no-repeat,
    linear-gradient(var(--q-text-heading), var(--q-text-heading)) center / 2px 100% no-repeat; }
.s-range input::-moz-range-thumb { pointer-events: auto; inline-size: var(--s-thumb-w); block-size: var(--s-thumb-h); border: 0; border-radius: var(--q-radius-base); cursor: grab;
  background: linear-gradient(var(--q-text-heading), var(--q-text-heading)) center / 12px 12px no-repeat, linear-gradient(var(--q-surface-card), var(--q-surface-card)) center / 18px 18px no-repeat,
    linear-gradient(var(--q-text-heading), var(--q-text-heading)) center / 2px 100% no-repeat; }
.s-range input:active::-webkit-slider-thumb { cursor: grabbing; }
.s-range input:active::-moz-range-thumb { cursor: grabbing; }
.s-range input:focus-visible::-webkit-slider-thumb { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: 0; }
.s-range input:focus-visible::-moz-range-thumb { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: 0; }
.s-ticks { position: relative; block-size: 1.25rem; margin-block-start: var(--s-under); color: var(--q-text-muted); }
.s-ticks span { position: absolute; inset-block-start: 0; inset-inline-start: calc(var(--at) / 17 * 100%); inline-size: 6em; margin-inline-start: -3em; text-align: center; white-space: nowrap; }
.s-ticks .at-0 { --at: 0; } .s-ticks .at-10 { --at: 10; } .s-ticks .at-13 { --at: 13; } .s-ticks .at-17 { --at: 17; }
.s-ticks span:first-child { margin-inline-start: 0; text-align: start; }
.s-ticks span:last-child { inset-inline-start: auto; inset-inline-end: 0; margin: 0; text-align: end; }

.s-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--q-space-3) var(--q-space-6); padding-block-start: var(--q-space-3); }
/* The panel's switches (citizenship, installments) side by side, one above the other when the row is narrow. */
.s-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--q-space-6); }
.s-act { display: flex; align-items: center; gap: var(--q-space-5); }
.s-clear { min-block-size: var(--q-size-touch-min); padding: 0; border: 0; background: none; color: var(--q-text-link); font: inherit; font-size: var(--q-type-small-size); font-weight: var(--q-font-weight-medium); cursor: pointer; }
.s-clear:hover { color: var(--q-text-link-hover); text-decoration: underline; text-underline-offset: 0.3em; }
.search-go { min-inline-size: 13rem; }
.search-go span { font-variant-numeric: tabular-nums lining-nums; }

/* The citizenship switch (role="switch"): a square track, its knob the mark's square. */
.switch { display: inline-flex; align-items: center; gap: var(--q-space-3); justify-self: start; min-block-size: var(--q-size-control-sm); cursor: pointer; color: var(--q-text-secondary); }
.switch input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.switch-track { position: relative; flex: none; inline-size: 2.25rem; block-size: 1.25rem; border: var(--q-border-width-hairline) solid var(--q-field-border); border-radius: var(--q-radius-base); background: var(--q-field-bg);
  transition: background-color var(--q-motion-duration-fast) var(--q-motion-easing-standard), border-color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.switch-track::after { content: ""; position: absolute; inset-block: 2px; inset-inline-start: 2px; inline-size: calc(1.25rem - 6px); background: var(--q-border-strong); border-radius: var(--q-radius-base);
  transition: transform var(--q-motion-duration-fast) var(--q-motion-easing-standard), background-color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.switch input:checked + .switch-track { background: var(--q-action-primary-bg); border-color: var(--q-action-primary-bg); }
.switch input:checked + .switch-track::after { background: var(--q-action-primary-text); transform: translateX(1rem); }
.switch input:checked + .switch-track:dir(rtl)::after { transform: translateX(-1rem); }
.switch input:focus-visible + .switch-track { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: var(--q-focus-offset); }
@media (prefers-reduced-motion: reduce) {
  .s-scroller > .s-track { scroll-behavior: auto; }
  .s-glyph, .s-glyph .bd, .s-opt, .s-bld { transition: none !important; }
  .s-glyph .w { animation: none !important; }
}
@media (max-width: 599px) {
  .s-ticks span:nth-child(3) { display: none; }
  .s-act { inline-size: 100%; justify-content: space-between; }
  .search-go { flex: 1 1 auto; min-inline-size: 0; }
}
@media (min-width: 600px) {
  .s-street { grid-template-columns: auto auto; justify-content: start; }
  .s-street > .s-type { padding-inline-end: var(--q-space-12); }
  .s-street > .s-budget { inline-size: 100%; max-inline-size: 24rem; }
  .s-row { gap: var(--q-space-1); }
  .s-bld { flex: 0 0 4.25rem; }
}
@media (min-width: 600px) { :root { --m-search-half-fallback: 16.5rem; } }
@media (min-width: 960px) { :root { --m-search-half-fallback: 12.75rem; } }
@media (min-width: 700px) { .search-box { padding: var(--q-space-8) var(--q-space-8) var(--q-space-6); } }
@media (min-width: 960px) {
  /* Type and status side by side; whatever room is left opens before the budget (at least space.16). */
  .s-street { grid-template-columns: auto auto minmax(0, 1fr); }
  .s-street > .s-budget { grid-column: auto; justify-self: end; padding-inline-start: var(--q-space-16); max-inline-size: calc(24rem + var(--q-space-16)); }
}
@media (min-width: 1024px) { .search-box { padding: var(--q-space-10) var(--q-space-10) var(--q-space-8); } }

/* The chamfer field behind the project cards (D30, §8): assets/patterns/chamfer.svg as a mask, coloured by the
   pattern ink at its strength (the request section's tokens, D28), repeated from the centre so one tile's diamond sits
   there, intersected with a radial fade from the centre and a rise and sink of one section unit at the top and bottom,
   so it never meets a line. It ends 10rem above the cards' bottom edge, gone before the section's bottom space. The
   glass cards blur it. Gone in forced colours. The masks are alpha only, so their stops are black. */
.sec--chamfer { position: relative; isolation: isolate; }
.sec--chamfer::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 0 calc(var(--q-space-section) + var(--m-chamfer-end));
  background: var(--m-kufic-ink); opacity: var(--m-kufic-opacity);
  -webkit-mask-image: url("/img/patterns/chamfer.svg"), radial-gradient(ellipse 50% 50% at 50% 50%, black 0%, rgb(0 0 0 / 0.5) 45%, transparent 100%),
    linear-gradient(to bottom, transparent, black var(--q-space-section), black calc(100% - var(--q-space-section)), transparent);
  mask-image: url("/img/patterns/chamfer.svg"), radial-gradient(ellipse 50% 50% at 50% 50%, black 0%, rgb(0 0 0 / 0.5) 45%, transparent 100%),
    linear-gradient(to bottom, transparent, black var(--q-space-section), black calc(100% - var(--q-space-section)), transparent);
  -webkit-mask-size: var(--m-chamfer-size) var(--m-chamfer-size), 100% 100%, 100% 100%;
  mask-size: var(--m-chamfer-size) var(--m-chamfer-size), 100% 100%, 100% 100%;
  -webkit-mask-position: center, 0 0, 0 0;
  mask-position: center, 0 0, 0 0;
  -webkit-mask-repeat: repeat, no-repeat, no-repeat;
  mask-repeat: repeat, no-repeat, no-repeat;
  -webkit-mask-composite: source-in, source-in;
  mask-composite: intersect; }
@media (forced-colors: active) { .sec--chamfer::before { display: none; } }

/* The projects (§10.7, D20, D30). A text link: quiet, with an arrow (the mock-up's "All projects" and "Details"). */
.q-text-link { display: inline-flex; align-items: center; gap: var(--q-space-2); min-block-size: var(--q-size-touch-min); font-size: var(--q-type-small-size); font-weight: var(--q-font-weight-medium); }
.result-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--q-space-2) var(--q-space-4); margin-block-end: var(--q-space-5); }
.result-reset { border: 0; background: none; padding: 0; cursor: pointer; color: var(--q-text-link); font: inherit; }
.empty { display: grid; border-radius: var(--q-radius-surface); justify-items: start; gap: var(--q-space-3); padding: var(--q-space-8); background: var(--q-surface-sunken); }
.proj-grid { display: grid; gap: var(--q-space-5); }
/* The card: glass over the chamfer field (D18, D30), its rows on the grid's subgrid so names, prices and feet line up
   across a row. The chamfered ring (::after) replaces the plain border where shape() is supported. */
.proj { --c: var(--q-space-8); --pad: var(--q-space-6); position: relative; isolation: isolate;
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; overflow: clip;
  border-radius: var(--q-radius-surface); background: var(--m-card-glass); border: var(--q-border-width-hairline) solid var(--m-card-glass-line);
  -webkit-backdrop-filter: var(--m-card-glass-blur); backdrop-filter: var(--m-card-glass-blur); }
@supports (clip-path: shape(from 0 0, line to 1px 1px, close)) {
  .proj { border: 0; padding: var(--q-border-width-hairline); }
  .proj::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--m-card-glass-line);
    transition: background-color var(--q-motion-duration-base) var(--q-motion-easing-standard);
    --ki: calc(var(--cut) - var(--q-border-width-hairline) * 0.5858);
    --ti: min(calc((var(--q-radius-chamfer-join) - var(--q-border-width-hairline)) * 0.4142), calc(var(--ki) * 0.7071));
    clip-path: shape(evenodd from calc(var(--cut) + var(--t)) 0px,
      hline to calc(100% - (var(--q-radius-surface))), arc to calc(100% - (0px)) calc(var(--q-radius-surface)) of var(--q-radius-surface) cw,
      vline to calc(100% - var(--q-radius-surface)), arc to calc(100% - (var(--q-radius-surface))) 100% of var(--q-radius-surface) cw,
      hline to calc(var(--q-radius-surface)), arc to calc(0px) calc(100% - var(--q-radius-surface)) of var(--q-radius-surface) cw,
      vline to calc(var(--cut) + var(--t)), arc to calc(var(--t) * 0.7071) calc(var(--cut) - var(--t) * 0.7071) of calc(var(--t) / 0.4142) cw,
      line to calc(var(--cut) - var(--t) * 0.7071) calc(var(--t) * 0.7071), arc to calc(var(--cut) + var(--t)) 0px of calc(var(--t) / 0.4142) cw, close,
      move to calc(var(--q-border-width-hairline) + var(--ki) + var(--ti)) calc(var(--q-border-width-hairline)),
      hline to calc(100% - (var(--q-radius-surface))), arc to calc(100% - (var(--q-border-width-hairline))) calc(var(--q-radius-surface)) of calc(var(--q-radius-surface) - var(--q-border-width-hairline)) cw,
      vline to calc(100% - var(--q-radius-surface)), arc to calc(100% - (var(--q-radius-surface))) calc(100% - var(--q-border-width-hairline)) of calc(var(--q-radius-surface) - var(--q-border-width-hairline)) cw,
      hline to calc(var(--q-radius-surface)), arc to calc(var(--q-border-width-hairline)) calc(100% - var(--q-radius-surface)) of calc(var(--q-radius-surface) - var(--q-border-width-hairline)) cw,
      vline to calc(var(--q-border-width-hairline) + var(--ki) + var(--ti)), arc to calc(var(--q-border-width-hairline) + var(--ti) * 0.7071) calc(var(--q-border-width-hairline) + var(--ki) - var(--ti) * 0.7071) of calc(var(--ti) / 0.4142) cw,
      line to calc(var(--q-border-width-hairline) + var(--ki) - var(--ti) * 0.7071) calc(var(--q-border-width-hairline) + var(--ti) * 0.7071), arc to calc(var(--q-border-width-hairline) + var(--ki) + var(--ti)) calc(var(--q-border-width-hairline)) of calc(var(--ti) / 0.4142) cw, close);
  }
  .proj:dir(ltr)::after {
    clip-path: shape(evenodd from calc(100% - (var(--cut) + var(--t))) 0px,
      hline to calc(var(--q-radius-surface)), arc to calc(0px) calc(var(--q-radius-surface)) of var(--q-radius-surface) ccw,
      vline to calc(100% - var(--q-radius-surface)), arc to calc(var(--q-radius-surface)) 100% of var(--q-radius-surface) ccw,
      hline to calc(100% - (var(--q-radius-surface))), arc to calc(100% - (0px)) calc(100% - var(--q-radius-surface)) of var(--q-radius-surface) ccw,
      vline to calc(var(--cut) + var(--t)), arc to calc(100% - (var(--t) * 0.7071)) calc(var(--cut) - var(--t) * 0.7071) of calc(var(--t) / 0.4142) ccw,
      line to calc(100% - (var(--cut) - var(--t) * 0.7071)) calc(var(--t) * 0.7071), arc to calc(100% - (var(--cut) + var(--t))) 0px of calc(var(--t) / 0.4142) ccw, close,
      move to calc(100% - (var(--q-border-width-hairline) + var(--ki) + var(--ti))) calc(var(--q-border-width-hairline)),
      hline to calc(var(--q-radius-surface)), arc to calc(var(--q-border-width-hairline)) calc(var(--q-radius-surface)) of calc(var(--q-radius-surface) - var(--q-border-width-hairline)) ccw,
      vline to calc(100% - var(--q-radius-surface)), arc to calc(var(--q-radius-surface)) calc(100% - var(--q-border-width-hairline)) of calc(var(--q-radius-surface) - var(--q-border-width-hairline)) ccw,
      hline to calc(100% - (var(--q-radius-surface))), arc to calc(100% - (var(--q-border-width-hairline))) calc(100% - var(--q-radius-surface)) of calc(var(--q-radius-surface) - var(--q-border-width-hairline)) ccw,
      vline to calc(var(--q-border-width-hairline) + var(--ki) + var(--ti)), arc to calc(100% - (var(--q-border-width-hairline) + var(--ti) * 0.7071)) calc(var(--q-border-width-hairline) + var(--ki) - var(--ti) * 0.7071) of calc(var(--ti) / 0.4142) ccw,
      line to calc(100% - (var(--q-border-width-hairline) + var(--ki) - var(--ti) * 0.7071)) calc(var(--q-border-width-hairline) + var(--ti) * 0.7071), arc to calc(100% - (var(--q-border-width-hairline) + var(--ki) + var(--ti))) calc(var(--q-border-width-hairline)) of calc(var(--ti) / 0.4142) ccw, close);
  }
  .proj:hover::after { background: var(--q-border-default); }
}
.proj-head { display: flex; align-items: center; gap: var(--q-space-4); padding: var(--pad) var(--pad) 0; }
/* The status: icon + text (rule 6), the build icon for under construction (§8). */
.proj-status { margin-inline-start: auto; display: inline-flex; align-items: center; gap: var(--q-space-1); padding-inline-end: var(--q-space-3);
  font-size: var(--q-type-caption-size); line-height: var(--q-type-caption-line-height); font-weight: var(--q-font-weight-medium); color: var(--q-text-secondary); white-space: nowrap; }
.proj-status--ready .q-icon { color: var(--q-status-success-icon); }
.proj-status--construction .q-icon { color: var(--q-text-accent); }
/* The picture: every photo in the same 4:3 frame (§12), whole over a blurred copy of itself, as the gallery's are
   (owner, 2026-11-18): a wide or a tall upload no longer shows shorter or narrower than its neighbours. */
.proj-art { padding: var(--q-space-8) var(--pad) 0; }
.pc-frame { display: block; aspect-ratio: var(--m-card-art-ratio); border-radius: var(--q-radius-surface); }
.pc-stage { position: relative; }
.pc-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.pc-track::-webkit-scrollbar { display: none; }
.pc-track:focus-visible { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: calc(var(--q-focus-width) * -1); }
.pc-slide { flex: 0 0 100%; min-inline-size: 0; scroll-snap-align: start; }
/* Photo strips, the cards' and the project page's alike (photo-strip.js, owner, 2026-11-13): round glass chevrons at
   the photo's sides, so they read on any photo, shown on hover where a pointer can hover (below); dots for where it is;
   a pointer over the photo, since a click on either half steps that way. The chevrons ship hidden: without script only
   the swipe is offered. */
.strip-track.is-steppable { cursor: pointer; }
/* A round glass button over a photo: the strips' chevrons and the gallery's expand button. No rim (owner, 2026-11-18). */
.photo-btn { --photo-glass: rgb(0 0 0 / .38); display: grid; place-items: center; inline-size: var(--q-size-touch-min); block-size: var(--q-size-touch-min);
  padding: 0; border-radius: 50%; border: 0; background: var(--photo-glass); color: var(--q-text-on-photo);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgb(0 0 0 / .25); cursor: pointer;
  transition: opacity var(--q-motion-duration-fast) var(--q-motion-easing-standard), color var(--q-motion-duration-fast) var(--q-motion-easing-standard),
    background-color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.photo-btn:not(:disabled):hover { --photo-glass: rgb(0 0 0 / .55); color: var(--q-text-link-hover); }
.photo-btn:disabled { opacity: var(--m-nav-disabled-opacity); cursor: default; }
.photo-btn:focus-visible { outline: var(--q-focus-width) solid var(--q-text-on-photo); outline-offset: 2px; }
.strip-nav { position: absolute; z-index: 2; inset-block-start: 50%; translate: 0 -50%; }
.strip-nav--prev { inset-inline-start: var(--q-space-3); }
.strip-nav--next { inset-inline-end: var(--q-space-3); }
/* On a card the chevrons are a step smaller, the arrow with them, and centred on the photo's sides (owner,
   2026-11-18): half of each over the photo, half over the card's margin. Still above the 24px floor of WCAG 2.5.8. */
.proj-art .strip-nav { --strip-nav-size: var(--q-size-control-md); inline-size: var(--strip-nav-size); block-size: var(--strip-nav-size); }
.proj-art .strip-nav .q-icon { inline-size: var(--q-size-icon-sm); block-size: var(--q-size-icon-sm); }
.proj-art .strip-nav--prev { inset-inline-start: calc(var(--strip-nav-size) / -2); }
.proj-art .strip-nav--next { inset-inline-end: calc(var(--strip-nav-size) / -2); }
/* The chevron is drawn pointing right: prev points to the start, next to the end, in either direction. */
.strip-nav--prev svg { transform: scaleX(-1); }
.strip-nav--prev:dir(rtl) svg { transform: none; }
.strip-nav--next:dir(rtl) svg { transform: scaleX(-1); }
/* Where a pointer can hover, the chevrons wait for it over the photo (owner, 2026-11-18), and for the keyboard's focus
   inside the strip, so a key user still finds them. A touch screen has no hover: there they stay on show. Hidden, they
   let a click through to the photo, whose halves step the strip all the same. */
@media (hover: hover) and (pointer: fine) {
  .photo-btn.strip-nav { opacity: 0; pointer-events: none; }
  :is(.pc-stage, .g-stage):is(:hover, :focus-within) .strip-nav { opacity: 1; pointer-events: auto; }
  :is(.pc-stage, .g-stage):is(:hover, :focus-within) .strip-nav:disabled { opacity: var(--m-nav-disabled-opacity); }
}
/* The dots are round, as in the mock-up: the owner's exception to rule 14 (2026-10-29, ADR 0019). Many photos shrink
   them rather than overflow the row. */
.strip-dots { display: flex; justify-content: center; gap: var(--m-dot-gap); padding-block-start: var(--q-space-3); }
.strip-dots > i { flex: 0 1 var(--m-dot-size); min-inline-size: 3px; aspect-ratio: 1; border-radius: 50%; background: var(--q-text-muted); opacity: var(--m-dot-rest-opacity);
  transition: opacity var(--q-motion-duration-fast) var(--q-motion-easing-standard), background-color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.strip-dots > i.is-on { background: var(--q-text-heading); opacity: 1; }
/* Over a photo (the project page): centred at its foot, light on the shade. */
.strip-dots--over { position: absolute; z-index: 2; inset-inline: 20%; inset-block-end: var(--q-space-3); padding: 0; pointer-events: none; }
.strip-dots--over > i { background: var(--q-text-on-photo); opacity: .5; box-shadow: 0 0 2px rgb(0 0 0 / .5); }
.strip-dots--over > i.is-on { background: var(--q-text-on-photo); opacity: 1; }
.proj-title { padding: var(--q-space-8) var(--pad) 0; display: grid; gap: var(--m-stack-tight); align-content: start; }
.proj-name a { color: inherit; text-decoration: none; }
.proj-name a:hover { color: var(--q-text-link-hover); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: var(--q-border-width-hairline); }
.proj-name { margin: 0; font-size: var(--q-type-h4-size); line-height: var(--q-type-h4-line-height); font-weight: var(--q-type-h4-weight); color: var(--q-text-heading); text-wrap: balance; }
.proj-area { margin: 0; font-size: var(--q-type-small-size); line-height: var(--q-type-small-line-height); color: var(--q-text-muted); }
.proj-price { display: flex; align-items: start; justify-content: space-between; gap: var(--q-space-4); padding: var(--q-space-5) var(--pad) 0; }
.proj-cost { margin: 0; display: grid; gap: var(--m-stack-tight); }
/* How it is paid for (owner, 2026-11-14), across from the price: a quiet line, its icon the status's success colour. */
.proj-pay { display: inline-flex; align-items: center; gap: var(--q-space-1); margin: 0; align-self: end; font-size: var(--q-type-caption-size); line-height: var(--q-type-caption-line-height);
  font-weight: var(--q-font-weight-medium); color: var(--q-text-secondary); white-space: nowrap; }
.proj-pay .q-icon { flex: none; color: var(--q-status-success-icon); }
.proj-cap { font-size: var(--q-type-caption-size); line-height: var(--q-type-caption-line-height); font-weight: var(--q-font-weight-regular); color: var(--q-text-muted); }
.proj-fig { font-size: var(--q-type-h3-size); line-height: var(--m-figure-leading); font-weight: var(--q-font-weight-medium); color: var(--q-text-primary); white-space: nowrap; }
/* The foot: every unit type, set like the price, and "Details" in the bottom corner. */
.proj-foot { display: flex; align-items: end; justify-content: space-between; gap: var(--q-space-4); padding: var(--q-space-6) var(--pad) var(--pad); align-self: end; }
.proj-units { margin: 0; display: grid; gap: var(--m-stack-tight); min-inline-size: 0; }
.proj-units .layouts { font-size: var(--q-type-h3-size); line-height: var(--m-figure-leading); font-weight: var(--q-font-weight-medium); color: var(--q-text-primary); }
.proj-foot .q-text-link { flex: none; }
@media (prefers-reduced-motion: reduce) { .pc-track { scroll-behavior: auto; } }

/* Services (§10.7, D23): one intro, then an editorial index read top to bottom; rows divided by hairlines, name and
   detail side by side on wide screens. Plain text, not links. */
.svc-grid { display: grid; gap: var(--q-space-8); }
.svc-intro { display: grid; gap: var(--q-space-3); justify-items: start; align-content: start; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; border-block-start: var(--q-border-width-hairline) solid var(--q-border-subtle); }
.svc-row { display: grid; row-gap: var(--q-space-2); align-content: start;
  padding-block: var(--q-space-5); border-block-end: var(--q-border-width-hairline) solid var(--q-border-subtle); }
.svc-name { margin: 0; font-size: var(--q-type-h4-size); line-height: var(--q-type-h4-line-height); font-weight: var(--q-font-weight-medium); color: var(--q-text-heading); text-wrap: balance; }
.svc-desc { margin: 0; font-size: var(--q-type-small-size); line-height: var(--q-type-small-line-height); font-weight: var(--q-font-weight-regular); color: var(--q-text-muted); }

/* Why QATANA (D27): the brief's five points, names only, one per row, a hairline between them. */
.why { display: grid; gap: var(--q-space-8); }
.why-list { margin: 0; padding: 0; list-style: none; display: grid; }
.why-list li { padding-block: var(--q-space-4); border-block-start: var(--q-border-width-hairline) solid var(--q-border-subtle);
  font-size: var(--q-type-h4-size); line-height: var(--q-type-h4-line-height); font-weight: var(--q-font-weight-medium); color: var(--q-text-heading); }
.why-list li:first-child { padding-block-start: 0; border-block-start: 0; }

/* The WhatsApp band (D29): the search panel's glass, even across the band, with the chamfered corner and no border. */
.band { --c: var(--q-space-10); display: grid; gap: var(--q-space-8); padding: var(--q-space-8) var(--q-space-6); border-radius: var(--q-radius-surface);
  background: var(--m-card-glass); color: var(--q-text-primary);
  -webkit-backdrop-filter: var(--m-card-glass-blur); backdrop-filter: var(--m-card-glass-blur); box-shadow: var(--q-shadow-3); }
.band-copy { display: grid; gap: var(--q-space-2); max-inline-size: 40rem; }
.band-title { margin: 0; font-family: var(--q-type-h3-family); font-size: var(--q-type-h3-size); line-height: var(--q-type-h3-line-height);
  font-weight: var(--q-type-h3-weight); color: var(--q-text-heading); text-wrap: balance; }
.band-copy p { margin: 0; font-size: var(--q-type-small-size); line-height: var(--q-type-small-line-height); color: var(--q-text-secondary); }
.band-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--q-space-6); }

/* ============================================================
   PROJECT PAGE (C10), moved from the mock-up's #project: the gallery and its viewer, the head, the facts, the unit
   table, the offer and the bottom bar
   ============================================================ */
/* Badge (§10.6): solid, icon + text (rule 6). */
.q-badge { display: inline-flex; align-items: center; gap: var(--q-space-1); padding-block: var(--q-space-1); padding-inline: var(--q-space-3);
  border-radius: var(--q-radius-base); font-size: var(--q-type-caption-size); font-weight: var(--q-type-caption-weight); line-height: var(--q-type-caption-line-height); white-space: nowrap; }
.q-badge--ready { background: var(--q-badge-ready-bg); color: var(--q-badge-ready-text); }
.q-badge--construction { background: var(--q-badge-construction-bg); color: var(--q-badge-construction-text); }
/* A meta line: a muted icon before secondary text. */
.q-meta { display: flex; align-items: center; gap: var(--q-space-2); color: var(--q-text-secondary); font-size: var(--q-type-small-size); line-height: var(--q-type-small-line-height); }
.q-meta .q-icon { color: var(--q-text-muted); }
.lead-c { color: var(--q-text-secondary); }
.pv { padding-block: var(--q-space-6) var(--q-space-section); }
.pv-back { margin-block-end: var(--q-space-4); }
/* Gallery: one swipeable, snapping track (native scroll, so touch, trackpad and arrow keys all work), bare chevrons
   and a count over the photo, thumbnails underneath. min-inline-size: 0 keeps the grid item from growing to the track.
   It spans the page's content width above the details (owner, 2026-10-26). */
.gallery { display: grid; gap: var(--q-space-2); min-inline-size: 0; margin-block-end: var(--q-space-2); }
.g-stage { position: relative; min-inline-size: 0; border-radius: var(--q-radius-surface); overflow: clip; background: var(--m-media); }
.g-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: calc(var(--q-focus-width) * -1); }
/* 16:9 at every width: the photo keeps its proportions (owner, 2026-10-26). Each photo links its full size (no script). */
.g-slide { flex: 0 0 100%; aspect-ratio: 16 / 9; scroll-snap-align: start; }
.g-full { display: block; block-size: 100%; }
/* The photo whole, at its own proportions, over a blurred copy of itself that fills the rest of the 16:9 frame
   (owner, 2026-11-13): staff may upload any shape, a tall tower loses nothing, and no frame shows empty bands. The
   copy keeps only its light and shade, laid faintly over the brand's darkest teal, so the frame reads dark green.
   The cards' 4:3 frames share it (owner, 2026-11-18). */
.g-full, .pc-frame { position: relative; isolation: isolate; overflow: clip; background: var(--m-photo-frame); }
.g-photo, .pc-photo { position: relative; display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }
.g-backdrop, .pc-backdrop { position: absolute; inset: 0; z-index: -1; display: block; inline-size: 100%; block-size: 100%; object-fit: cover;
  filter: blur(24px) grayscale(1); mix-blend-mode: luminosity; opacity: .35; transform: scale(1.15); }
/* The status badge over a photo takes the search panel's frosted glass (owner, 2026-10-26), so the photo shows through. */
.g-stage .q-badge { position: absolute; z-index: 2; inset-block-start: var(--q-space-3); inset-inline-end: var(--q-space-3);
  background: var(--m-card-glass); color: var(--q-text-heading); border: var(--q-border-width-hairline) solid var(--m-card-glass-line);
  -webkit-backdrop-filter: var(--m-card-glass-blur); backdrop-filter: var(--m-card-glass-blur); }
/* The expand button, the one way into the viewer, in the corner. */
.g-zoom { position: absolute; z-index: 2; inset-block-start: var(--q-space-3); inset-inline-start: var(--q-space-3); }
/* A soft shade at the foot keeps the dots legible on any photo, without a tile behind them. */
.g-stage::after { content: ""; position: absolute; inset: auto 0 0; block-size: 25%; pointer-events: none; background: linear-gradient(to top, rgb(0 0 0 / .4), transparent); }
.thumbs { display: flex; gap: var(--q-space-2); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-block: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 auto; display: block; inline-size: 5.5rem; aspect-ratio: 4 / 3; padding: 0; border-radius: var(--q-radius-surface); overflow: clip; background: var(--m-media);
  border: var(--q-border-width-hairline) solid transparent; cursor: pointer; opacity: .6; transition: opacity var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
/* A thumbnail fills its frame as the photo above it does (owner, 2026-11-13). */
.thumb img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.thumb:hover { opacity: .85; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--q-text-heading); }
.thumb:focus-visible { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: var(--q-focus-offset); }
/* Viewer (gallery.js): the same snapping track, full screen on black, the whole photo (contain), label and count
   above, bare controls. */
.lb { position: fixed; inset: 0; inline-size: 100vw; block-size: 100dvh; max-inline-size: none; max-block-size: none; margin: 0; padding: 0; border: 0;
  background: rgb(0 0 0 / .94); color: var(--q-text-on-photo); overflow: hidden; }
.lb::backdrop { background: rgb(0 0 0 / .94); }
:root:has(.lb[open]) { overflow: hidden; }
.lb-track { display: flex; block-size: 100%; overflow-x: auto; overscroll-behavior: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track:focus-visible { outline: none; }
/* The same thumbnails as the page, along the foot of the viewer; the photo's height leaves room for them.
   safe center: centred while they fit, from the start once they overflow (plain center would cut the first ones off). */
.lb { --lb-thumb-w: 4.5rem; }
.lb-thumbs { position: absolute; inset: auto 0 0; justify-content: safe center; padding: 2px var(--q-space-4); margin-block-end: var(--q-space-4); }
.lb-thumbs .thumb { inline-size: var(--lb-thumb-w); }
.lb-thumbs .thumb[aria-current="true"] { border-color: var(--q-text-on-photo); }
.lb-thumbs .thumb:focus-visible { outline-color: var(--q-text-on-photo); }
/* The photo's height cap is stated against the screen, not as a percentage: a % max-height inside a grid cell
   resolves against an auto row, so the photo would spill past the screen. */
.lb-slide { --lb-top: calc(var(--q-size-touch-min) + var(--q-space-4)); --lb-foot: calc(var(--lb-thumb-w) * 3 / 4 + 4px + var(--q-space-4) * 2);
  flex: 0 0 100%; min-inline-size: 0; display: grid; place-items: center; scroll-snap-align: start; padding: var(--lb-top) var(--q-space-2) var(--lb-foot); }
.lb-slide img { display: block; max-inline-size: 100%; max-block-size: calc(100dvh - var(--lb-top) - var(--lb-foot)); inline-size: auto; block-size: auto; }
.lb-bar { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--q-space-3);
  padding-block: var(--q-space-2) 0; padding-inline: var(--q-space-4) var(--q-space-2); font-size: var(--q-type-small-size); }
.lb-count { font-variant-numeric: tabular-nums lining-nums; }
.lb-count > span:not(:empty) + span::before { content: "·"; margin-inline: var(--q-space-2); opacity: .6; }
.lb-btn { display: grid; place-items: center; inline-size: var(--q-size-touch-min); block-size: var(--q-size-touch-min); padding: 0; border: 0; border-radius: var(--q-radius-base);
  background: none; color: var(--q-text-on-photo); cursor: pointer; transition: opacity var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.lb-btn:disabled { opacity: .3; cursor: default; }
.lb-btn:focus-visible { outline: var(--q-focus-width) solid var(--q-text-on-photo); outline-offset: -4px; }
.lb-nav { position: absolute; inset-block-start: 50%; translate: 0 -50%; }
.lb-nav--prev { inset-inline-start: var(--q-space-2); }
.lb-nav--next { inset-inline-end: var(--q-space-2); }
.lb-nav--prev svg { transform: scaleX(-1); }
.lb-nav--prev:dir(rtl) svg { transform: none; }
.lb-nav--next:dir(rtl) svg { transform: scaleX(-1); }
/* Phones: swipe is the way through, so the side chevrons would only cover the photo. */
@media (max-width: 767px) { .lb-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .g-track, .thumbs, .lb-track { scroll-behavior: auto; } }
/* Under the full-width photo: where (with the map link beside it), the name, the listing number. */
.pv-head { display: grid; gap: var(--q-space-2); padding-block: var(--q-space-6) var(--q-space-5); }
.pv-where { flex-wrap: wrap; column-gap: var(--q-space-2); }
.pv-where .q-text-link { margin-inline-start: var(--q-space-3); font-size: var(--q-type-small-size); }
/* The listing number with the share menu beside it (owner, 2026-11-13). */
.pv-ref { display: flex; flex-wrap: wrap; align-items: center; gap: var(--q-space-2) var(--q-space-4); }
.share { position: relative; }
.share-btn { display: inline-flex; align-items: center; gap: var(--q-space-1); min-block-size: var(--q-size-control-sm); padding-inline: var(--q-space-3);
  border-radius: var(--q-radius-base); color: var(--q-text-secondary);
  font-size: var(--q-type-small-size); cursor: pointer; list-style: none; user-select: none;
  transition: color var(--q-motion-duration-fast) var(--q-motion-easing-standard); }
.share-btn::-webkit-details-marker { display: none; }
.share-btn:hover, .share[open] .share-btn { color: var(--q-text-link-hover); }
.share-btn:focus-visible { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: var(--q-focus-offset); }
.share-menu { position: absolute; z-index: var(--q-z-index-fab); inset-block-start: calc(100% + var(--q-space-2)); inset-inline-start: 0;
  min-inline-size: 15rem; padding: var(--q-space-2); border-radius: var(--q-radius-surface); background: var(--q-surface-card);
  border: var(--q-border-width-hairline) solid var(--q-border-subtle); box-shadow: var(--q-shadow-3); }
.share-title { padding: var(--q-space-2) var(--q-space-3); font-size: var(--q-type-caption-size); color: var(--q-text-muted); }
.share-list { margin: 0; padding: 0; list-style: none; }
.share-item { display: flex; align-items: center; gap: var(--q-space-3); inline-size: 100%; min-block-size: var(--q-size-touch-min); padding-inline: var(--q-space-3);
  border: 0; border-radius: var(--q-radius-base); background: none; color: var(--q-text-primary); font: inherit; font-size: var(--q-type-body-size);
  text-align: start; text-decoration: none; cursor: pointer; }
.share-item:hover { background: var(--m-chip-bg); color: var(--q-text-heading); }
.share-item:focus-visible { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: calc(var(--q-focus-width) * -1); }
.share-item .q-icon { color: var(--q-text-secondary); }
.share-item.is-done .q-icon { color: var(--q-status-success-icon); }
/* The services' own marks in their own colours (D8); X's mark is black or white, so it takes the text's. */
.share-item--whatsapp .q-icon { color: var(--q-color-third-party-whatsapp); }
.share-item--telegram .q-icon { color: var(--q-color-third-party-telegram); }
.share-item--facebook .q-icon { color: var(--q-color-third-party-facebook); }
.share-item--x .q-icon { color: var(--q-text-heading); }
/* The facts row (D22 (5)): one rule above it and a divider between its cells, nothing under them; the cells sit at
   their own width side by side (layouts, delivery, developer: owner, 2026-11-13), and wrap only when the screen is
   too narrow for them. */
.tb { --tb-gap: calc(var(--q-space-8) * 2); display: flex; flex-wrap: wrap; gap: var(--q-space-2) var(--tb-gap); margin: 0; overflow: clip; border-block-start: var(--q-border-width-hairline) solid var(--q-border-default); }
.tb > div { position: relative; display: grid; gap: 2px; padding-block: var(--q-space-2) var(--q-space-3); min-inline-size: 0; }
/* Each cell draws its divider in the gap before it; the first cell of a line has it outside the row, where overflow
   clips it, so a wrapped line starts flush with no rule. */
.tb > div::before { content: ""; position: absolute; inset-block: var(--q-space-2); inset-inline-start: calc(var(--tb-gap) / -2);
  border-inline-start: var(--q-border-width-hairline) solid var(--q-border-subtle); }
.tb dt { font-size: var(--q-type-small-size); line-height: var(--q-type-small-line-height); color: var(--q-text-muted); }
.tb dd { margin: 0; font-size: var(--q-type-body-size); line-height: var(--q-type-body-line-height); font-weight: var(--q-font-weight-medium); color: var(--q-text-primary); }
.pv-sec { display: grid; gap: var(--q-space-3); padding-block: var(--q-space-6); border-block-start: var(--q-border-width-hairline) solid var(--q-border-subtle); }
.pv-sec h2 { font-size: var(--q-type-h3-size); line-height: var(--q-type-h3-line-height); font-weight: var(--q-type-h3-weight); color: var(--q-text-heading); }
.units { inline-size: 100%; border-collapse: collapse; font-size: var(--q-type-body-size); line-height: var(--q-type-body-line-height); }
.units th, .units td { padding-block: var(--q-space-3); text-align: start; border-block-end: var(--q-border-width-hairline) solid var(--q-border-subtle); }
.units thead th { font-size: var(--q-type-small-size); font-weight: var(--q-font-weight-regular); color: var(--q-text-muted); }
.units thead .u-price { text-align: end; }
.units tbody th { font-weight: var(--q-font-weight-medium); color: var(--q-text-primary); }
.units td { font-variant-numeric: tabular-nums lining-nums; color: var(--q-text-secondary); }
.units td.u-price { text-align: end; font-weight: var(--q-font-weight-bold); color: var(--q-text-heading); }
/* The payment plans (owner, 2026-11-14): one quiet card per plan, as many to a row as fit, the down payment first and
   largest (what a buyer asks first), then the balance over its months and the share at handover. */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--q-space-3); margin: 0; padding: 0; list-style: none; }
.plan { display: grid; gap: var(--q-space-2); align-content: start; min-inline-size: 0; padding: var(--q-space-4); border: var(--q-border-width-hairline) solid var(--q-border-subtle);
  border-radius: var(--q-radius-surface); background: var(--q-surface-card); }
.plan-down { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--q-space-2); margin: 0; font-size: var(--q-type-small-size); line-height: var(--q-type-small-line-height); color: var(--q-text-secondary); }
.plan-down strong { font-size: var(--q-type-h3-size); line-height: 1.2; font-weight: var(--q-font-weight-bold); color: var(--q-text-heading); font-variant-numeric: tabular-nums lining-nums; }
.plan-steps { display: grid; gap: var(--q-space-1); margin: 0; padding: 0; list-style: none; font-size: var(--q-type-small-size); line-height: var(--q-type-small-line-height); color: var(--q-text-secondary); }
.plan-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--q-space-1) var(--q-space-2); }
.plan-free { padding-inline: var(--q-space-2); border-radius: var(--q-radius-base); background: var(--q-badge-ready-bg); color: var(--q-badge-ready-text);
  font-size: var(--q-type-caption-size); line-height: var(--q-type-caption-line-height); font-weight: var(--q-type-caption-weight); white-space: nowrap; }
.plan-discount { display: flex; align-items: center; gap: var(--q-space-2); margin: 0; font-weight: var(--q-font-weight-medium); color: var(--q-text-primary); }
.plan-discount .q-icon { flex: none; color: var(--q-badge-ready-text); }
/* The offer closes the details (owner, 2026-10-26): price and WhatsApp side by side, no card around them. */
.pv-offer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--q-space-4) var(--q-space-8); padding-block: var(--q-space-6);
  border-block-start: var(--q-border-width-hairline) solid var(--q-border-subtle); }
.pv-price { display: grid; gap: 2px; margin: 0; }
.pv-price strong { font-size: var(--q-type-h3-size); line-height: 1.2; font-weight: var(--q-font-weight-bold); color: var(--q-text-heading); font-variant-numeric: tabular-nums lining-nums; }
/* The bar: on phones always, price + WhatsApp under the thumb. On desktop it rises only while the details' offer is
   off screen (project-bar.js sets .is-shown), so the WhatsApp action never leaves the screen. */
.pv-bar { position: fixed; z-index: var(--q-z-index-fab); inset-inline: 0; inset-block-end: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--q-space-3);
  padding-block: var(--q-space-3) calc(var(--q-space-3) + env(safe-area-inset-bottom, 0px)); padding-inline: max(var(--q-space-gutter), env(safe-area-inset-right, 0px)) max(var(--q-space-gutter), env(safe-area-inset-left, 0px));
  background: var(--q-surface-card); border-block-start: var(--q-border-width-hairline) solid var(--q-border-subtle); box-shadow: var(--q-shadow-3); }
.pv-bar p { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--q-space-2); }
.pv-bar strong { flex-basis: 100%; font-size: var(--q-type-h4-size); color: var(--q-text-heading); font-variant-numeric: tabular-nums lining-nums; }
.pv-bar-name { display: none; }
/* The bar is the project page's persistent WhatsApp button, so the floating one never shows there (the mock-up's
   .is-project .q-fab): from the first paint and without script, not only once header.js sees the bar on screen. */
:root:has(.pv-bar) .q-fab { display: none; }
@media (min-width: 768px) {
  .lb { --lb-thumb-w: 6.5rem; }
  .thumb { inline-size: 7.5rem; }
  .lb-slide { padding-inline: calc(var(--q-size-touch-min) + var(--q-space-6)); }
}
/* Phones and tablets: the bar below already carries WhatsApp, so the offer keeps only its price; the page leaves room
   for the bar under its last line. */
@media (max-width: 1023px) {
  .pv-offer .q-btn { display: none; }
  .pv { padding-block-end: calc(var(--q-space-section) + 4.5rem); }
}
@media (min-width: 1024px) {
  .pv-bar { padding-inline: max(var(--q-space-gutter), calc((100% - var(--q-layout-container-max)) / 2 + var(--q-space-gutter)));
    translate: 0 100%; visibility: hidden;
    transition: translate var(--q-motion-duration-slow) var(--q-motion-easing-standard), visibility 0s var(--q-motion-duration-slow); }
  .pv-bar.is-shown { translate: none; visibility: visible; transition: translate var(--q-motion-duration-slow) var(--q-motion-easing-standard); }
  .pv-bar strong { flex-basis: auto; }
  .pv-bar-name { display: inline; margin-inline-end: var(--q-space-3); font-size: var(--q-type-body-size); font-weight: var(--q-font-weight-medium); color: var(--q-text-primary); }
}
@media (prefers-reduced-motion: reduce) { .pv-bar, .pv-bar.is-shown { transition: none; } }

/* ============================================================
   PROJECT LIST (C10): the heading, the search panel in the page's flow (no hero to straddle), the cards, the pages
   ============================================================ */
.plist-head { padding-block: var(--q-space-6); }
.plist .search { margin-block-start: 0; }
.plist .sec { padding-block-start: var(--q-space-12); }
/* The pages: real links, the current one filled (aria-current, not colour alone: it is also bold and not a link to go). */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--q-space-2) var(--q-space-6); margin-block-start: var(--q-space-12); }
.pager ol { display: flex; flex-wrap: wrap; gap: var(--q-space-1); margin: 0; padding: 0; list-style: none; }
.pager ol a { display: grid; place-items: center; min-inline-size: var(--q-size-touch-min); block-size: var(--q-size-touch-min); padding-inline: var(--q-space-2);
  border-radius: var(--q-radius-base); font-size: var(--q-type-small-size); color: var(--q-text-primary); text-decoration: none; font-variant-numeric: tabular-nums lining-nums; }
.pager ol a:hover { background: var(--q-surface-sunken); color: var(--q-text-heading); }
.pager ol a[aria-current="page"] { background: var(--q-action-primary-bg); color: var(--q-action-primary-text); font-weight: var(--q-font-weight-bold); }

/* ============================================================
   WIDTHS
   ============================================================ */
@media (min-width: 768px) {
  /* One persistent WhatsApp button per width: the floating one below md, the header one from md (D9). */
  .q-header-cta { display: inline-flex; }
  .q-fab { display: none; }
  body { padding-block-end: 0; }
  .q-footer { grid-template-columns: 2fr 1fr 1fr; }
  .q-footer-bottom { grid-column: 1 / -1; }
  .svc-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--q-space-8); align-items: baseline; }
  .band { gap: var(--q-space-12); padding: var(--q-space-12); }
}
@media (min-width: 640px) {
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .band { padding: var(--q-space-16); }
}
@media (min-width: 1024px) {
  /* The page's section grammar (D23): heading in the start column, content beside it (4 : 8, 96px). */
  .svc-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--q-space-24); align-items: start; }
  .svc-intro { position: sticky; inset-block-start: calc(var(--q-size-header-height) + var(--q-space-8)); }
  .proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--q-space-6); }
  .why { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: var(--q-space-16); align-items: start; }
}

/* ============================================================
   REQUEST SECTION (C09), moved from the mock-up: the phone field (§10.4), alert (§10.8), the form (§10.10),
   the Kufic key (D28, §8)
   ============================================================ */
/* A tinted section keeps both paddings: its ground rises out of the page through the top padding and sinks back
   through the bottom one, so it never starts with a cut (D28, owner 2026-10-28). */
.sec--tinted { background: linear-gradient(to bottom, transparent, var(--q-surface-sunken) var(--q-space-section),
  var(--q-surface-sunken) calc(100% - var(--q-space-section)), transparent); }
/* The Kufic key (D28): assets/patterns/kufic-key.svg drawn once and very large, cropped by the section's inline-start
   top corner, faded to nothing before the form, and with the tinted ground's rise as a third layer. Mirrors in LTR;
   gone in forced colours. The masks are alpha only, so their stops are black. */
.sec--kufic { position: relative; isolation: isolate; overflow: clip; }
.sec--kufic::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --kufic-size: clamp(560px, 80vw, 1120px);
  background: var(--m-kufic-ink); opacity: var(--m-kufic-opacity);
  -webkit-mask-image: url("/img/patterns/kufic-key.svg"), radial-gradient(ellipse 60% 95% at 100% 10%, black 0%, rgb(0 0 0 / 0.5) 40%, transparent 78%),
    linear-gradient(to bottom, transparent, black var(--q-space-section));
  mask-image: url("/img/patterns/kufic-key.svg"), radial-gradient(ellipse 60% 95% at 100% 10%, black 0%, rgb(0 0 0 / 0.5) 40%, transparent 78%),
    linear-gradient(to bottom, transparent, black var(--q-space-section));
  -webkit-mask-size: var(--kufic-size) var(--kufic-size), 100% 100%, 100% 100%;
  mask-size: var(--kufic-size) var(--kufic-size), 100% 100%, 100% 100%;
  /* The tile's top inline-start spiral sits whole around the heading, its outer bar inside the rise. */
  -webkit-mask-position: right calc(var(--kufic-size) * -0.06) top calc(var(--q-space-section) * 0.35), 0 0, 0 0;
  mask-position: right calc(var(--kufic-size) * -0.06) top calc(var(--q-space-section) * 0.35), 0 0, 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: source-in, source-in;
  mask-composite: intersect; }
.sec--kufic:dir(ltr)::before { scale: -1 1; }
@media (forced-colors: active) { .sec--kufic::before { display: none; } }

/* The page's section grammar (D23): heading in the start column, the form in the content column. No card (D21). */
.lead-grid { display: grid; gap: var(--q-space-8); }
.lead-intro { display: grid; gap: var(--q-space-4); align-content: start; }

/* iOS zooms into any field under 16px: the phone widget's country search too (the fields' own rule is in base.css). */
@media (pointer: coarse) { .iti__search-input { font-size: 16px; } }

/* Phone: one LTR sequence, country then number (§10.4); the label and the error stay in the page direction. Without
   script it is the country select and the number; phone.js puts intl-tel-input over them (ADR 0020). */
.q-phone { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: var(--q-space-2); }
.phone-wrap .q-input { inline-size: 100%; }
/* The library's own styles arrive with it; these fit it to the design system: square corners, tokens, field height. */
.iti { display: block; inline-size: 100%;
  --iti-border-color: var(--q-border-subtle); --iti-dropdown-bg: var(--q-surface-card); --iti-hover-color: var(--q-surface-sunken);
  --iti-dialcode-color: var(--q-text-secondary); --iti-arrow-color: var(--q-text-secondary); --iti-spacer-horizontal: var(--q-space-3); }
.iti__country-container { font-size: var(--q-type-small-size); }
.iti__selected-country-primary:hover, .iti__selected-country:hover .iti__selected-country-primary { background: transparent; }
.iti__dropdown-content { inline-size: min(20rem, calc(100vw - 2rem)); border: var(--q-border-width-hairline) solid var(--q-border-default); border-radius: var(--q-radius-surface); box-shadow: var(--q-shadow-3); color: var(--q-text-primary); }
.iti__search-input { min-block-size: var(--q-size-control-md); padding-inline: var(--q-space-3); border: 0; border-block-end: var(--q-border-width-hairline) solid var(--q-border-subtle);
  background: var(--q-field-bg); color: var(--q-field-text); font: inherit; font-size: var(--q-type-small-size); }
.iti__country { display: flex; align-items: center; font-size: var(--q-type-small-size); padding-block: var(--q-space-2); }
.iti__country-name { direction: rtl; }
.iti__dial-code { font-variant-numeric: tabular-nums lining-nums; }
/* In the list, the code sits apart at the row's far end, isolated so "+354" never runs into the Arabic name. */
.iti__country .iti__dial-code { margin-inline-start: auto; padding-inline-start: var(--q-space-3); direction: ltr; unicode-bidi: isolate; color: var(--q-text-muted); }
.iti__country.iti__highlight { background: var(--q-surface-sunken); }
/* The number is international, so the field reads left to right: flag and code first, then the number. The library's
   [dir=rtl] rules match the Arabic page above it, so they are undone inside the wrapper, in logical properties: the
   wrapper is LTR, so its start is the left; the list is RTL again, so there the left is its end. */
.phone-wrap .iti__arrow { margin-inline: var(--iti-arrow-padding) 0; }
.phone-wrap .iti .iti__selected-dial-code { margin-inline: var(--q-space-1) 0; }
.phone-wrap .iti__selected-country { border-radius: 0; border-start-start-radius: var(--q-radius-base); border-end-start-radius: var(--q-radius-base); }
.phone-wrap .iti__dropdown-content { direction: rtl; inset-inline: auto 0; margin-inline-end: 0; }
.phone-wrap .iti__country-list .iti__flag, .phone-wrap .iti__country-name { margin-inline: 0 var(--q-space-3); }

/* Alert: a hairline above and below, icon + bold title + text, never a coloured side bar (§0.12). */
.q-alert {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--q-space-3); align-items: start;
  padding-block: var(--q-space-4); border-block: var(--q-border-width-hairline) solid var(--q-border-subtle);
  font-size: var(--q-type-small-size); line-height: var(--q-type-small-line-height); color: var(--q-text-secondary);
}
.q-alert[hidden] { display: none; }
.q-alert p { margin: 0; }
.q-alert strong { display: block; font-weight: var(--q-font-weight-bold); }
.q-alert--error strong { color: var(--q-status-error-text); }
.q-alert--error .q-icon { color: var(--q-status-error-icon); }
.q-alert .q-text-link { display: inline; min-block-size: 0; }
.lead-alert { margin-block-end: var(--q-space-8); }

/* The form (§10.10, D19): a label 8px from its field, fields 32px apart; the choices are light pills sized to their
   words, a hairline and no fill until chosen, then a tint and the brand edge (D21). */
.q-form { display: grid; gap: var(--q-space-8); }
.q-form[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--q-space-2); }
.chip { position: relative; display: grid; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; text-align: center; min-block-size: var(--q-size-touch-min); padding-inline: var(--q-space-4); white-space: nowrap;
  border: var(--q-border-width-hairline) solid var(--q-border-subtle); border-radius: var(--q-radius-base); background: transparent;
  font-size: var(--q-type-small-size); line-height: 1.4; color: var(--q-text-primary); }
.chip:hover span { border-color: var(--q-field-border-hover); }
.chip input:checked + span { background: color-mix(in srgb, var(--q-action-primary-bg) 14%, transparent); border-color: var(--q-action-primary-bg); color: var(--q-text-heading); font-weight: var(--q-font-weight-medium); }
.chip input:focus-visible + span { outline: var(--q-focus-width) solid var(--q-focus-ring); outline-offset: var(--q-focus-offset); }
.note summary { inline-size: fit-content; max-inline-size: 100%; cursor: pointer; list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note[open] summary { margin-block-end: var(--q-space-3); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--q-space-4) var(--q-space-6); padding-block-start: var(--q-space-2); }
.form-actions .q-btn[aria-busy="true"] { cursor: progress; }
.form-alt { margin: 0; font-size: var(--q-type-small-size); color: var(--q-text-secondary); }
.form-alt .q-text-link { min-block-size: 0; display: inline; }

/* Success (§10.10): the form hides, and a status panel shows a heading with an inline check that takes the focus. */
.q-form-success { display: grid; justify-items: start; gap: var(--q-space-4); padding-block: var(--q-space-8); text-align: start; }
.q-form-success[hidden] { display: none; }
.q-form-success h3 { display: flex; align-items: center; gap: var(--q-space-2); margin: 0; }
.q-form-success h3 .q-icon { color: var(--q-status-success-icon); }
.q-form-success p { margin: 0; }

@media (min-width: 1024px) {
  .lead-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--q-space-24); align-items: start; }
}

/* ============================================================
   REDUCED MOTION (§7): every duration instant, no transform.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: var(--q-motion-duration-instant) !important; animation-duration: var(--q-motion-duration-instant) !important; }
  .q-btn:active { transform: none; }
  .q-header-logo, .q-header-cta, .hero-logo-slot { transition: none !important; }
}
