/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* =====================================================================
   QASBAH landing page (front page)
   Layout and motion for the Bricks elements with the q- global classes.
   Typography and colours live on the global classes and the QASBAH
   variables in Bricks; this file only positions and animates.
   State: <html data-state="open"> is set by the qasbah-landing script.
   Easing and timings follow Dior Beauty's hero: 1s cubic-bezier(.87,0,.69,1).
   ===================================================================== */

:root{
  --q-h:100vh;
  --q-top:76px;
  --q-bottom:76px;
  --q-side:clamp(24px, 8.333vw, 160px);
  --q-panel:37.5vw;
  --q-caps:min(clamp(48px, 4.444vw, 84px), 8.6vh);
  --q-scale:.6875;
  --q-lift:calc(var(--q-caps) * .328);
  --q-rise:58vh;
  --q-clip-idle:inset(var(--q-top) var(--q-side) var(--q-bottom) var(--q-side));
  --q-clip-open:inset(0 calc(100vw - var(--q-panel)) 0 0);
  --q-shift-x:calc((var(--q-panel) - 100vw) / 2);
  --q-shift-y:0px;
  --q-media-y:0px;
  --q-ctrl-x:calc(-1 * var(--q-side));
  --q-ctrl-y:var(--q-bottom);
  --q-mark-x:calc(var(--q-panel) / 2);
  --q-motion:cubic-bezier(.87, 0, .69, 1);
}

