/* Best Paint website (redesigned 29 Nov 2026). A white gallery wall under a navy header, with a single gold accent (made light on 30 Nov 2026): thin type, soft panels,
   paint that splashes, drips and ribbons through the page. The home page adds a 3D fan deck and a room that is repainted. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/fonts/manrope-var.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/fonts/inter-var.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #FFFFFF; --bg-2: #F4F5F9; --panel: #FFFFFF; --hi: #0B1330; --text: #434B6B; --dim: #6E7693; --gold: #E0B13A; --hair: rgba(11, 19, 48, .12); --tone: #EEECE5;
  /* gold as ink: on white the accent is deepened so words in it can be read; --soft is the tint behind a hovered or typed-in thing */
  --gold-ink: #8F6508; --gold-big: #B8860B; --soft: rgba(11, 19, 48, .05); --edge: rgba(11, 19, 48, .14); --ghost: rgba(11, 19, 48, .04);
  --display: "Manrope", "Segoe UI Variable Display", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px; --ease: cubic-bezier(.2, .8, .2, 1);
  /* names the estimator's and the owner app's stylesheets still use */
  --yellow: #E0B13A; --yellow-soft: #F3E3B0; --cream: #F6F3EC; --navy: #0B1330; --navy-2: #16234F; --ink: #0B1330; --white: #fff;
  --line: 1.5px solid #0B1330; --shadow: 0 16px 36px rgba(11, 19, 48, .16); --shadow-y: 0 16px 36px rgba(11, 19, 48, .16);
}
.top, .foot, #mp { --bg: #070B1C; --bg-2: #0B1129; --panel: #121A3C; --hi: #fff; --text: #B9C0D6; --dim: #7E87A6; --hair: rgba(255, 255, 255, .12); --gold-ink: #E0B13A; --gold-big: #E0B13A; --soft: rgba(255, 255, 255, .07); --edge: var(--edge); --ghost: rgba(7, 11, 28, .5); color: var(--text); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--hi); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--gold-ink); font-weight: 500; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .cta-h { font-family: var(--display); font-weight: 300; color: var(--hi); line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
strong { color: var(--hi); font-weight: 600; }
.wrap { width: min(1760px, 100% - clamp(2.5rem, 7vw, 9rem)); margin-inline: auto; position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 0; top: 0; transform: translateY(-200%); background: var(--gold); color: #0B1330; padding: .6rem 1rem; z-index: 100; }
.skip:focus { transform: none; }
.caps { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; display: block; margin-bottom: .9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--body); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .95rem 1.6rem; background: linear-gradient(180deg, #F0C65A, var(--gold)); color: #0B1330; border: 0; border-radius: 999px; box-shadow: 0 16px 40px rgba(224, 177, 58, .26);
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); color: #0B1330; box-shadow: 0 22px 50px rgba(224, 177, 58, .36); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--ghost); color: var(--hi); box-shadow: inset 0 0 0 1px var(--hair); }
.btn.ghost:hover { color: var(--hi); box-shadow: inset 0 0 0 1px var(--gold); }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 28, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 196px; height: auto; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav li a { display: block; padding: .5rem .7rem; color: var(--hi); opacity: .8; text-decoration: none; font-weight: 500; font-size: .92rem; border-radius: 999px; transition: opacity .15s, color .15s; }
.nav li a:hover, .nav li a[aria-current] { opacity: 1; color: var(--gold-ink); }
.top .btn { font-size: .9rem; padding: .7rem 1.1rem; box-shadow: none; }
.top .btn.call { color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold); background: none; }
.menu { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--hair); border-radius: 14px; padding: 12px 10px; cursor: pointer; }
.menu span:not(.sr) { display: block; height: 2px; background: var(--hi); border-radius: 2px; margin: 0 0 7px; transition: transform .2s var(--ease), opacity .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* hero (every page but the home page) */
.hero { position: relative; color: var(--text); padding: 3rem 0 3.4rem; border-bottom: 1px solid var(--hair); overflow: hidden;
  background: radial-gradient(900px 420px at 88% -10%, rgba(224, 177, 58, .14), transparent 70%), var(--bg); }
.hero-in { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.hero h1 { line-height: 1.06; }
.hero .lead { font-size: 1.14rem; max-width: 60ch; color: var(--text); }
.hero .lead a, .hero .lead strong { color: var(--gold-ink); }
.updated { font-size: .9rem; color: var(--dim); }
.mark { color: var(--gold-big); font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .86rem; margin-bottom: 1.1rem; color: var(--dim); }
.crumbs a { color: var(--text); text-decoration: none; } .crumbs a:hover { color: var(--gold-ink); }
.hero-art { position: relative; width: clamp(200px, 24vw, 300px); }
/* the mascot was drawn for a dark ground, so he stands on a navy plate */
.hero-art .roller { background: #0B1330; border-radius: 36px; padding: 1.2rem 1rem .4rem; box-shadow: 0 30px 60px rgba(11, 19, 48, .22); }
/* Mr. Roller, the voice assistant: the body picture with the live face drawn over it */
.roller { position: relative; display: block; line-height: 0; }
.roller-btn { background: none; border: 0; padding: 0; cursor: pointer; width: 100%; }
.roller-stage { position: relative; transform-origin: 50% 85%; transition: transform .5s var(--ease); }
.roller img { display: block; width: 100%; height: auto; }
.roller-face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.roller-cheer .roller-stage { animation: cheer .55s var(--ease) 3; }
@keyframes cheer { 0%, 100% { translate: 0 0; } 45% { translate: 0 -7%; } }
.roller.head { aspect-ratio: 470 / 390; overflow: hidden; border-radius: 0; }
.roller.head .roller-stage { position: absolute; width: 109.36%; left: -4.26%; top: -13.8%; }
.bubble { position: absolute; left: -30%; top: 0; z-index: 2; margin: 0; background: #0B1330; color: #fff; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.15; padding: .65rem .95rem; border-radius: 18px 18px 4px 18px; box-shadow: 0 16px 30px rgba(11, 19, 48, .12); }
.hero-sticker { width: 120px; height: 120px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--hair); box-shadow: 0 30px 50px rgba(11, 19, 48, .12); }
.hero-sticker .ico { width: 64px; height: 64px; }

/* icons */
.ico { width: 44px; height: 44px; fill: none; stroke: var(--hi); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .f { fill: var(--gold); stroke: var(--gold); } .ico .w { fill: none; }

/* sections */
.sec { padding: 5rem 0 4.2rem; position: relative; border-bottom: 1px solid var(--hair); }
.sec.cream { background: var(--bg-2); }
.sec.navy { background: var(--bg); }
.sec h2 { max-width: 22ch; }
.intro { font-size: 1.1rem; max-width: 62ch; }
.prose { max-width: 70ch; }
.note { font-size: .9rem; max-width: 70ch; margin-top: 1rem; color: var(--dim); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding: .15rem 0 .15rem 1.9rem; margin-bottom: .45rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 1rem; height: 2px; background: var(--gold); }

/* cards: layered panels that tip up into place */
.cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); perspective: 1500px; }
.card { background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--hair); border-radius: var(--r); padding: 1.5rem 1.4rem 1.3rem; display: flex; flex-direction: column; transform-origin: 50% 100%; transition: border-color .3s; }
.card:hover { border-color: var(--gold-ink); }
.card .ico { margin-bottom: 1.4rem; }
.card h3 { font-size: 1.4rem; }
.card p { flex: 1; font-size: .96rem; }
.more { text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--gold-ink); align-self: flex-start; }

