/* Brilliant Finish concepts — shared components (before/after, project viewer, quote, dock, menu base, reveal).
   Each concept sets the --bf-* variables and layers its own look on top. */
:root {
  --bf-ink: #0d1822; --bf-ink-2: #14222f; --bf-atl-800: #1b2f40; --bf-atl-700: #274257; --bf-atl-500: #4f6a7e; --bf-atl-300: #93a7b6;
  --bf-steel: #c3ccd5; --bf-steel-hi: #e8edf2; --bf-paper: #f6f3ed;
  --bf-gold: #d9b45a; --bf-gold-hi: #f0d78c; --bf-gold-lo: #a07a2a;
  --bf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --gold-text: linear-gradient(100deg, #a07a2a 0%, #f0d78c 38%, #d9b45a 58%, #a07a2a 100%);
  --steel-text: linear-gradient(100deg, #8f9aa8 0%, #f3f6f9 40%, #c3ccd5 60%, #8693a2 100%);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; background: var(--bf-ink); scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, label, input, textarea { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--bf-gold); color: var(--bf-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: calc(var(--safe-t) + 8px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * max(20px, var(--safe-l)), var(--wrap, 1240px)); margin-inline: auto; }
.gold-text { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.steel-text { background: var(--steel-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.fine { font-size: .78rem; color: var(--bf-muted, var(--bf-atl-500)); }
[hidden] { display: none !important; }

/* buttons: shape and colour are the concept's, behaviour is shared */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid transparent; font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap; position: relative; transition: transform .35s var(--bf-ease), box-shadow .35s var(--bf-ease), background .3s, color .3s, border-color .3s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: .88rem; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.97); }
.btn-gold { color: #1a1306; background: linear-gradient(105deg, #c9a34a 0%, #f0d78c 42%, #d9b45a 60%, #b98f35 100%); box-shadow: 0 10px 30px -10px rgba(217,180,90,.55), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(217,180,90,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-glass { color: var(--bf-steel-hi); background: rgba(232,237,242,.1); border-color: rgba(232,237,242,.32); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.btn-glass:hover { background: rgba(232,237,242,.2); transform: translateY(-2px); }
.btn-ink { color: var(--bf-steel-hi); background: var(--bf-ink); }
.btn-ink:hover { background: var(--bf-atl-800); transform: translateY(-2px); }
.link-arrow { background: none; border: 0; padding: 12px 0; min-height: 44px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; color: inherit; border-bottom: 1px solid currentColor; border-radius: 0; }
.link-arrow span { display: inline-block; transition: transform .35s var(--bf-ease); }
.link-arrow:hover span { transform: translateX(4px); }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--bf-line, rgba(13,24,34,.12)); background: transparent; font-size: .9rem; font-weight: 500; color: inherit; transition: background .3s, color .3s, border-color .3s, transform .3s var(--bf-ease); }
.chip:active { transform: scale(.96); }

/* preview bar + header scaffolding (colours by concept) */
.preview-bar { display: flex; justify-content: center; align-items: center; gap: 14px; white-space: nowrap; padding: 1px 16px; background: #0a131b; color: var(--bf-steel); font: 500 .72rem/1.3 system-ui, sans-serif; letter-spacing: .04em; max-height: 60px; overflow: hidden; transition: max-height .4s var(--bf-ease), padding .4s, opacity .3s; }
.preview-bar b { color: var(--bf-gold); font-weight: 600; }
.preview-bar a { display: inline-block; color: var(--bf-steel-hi); text-underline-offset: 3px; padding: 15px 8px; margin: -15px -8px; white-space: nowrap; }
.preview-bar .short { display: inline; } .preview-bar .long { display: none; }
@media (min-width: 600px) { .preview-bar .short { display: none; } .preview-bar .long { display: inline; } }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding-top: var(--safe-t); background: linear-gradient(to bottom, #0a131b var(--safe-t), transparent var(--safe-t)); transition: background .4s, box-shadow .4s, transform .5s var(--bf-ease); }
.site-header.is-scrolled .preview-bar { max-height: 0; padding-block: 0; opacity: 0; }
.menu-btn { width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(232,237,242,.28); background: rgba(232,237,242,.08); position: relative; padding: 0; flex: none; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--bf-steel-hi); border-radius: 2px; transition: transform .45s var(--bf-ease), top .45s var(--bf-ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 22px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 55; background: rgba(10,19,27,.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .45s var(--bf-ease), visibility 0s .45s; padding: calc(var(--safe-t) + 130px) max(24px, var(--safe-l)) calc(var(--safe-b) + 28px); overflow-y: auto; }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; max-width: 560px; margin: 0 auto; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .45s var(--bf-ease); }
.menu li a { display: block; padding: 12px 0; font-size: clamp(2.2rem, 11vw, 3.3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--bf-steel-hi); text-decoration: none; border-bottom: 1px solid rgba(195,204,213,.18); transform: translateY(18px); opacity: 0; transition: transform .7s var(--bf-ease), opacity .7s var(--bf-ease); }
.menu-open .menu li a { transform: none; opacity: 1; }
.menu li:nth-child(2) a { transition-delay: .05s; } .menu li:nth-child(3) a { transition-delay: .1s; } .menu li:nth-child(4) a { transition-delay: .15s; } .menu li:nth-child(5) a { transition-delay: .2s; } .menu li:nth-child(6) a { transition-delay: .25s; }
.menu li:last-child a { color: var(--bf-gold-hi); }
.menu-foot { display: grid; gap: 16px; text-align: center; color: var(--bf-atl-300); font-size: .85rem; }
.menu-open, .pm-open { overflow: hidden; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0) scale(.985); transition: opacity 1s var(--bf-ease), transform 1s var(--bf-ease); transition-delay: var(--rd, 0s); }
.js [data-reveal="left"] { transform: translate3d(-34px, 0, 0); } .js [data-reveal="right"] { transform: translate3d(34px, 0, 0); } .js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .statement .w { opacity: .16; transition: opacity .5s var(--bf-ease); } .js .statement .w.on { opacity: 1; }
.js [data-principle] { opacity: .32; transition: opacity .8s var(--bf-ease); } .js [data-principle].on { opacity: 1; }
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }

/* tag */
.tag-illustrative { position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; font: 500 .62rem/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(232,237,242,.92); background: rgba(10,19,27,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.tag-illustrative.inline { position: static; flex: none; }

/* before / after */
.ba-frame { --x: 50%; --stage-h: 74vh; position: relative; width: min(100%, calc(var(--stage-h) * var(--ar, 1.5))); aspect-ratio: var(--ar, 1.5); overflow: hidden; background: var(--bf-atl-800); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; margin-inline: auto; border-radius: var(--ba-radius, 22px); }
@supports (height: 1svh) { .ba-frame { --stage-h: 74svh; } }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .5s var(--bf-ease); }
/* The "after" picture is revealed with two transforms (compositor only: nothing is repainted while you drag), not by re-clipping an image every frame. */
.ba-clip { position: absolute; inset: 0; overflow: hidden; transform: translate3d(var(--x), 0, 0); will-change: transform; }
.ba-clip .ba-after { transform: translate3d(calc(-1 * var(--x)), 0, 0); will-change: transform; }
.ba-frame.swapping .ba-img { opacity: 0; }
/* Side by side: two photos from different spots, each shown whole at its own shape (no slider, nothing cropped to match). Wide screens: left | right. Phones: top / bottom. */
.ba-frame.ba-side { cursor: default; touch-action: pan-y pinch-zoom; } /* a sideways swipe over the pictures can never be taken as the browser's swipe-back gesture */
.ba-side .ba-before { inset: 0 auto 0 0; width: var(--bw); }
.ba-side .ba-clip { inset: 0 0 0 var(--bw); transform: none; will-change: auto; }
.ba-side .ba-clip .ba-after { transform: none; will-change: auto; }
.ba-side .ba-clip::before { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, rgba(240,215,140,.9), rgba(232,237,242,.95) 50%, rgba(240,215,140,.9)); }
.ba-side .ba-label-r { right: auto; left: calc(var(--bw) + 14px); }
.ba-side .ba-handle, .ba-side .ba-range { display: none; }
@media (max-width: 760px) {
  .ba-frame.ba-side { aspect-ratio: var(--ar-v, 0.7); width: min(100%, calc(var(--stage-h) * var(--ar-v, 0.7))); }
  .ba-side .ba-before { inset: 0 0 auto 0; width: 100%; height: var(--bh); }
  .ba-side .ba-clip { inset: var(--bh) 0 0 0; }
  .ba-side .ba-clip::before { inset: 0 0 auto 0; width: auto; height: 3px; background: linear-gradient(90deg, rgba(240,215,140,.9), rgba(232,237,242,.95) 50%, rgba(240,215,140,.9)); }
  .ba-side .ba-label-r { left: 14px; top: calc(var(--bh) + 14px); }
}
.ba-label { position: absolute; top: 14px; z-index: 3; padding: 8px 14px; border-radius: 999px; font: 500 .68rem/1 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--bf-steel-hi); background: rgba(10,19,27,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.ba-label-l { left: 14px; } .ba-label-r { right: 14px; }
.ba-handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--x); width: 0; pointer-events: none; }
.ba-line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: linear-gradient(180deg, rgba(240,215,140,.9), rgba(232,237,242,.95) 50%, rgba(240,215,140,.9)); box-shadow: 0 0 18px rgba(0,0,0,.45); }
.ba-knob { position: absolute; top: 50%; left: 0; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; display: grid; place-items: center; color: #1a1306; background: linear-gradient(135deg, #f0d78c, #d9b45a 55%, #b98f35); box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6); }
.ba-knob svg { width: 26px; height: 26px; }
.ba-frame.nudge .ba-knob { animation: pulse 2.2s var(--bf-ease) 2; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 0 rgba(240,215,140,.55); } 50% { box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 16px rgba(240,215,140,0); } }
.ba-range { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba-frame:focus-within .ba-knob { outline: 2px solid var(--bf-steel-hi); outline-offset: 3px; }

/* project viewer (modal) */
.pm { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(12px, var(--safe-t)) max(12px, var(--safe-r)) max(12px, var(--safe-b)) max(12px, var(--safe-l)); }
.pm[hidden] { display: none; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(6,12,18,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: pmFade .5s var(--bf-ease) both; }
.pm-panel { position: relative; width: min(1180px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--pm-bg, #101d29); color: var(--pm-fg, var(--bf-steel-hi)); border-radius: var(--pm-radius, 24px); overflow: hidden; box-shadow: 0 60px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(195,204,213,.14); animation: pmIn .6s var(--bf-ease) both; }
@keyframes pmFade { from { opacity: 0; } } @keyframes pmIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.pm-close { position: absolute; z-index: 6; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(232,237,242,.3); background: rgba(10,19,27,.6); color: #fff; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 0; }
.pm-close svg { width: 22px; height: 22px; }
.pm-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: 1fr; }
.pm-media { position: relative; background: #0a131b; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pm-frame { --stage-h: 62vh; border-radius: 0; margin: 0; width: 100%; max-height: 62vh; }
@supports (height: 1svh) { .pm-frame { --stage-h: 62svh; max-height: 62svh; } }
.pm-hero { position: relative; aspect-ratio: var(--ar, 1.5); max-height: 62vh; overflow: hidden; background: #0a131b; display: flex; justify-content: center; }
@supports (height: 1svh) { .pm-hero { max-height: 62svh; } }
.pm-hero img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: none; background: #0a131b; }
.pm-thumbs::-webkit-scrollbar { display: none; }
.pm-thumb { position: relative; flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #14222f; opacity: .6; transition: opacity .3s, border-color .3s; }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumb.on { opacity: 1; border-color: var(--bf-gold); }
.pm-badge { position: absolute; left: 4px; bottom: 4px; font: 600 .56rem/1 system-ui, sans-serif; letter-spacing: .08em; padding: 3px 5px; border-radius: 6px; background: rgba(10,19,27,.75); color: #fff; }
.pm-info { padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.pm-kicker { font: 500 .7rem/1.3 system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--bf-gold); }
.pm-title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 400; }
.pm-area { color: var(--bf-atl-300); font-size: .92rem; }
.pm-summary { color: var(--bf-steel); max-width: 44ch; }
.pm-credit { font-size: .74rem; line-height: 1.5; color: var(--bf-atl-300); max-width: 46ch; margin-top: 4px; }
.fcredit { font-size: .74rem; line-height: 1.5; margin-top: 10px; max-width: 54ch; opacity: .8; }
.fine.credit { max-width: 80ch; }
.pm-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.pm-nav { display: flex; gap: 8px; }
.pm-step { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(232,237,242,.3); background: transparent; font-size: 1.1rem; }
.pm-step:hover { background: rgba(232,237,242,.12); }
@media (min-width: 900px) { .pm-scroll { grid-template-columns: 1.5fr 1fr; overflow: hidden; } .pm-scroll > * { min-height: 0; } .pm-info { overflow-y: auto; } .pm-panel { max-height: min(780px, 100%); } }

/* quote experience */
.qform { background: var(--q-bg, #fff); color: var(--q-fg, var(--bf-ink)); border: 1px solid var(--q-line, rgba(13,24,34,.12)); border-radius: var(--q-radius, 28px); padding: clamp(20px, 3.4vw, 44px); }
.q-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-step legend { padding: 0; font-size: 1.35rem; line-height: 1.2; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.q-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--bf-gold-lo); color: var(--bf-gold-lo); font: 600 .8rem/1 system-ui, sans-serif; flex: none; }
.q-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.q-tile { position: relative; display: block; }
.q-tile input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.q-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: space-between; min-height: 104px; padding: 15px; border: 1px solid var(--q-line, rgba(13,24,34,.12)); border-radius: var(--q-tile-radius, 18px); background: var(--q-tile, var(--bf-paper)); transition: border-color .3s, background .3s, box-shadow .3s, transform .3s var(--bf-ease); }
.q-card svg { width: 28px; height: 28px; fill: none; stroke: var(--bf-atl-700); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.q-card b { font-size: .92rem; line-height: 1.25; font-weight: 500; }
.q-tile:hover .q-card { border-color: var(--bf-atl-500); }
.q-tile input:checked + .q-card { background: var(--q-tile-on, #fffaf0); border-color: var(--bf-gold); box-shadow: 0 0 0 1px var(--bf-gold), 0 14px 30px -18px rgba(160,122,42,.6); }
.q-tile input:checked + .q-card svg { stroke: var(--bf-gold-lo); }
.q-tile input:focus-visible + .q-card { outline: 2px solid var(--bf-gold); outline-offset: 2px; }
.q-err { color: #b3453d; font-size: .88rem; margin-top: 12px; }
.q-reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--bf-ease); }
.q-reveal.open { grid-template-rows: 1fr; }
.q-reveal-in { overflow: hidden; min-height: 0; }
.q-reveal-in .q-step { padding-top: 30px; }
.q-fields { display: grid; gap: 12px; margin-bottom: 22px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; font: 400 1rem/1.3 inherit; font-family: inherit; color: inherit; background: var(--q-field, var(--bf-paper)); border: 1px solid var(--q-line, rgba(13,24,34,.12)); border-radius: 14px; padding: 24px 16px 8px; min-height: 58px; outline: none; transition: border-color .25s, box-shadow .25s, background .25s; -webkit-appearance: none; appearance: none; resize: vertical; }
.field textarea { min-height: 100px; }
.field label { position: absolute; left: 17px; top: 19px; color: var(--bf-atl-500); font-size: 1rem; pointer-events: none; transform-origin: left top; transition: transform .25s var(--bf-ease), color .25s; }
.field input:focus, .field textarea:focus { border-color: var(--bf-gold-lo); box-shadow: 0 0 0 3px rgba(217,180,90,.25); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-12px) scale(.76); color: var(--bf-gold-lo); }
.field.invalid input { border-color: #b3453d; }
.field .err { display: none; color: #b3453d; font-size: .82rem; margin: 6px 4px 0; }
.field.invalid .err { display: block; }
.photo-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px dashed var(--bf-atl-500); cursor: pointer; font-weight: 500; transition: background .3s, border-color .3s; }
.photo-btn small { color: var(--bf-atl-500); font-weight: 400; }
.photo-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
#fPhotos { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photos:focus-within .photo-btn { outline: 2px solid var(--bf-gold); outline-offset: 3px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumb { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #e7e2d8; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(13,24,34,.75); color: #fff; font-size: .9rem; line-height: 1; padding: 0; display: grid; place-items: center; }
.q-done { text-align: center; padding: clamp(24px, 5vw, 56px) 8px; display: grid; justify-items: center; gap: 14px; }
.q-done svg { width: 54px; height: 54px; padding: 13px; border-radius: 50%; color: var(--bf-gold-lo); border: 1px solid var(--bf-gold); }
.q-done h3 { font-size: 2rem; line-height: 1.1; font-weight: 400; }
.q-done p { max-width: 36ch; color: var(--bf-atl-500); }
.q-done a { font-weight: 600; }
.qform.is-done > fieldset, .qform.is-done > .q-reveal { display: none; }
.fine.left { text-align: left; margin-top: 10px; }
@media (min-width: 560px) { .q-tiles { grid-template-columns: repeat(4, 1fr); } .q-fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }

/* floating action bar (phones) */
.dock { position: fixed; z-index: 45; left: max(12px, var(--safe-l)); right: max(12px, var(--safe-r)); bottom: calc(var(--safe-b) + 10px); display: none; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(13,24,34,.8); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(195,204,213,.18); box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); transform: translateY(150%); opacity: 0; transition: transform .6s var(--bf-ease), opacity .4s; }
.dock .btn { min-height: 48px; border-radius: 999px; }
.dock .btn-gold { flex: 1; }
.dock .btn-glass { padding: 0 20px; }
.dock.is-on { transform: none; opacity: 1; }
@media (max-width: 759px) { .dock { display: flex; } }

/* arch + chips shared bits */
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 2px 6px; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row .chip { flex: none; }
.is-hidden { display: none !important; }
.film { min-height: 60px; }
.fade-in { animation: fadeIn .7s var(--bf-ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .statement .w, .js [data-principle] { opacity: 1; }
  [data-parallax] { transform: scale(1.04); }
}
/* in the project viewer a side-by-side pair keeps its true shape (the viewer scrolls) instead of being clipped to a height */
.pm-frame.ba-side { max-height: none; --stage-h: 100vh; }
@supports (height: 1svh) { .pm-frame.ba-side { --stage-h: 100svh; } }