body:has(.q-stage){margin:0;overflow:hidden;background:var(--q-ground, #120101);-webkit-font-smoothing:antialiased}
.q-stage :focus-visible{outline:1px solid var(--q-sand);outline-offset:4px}

/* stage: the deck's ground fills the screen (background image is set on the element in Bricks) */
.q-stage{position:fixed;inset:0;z-index:0;display:block;width:auto;padding:0;margin:0;background-color:var(--q-ground);overflow:hidden}

/* wordmark, travels to the centre of the form side */
.q-brand{position:fixed;inset:0 0 auto 0;height:var(--q-top);z-index:6;display:flex;align-items:center;justify-content:center;pointer-events:none}
.q-brand__logo{height:22px;width:auto;max-width:none;transform:translateX(0);transition:transform 1s var(--q-motion) .2s}
[data-state=open] .q-brand__logo{transform:translateX(var(--q-mark-x));transition-delay:0s}

/* the deck's half-arch tabs, flush to the edges */
.q-tab{position:fixed;width:64px;height:auto;max-width:none;z-index:1;pointer-events:none;transition:opacity .6s ease .9s}
.q-tab--l{left:-16.6px;top:50%;transform:translateY(-50%) rotate(-90deg)}
.q-tab--r{right:-16.6px;top:50%;transform:translateY(-50%) rotate(90deg)}
.q-tab--b{left:50%;bottom:0;width:60px;transform:translateX(-50%) rotate(180deg)}
[data-state=open] .q-tab{opacity:0;transition:opacity .35s ease}

/* film */
.q-film{position:fixed;inset:0;z-index:2;margin:0;background:#0b0101;clip-path:var(--q-clip-idle);transition:clip-path 1s var(--q-motion) .2s}
.q-film__media{position:absolute;inset:0;transform:translate(0,0);transition:transform 1s var(--q-motion) .2s}
.q-film__video{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;overflow:hidden;background:#0b0101}
.q-film__video video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%;cursor:default}
.q-film__scrim{position:absolute;inset:0;pointer-events:none;background:radial-gradient(42% 42% at 50% 52%, rgba(14,1,4,.62), rgba(14,1,4,.25) 60%, rgba(14,1,4,0)), linear-gradient(to top, rgba(14,1,4,.5), rgba(14,1,4,0) 26%)}
[data-state=open] .q-film{clip-path:var(--q-clip-open);transition-delay:0s}
[data-state=open] .q-film__media{transform:translate(var(--q-shift-x), var(--q-media-y));transition-delay:0s}

/* hero copy: centred on the frame, re-centred on the panel when open */
.q-hero{position:fixed;inset:var(--q-top) var(--q-side) var(--q-bottom);z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:0 24px;text-align:center;pointer-events:none;transform:translate(0,0);transition:transform 1s var(--q-motion) .2s}
.q-hero__lead{display:flex;flex-direction:column;align-items:center;gap:16px;transition:transform 1s var(--q-motion) .2s}
.q-hero__symbol{width:46px;height:auto;max-width:none}
.q-kicker{margin:0;text-indent:.32em}
.q-lockup{margin:0;display:flex;flex-direction:column;align-items:center;transform-origin:50% 50%;transition:transform 1s var(--q-motion) .2s}
.q-lockup__caps,.q-lockup__script{display:block;white-space:nowrap}
.q-lockup__script{margin-top:-.138em}
.q-discover.brxe-button{position:relative;pointer-events:auto;display:inline-block;margin-top:32px;padding:0 0 7px .28em;min-height:0;border:0;border-radius:0;background:linear-gradient(var(--q-pearl),var(--q-pearl)) left bottom/100% 1px no-repeat;cursor:pointer;transition:background-size .5s cubic-bezier(.31,0,.13,1),opacity .5s ease .9s,visibility 0s 0s}
.q-discover.brxe-button:hover{background-size:0% 1px}
.q-discover.brxe-button::before{content:"";position:absolute;inset:-14px -18px}
[data-state=open] .q-hero{transform:translate(var(--q-shift-x), calc(var(--q-shift-y) + var(--q-nudge, 37.5px)));transition-delay:0s}
[data-state=open] .q-lockup{transform:scale(var(--q-scale));transition-delay:0s}
[data-state=open] .q-hero__lead{transform:translateY(var(--q-lift));transition-delay:0s}
[data-state=open] .q-discover.brxe-button{opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s .3s}

/* film control: pause / play, drawn in CSS */
.q-controls{position:fixed;left:calc(var(--q-side) + 20px);bottom:calc(var(--q-bottom) + 20px);z-index:4;display:flex;gap:8px;transition:transform 1s var(--q-motion) .2s}
.q-ctrl.brxe-button{position:relative;width:36px;height:36px;min-height:0;padding:0;display:grid;place-items:center;font-size:0;line-height:0;color:var(--q-pearl);border:1px solid rgba(225,223,219,.35);border-radius:0;background:rgba(14,2,4,.35);cursor:pointer;transition:border-color .3s,background .3s}
.q-ctrl.brxe-button:hover{border-color:rgba(225,223,219,.7);background:rgba(14,2,4,.55)}
.q-ctrl.brxe-button::before{content:"";display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:9px;height:12px;border-left:1.5px solid currentColor;border-right:1.5px solid currentColor;box-sizing:border-box}
.q-ctrl.brxe-button[aria-pressed=true]::before{width:0;height:0;transform:translate(-40%,-50%);border-right:0;border-left:10px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent}
[data-state=open] .q-controls{transform:translate(var(--q-ctrl-x), var(--q-ctrl-y));transition-delay:0s}

/* footer line under the frame */
.q-foot{position:fixed;left:var(--q-side);right:var(--q-side);bottom:0;height:var(--q-bottom);z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;margin:0;transition:opacity .6s ease .9s}
.q-foot .q-foot__link{justify-self:end;color:inherit;text-decoration:none;font:inherit;letter-spacing:inherit;text-transform:inherit}
.q-foot .q-foot__link:hover{color:var(--q-pearl)}
[data-state=open] .q-foot{opacity:0;visibility:hidden;transition:opacity .35s ease,visibility 0s .35s}

/* request panel */
.q-enquire{position:fixed;top:0;right:0;bottom:0;left:var(--q-panel);z-index:5;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(191,160,132,.35) transparent;visibility:hidden;transition:visibility 0s .8s}
.q-enquire__pattern{position:fixed;top:0;right:0;bottom:0;left:var(--q-panel);opacity:0;pointer-events:none;transition:opacity .5s ease}
.q-enquire__bar{position:relative;flex:none;height:var(--q-top);display:flex;align-items:center;justify-content:flex-end;padding:0 40px}
.q-close.brxe-button{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 0 0 .28em;border:0;border-radius:0;background:none;cursor:pointer;opacity:0;transition:opacity .25s ease,color .3s}
.q-close.brxe-button:hover{color:var(--q-pearl)}
.q-close.brxe-button::after{content:"";width:14px;height:14px;background:linear-gradient(45deg,transparent calc(50% - .75px),currentColor calc(50% - .75px),currentColor calc(50% + .75px),transparent calc(50% + .75px)),linear-gradient(-45deg,transparent calc(50% - .75px),currentColor calc(50% - .75px),currentColor calc(50% + .75px),transparent calc(50% + .75px))}
/* Close: on hover or keyboard focus the cross turns a quarter, slowly settling (the label only warms to pearl) */
.q-close.brxe-button::after{transition:transform .7s cubic-bezier(.22,1,.36,1);will-change:transform}
@media (hover:hover){.q-close.brxe-button:hover::after{transform:rotate(90deg)}}
.q-close.brxe-button:focus-visible::after{transform:rotate(90deg)}
@media (prefers-reduced-motion:reduce){.q-close.brxe-button::after{transition:none}}
.q-enquire__body{position:relative;flex:1;display:flex;justify-content:center;align-items:center;padding:0 40px var(--q-top)}
/* the form rises from below the panel: clip that travel so it never counts as scrollable content,
   otherwise a scrollbar flashes in for the length of the move and nudges the form sideways */
@supports (overflow:clip){.q-enquire__body{overflow:clip}}
.q-enquire__inner{width:100%;max-width:520px;display:flex;flex-direction:column;align-items:center;text-align:center;opacity:0;transform:translateY(var(--q-rise));transition:transform .6s cubic-bezier(.55,0,1,.45),opacity .4s ease}
[data-state=open] .q-enquire{visibility:visible;transition-delay:0s}
[data-state=open] .q-enquire__pattern{opacity:.07;transition:opacity 1s ease .3s}
[data-state=open] .q-close.brxe-button{opacity:1;transition:opacity .5s ease .9s,color .3s}
[data-state=open] .q-enquire__inner{opacity:1;transform:none;transition:transform 1.3s var(--q-motion) .2s,opacity 1.3s var(--q-motion) .2s}

.q-crest{height:116px;width:auto;max-width:none}
.q-request{width:100%;display:flex;flex-direction:column;align-items:center}
.q-enquire__title{margin:28px 0 0;text-wrap:balance}
.q-enquire__title:focus{outline:none}
.q-intro{margin:12px 0 0;max-width:400px;text-wrap:balance}

/* form: Bricks Form element */
.q-form.brxe-form{width:100%;max-width:400px;margin:32px auto 0;padding:0;display:flex;flex-direction:column;gap:24px;text-align:left}
.q-form .form-group{width:100%;margin:0;padding:0}
.q-form .form-group label{display:block;margin:0 0 6px;padding:0}
.q-form input:not([type=submit]){width:100%;height:auto;margin:0;padding:10px 0 12px;border:0;border-bottom:1px solid var(--q-line);border-radius:0;background:transparent;box-shadow:none;line-height:1.3;outline:none;transition:border-color .3s}
.q-form input:not([type=submit]):focus{border-bottom-color:var(--q-pearl)}
.q-form input:-webkit-autofill{-webkit-text-fill-color:var(--q-pearl);caret-color:var(--q-pearl);transition:background-color 99999s}
.q-form .form-group:has(input[name=website]){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.q-form .form-group-error-message,.q-form .error-message,.q-form .form-group .error{margin-top:6px;font-family:Jost,system-ui,sans-serif;font-size:12px;letter-spacing:.02em;color:var(--q-error)}
.q-form .submit-button-wrapper{display:flex;justify-content:center;margin-top:8px}
.q-form .submit-button-wrapper button{height:44px;min-height:0;padding:0 28px 0 calc(28px + .3em);border:1px solid var(--q-line);border-radius:0;background:transparent;cursor:pointer;transition:border-color .3s,background .3s}
.q-form .submit-button-wrapper button:hover{border-color:var(--q-sand);background:rgba(200,170,140,.08)}
.q-form .submit-button-wrapper button .loading{display:none}
.q-form.sending .submit-button-wrapper button .loading{display:inline-flex;margin-left:8px;width:12px}
.q-form .message.success{display:none}
.q-form .message.error{width:100%;margin:0;text-align:center;font-family:Jost,system-ui,sans-serif;font-size:13px;color:var(--q-error);background:none}
.q-legal{margin:16px 0 0}
.q-legal a{color:var(--q-accent);text-underline-offset:3px}

/* thank-you state (Bricks form success) */
.q-thanks{display:none;flex-direction:column;align-items:center;margin-top:28px;text-align:center}
.q-thanks:focus{outline:none}
.q-thanks__script{margin:0}
.q-thanks__title{margin:34px 0 0} /* clears the long descender of the script y (0.25em below its line box) */
.q-thanks__text{margin:12px 0 0;max-width:360px;text-wrap:balance}
.q-enquire__inner.is-done .q-request{display:none}
.q-enquire__inner.is-done .q-thanks{display:flex}

/* tablet portrait (Bricks 991px) */
@media (max-width:991px) and (min-width:768px){
  :root{--q-panel:42vw;--q-side:40px;--q-caps:min(clamp(44px, 5.4vw, 64px), 8.6vh)}
  .q-enquire__body{padding:0 32px var(--q-top)}
}
/* phone held upright (Bricks mobile landscape 767px): the film folds into a band, the form rises below.
   Phones held sideways (under 501px tall) use the side-by-side layout with the short-screen rules below. */
@media (max-width:767px) and (min-height:501px){
  :root{--q-top:64px;--q-bottom:92px;--q-side:16px;--q-band:38svh;--q-caps:clamp(34px, 10.4vw, 48px);--q-scale:.62;--q-lift:calc(var(--q-caps) * .399);
    --q-clip-open:inset(0px 0px calc(var(--q-h) - var(--q-band)) 0px);
    --q-shift-x:0px;--q-shift-y:calc((var(--q-band) - var(--q-h) - var(--q-top) + var(--q-bottom)) / 2);
    --q-media-y:calc((var(--q-band) - var(--q-h)) / 2);
    --q-ctrl-x:-20px;--q-ctrl-y:calc(var(--q-band) - var(--q-h) + var(--q-bottom) + 4px);
    --q-mark-x:0px;--q-rise:50svh}
  .q-tab--l,.q-tab--r{display:none}
  .q-brand{transition:opacity .4s ease .8s}
  [data-state=open] .q-brand{opacity:0;transition:opacity .3s ease}
  .q-hero{padding:0 12px}
  .q-hero__symbol{width:38px}
  .q-foot{grid-template-columns:1fr;justify-items:center;align-content:start;padding-top:14px;gap:6px}
  .q-foot .q-foot__link{justify-self:center}
  .q-enquire,.q-enquire__pattern{top:var(--q-band);left:0}
  .q-enquire__bar{height:56px;padding:0 16px}
  .q-enquire__body{align-items:flex-start;padding:4px 24px 40px}
  .q-crest{height:84px}
  .q-enquire__title{margin-top:20px}
}
@media (max-height:800px) and (min-width:768px), (max-height:500px){
  .q-enquire__body{padding-bottom:40px}
  .q-crest{height:100px}
}
@media (max-height:720px) and (min-width:768px), (max-height:500px){
  .q-enquire__body{padding-bottom:24px}
  .q-crest{height:64px}
  .q-enquire__title{margin-top:14px}
  .q-form.brxe-form{margin-top:22px;gap:18px}
}
@media (prefers-reduced-motion:reduce){
  .q-stage *,.q-stage *::before,.q-stage *::after{transition-duration:.2s !important;transition-delay:0s !important}
  .q-enquire__inner{transform:none !important}
}
html.q-no-anim .q-stage *,html.q-no-anim .q-stage *::before,html.q-no-anim .q-stage *::after{transition:none !important}

/* closing uses an even in-out curve that starts promptly; opening keeps Dior's 1s curve */
:root{--q-ease-back:cubic-bezier(.65,0,.35,1)}
.q-film{transition:clip-path .95s var(--q-ease-back) .15s}
.q-film__media,.q-hero,.q-hero__lead,.q-lockup,.q-brand__logo{transition:transform .95s var(--q-ease-back) .15s}
[data-state=open] .q-film{transition:clip-path 1s var(--q-motion) 0s}
[data-state=open] .q-film__media,[data-state=open] .q-hero,[data-state=open] .q-hero__lead,[data-state=open] .q-lockup,[data-state=open] .q-brand__logo{transition:transform 1s var(--q-motion) 0s}
/* Smooth start and finish: the moving hero parts stay on their own layers all the time, so the
   browser never redraws the text as a move begins or ends (that redraw made the heading pop by a
   fraction of a pixel), and the open position is rounded to whole pixels so the letters land crisp. */
.q-film__media,.q-hero,.q-hero__lead,.q-lockup,.q-brand__logo{will-change:transform}
@supports (width:round(1.5px, 1px)){
  [data-state=open] .q-hero{transform:translate(round(var(--q-shift-x), 1px), round(calc(var(--q-shift-y) + var(--q-nudge, 37.5px)), 1px))}
  [data-state=open] .q-hero__lead{transform:translateY(round(var(--q-lift), 1px))}
  [data-state=open] .q-brand__logo{transform:translateX(round(var(--q-mark-x), 1px))}
}
@media (min-width:768px), (max-height:500px){
  .q-controls{transition:transform .95s var(--q-ease-back) .15s}
  [data-state=open] .q-controls{transition:transform 1s var(--q-motion) 0s}
}

/* =====================================================================
   Preloader (hairline). The head script sets <html class="q-pre" data-load="loading">
   and downloads the whole film; the landing script moves data-load through
   line > open > hero, then removes both so the rules above take over.
   Without JavaScript neither is set and the page shows as normal.
   ===================================================================== */
:root{--q-mid:calc(var(--q-h) / 2 + (var(--q-top) - var(--q-bottom)) / 2);--q-clip-line:inset(var(--q-mid) var(--q-side) calc(var(--q-h) - var(--q-mid)) var(--q-side));--q-ease-io:cubic-bezier(.76,0,.24,1);--q-ease-out:cubic-bezier(.22,1,.36,1)}
.q-loader{position:fixed;inset:0;z-index:5;pointer-events:none;display:none}
html.q-pre .q-loader{display:block}
.q-loader__mark{position:absolute;left:50%;top:calc(var(--q-mid) - 72px);width:44px;height:44px;translate:-50% 0;transition:opacity .22s ease}
.q-loader__star{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;opacity:.16}
.q-loader__star--fill{opacity:1;clip-path:inset(100% 0 0 0)}
.q-loader__line{position:absolute;left:50%;top:var(--q-mid);width:200px;height:1px;margin-top:-.5px;translate:-50% 0;background:rgba(191,160,132,.22)}
.q-loader__fill{position:absolute;inset:0;background:var(--q-sand);transform-origin:0 50%;transform:scaleX(0)}
.q-loader__count{position:absolute;left:50%;top:calc(var(--q-mid) + 22px);translate:-50% 0;margin:0;white-space:nowrap;text-indent:.32em;font-variant-numeric:tabular-nums;transition:opacity .22s ease}
html.q-pre .q-loader{animation:q-loader-in .3s ease both}
@keyframes q-loader-in{from{opacity:0}}

/* the stage while the film loads */
html.q-pre .q-film{clip-path:var(--q-clip-line);transition:none}
html.q-pre .q-film__video video{scale:1.08}
html.q-pre .q-hero__symbol,html.q-pre .q-kicker,html.q-pre .q-lockup__caps,html.q-pre .q-lockup__script,html.q-pre .q-discover.brxe-button{opacity:0;translate:0 10px;transition:none}
html.q-pre .q-tab,html.q-pre .q-controls,html.q-pre .q-foot{opacity:0;transition:none}
html.q-pre .q-discover.brxe-button,html.q-pre .q-controls{pointer-events:none}

/* 1: the line runs out to the width of the frame */
html.q-pre[data-load=line] .q-loader__mark,html.q-pre[data-load=line] .q-loader__count,
html.q-pre[data-load=open] .q-loader__mark,html.q-pre[data-load=open] .q-loader__count,
html.q-pre[data-load=hero] .q-loader__mark,html.q-pre[data-load=hero] .q-loader__count{opacity:0}
html.q-pre[data-load=line] .q-loader__line{width:calc(100vw - 2 * var(--q-side));transition:width .55s cubic-bezier(.65,0,.35,1)}
/* 2: the film opens out of the line */
html.q-pre[data-load=open] .q-loader__line,html.q-pre[data-load=hero] .q-loader__line{width:calc(100vw - 2 * var(--q-side));opacity:0;transition:opacity .3s ease .1s}
html.q-pre[data-load=open] .q-film,html.q-pre[data-load=hero] .q-film{clip-path:var(--q-clip-idle);transition:clip-path 1.05s cubic-bezier(.76,0,.24,1)}
html.q-pre[data-load=open] .q-film__video video,html.q-pre[data-load=hero] .q-film__video video{scale:1;transition:scale 1.8s var(--q-ease-out)}
/* 3: the words arrive in reading order */
html.q-pre[data-load=hero] .q-hero__symbol,html.q-pre[data-load=hero] .q-kicker,html.q-pre[data-load=hero] .q-lockup__caps,html.q-pre[data-load=hero] .q-lockup__script,html.q-pre[data-load=hero] .q-discover.brxe-button{opacity:1;translate:0 0;transition:opacity .6s var(--q-ease-out),translate .6s var(--q-ease-out)}
html.q-pre[data-load=hero] .q-kicker{transition-delay:.05s}
html.q-pre[data-load=hero] .q-lockup__caps{transition-delay:.1s}
html.q-pre[data-load=hero] .q-lockup__script{transition-delay:.15s}
html.q-pre[data-load=hero] .q-discover.brxe-button{transition-delay:.25s}
html.q-pre[data-load=hero] .q-tab,html.q-pre[data-load=hero] .q-controls,html.q-pre[data-load=hero] .q-foot{opacity:1;transition:opacity .6s ease .25s}
@media (prefers-reduced-motion:reduce){
  html.q-pre .q-film__video video{scale:1}
  html.q-pre .q-hero__symbol,html.q-pre .q-kicker,html.q-pre .q-lockup__caps,html.q-pre .q-lockup__script,html.q-pre .q-discover.brxe-button{translate:0 0}
}

/* =====================================================================
   Form: phone row with the country code selector, and validation
   ===================================================================== */
.q-form{--q-field-font:inherit;--q-field-size:16px}
.q-form > div:has(> input[name=phone_international]){display:none}
.q-form .form-group-error-message{display:none !important}
.q-form .form-group{position:relative}

.q-tel{position:relative;display:flex;align-items:stretch;border-bottom:1px solid var(--q-line);transition:border-color .3s}
.q-tel:focus-within{border-bottom-color:var(--q-pearl)}
.q-form .q-tel input[type=tel]{flex:1;min-width:0;border-bottom:0 !important}
.q-cc{display:flex;align-items:center;gap:9px;flex:none;margin:0;padding:10px 14px 12px 0;border:0;border-radius:0;background:none;color:var(--q-pearl);font-family:var(--q-field-font);font-size:var(--q-field-size);line-height:1.3;letter-spacing:.01em;cursor:pointer;position:relative;-webkit-tap-highlight-color:transparent}
.q-cc::after{content:"";position:absolute;right:0;top:50%;width:1px;height:18px;margin-top:-10px;background:var(--q-line)}
.q-cc + input{padding-left:14px !important}
.q-cc__code{font-variant-numeric:tabular-nums}
.q-cc__chev{width:9px;height:6px;color:var(--q-accent);transition:transform .3s var(--q-ease-out)}
.q-cc[aria-expanded=true] .q-cc__chev{transform:rotate(180deg)}
.q-cc:focus-visible{outline:1px solid var(--q-sand);outline-offset:2px}
.q-flag{display:inline-block;flex:none;width:20px;height:15px;border-radius:2px;background:rgba(225,223,219,.12) 0 0/320px 240px no-repeat;box-shadow:inset 0 0 0 1px rgba(225,223,219,.16)}
html.q-flags .q-flag{background-image:var(--q-flags)}

/* the list: a popover on larger screens, a sheet on phones */
.q-ccp{position:absolute;left:0;right:0;z-index:20;display:flex;flex-direction:column;max-height:316px;background:#170203;border:1px solid rgba(191,160,132,.28);box-shadow:0 28px 60px -12px rgba(0,0,0,.6);opacity:0;visibility:hidden;translate:0 6px;transition:opacity .25s ease,translate .35s var(--q-ease-out),visibility 0s .35s;text-align:left}
.q-ccp[data-side=below]{top:calc(100% + 8px)}
.q-ccp[data-side=above]{bottom:calc(100% - 22px);translate:0 -6px}
.q-ccp.is-open{opacity:1;visibility:visible;translate:0 0;transition:opacity .25s ease,translate .35s var(--q-ease-out),visibility 0s}
.q-ccp__head{display:none}
.q-ccp__search{position:relative;flex:none;display:flex;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid rgba(191,160,132,.22)}
.q-ccp__search svg{flex:none;width:14px;height:14px;color:var(--q-accent)}
.q-ccp__search input{transition:none !important;flex:1;min-width:0;margin:0;padding:15px 0 !important;border:0 !important;border-radius:0;box-shadow:none;background:none;color:var(--q-pearl);caret-color:var(--q-sand);font-family:var(--q-field-font);font-size:16px;letter-spacing:.01em;outline:none;-webkit-appearance:none;appearance:none}
.q-ccp__search input::placeholder{color:rgba(225,223,219,.42)}
.q-ccp__search input::-webkit-search-cancel-button{display:none}
.q-ccp__list{flex:1;min-height:0;margin:0;padding:6px 0 8px;list-style:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:auto;scrollbar-width:auto}
.q-ccp__list::-webkit-scrollbar{width:6px}
.q-ccp__list::-webkit-scrollbar-track{background:transparent}
.q-ccp__list::-webkit-scrollbar-thumb{background:rgba(191,160,132,.32);border-radius:3px}
@supports not selector(::-webkit-scrollbar){.q-ccp__list{scrollbar-width:thin;scrollbar-color:rgba(191,160,132,.35) transparent}}
.q-ccp__group{padding:14px 18px 8px;font-family:var(--q-field-font);font-weight:500;font-size:10px;line-height:1;letter-spacing:.28em;text-transform:uppercase;color:var(--q-accent)}
.q-ccp__group + .q-ccp__opt{margin-top:0}
.q-ccp__rule{height:1px;margin:8px 18px 0;background:rgba(191,160,132,.18)}
.q-ccp__opt{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 18px;cursor:pointer;color:var(--q-pearl);font-family:var(--q-field-font);font-size:14px;letter-spacing:.01em;transition:background-color .15s ease}
.q-ccp__name{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.q-ccp__dial{flex:none;font-size:13px;color:var(--q-accent);font-variant-numeric:tabular-nums}
.q-ccp__tick{flex:none;width:12px;height:12px;color:var(--q-sand);visibility:hidden}
.q-ccp__opt[aria-selected=true] .q-ccp__name{color:var(--q-sand)}
.q-ccp__opt[aria-selected=true] .q-ccp__tick{visibility:visible}
.q-ccp__opt.is-active,.q-ccp__opt:hover{background:rgba(191,160,132,.09)}
.q-ccp__empty{margin:0;padding:22px 18px 26px;font-family:var(--q-field-font);font-size:13px;letter-spacing:.02em;color:rgba(225,223,219,.6)}

/* validation: a hairline in the error tone and one quiet line of text */
.q-form .form-group.is-invalid input:not([type=submit]),.q-form .form-group.is-invalid .q-tel{border-bottom-color:var(--q-error)}
.q-form .form-group.is-invalid .q-tel input{border-bottom:0}
.q-form .form-group.is-invalid label{color:var(--q-error);transition:color .3s}
.q-err{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s var(--q-ease-out)}
.q-err > span{display:flex;align-items:center;gap:9px;min-height:0;overflow:hidden;opacity:0;translate:0 -4px;font-family:var(--q-field-font);font-weight:400;font-size:12px;line-height:1.4;letter-spacing:.04em;color:var(--q-error);transition:opacity .3s ease,translate .35s var(--q-ease-out)}
.q-err > span::before{content:"";flex:none;width:5px;height:5px;margin:0 1px;border:1px solid currentColor;rotate:45deg}
.q-err > span > b{display:block;padding-top:9px;padding-bottom:1px;font-weight:inherit}
.q-err > span::before{align-self:flex-start;margin-top:14px}
.is-invalid > .q-err{grid-template-rows:1fr}
.is-invalid > .q-err > span{opacity:1;translate:0 0}
.q-form .message.error{padding:0;border:0;font-weight:400;letter-spacing:.04em;line-height:1.5}
.q-form.sending .submit-button-wrapper button,.q-form .submit-button-wrapper button.sending{opacity:.6;cursor:wait}

@media (max-width:767px) and (min-height:501px){
  /* Discover: smaller and finer on phones */
  .q-discover.brxe-button{margin-top:28px;padding-bottom:6px}
  :root{--q-nudge:34px}
  /* the pause control fades out while the film changes shape and fades back in at its new corner */
  .q-controls{transition:transform .95s var(--q-ease-back) .15s,opacity .5s ease}
  [data-state=open] .q-controls{transition:transform 1s var(--q-motion) 0s,opacity .5s ease}
  html.q-moving .q-controls{opacity:0;transition:transform .95s var(--q-ease-back) .15s,opacity .15s ease}
  html.q-moving[data-state=open] .q-controls{transition:transform 1s var(--q-motion) 0s,opacity .15s ease}

  .q-ccp{position:fixed;inset:auto 0 0 0;top:auto;bottom:0;height:min(78svh, calc(var(--q-vvh, 100svh) - 24px));max-height:none;border-width:1px 0 0;box-shadow:0 -24px 60px rgba(0,0,0,.55);translate:0 24px;z-index:30}
  .q-ccp[data-side]{top:auto;bottom:var(--q-kb, 0px);translate:0 24px}
  .q-ccp.is-open{translate:0 0}
  .q-ccp__head{display:flex;flex:none;align-items:center;justify-content:space-between;height:56px;padding:0 6px 0 18px;border-bottom:1px solid rgba(191,160,132,.22);font-family:var(--q-field-font);font-weight:500;font-size:11px;letter-spacing:.28em;text-transform:uppercase;color:var(--q-accent)}
  .q-ccp__x{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:none;color:var(--q-pearl);cursor:pointer}
  .q-ccp__x svg{width:14px;height:14px}
  .q-ccp__opt{min-height:48px;font-size:15px}
  html.q-sheet .q-enquire{z-index:8}
  .q-ccp__scrim{position:fixed;inset:0;z-index:29;background:rgba(8,0,0,.55);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s .3s}
  .q-ccp__scrim.is-open{opacity:1;visibility:visible;transition:opacity .3s ease,visibility 0s}
}
@media (min-width:768px), (max-height:500px){.q-ccp__scrim{display:none}}

/* =====================================================================
   Review pass: touch, keyboard and small-screen refinements
   ===================================================================== */
html:has(.q-stage),body:has(.q-stage){overscroll-behavior:none}
.q-stage button,.q-stage a,.q-ccp button,.q-ccp li{-webkit-tap-highlight-color:transparent}
body:has(.q-stage) ::selection{background:rgba(200,170,140,.32);color:#fff}
.q-form input:not([type=submit]){caret-color:var(--q-sand)}
/* typing on a touch screen: room under the form so the browser can lift the field above the keyboard */
html.q-room .q-enquire{scroll-padding:16px 0 24px}
html.q-room .q-enquire__body{padding-bottom:calc(40px + 50svh)}
/* 44px touch areas around the small controls, without changing how they look */
.q-ctrl.brxe-button::after{content:"";position:absolute;inset:-5px}
.q-foot .q-foot__link{position:relative}
.q-foot .q-foot__link::after{content:"";position:absolute;inset:-14px -10px}
/* landscape phones and very short windows: tighter frame so the headline never touches its edges */
@media (max-height:500px){
  :root{--q-top:52px;--q-bottom:52px;--q-nudge:26.5px;--q-panel:50vw;--q-side:clamp(20px, 6vw, 72px);--q-caps:min(40px, 8.6vh)}
  .q-tab--b{display:none}
  .q-enquire__bar{height:52px}
  .q-enquire__body{padding:0 28px 24px}
  .q-crest{height:52px}
  .q-brand__logo{height:18px}
  /* the panel bar is narrow here: the cross alone is the close button (it keeps its 44px target and the word for screen readers) */
  .q-enquire__bar .q-close.brxe-button{font-size:0;letter-spacing:0;gap:0;padding:0;width:44px;justify-content:center}
  .q-hero,.q-hero__lead{gap:10px}
  .q-hero__symbol{width:30px}
  .q-discover.brxe-button{margin-top:16px}
  .q-tab--l,.q-tab--r{width:52px}
}
@media (max-width:767px), (pointer:coarse){
  .q-ccp__search input{font-size:17px}
}

/* inside the Bricks builder: show the open layout statically so every element can be edited */
[data-builder-window] .q-film{clip-path:var(--q-clip-open)}
[data-builder-window] .q-film__media{transform:translate(var(--q-shift-x), var(--q-media-y))}
[data-builder-window] .q-hero{transform:translate(var(--q-shift-x), var(--q-shift-y))}
[data-builder-window] .q-lockup{transform:scale(var(--q-scale))}
[data-builder-window] .q-enquire{visibility:visible}
[data-builder-window] .q-enquire__pattern{opacity:.07}
[data-builder-window] .q-enquire__inner,[data-builder-window] .q-close.brxe-button{opacity:1;transform:none}
[data-builder-window] .q-thanks{display:flex;margin-top:48px;padding-top:24px;border-top:1px dashed var(--q-line)}

/* =====================================================================
   QASBAH 404 page (Bricks template 49, type Error page)
   Same stage, header, side tabs, lockup and footer as the landing page.
   A hairline arch draws itself from the floor on the left, over the top,
   and stops a fifth of the way above the floor on the right. The drawing
   lives inside the arch's own SVG, so it needs no script.
   ===================================================================== */
.q-404{--q-caps:50px}
.q-404 .q-brand__link{display:block;padding:8px;line-height:0;pointer-events:auto}
.q-404__floor{position:fixed;left:var(--q-side);right:var(--q-side);bottom:var(--q-bottom);height:1px;background:linear-gradient(90deg,rgba(200,170,140,0),rgba(200,170,140,.35) 30%,rgba(200,170,140,.35) 70%,rgba(200,170,140,0))}
.q-404__arch{position:fixed;left:50%;bottom:var(--q-bottom);z-index:2;width:auto;height:clamp(440px, calc(100vh - 200px), 660px);aspect-ratio:2/3;translate:-50% 0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none' fill='none'%3E%3Cstyle%3Epath{stroke-dasharray:1;stroke-dashoffset:1;animation:d 2.2s cubic-bezier(.65,0,.35,1) forwards}path+path{animation-delay:.25s}%40keyframes d{to{stroke-dashoffset:0}}%40media (prefers-reduced-motion:reduce){path{animation:none;stroke-dashoffset:0}}%3C/style%3E%3Cpath pathLength='1' stroke='%23C8AA8C' stroke-width='.95' d='M1 600V232C1 150 62 110 122 90C166 75 190 42 200 2C210 42 234 75 278 90C338 110 399 150 399 232V492'/%3E%3Cpath pathLength='1' stroke='rgba(200,170,140,.38)' stroke-width='.95' d='M15 600V236C15 164 70 126 127 106C168 92 191 64 200 32C209 64 232 92 273 106C330 126 385 164 385 236V480'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.q-404__glow{position:absolute;inset:10% 6% 0;background:radial-gradient(70% 60% at 50% 70%,rgba(101,29,50,.42),rgba(101,29,50,0) 70%);pointer-events:none}
.q-404__inner{position:absolute;inset:27% 0 0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 9%}
.q-404 .q-hero__symbol{width:40px}
.q-404 .q-kicker{margin-top:18px}
.q-404 .q-lockup{margin-top:18px}
.q-404 .q-404__text.q-intro{margin:22px 0 0;max-width:290px;font-size:17px;line-height:1.6}
.q-404 .q-discover.brxe-button{margin-top:30px;text-decoration:none}
/* entrance: floor, then the arch draws, then the words rise in reading order */
@keyframes q404-up{from{opacity:0;translate:0 14px}}
@keyframes q404-fade{from{opacity:0}}
.q-404__floor{animation:q404-fade 1.2s ease .2s both}
.q-404__glow{animation:q404-fade 1.2s ease .9s both}
.q-404 .q-tab{animation:q404-fade 1.2s ease .6s both}
.q-404 .q-foot{animation:q404-fade 1.2s ease .8s both}
.q-404 .q-hero__symbol,.q-404 .q-kicker,.q-404 .q-lockup__caps,.q-404 .q-lockup__script,.q-404__text,.q-404 .q-discover.brxe-button{animation:q404-up 1s cubic-bezier(.22,1,.36,1) both}
.q-404 .q-hero__symbol{animation-delay:1.1s}
.q-404 .q-kicker{animation-delay:1.2s}
.q-404 .q-lockup__caps{animation-delay:1.3s}
.q-404 .q-lockup__script{animation-delay:1.4s}
.q-404__text{animation-delay:1.55s}
.q-404 .q-discover.brxe-button{animation-delay:1.7s}
@media (max-height:720px) and (min-width:768px), (max-height:500px){
  .q-404{--q-caps:44px}
  .q-404__inner{top:24%}
  .q-404 .q-hero__symbol{display:none}
  .q-404 .q-kicker{margin-top:0}
  .q-404 .q-404__text.q-intro{margin-top:16px}
  .q-404 .q-discover.brxe-button{margin-top:22px}
}
@media (max-width:767px) and (min-height:501px){
  .q-404{--q-caps:36px}
  .q-404__arch{width:calc(100vw - 2 * var(--q-side));height:auto;max-height:calc(100svh - var(--q-top) - var(--q-bottom) - 16px)}
  .q-404__inner{top:25%;padding:0 7%}
  .q-404 .q-hero__symbol{width:38px}
  .q-404 .q-404__text.q-intro{font-size:16px}
}
/* phones held sideways and very short windows: a wider, lower arch so the words still sit inside it */
@media (max-height:500px){
  .q-404{--q-caps:28px}
  .q-404__arch{height:calc(100svh - var(--q-top) - var(--q-bottom) - 10px);aspect-ratio:5/4}
  .q-404__inner{top:20%;padding:0 8%}
  .q-404 .q-lockup{margin-top:10px}
  .q-404 .q-404__text.q-intro{margin-top:10px;max-width:290px;font-size:13px;line-height:1.45}
  .q-404 .q-discover.brxe-button{margin-top:14px}
}
@media (prefers-reduced-motion:reduce){
  .q-404 *{animation:none !important}
}
[data-builder-window] .q-404 .q-lockup{transform:none}

/* =====================================================================
   QASBAH privacy policy (page "privacy-policy")
   Pearl ground, crimson type, night bars top and bottom.
   Typography and colours live on the q-pp global classes in Bricks;
   this section handles layout, ornaments and the list markup inside
   the text elements (contents lists, bullets, placeholders).
   ===================================================================== */
body:has(.q-pp){margin:0;background:var(--q-pearl, #E1DFDB)}
html:has(.q-pp){scroll-behavior:smooth;scrollbar-color:rgba(101,29,50,.35) var(--q-pearl, #E1DFDB)}
@media (prefers-reduced-motion:reduce){html:has(.q-pp){scroll-behavior:auto}}
.q-pp{--pp-side:clamp(24px, 8.333vw, 160px);--pp-night:#1A0000 url(/wp-content/uploads/qasbah-dubai-oxblood-textured-background.jpg) center/cover no-repeat;position:relative;width:100%;min-height:100vh;display:flex;flex-direction:column;background:var(--q-pearl, #E1DFDB);color:var(--q-ink, #3E1822);overflow-x:clip;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.q-pp ::selection{background:var(--q-crimson, #651D32);color:var(--q-pearl, #E1DFDB)}
.q-pp :focus-visible{outline:1px solid var(--q-crimson, #651D32);outline-offset:4px}
.q-pp h2:focus{outline:0}

/* Night bars */
.q-pp-head{position:relative;z-index:2;height:76px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 var(--pp-side);background:var(--pp-night)}
.q-pp-foot{position:relative;margin-top:96px;height:76px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;padding:0 var(--pp-side);background:var(--pp-night)}
.q-pp-head :focus-visible,.q-pp-foot :focus-visible{outline-color:var(--q-accent, #BFA084)}
.q-pp-back.brxe-text-link{justify-self:start;display:inline-flex;align-items:center;gap:10px;min-height:44px;text-decoration:none;transition:color .3s}
.q-pp-back.brxe-text-link::before{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M13 7H1.5M6.5 2 1.5 7l5 5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M13 7H1.5M6.5 2 1.5 7l5 5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .5s cubic-bezier(.22,1,.36,1)}
@media (hover:hover){.q-pp-back.brxe-text-link:hover{color:var(--q-pearl, #E1DFDB)}.q-pp-back.brxe-text-link:hover::before{transform:translateX(-4px)}}
.q-pp-brand{display:block;padding:8px;line-height:0}
.q-pp-brand img,.q-pp-brand .brxe-image{display:block;height:22px;width:auto;max-width:none}
.q-pp-foot__place{justify-self:start}
.q-pp-foot__tab.brxe-image{width:60px;height:auto;align-self:end;transform:rotate(180deg)}
.q-pp-foot__link.brxe-text-link{justify-self:end;display:inline-flex;align-items:center;min-height:44px;text-decoration:none;transition:color .3s}
@media (hover:hover){.q-pp-foot__link.brxe-text-link:hover{color:var(--q-pearl, #E1DFDB)}}

/* Hero */
.q-pp-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;text-align:center;padding:72px 24px 0}
.q-pp-hero::before{content:"";position:absolute;inset:0;background:var(--q-crimson, #651D32);-webkit-mask:url(/wp-content/uploads/qasbah-moroccan-ogee-lattice-pattern.png) center/77px 89.5px repeat;mask:url(/wp-content/uploads/qasbah-moroccan-ogee-lattice-pattern.png) center/77px 89.5px repeat;opacity:.07;pointer-events:none}
.q-pp-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(225,223,219,0) 35%,var(--q-pearl, #E1DFDB) 92%);pointer-events:none}
.q-pp-hero > *{position:relative;z-index:1}
.q-pp-crest.brxe-image{display:block;height:104px;width:auto}
.q-pp-kicker{margin:0;text-indent:.32em}
.q-pp-hero .q-pp-kicker{margin-top:24px}
.q-pp-title{margin:20px 0 0;display:flex;flex-direction:column;align-items:center}
.q-pp-title > *{display:block}
.q-pp-title > * + *{margin-top:-.138em}
.q-pp-intro{margin:28px 0 0;max-width:520px}
.q-pp-rule{display:flex;align-items:center;gap:18px;width:min(560px, 80%);margin:64px auto 0}
.q-pp-rule::before,.q-pp-rule::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,rgba(101,29,50,0),rgba(101,29,50,.4))}
.q-pp-rule::after{background:linear-gradient(90deg,rgba(101,29,50,.4),rgba(101,29,50,0))}
.q-pp-gem{flex:none;width:7px;height:7px;border:1px solid var(--q-crimson, #651D32);transform:rotate(45deg)}

/* Placeholders still to be filled in */
.q-pp-ph{padding:0 3px;background:rgba(101,29,50,.08);border-bottom:1px dashed rgba(101,29,50,.55);font-family:Jost,sans-serif;font-weight:500;font-size:.8em;letter-spacing:.06em;color:var(--q-crimson, #651D32)}

/* Body: contents beside the policy */
.q-pp-body{position:relative;display:grid;grid-template-columns:240px minmax(0, 640px);justify-content:center;gap:clamp(56px, 6.7vw, 96px);padding:80px 24px 0}
.q-pp-nav{position:sticky;top:40px;align-self:start}
.q-pp-nav .q-pp-kicker{margin:0 0 18px;text-indent:0}
.q-pp-index{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.q-pp-index a{display:flex;gap:14px;align-items:baseline;padding:9px 0 9px 16px;font-family:Jost,sans-serif;font-weight:500;font-size:11px;letter-spacing:.2em;line-height:1.4;text-transform:uppercase;color:rgba(101,29,50,.78);text-decoration:none;border-left:1px solid rgba(101,29,50,.2);transition:color .3s,border-color .3s}
.q-pp-index a:hover,.q-pp-index a.is-on{color:var(--q-oxblood, #2A0103);border-left-color:var(--q-crimson, #651D32)}
.q-pp-index a span{color:rgba(101,29,50,.6);font-variant-numeric:tabular-nums}
.q-pp-toc{display:none}
.q-pp-sec{padding:0 0 56px;margin:0 0 56px;border-bottom:1px solid rgba(101,29,50,.18);scroll-margin-top:40px}
.q-pp-sec:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.q-pp-num{margin:0}
.q-pp-h2{margin:12px 0 0}
.q-pp-text{margin:18px 0 0}
.q-pp-text a,.q-pp-list a{color:var(--q-crimson, #651D32);text-underline-offset:3px}
.q-pp-list{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.q-pp-list li{position:relative;padding-left:26px}
.q-pp-list li::before{content:"";position:absolute;left:3px;top:.62em;width:6px;height:6px;border:1px solid var(--q-crimson, #651D32);transform:rotate(45deg)}

/* Any questions */
.q-pp-ask{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;align-self:center;width:calc(100% - 48px);max-width:640px;margin:104px auto 0;padding:56px 24px;border-top:1px solid rgba(101,29,50,.3);border-bottom:1px solid rgba(101,29,50,.3)}
.q-pp-ask .q-pp-title{margin:0}
.q-pp-ask__text{margin:30px 0 0;max-width:520px}

/* Tablets: contents fold into a menu above the policy */
@media (max-width:991px){
  .q-pp-body{display:block;width:100%;max-width:688px;margin:0 auto;padding:56px 24px 0}
  .q-pp-nav{display:none}
  .q-pp-toc{display:block;margin:0 0 48px;border-top:1px solid rgba(101,29,50,.3);border-bottom:1px solid rgba(101,29,50,.3)}
  .q-pp-toc__label{list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:52px;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .q-pp-toc__label::-webkit-details-marker{display:none}
  .q-pp-toc__label::after{content:"";width:12px;height:12px;background:linear-gradient(currentColor,currentColor) center/100% 1.2px no-repeat,linear-gradient(currentColor,currentColor) center/1.2px 100% no-repeat;transition:transform .4s cubic-bezier(.22,1,.36,1)}
  .q-pp-toc[open] .q-pp-toc__label::after{transform:rotate(45deg)}
  .q-pp-toc .q-pp-index{gap:0;margin:0 0 16px}
  .q-pp-toc .q-pp-index a{min-height:44px;align-items:center;padding:0;border:0;letter-spacing:.18em;color:var(--q-ink, #3E1822)}
  .q-pp-toc .q-pp-index a span{color:rgba(101,29,50,.7)}
}

/* Phones */
@media (max-width:767px){
  .q-pp-head{padding:0 16px;height:64px}
  .q-pp-head .q-pp-back.brxe-text-link{font-size:0;letter-spacing:0;width:44px;justify-content:center;margin-left:-15px}
  .q-pp-hero{padding-top:48px}
  .q-pp-rule{margin-top:44px}
  .q-pp-body{padding-top:40px}
  .q-pp-ask{margin-top:64px;padding:44px 8px}
  .q-pp-foot{grid-template-columns:1fr;justify-items:center;gap:8px;height:auto;padding:24px 16px 32px;margin-top:64px}
  .q-pp-foot__place,.q-pp-foot__link.brxe-text-link{justify-self:center}
  .q-pp-foot__tab.brxe-image{display:none}
}

/* ·····································································
   QASBAH password gate (Bricks template 81, type Password protection)
   Bricks shows this template on every page until the visitor enters the
   template password; logged-in users skip it. Same stage, header, side
   tabs, floor line and footer as the 404 page. Remove after launch.
   ····································································· */

.q-gate {
	--q-caps: 56px;
	--q-field-font: Jost, system-ui, sans-serif;
}

.q-gate__inner {
	position: fixed;
	inset: var(--q-top) var(--q-side) var(--q-bottom);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
	overflow-y: auto;
	text-align: center;
}

.q-gate .q-crest {
	height: 150px;
}

.q-gate .q-lockup {
	margin-top: 30px;
}

.q-gate .q-intro {
	margin-top: 20px;
	max-width: 380px;
}

.q-gate .q-legal {
	margin-top: 22px;
}

/* form: one framed row, the password field with Enter beside it */
.q-gate__form.q-form.brxe-form {
	max-width: 440px;
	margin-top: 34px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 0;
}

.q-gate__form .form-group {
	position: relative;
}

.q-gate__form .form-group label {
	margin-bottom: 8px;
	line-height: 16px;
}

.q-gate__form .password-input-wrapper {
	position: relative;
}

.q-gate__form input:not([type=submit]) {
	height: 52px;
	padding: 0 84px 0 18px;
	border: 1px solid var(--q-line);
	border-right: 0;
	background: rgba(18, 1, 1, 0.45);
}

.q-gate__form input:not([type=submit]):focus {
	border-color: var(--q-pearl);
}

/* the dots: Jost's dots are very large on iPhone, so a typed password uses
   "QASBAH Dots", a 364-byte font holding one small dot (the same size as on
   desktop) for the password characters only; kept at 16px so phones never zoom */
@font-face {
	font-family: "QASBAH Dots";
	font-display: block;
	src: url(data:font/woff2;base64,d09GMgABAAAAAAFsAAoAAAAAArAAAAEmAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAARAo8TwE2AiQDBgsGAAQgBWwHKhsIAjCuC+gx1yaV0GrNeAmTWMLi0bjxy1OLESqd+IcrnfdzH7wYDEXTi7AEtWUpeDHY1pd6+vDrfP9KE5swss7ZDgmKy+GKp7cHmCD/1Vl9PhDi5tcibstod6N7etyyPIIoAMiDwCiQrC1MKMATPhrACVe0MLvo1S5/RS9dMtAXesFNEXBNoVH0mPv/EOULwEYWethbGPadwdhY0SgKrcePi7dbiwCAAn0Ea7AF0AdkzUgGUdoSRDuTCFMmP+bvzW/Wz3uAILzeBn8c0/uAd/1T9V7eyJZET4GwfTCdVpstCAAg6dAKyhoBBQCAvgsCYgZ1GZnpSX8ijtjOsiydWqVOudSUqvvL+TL1C2gp6SgraZLwZO/irG1q7mpj6IRSL/+38by/AA==) format("woff2");
}

/* !important: the field typography is set on the Bricks form element (an ID rule) */
.q-gate__form input[type=password]:not(:placeholder-shown) {
	font-family: "QASBAH Dots", Jost, system-ui, sans-serif !important;
	font-size: 16px !important;
	letter-spacing: 0.06em !important;
}

/* Show / Hide: Bricks' own toggle, labelled in words by the gate script */
.q-gate__form .password-toggle {
	right: 0;
	height: 50px;
	min-width: 72px;
	padding: 0 16px;
	border: 0;
	cursor: pointer;
	font-family: Jost, system-ui, sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--q-accent);
	transition: color 0.3s;
}

.q-gate__form .password-toggle:hover {
	color: var(--q-pearl);
}

/* Enter sits level with the field: label height (16px) plus its gap (8px) */
.q-gate__form .submit-button-wrapper {
	margin-top: 24px;
}

.q-gate__form .submit-button-wrapper button {
	height: 52px;
	padding: 0 28px 0 calc(28px + 0.3em);
	background: rgba(200, 170, 140, 0.14);
}

.q-gate__form .submit-button-wrapper button:hover {
	background: rgba(200, 170, 140, 0.24);
}

/* messages: Bricks' boxes stay hidden; the gate script shows every message
   on one quiet line under the field (.q-err, as on the landing form) */
.q-gate__form .message,
.q-gate__form .form-group-error-message {
	display: none;
}

.q-gate__form .form-group.is-invalid input:not([type=submit]) {
	border-color: var(--q-error);
}

.q-gate__form .form-group.is-ok > .q-err {
	grid-template-rows: 1fr;
}

.q-gate__form .form-group.is-ok > .q-err > span {
	opacity: 1;
	translate: 0 0;
	color: var(--q-sand);
}

/* entrance: the same fades as the 404, a little sooner */
.q-gate .q-tab,
.q-gate .q-foot {
	animation: q404-fade 1.2s ease 0.4s both;
}

.q-gate .q-crest,
.q-gate .q-lockup__caps,
.q-gate .q-lockup__script,
.q-gate .q-intro,
.q-gate__form,
.q-gate .q-legal {
	animation: q404-up 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.q-gate .q-crest {
	animation-delay: 0.2s;
}

.q-gate .q-lockup__caps {
	animation-delay: 0.35s;
}

.q-gate .q-lockup__script {
	animation-delay: 0.45s;
}

.q-gate .q-intro {
	animation-delay: 0.6s;
}

.q-gate__form {
	animation-delay: 0.7s;
}

.q-gate .q-legal {
	animation-delay: 0.8s;
}

/* short desktop windows and phones held sideways */
@media (max-height: 720px) and (min-width: 768px), (max-height: 500px) {
	.q-gate {
		--q-caps: 44px;
	}

	.q-gate .q-crest {
		height: 96px;
	}

	.q-gate .q-lockup {
		margin-top: 20px;
	}

	.q-gate .q-intro {
		margin-top: 14px;
	}

	.q-gate__form.q-form.brxe-form {
		margin-top: 22px;
	}
}

@media (max-height: 500px) {
	.q-gate .q-crest {
		display: none;
	}
}

/* phones held upright (Bricks mobile landscape 767px): footer stacks as on the 404 */
@media (max-width: 767px) and (min-height: 501px) {
	.q-gate {
		--q-caps: 40px;
	}

	.q-gate__inner {
		padding: 16px 8px;
	}

	.q-gate .q-crest {
		height: 96px;
	}

	.q-gate .q-lockup {
		margin-top: 22px;
	}

	.q-gate .q-intro {
		margin-top: 16px;
	}

	.q-gate__form.q-form.brxe-form {
		margin-top: 26px;
	}

	.q-gate__form .submit-button-wrapper button {
		padding: 0 18px 0 calc(18px + 0.3em);
	}
}

@media (prefers-reduced-motion: reduce) {
	.q-gate * {
		animation: none !important;
	}
}

/* =====================================================================
   Script lines (Adeglian): room for the swashes
   The script's strokes reach well beyond the letters' own boxes (up to
   .76em to the side, .22em above and .32em below). Safari trims anything
   drawn outside an element's box when the element sits on an animated
   layer, which cut the first "i" and last "e" of "into atmosphere".
   Padding gives every stroke room inside the box; the matching negative
   margins (and max-width:none, as Bricks caps text at 100%) keep every
   letter exactly where it was.
   ===================================================================== */
.q-lockup__script,.q-pp-title > * + *{max-width:none;padding:.36em .8em;margin:calc(-.138em - .36em) -.8em -.36em}
.q-thanks__script{max-width:none;padding:.36em .8em;margin:-.36em -.8em}