/* steps */
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps li { position: relative; border-top: 1px solid var(--gold); padding: 1.3rem 0 0; }
.num { display: block; font-family: var(--display); font-weight: 200; font-size: 3.6rem; line-height: 1; color: var(--hi); margin-bottom: .9rem; }
.steps .ico { display: none; }
.steps h3 { font-size: 1.3rem; }

/* questions */
.faq { max-width: 820px; margin-top: 1.8rem; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3rem 1.15rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.15rem; font-weight: 500; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; translate: 0 -50%; font-family: var(--display); font-weight: 300; font-size: 1.7rem; line-height: 1; color: var(--gold-ink); transition: rotate .2s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 1.2rem; margin: 0; max-width: 66ch; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 1.6rem; border: 1px solid var(--hair); border-radius: var(--r); background: var(--bg-2); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: .85rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--hair); }
thead th { color: var(--gold-ink); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
tbody th { color: var(--hi); font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* closing band */
.cta { display: flex; align-items: center; gap: 2rem; border-radius: 24px; padding: 2.4rem; background: linear-gradient(120deg, #F0C65A, var(--gold)); color: #3A2F0C; }
.cta .roller { display: none; }
.cta-h { color: #0B1330; font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: .3em; }
.cta p { color: #3A2F0C; margin: 0; max-width: 56ch; }
.cta .btn { background: var(--bg); color: var(--hi); box-shadow: none; } .cta .btn:hover { color: var(--hi); }
.cta .btn.ghost { background: none; color: #0B1330; box-shadow: inset 0 0 0 1.5px var(--bg); }

/* business details */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 2rem; margin: 1.8rem 0 0; }
.facts div { border-top: 1px solid var(--hair); padding: .9rem 0; }
.facts dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold-ink); }
.facts dd { margin: .2rem 0 0; font-weight: 500; color: var(--hi); font-size: 1.05rem; overflow-wrap: anywhere; }

/* forms */
.form { max-width: 760px; margin-top: 1.8rem; background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--hair); border-radius: 24px; padding: 1.6rem; display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; color: var(--text); font-size: .9rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 500; color: var(--hi); padding: .75rem .9rem; border: 1px solid var(--hair); border-radius: 12px; background: rgba(7, 11, 28, .6); width: 100%; min-height: 48px; }
.form select option { color: #0B1330; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--gold-ink); }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-msg.bad { color: #FF8A7A; }
.form-msg.good { color: #0B1330; background: var(--gold); border-radius: 12px; padding: .7rem .9rem; }
.small { font-size: .86rem; margin: 0; color: var(--dim); }

/* footer */
.foot { background: var(--bg); color: var(--text); padding: 3.4rem 0 1.6rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot-brand img { width: 190px; margin-bottom: .9rem; }
.foot a { color: var(--text); font-weight: 400; text-decoration: none; }
.foot a:hover { color: var(--gold-ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.f-h { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--gold-ink); margin-bottom: .9rem; }
.legal { margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid var(--hair); font-size: .84rem; color: var(--dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.legal p { margin: 0; }

/* appear once on scroll (pages other than the home page) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.t-home .reveal { opacity: 1; transform: none; transition: none; }

/* suburb link lists */
.council { margin: 1.8rem 0 .6rem; font-size: 1.05rem; color: var(--hi); }
.suburbs { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem .5rem; }
.suburbs a { display: inline-block; padding: .38rem .85rem; border: 1px solid var(--hair); border-radius: 999px; color: var(--text); font-weight: 500; font-size: .9rem; text-decoration: none; }
.suburbs a:hover, .suburbs a:focus-visible { border-color: var(--gold-ink); color: var(--hi); }

/* ============ the home page ============ */
#splash { filter: drop-shadow(0 8px 18px rgba(11, 19, 48, .22)); position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; display: none; }
#splash.on { display: block; }
.ribbon { position: absolute; left: 0; right: 0; pointer-events: none; will-change: transform; z-index: 0; }
.ribbon canvas { width: 100%; height: 100%; display: block; }
.home-hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3.4rem, 7vw, 6rem); background: var(--bg); }
.home-hero .ribbon { top: -4%; height: 108%; }
.home-hero .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 5rem); z-index: 1; align-items: center; }
.home-hero h1 { font-size: clamp(2.6rem, 6.4vw, 6.6rem); }
.home-hero .lead { font-size: clamp(1.1rem, 1.5vw, 1.45rem); max-width: 40rem; }
.home-hero .hero-text, .startcol { will-change: transform, opacity; min-width: 0; }
/* the journey beside the headline: the address, the mobile number, the link */
.startcard { border-radius: 26px; background: var(--panel); border: 1px solid var(--hair); padding: clamp(1.2rem, 2vw, 2rem); box-shadow: 0 40px 80px rgba(11, 19, 48, .13); display: block; margin: 0; }
.jsteps { list-style: none; display: flex; gap: .5rem; margin: 0 0 1.1rem; padding: 0; counter-reset: none; }
.jsteps li { width: 30px; padding: 0; margin: 0; line-height: 1; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem var(--body); color: var(--dim); border: 1px solid var(--hair); position: relative; }
.jsteps li.on { background: var(--gold); border-color: var(--gold); color: #0B1330; }
.jsteps li::before { content: none; } .jsteps li + li { margin-inline-start: 26px; } .jsteps li + li::before { content: ""; position: absolute; inset-inline-end: calc(100% + 5px); top: 50%; width: 22px; height: 1px; background: var(--hair); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .8rem; } .step[hidden] { display: none; }
.step legend { font: 500 clamp(1.35rem, 1.9vw, 1.9rem)/1.15 var(--display); letter-spacing: -.02em; color: var(--hi); padding: 0; margin-bottom: .5rem; }
.step > p { margin: 0; font-size: .98rem; } .step > small { font-size: .78rem; color: var(--dim); } .step label { font-size: .86rem; font-weight: 600; color: var(--hi); }
.step input[type=text], .step input[type=tel], .parts input { width: 100%; font: 500 1.02rem var(--body); color: var(--hi); background: var(--soft); border: 1px solid var(--hair); border-radius: 12px; padding: .8rem .9rem; }
.step input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; } .step input::placeholder { color: var(--dim); font-weight: 400; }
.combo { position: relative; }
.combo ul { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: .3rem; list-style: none; background: #fff; border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 24px 50px rgba(11, 19, 48, .18); max-height: 260px; overflow: auto; }
.combo li { padding: .65rem .8rem; border-radius: 10px; cursor: pointer; color: var(--hi); font-size: .96rem; } .combo li:hover, .combo li[aria-selected="true"] { background: var(--soft); }
.parts { display: grid; grid-template-columns: 2fr 1.4fr .7fr .9fr; gap: .5rem; } .parts[hidden] { display: none; }
.parts label { display: grid; gap: .25rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); min-width: 0; }
.parts input { padding: .55rem .6rem; font-size: .92rem; background: #fff; text-overflow: ellipsis; }
.step .msg { margin: 0; min-height: 1.2em; font-size: .88rem; color: var(--text); } .step .msg.bad { color: #B3261E; font-weight: 600; }
.step .where { font-weight: 600; color: var(--hi); padding: .6rem .8rem; background: var(--soft); border-radius: 12px; }
.kinds { display: grid; gap: .5rem; }
.kinds label { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; border: 1px solid var(--hair); border-radius: 14px; cursor: pointer; font-weight: 400; }
.kinds label:has(input:checked) { border-color: var(--gold); background: rgba(224, 177, 58, .1); }
.kinds input { margin-top: .25rem; accent-color: #B8860B; flex: none; } .kinds b { display: block; color: var(--hi); font-weight: 600; font-size: .98rem; } .kinds small { color: var(--dim); font-size: .82rem; }
.step .row { display: flex; gap: .6rem; } .step .row .btn { flex: 1 1 auto; } .step .row .btn.ghost { flex: 0 0 auto; } .step > .btn { justify-self: start; }
.step .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.done { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; } .done p { margin: 0 0 .7rem; font-size: .95rem; }
.qr { width: clamp(140px, 13vw, 190px); background: #fff; border: 1px solid var(--hair); border-radius: 16px; padding: 10px; line-height: 0; flex: none; } .qr svg { width: 100%; height: auto; }
.qrwrap small { display: block; text-align: center; margin-top: .6rem; font-size: .8rem; color: var(--text); }
.sendit { margin: .9rem 0 0; font-size: .92rem; }

/* the colour cards: each brand on its own rail, every card hanging from a pin of its own, above the card and out of sight */
/* the makers as tabs, in grey and white: a grey tab at rest, a white one for the brand whose cards are showing */
.brandbar { display: flex; gap: 6px; align-items: flex-end; }
.brandbar button { flex: 1 1 0; min-width: 0; display: grid; gap: .35rem; justify-items: center; padding: .8rem .6rem .65rem; border: 1px solid var(--hair); border-bottom: 0; border-radius: 16px 16px 0 0; background: #E4E6EC; color: var(--dim); cursor: pointer; font: inherit; margin-bottom: -1px; position: relative; transition: background .25s, padding .25s; }
.brandbar button:hover { background: #EEF0F4; }
.brandbar button[aria-pressed="true"] { background: #fff; padding-top: 1.05rem; z-index: 1; border-bottom: 1px solid #fff; }
.plate { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(30px, 3.6vw, 46px); }
.plate img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; filter: grayscale(1) contrast(1.05); opacity: .55; transition: opacity .25s; } .plate b { color: #0B1330; font: 600 1rem var(--display); }
.brandbar button[aria-pressed="true"] .plate img { opacity: 1; }
.brandbar small { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 600; white-space: nowrap; }
.brandbar button[aria-pressed="true"] small { color: var(--hi); }
.tabpanel { border: 1px solid var(--hair); border-radius: 0 0 24px 24px; background: #fff; padding: clamp(1rem, 2.2vw, 2.2rem); box-shadow: 0 30px 60px rgba(11, 19, 48, .08); }
.pickgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 3.4rem); align-items: start; }
.fanside { min-width: 0; }
.fams { display: flex; flex-wrap: wrap; gap: .5rem; }
.fams button { display: inline-flex; align-items: center; gap: .55rem; font: 500 .9rem var(--body); color: var(--text); background: none; border: 1px solid var(--hair); border-radius: 999px; padding: .4rem .9rem .4rem .45rem; cursor: pointer; transition: border-color .3s, color .3s; }
.fams button i { width: 34px; height: 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge); }
.fams button[aria-pressed="true"] { border-color: var(--gold-ink); color: var(--hi); }
.deck { position: relative; perspective: 1400px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; margin-top: 1.2rem; overflow: hidden; border-radius: 18px; }
.deck.held { cursor: grabbing; }
.deck:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 12px; }
.sway { position: absolute; inset: 0; transform-style: preserve-3d; animation: sway 9s ease-in-out infinite; }
/* the swaying sheet is held in front of the deck, so no part of a card tips behind it and stops taking presses */
@keyframes sway { 0%, 100% { transform: translateZ(150px) scale(.893) rotateY(-7deg) rotateX(10deg); } 50% { transform: translateZ(150px) scale(.893) rotateY(6deg) rotateX(13deg); } }
.deck.held .sway, .offscreen .sway, .offscreen .chip::after, .offscreen .beam { animation-play-state: paused; }
/* the point every card turns about: below the cards, with nothing drawn at it */
.fan { position: absolute; left: 50%; bottom: -46px; width: 0; height: 0; transform-style: preserve-3d; transform-origin: 50% 100%; }
.chip { position: absolute; left: -43px; bottom: 0; width: 86px; height: 196px; padding: 0; border: 0; border-radius: 10px; transform-origin: 50% 100%; background: #F2EEE4; overflow: hidden; will-change: transform; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .5s; box-shadow: -10px 14px 34px rgba(11, 19, 48, .15), inset 0 0 0 1px rgba(11, 19, 48, .1); }
/* the arrows at the wheel's sides */
.turn { position: absolute; top: 50%; translate: 0 -50%; z-index: 70; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); background: #fff; color: var(--hi); font: 400 1.5rem/1 var(--body); cursor: pointer; box-shadow: 0 10px 24px rgba(11, 19, 48, .14); display: grid; place-items: center; padding: 0 0 3px; }
.turn:hover { border-color: var(--gold); } #turn-prev { left: 8px; } #turn-next { right: 8px; }
.chip u { position: absolute; inset: 0 0 58px 0; background: var(--c); }
.chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .3) 46%, transparent 60%); background-size: 280% 100%; animation: sheen 6.5s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); pointer-events: none; }
@keyframes sheen { 0%, 55% { background-position: 120% 0; } 100% { background-position: -60% 0; } }
.chip span { position: absolute; left: 8px; right: 6px; bottom: 21px; height: 30px; color: #0B1330; font: 600 .7rem/1.12 var(--display); letter-spacing: -.01em; text-align: left; overflow: hidden; display: flex; align-items: flex-end; }
.chip small { position: absolute; left: 8px; right: 6px; bottom: 6px; color: #6B6A63; font: 500 .56rem/1 var(--body); letter-spacing: .06em; text-align: left; white-space: nowrap; overflow: hidden; }
.chip:hover { box-shadow: -14px 22px 44px rgba(11, 19, 48, .18), inset 0 0 0 1px rgba(11, 19, 48, .2); }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip[aria-pressed="true"] { box-shadow: -18px 34px 70px rgba(11, 19, 48, .18), 0 0 0 2.5px var(--gold); }
.pickline { margin: .6rem 0 0; font-size: .98rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; } .pickline b { color: var(--hi); font-weight: 600; }
.pickline .blogo { background: #fff; border-radius: 10px; padding: 7px 12px; height: 44px; box-sizing: border-box; display: grid; place-items: center; color: #0B1330; font: 600 1rem var(--display); } .pickline .blogo img { height: 30px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.code { font-style: normal; font-size: .82rem; letter-spacing: .06em; color: var(--gold-ink); border: 1px solid var(--hair); border-radius: 999px; padding: .15rem .6rem; margin-inline-start: .3rem; white-space: nowrap; }
/* the scheme matched to the chosen colour */
.scheme { border-radius: 20px; background: var(--bg-2); border: 1px solid var(--hair); padding: clamp(1.2rem, 2vw, 2rem); }
.scheme h3 { font-size: clamp(1.25rem, 1.7vw, 1.7rem); font-weight: 500; margin: 0 0 .3rem; } .scheme p { margin: 0 0 1rem; font-size: .95rem; }
.scheme .bar { display: flex; height: clamp(70px, 9vw, 120px); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 34px rgba(11, 19, 48, .12), inset 0 0 0 1px var(--edge); }
.scheme .bar i { flex: 1 1 0; transition: background .5s, flex-grow .5s var(--ease); }
.scheme ul { list-style: none; margin: 1rem 0 .9rem; padding: 0; display: grid; gap: .35rem; }
.scheme li button { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .45rem .5rem; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.scheme li button:hover, .scheme li button:focus-visible { background: var(--soft); }
.scheme li i { width: 44px; height: 44px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px var(--edge); }
.scheme li span { display: grid; min-width: 0; } .scheme li small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.scheme li b { color: var(--hi); font-weight: 600; font-size: 1rem; } .scheme li em { font-style: normal; font-size: .8rem; color: var(--dim); letter-spacing: .04em; }
.scheme > small { display: block; font-size: .8rem; color: var(--dim); margin-top: 1rem; }
.minebtns { display: flex; flex-wrap: wrap; gap: .6rem; } .minebtns .btn { flex: 1 1 auto; padding: .8rem 1rem; } .minebtns button:disabled { opacity: .6; cursor: default; transform: none; }
.scheme h4 { font: 600 .7rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin: 1.2rem 0 .5rem; }
.mine { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.mine li { display: flex; align-items: center; gap: .4rem; }
.mine .pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .35rem; border: 1px solid var(--hair); border-radius: 12px; background: none; font: inherit; color: var(--hi); cursor: pointer; text-align: start; }
.mine .pick:hover { border-color: var(--gold); } .mine .pick b { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine .strip { display: flex; width: 84px; height: 34px; border-radius: 8px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px var(--edge); } .mine .strip i { flex: 1; }
.mine .drop { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--dim); font-size: 1.2rem; cursor: pointer; } .mine .drop:hover { background: var(--soft); color: var(--hi); }

/* where sections meet, paint runs down: the drips grow as you scroll down and draw back as you scroll up */
.drips { filter: drop-shadow(0 3px 7px rgba(11, 19, 48, .2)); position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 4; pointer-events: none; }
.drips i { position: absolute; top: 0; background: var(--tone); border-radius: 0 0 999px 999px; transform-origin: 50% 0; will-change: transform; transition: background 1s; }
.drips::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 4px; background: var(--tone); transition: background 1s; }

.head { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem 2rem; align-items: end; margin-bottom: 2.4rem; }
.head h2 { margin: 0; max-width: none; } .head p { max-width: 34rem; margin: 0; }
.rise { will-change: transform, opacity; }
.view { position: relative; height: clamp(300px, 52vw, 560px); border-radius: 26px; overflow: hidden; background: #1B2140; box-shadow: 0 40px 80px rgba(11, 19, 48, .13), inset 0 0 0 1px var(--hair); will-change: transform; }
.scene { position: absolute; left: 50%; top: 50%; width: 0; height: 0; perspective: 900px; }
.box { position: absolute; transform-style: preserve-3d; will-change: transform; }
.view .p { position: absolute; transform-style: preserve-3d; overflow: hidden; }
.wallc { background-color: #EEECE5; }
.coat { position: absolute; inset: 0; animation: roll 1.15s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes roll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.view .sh { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.view .back { width: 1100px; height: 600px; margin: -300px 0 0 -550px; transform: translateZ(-700px); } .view .back .sh { background: linear-gradient(100deg, rgba(11, 19, 48, .12), rgba(255, 255, 255, .16) 70%); }
.view .left { width: 1400px; height: 600px; margin: -300px 0 0 -700px; transform: rotateY(90deg) translateZ(-550px); } .view .left .sh { background: linear-gradient(90deg, rgba(11, 19, 48, .26), rgba(11, 19, 48, .08)); }
.view .right { width: 1400px; height: 600px; margin: -300px 0 0 -700px; transform: rotateY(-90deg) translateZ(-550px); } .view .right .sh { background: linear-gradient(270deg, transparent, rgba(255, 255, 255, .16)); }
.view .floorp { width: 1100px; height: 1400px; margin: -700px 0 0 -550px; transform: rotateX(90deg) translateZ(-300px); background: linear-gradient(180deg, #BFA883, #D9C8AA); }
.view .floorp::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(110, 80, 40, .12) 0 1px, transparent 1px 92px); }
.view .ceil { width: 1100px; height: 1400px; margin: -700px 0 0 -550px; transform: rotateX(-90deg) translateZ(-300px); background: var(--trim, #F7F5EF); transition: background .8s; }
.view .trim { position: absolute; left: 0; right: 0; background: var(--trim, #FBFAF6); z-index: 4; transition: background .8s; } .view .trim.s { bottom: 0; height: 22px; } .view .trim.c { top: 0; height: 12px; }
.view .pane { position: absolute; z-index: 4; left: 420px; top: 110px; width: 430px; height: 330px; background: linear-gradient(180deg, #FDFEFF, #DCEAF5); box-shadow: 0 0 0 12px #FBFAF6, 0 0 120px 30px rgba(255, 249, 225, .7); }
.view .pane::before, .view .pane::after { content: ""; position: absolute; background: #FBFAF6; } .view .pane::before { left: 50%; top: 0; bottom: 0; width: 8px; margin-left: -4px; } .view .pane::after { top: 50%; left: 0; right: 0; height: 8px; margin-top: -4px; }
.view .beam { position: absolute; left: 260px; top: 430px; width: 470px; height: 380px; background: linear-gradient(270deg, rgba(255, 246, 214, .95), rgba(255, 246, 214, 0)); transform: skewY(-18deg); opacity: .5; animation: day 14s ease-in-out infinite alternate; }
@keyframes day { from { translate: 0 -90px; opacity: .3; } to { translate: 0 130px; opacity: .55; } }
.view .art { position: absolute; z-index: 4; left: 400px; top: 160px; width: 240px; height: 180px; background: #FBFAF6; box-shadow: 14px 20px 30px rgba(11, 19, 48, .22); display: grid; place-items: center; }
.view .art i { width: 76%; height: 70%; background: linear-gradient(135deg, var(--accent, #E0B13A) 0 34%, var(--deep, #2C3654) 34% 66%, var(--tone, #B9C4B1) 66%); }
.tones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.tones button { font: 500 .84rem var(--body); color: var(--text); background: none; border: 1px solid var(--hair); border-radius: 999px; padding: .42rem .85rem .42rem .45rem; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; transition: border-color .3s, color .3s; }
.tones button i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px var(--edge); }
.tones button[aria-pressed="true"] { border-color: var(--gold-ink); color: var(--hi); }
.aside { margin: 1.2rem 0 0; font-size: .86rem; color: var(--dim); max-width: 48rem; }
/* the room, and beside it the way to see the colour on your own walls */
.wallgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 3rem); align-items: start; }
.onwalls { border-radius: 24px; background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--hair); padding: clamp(1.3rem, 2vw, 2rem); }
.onwalls h3 { font-size: clamp(1.3rem, 1.8vw, 1.8rem); font-weight: 500; margin: 0 0 .5rem; }
.onwalls p { margin: 0 0 1rem; font-size: .98rem; }
.onwalls .qrwrap { display: flex; align-items: center; gap: 1rem; } .onwalls .qr { width: 132px; padding: 9px; border-radius: 14px; flex: none; } .onwalls .qrwrap small { text-align: left; margin: 0; font-size: .86rem; }
.onwalls .onphone { display: none; }
/* the photographs: the section stays put while they cross the screen */
.air { padding: 0; overflow: clip; }
.pin { height: calc(100vh + var(--travel, 0px)); }
.pinin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 60px; }
.track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding: 0 clamp(1.25rem, 3.5vw, 4.5rem); perspective: 1600px; will-change: transform; width: max-content; }
.shot { width: min(74vw, 52vh * 1.5, 900px); flex: none; border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 3 / 2; background: var(--panel); will-change: transform; box-shadow: 0 30px 60px rgba(11, 19, 48, .13); margin: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; scale: 1.08; max-width: none; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.1rem .9rem; background: linear-gradient(0deg, rgba(7, 11, 28, .85), transparent); color: var(--hi); font: 500 1.05rem var(--display); letter-spacing: -.02em; }
.beginwrap { position: relative; }
.beginwrap .ribbon { top: -60%; height: 220%; left: -10%; right: -10%; }
.begin { position: relative; z-index: 1; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--hair); padding: clamp(1.6rem, 3vw, 3rem); }
.begin h2 { font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.8rem); margin: 0 0 .4rem; max-width: none; }
.begin p { margin: 0; }
#begin { overflow: hidden; }
.t-home .sec-cta { display: none; }

/* the estimator and its pages keep a light sheet of paper to work on */
body.est { color: #2B3353; }
body.est h1, body.est h2, body.est h3 { color: #0B1330; font-weight: 600; letter-spacing: -.02em; }
body.est a { color: #0B1330; }
body.est .btn { box-shadow: 0 10px 24px rgba(224, 177, 58, .3); }
body.est .btn.ghost { background: #fff; color: #0B1330; box-shadow: inset 0 0 0 1.5px #0B1330; }

@media (max-width: 980px) {
  .menu { display: block; }
  .nav { position: fixed; inset: 77px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: .8rem; border-bottom: 1px solid var(--hair);
    transform: translateY(-130%); visibility: hidden; transition: transform .28s var(--ease), visibility .28s; max-height: calc(100dvh - 77px); overflow: auto; }
  .nav.open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav li a { font-size: 1.1rem; padding: .7rem .2rem; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .home-hero .hero-in { grid-template-columns: 1fr; } .home-hero { padding: 1.4rem 0 3rem; }
  .onwalls .qrwrap { display: none; } .onwalls .onphone { display: block; } .onwalls .ondesk, .done .ondesk, .done .qr { display: none; } .parts { grid-template-columns: 1fr 1fr; }
  .head { grid-template-columns: 1fr; } .wallgrid { grid-template-columns: 1fr; } .pickgrid { grid-template-columns: 1fr; } .brandbar { gap: 3px; } .brandbar button { padding: .6rem .3rem .5rem; border-radius: 12px 12px 0 0; } .brandbar small { font-size: .52rem; letter-spacing: .08em; } .tabpanel { padding: .9rem; border-radius: 0 0 18px 18px; }
  .shot { width: 82vw; } .pinin { padding-top: 70px; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hero { padding: 2rem 0 2.4rem; }
  .hero-in { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-art { width: 170px; margin: 0 auto; order: -1; padding-top: 3rem; }
  .bubble { left: 50%; top: 0; translate: -50% 0; white-space: nowrap; }
  .hero-sticker { display: none; }
  .sec { padding: 3.8rem 0 3rem; }
  .form .row { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.6rem; }
  .btns .btn { flex: 1 1 100%; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  #mp-box, #mp-tease { transform: none !important; }
  .pin { height: auto; } .pinin { position: static; height: auto; padding: 4rem 0 3rem; } .track { width: auto; overflow-x: auto; }
}

/* ============ Mr. Painter, the chat ============ */
#mp { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 80; transition: transform .32s var(--ease), opacity .25s; font-family: var(--body); }
#mp.foot-hide:not(.open) { opacity: 0; pointer-events: none; }
#mp-launch { display: flex; align-items: center; gap: .7rem; padding: 8px 20px 8px 8px; border: 1px solid var(--hair); border-radius: 22px; background: #111836; color: var(--hi); cursor: pointer; box-shadow: 0 18px 44px rgba(11, 19, 48, .16); font: inherit; text-align: left; transition: background .15s, scale .15s; animation: mp-in .6s var(--ease) both; }
#mp-launch:hover { background: #18214a; } #mp-launch:active { scale: .98; }
@keyframes mp-in { from { transform: translateY(140%); } 60% { transform: translateY(-8%); } to { transform: none; } }
.mp-face { display: block; aspect-ratio: 74 / 64; box-sizing: border-box; line-height: 0; width: 74px; flex: none; border-radius: 18px; background: #070B1C; padding: 6px 4px 0; overflow: hidden; }
.mp-face .roller { animation: mp-bob 4.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes mp-bob { 0%, 100% { transform: translateY(2px) rotate(-2deg); } 50% { transform: translateY(-2px) rotate(2deg); } }
#mp.wave .mp-face .roller { animation: mp-wave .9s var(--ease); }
@keyframes mp-wave { 0% { transform: none; } 25% { transform: translateY(-9px) rotate(-9deg); } 50% { transform: translateY(0) rotate(7deg); } 75% { transform: translateY(-5px) rotate(-4deg); } 100% { transform: none; } }
#mp-launch:hover .mp-face .roller { animation-duration: 1.6s; }
#mp-launch b { display: block; font: 600 1rem var(--display); letter-spacing: -.01em; } #mp-launch small { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text); }
#mp-launch small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
#mp.open #mp-launch, #mp.open #mp-tease { display: none; }
#mp-tease { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(290px, 78vw); background: #fff; color: #0B1330; border-radius: 16px 16px 4px 16px; padding: .8rem 2rem .8rem 1rem; font-size: .92rem; line-height: 1.4; box-shadow: 0 16px 40px rgba(11, 19, 48, .13); cursor: pointer; transition: transform .22s var(--ease), opacity .2s; }
#mp-tease[hidden] { display: block; opacity: 0; transform: translateY(6px) scale(.97); pointer-events: none; }
#mp-tease button { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.1rem; color: #6B7392; cursor: pointer; padding: 4px 6px; }
#mp-box { position: absolute; right: 0; bottom: 0; width: min(420px, calc(100vw - 28px)); max-height: min(680px, calc(100dvh - 110px)); display: flex; flex-direction: column; background: #0E1533; border: 1px solid var(--hair); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(11, 19, 48, .18); transform-origin: bottom right; transition: transform .24s var(--ease), opacity .2s; }
#mp-box[hidden] { display: flex; transform: scale(.95) translateY(8px); opacity: 0; visibility: hidden; transition: transform .18s ease, opacity .15s, visibility 0s .18s; }
#mp.away #mp-box, #mp.away #mp-tease { opacity: 0; transform: translateY(10px) scale(.98); }
.mp-head { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; background: #111836; border-bottom: 1px solid var(--hair); }
.mp-head .mp-face { width: 58px; border-radius: 14px; }
.mp-head b { font: 600 1.02rem var(--display); color: var(--hi); display: block; } .mp-head small { font-size: .78rem; color: var(--text); }
.mp-head div { flex: 1; min-width: 0; }
.mp-head button { border: 0; background: none; color: var(--text); cursor: pointer; width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem; } .mp-head button:hover { background: var(--soft); color: var(--hi); }
.mp-head button[aria-pressed="true"] { color: var(--gold-ink); }
#mp-log { flex: 1; overflow-y: auto; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .55rem; min-height: 180px; overscroll-behavior: contain; }
.mp-msg { max-width: 86%; padding: .6rem .85rem; border-radius: 16px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: mp-msg .22s var(--ease) both; }
@keyframes mp-msg { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.mp-msg.painter { align-self: flex-start; background: #fff; color: #0B1330; border-bottom-left-radius: 4px; }
.mp-msg.visitor { align-self: flex-end; background: var(--gold); color: #0B1330; border-bottom-right-radius: 4px; }
.mp-msg.typing { display: flex; gap: 5px; padding: .8rem .9rem; } .mp-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #0B1330; animation: mp-dot 1s ease-in-out infinite; } .mp-msg.typing i:nth-child(2) { animation-delay: .15s; } .mp-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mp-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.mp-links { display: flex; flex-wrap: wrap; gap: .4rem; align-self: flex-start; } .mp-links a, .mp-chips button { font: 600 .84rem var(--body); color: var(--hi); text-decoration: none; border: 1px solid var(--gold); border-radius: 999px; padding: .4rem .8rem; background: none; cursor: pointer; }
.mp-links a:hover, .mp-chips button:hover { background: var(--gold); color: #0B1330; }
.mp-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .9rem .7rem; }
.mp-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--hair); background: #111836; }
.mp-form input { flex: 1; min-width: 0; font: 400 1rem var(--body); color: var(--hi); background: var(--soft); border: 1px solid var(--hair); border-radius: 12px; padding: .65rem .8rem; }
.mp-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.mp-form button { border: 0; border-radius: 12px; background: var(--gold); color: #0B1330; font: 600 .95rem var(--body); padding: 0 1rem; cursor: pointer; } .mp-form button:disabled { opacity: .5; cursor: default; }
.mp-note { font-size: .72rem; color: var(--dim); padding: 0 .9rem .6rem; background: #111836; margin: 0; }
@media (max-width: 640px) { #mp-launch { padding: 6px; border-radius: 20px; } #mp-launch > span:not(.mp-face) { display: none; } .mp-face { width: 62px; } #mp-box { max-height: calc(100dvh - 90px); } }

/* ============ languages ============ */
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--text); font: 500 .92rem var(--body); padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--hair); white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; }
.lang summary:hover, .lang[open] summary { color: var(--hi); border-color: var(--gold-ink); }
.lang div { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 170px; background: #111836; border: 1px solid var(--hair); border-radius: 14px; padding: .4rem; box-shadow: 0 20px 50px rgba(11, 19, 48, .15); z-index: 60; display: grid; }
.lang a { color: var(--text); text-decoration: none; padding: .55rem .8rem; border-radius: 10px; font-size: .98rem; }
.lang a:hover, .lang a:focus-visible { background: var(--soft); color: var(--hi); }
.lang a[aria-current] { color: var(--gold-ink); }
@media (max-width: 980px) { .lang div { position: static; box-shadow: none; margin-top: .5rem; } .lang summary { width: max-content; } }
/* Persian is written right to left in a joined script: letters must not be spaced apart, and it needs more room between lines */
:lang(fa) { letter-spacing: 0 !important; }
/* Vazirmatn (SIL Open Font Licence, fonts/Vazirmatn-OFL.txt) for the Persian script, its numerals and punctuation; Latin words such as the
   business name stay in the site's own faces. The file is fetched only by pages that have Persian on them. */
@font-face { font-family: "Vazirmatn"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/fonts/vazirmatn-var.woff2") format("woff2");
  unicode-range: U+0020-0040, U+00AB, U+00BB, U+0600-06FF, U+0750-077F, U+200C-200F, U+2010-2015, U+FB50-FDFF, U+FE70-FEFF; }
html:lang(fa) { --display: "Vazirmatn", "Manrope", "Segoe UI", Tahoma, sans-serif; --body: "Vazirmatn", "Inter", "Segoe UI", Tahoma, sans-serif; }
/* Persian is set a full step heavier than the Latin: at the same weight its strokes read thin beside it */
html:lang(fa) body { line-height: 1.85; font-weight: 500; }
html:lang(fa) h1, html:lang(fa) h2, html:lang(fa) .cta-h { line-height: 1.45; font-weight: 900; }
html:lang(fa) h3, html:lang(fa) h4 { font-weight: 800; } html:lang(fa) .mark { font-weight: 900; }
html:lang(fa) .lead { font-weight: 500; } html:lang(fa) strong, html:lang(fa) b { font-weight: 800; }
html:lang(fa) .btn, html:lang(fa) .nav a, html:lang(fa) .lang summary, html:lang(fa) .fams button, html:lang(fa) .tones button, html:lang(fa) label { font-weight: 700; }
html:lang(fa) .caps, html:lang(fa) .scheme li small, html:lang(fa) .scheme h4 { letter-spacing: 0; font-size: .85rem; font-weight: 700; }
html:lang(fa) small, html:lang(fa) .aside, html:lang(fa) .mp-note { font-weight: 500; }
html:lang(zh-Hans) body, html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hans) h3 { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif; letter-spacing: 0; }
html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hans) h3 { font-weight: 500; line-height: 1.3; }
[dir=rtl] .chip span { text-align: right; }
.deck { direction: ltr; }
/* the drawn room and the strip of photographs are laid out by measurement, left to right, whatever the language */
.view, .pinin, #splash, .ribbon { direction: ltr; }
[dir=rtl] .shot figcaption, [dir=rtl] .pinin .wrap { direction: rtl; }
[dir=rtl] .home-hero .ribbon canvas, [dir=rtl] .beginwrap .ribbon canvas { transform: scaleX(-1); }
[dir=rtl] .mp-msg.painter { border-radius: 16px 16px 4px 16px; } [dir=rtl] .textme input[type=tel] { direction: ltr; text-align: right; }
[dir=rtl] #mp { right: auto; left: clamp(14px, 2vw, 28px); } [dir=rtl] #mp-box, [dir=rtl] #mp-tease { right: auto; left: 0; transform-origin: bottom left; }
