
:root{
  --bg:#f6f7f7; --ivory:#eeeae0; --ink:#1e1c1a; --mute:#66625b;
  --bronze:#8a6a45; --line:#d8d5ce; --danger:#b42318;
  --serif:"Instrument Serif",Georgia,serif;
  --sans:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}

*{box-sizing:border-box}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1rem/1.6 var(--sans)}
a{color:inherit}
h1,h2,h3{font-family:var(--serif);font-weight:400;letter-spacing:-0.01em;margin:0 0 .5rem}
:focus-visible{outline:2px solid var(--bronze);outline-offset:3px}

/* ---- layout shells ---- */
.topbar{background:var(--ink);color:var(--bg);font-size:.82rem;padding:.5rem 5%;text-align:center}
.header{background:var(--bg);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.nav{max-width:1240px;margin:auto;padding:1rem 1.25rem;display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap}
.brand{font:400 1.6rem var(--serif);color:var(--ink);text-decoration:none;letter-spacing:.01em;white-space:nowrap}
.navlinks{display:flex;gap:1.3rem;align-items:center;flex-wrap:wrap;font-size:.95rem;margin-left:auto}
.navlinks a{color:var(--mute);text-decoration:none}
.navlinks a:hover{color:var(--ink)}
.search{flex:1;display:flex;gap:.6rem;min-width:200px}
.search input{flex:1;padding:.6rem .8rem;border:1px solid var(--line);background:transparent;color:inherit;font:inherit}
.container{max-width:1240px;margin:auto;padding:1.5rem 1.25rem 4rem}
.section{margin:3rem 0 0}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.5rem}
.section-head h1,.section-head h2{margin:0}
.footer{margin-top:4rem;background:var(--ink);color:#d8d5ce;padding:2rem 5%;display:flex;gap:1rem;flex-wrap:wrap;justify-content:space-between;font-size:.9rem}
.footer a{color:#fff}

/* ---- hero ---- */
.hero{background:var(--ivory);border:1px solid var(--line);padding:3rem 2rem;margin:1.5rem 0;border-radius:2px}
.hero h1{font-size:clamp(2.2rem,5vw,3.4rem);max-width:20em;line-height:1.05}
.hero p{max-width:40rem;color:var(--mute);font-size:1.05rem}

/* ---- buttons & forms ---- */
.button,button{display:inline-block;border:1px solid var(--ink);background:var(--ink);color:var(--bg);
  padding:.75rem 1.3rem;font:500 .92rem var(--sans);text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.button:hover,button:hover{background:var(--bronze);border-color:var(--bronze);color:#fff}
.button.secondary,button.secondary{background:transparent;color:var(--ink)}
.button.secondary:hover,button.secondary:hover{background:var(--ivory);color:var(--ink)}
button:disabled{opacity:.45;cursor:not-allowed;background:var(--mute);border-color:var(--mute)}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.form-card,.info-card,.account-box{background:var(--bg);border:1px solid var(--line);padding:1.75rem}
.form-card input:not([type=radio]):not([type=checkbox]),.form-card textarea,.purchase-row input,select{
  width:100%;padding:.75rem;border:1px solid var(--line);background:transparent;color:inherit;font:inherit;border-radius:0}
.form-card textarea{min-height:120px}
.form-card>*+*{margin-top:.9rem}
.message{color:var(--danger);min-height:1.3rem;font-size:.92rem}
.muted-text{color:var(--mute)}
.hidden{display:none!important}

/* ---- product grid & cards ---- */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.6rem}
.product-card{background:var(--bg);border:1px solid var(--line);overflow:hidden;transition:border-color .15s}
.product-card:hover{border-color:var(--bronze)}
/* The box is a fixed square; the photo is scaled to fit it (the box never grows to fit the photo). */
.product-image,.product-detail-image{
  position:relative;aspect-ratio:1/1;
  background:linear-gradient(160deg,var(--ivory),var(--line));
  display:flex;align-items:center;justify-content:center;color:var(--bronze);
  font:400 1.1rem var(--serif);overflow:hidden}
.product-image img,.product-detail-image img{position:absolute;inset:0;width:100%;height:100%;display:block}
/* Show the WHOLE photo, scaled to fit inside the box (never cropped, never stretched). */
.product-image img,.product-detail-image img{object-fit:contain;box-sizing:border-box;padding:.4rem}
.product-body{padding:1.1rem 1.1rem 1.3rem}
.product-body h3{margin:.3rem 0;font-size:1.2rem}
.product-body h3 a{text-decoration:none;color:inherit}
.price,.detail-price{font-family:var(--serif);font-size:1.25rem}
.detail-price{font-size:2.1rem;color:var(--bronze)}
.stock{color:var(--mute);font-size:.85rem;margin:.4rem 0}
.card-actions,.purchase-row{display:flex;gap:.6rem;align-items:center;margin-top:1.1rem;flex-wrap:wrap}

/* ---- cart / orders ---- */
.cart-line,.order-card{background:var(--bg);border:1px solid var(--line);padding:1rem 1.2rem;margin:.7rem 0;
  display:flex;justify-content:space-between;gap:1rem;align-items:center}
/* Order cards: details on the left; on the right a fixed column with payment status on one row, the amount on the next, then any buttons. */
.order-card{align-items:flex-start}
.order-main{min-width:0;flex:1}
.order-main .muted-text{overflow-wrap:anywhere}
.order-side{flex:none;width:15rem;display:flex;flex-direction:column;align-items:flex-end;gap:.5rem;text-align:right}
.order-status{display:inline-block;padding:.15rem .7rem;border:1px solid var(--line);font-size:.82rem;font-weight:500;color:var(--ink);background:var(--ivory)}
.order-status.is-ok{border-color:#2e7d32;color:#2e7d32;background:transparent}
.order-status.is-wait{border-color:var(--bronze);color:var(--bronze);background:transparent}
.order-status.is-bad{border-color:var(--danger);color:var(--danger);background:transparent}
.order-amount{font-family:var(--serif);font-size:1.5rem;line-height:1.1;font-variant-numeric:tabular-nums}
.order-actions{display:flex;gap:.5rem;justify-content:flex-end;flex-wrap:wrap}
.order-actions button{padding:.5rem .9rem;font-size:.85rem}
.cart-summary{display:flex;justify-content:space-between;align-items:center;background:var(--ivory);padding:1.3rem 1.2rem;margin-top:1.2rem}

/* ---- product detail ---- */
.product-detail{background:var(--bg);border:1px solid var(--line);padding:2rem;display:grid;
  grid-template-columns:minmax(0,7fr) minmax(0,3fr);gap:2.5rem;align-items:start}
.pd-main,.pd-side{min-width:0}
.pd-side h1{font-size:clamp(1.7rem,2.6vw,2.4rem);line-height:1.1;margin:.2rem 0 .6rem}
.pd-side .detail-price{font-size:1.7rem}
.pd-side>p{margin:.6rem 0}

/* ---- homepage: hero visual, trust bar, category grid, bulk banner, showroom ---- */
.home-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center;padding:1.5rem 0 3rem}
.home-hero h1{font-size:clamp(2.4rem,5.5vw,4.4rem);line-height:1.03;max-width:12em;margin:0 0 1.2rem}
.home-hero p{color:var(--mute);max-width:32rem;margin:0 0 1.8rem;font-size:1.05rem}
.slab{position:relative;aspect-ratio:3/4;background:linear-gradient(160deg,var(--bg),var(--line) 55%,var(--ivory));overflow:hidden;box-shadow:0 30px 60px -30px rgba(30,28,26,.3)}
.slab svg{position:absolute;inset:0;width:100%;height:100%}
.vein{fill:none;stroke:var(--bronze);stroke-linecap:round;stroke-dasharray:1400;stroke-dashoffset:1400;animation:draw 2.4s .15s ease-out forwards}
.vein.b{stroke:var(--mute);opacity:.45;stroke-width:1;animation-delay:.5s}
@keyframes draw{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.vein{animation:none;stroke-dashoffset:0}}
.trust{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;padding:1.6rem 0;border-block:1px solid var(--line);font-size:.92rem;color:var(--mute)}
.trust b{display:block;color:var(--ink);font:400 1.15rem var(--serif);margin-bottom:.15rem}
.cats{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:140px;gap:.9rem}
.cat{position:relative;display:flex;align-items:flex-end;padding:1rem;text-decoration:none;color:#fff;background-size:cover;overflow:hidden;font:400 1.25rem var(--serif);text-shadow:0 1px 8px rgba(0,0,0,.4);transition:filter .15s}
.cat:hover{filter:brightness(1.07)}
.cat.dark{color:var(--ink);text-shadow:none}
.c-marble{grid-row:span 2;grid-column:span 2;background:linear-gradient(118deg,transparent 40%,rgba(90,90,90,.28) 41%,transparent 42.5%),linear-gradient(62deg,transparent 58%,rgba(138,106,69,.35) 59%,transparent 60.2%),linear-gradient(160deg,#f7f7f5,#dcdcd8)}
.c-tiles{background:linear-gradient(#0002 1px,transparent 1px) 0 0/34px 34px,linear-gradient(90deg,#0002 1px,transparent 1px) 0 0/34px 34px,#d9d4c8}
.c-wood{grid-row:span 2;background:repeating-linear-gradient(90deg,#8a6a45 0 7px,#7b5d3b 7px 10px,#957650 10px 18px)}
.c-sec{background:linear-gradient(90deg,#3b362f 0 47%,#25211d 47% 53%,#3b362f 53%)}
.c-shower{background:linear-gradient(160deg,#eef0f1,#b5bcc1 50%,#f0f2f3)}
.c-light{background:radial-gradient(circle at 50% 25%,#fff1cf,#d8b672 35%,#2f2a23 75%)}
.c-furn{background:repeating-linear-gradient(45deg,#d6d0c2 0 2px,#e2dccf 2px 4px)}
.bulk{background:var(--ivory);padding:2.2rem;display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap}
.bulk h2{margin:0 0 .25rem;font-size:1.8rem}
.show{display:grid;grid-template-columns:1fr 3fr;gap:2rem;align-items:stretch}
.show-info{display:flex;flex-direction:column;justify-content:flex-start}
.show address{font-style:normal;color:var(--mute);margin:.75rem 0 1rem}
.show .card-actions{flex-direction:column;align-items:stretch;margin-top:.5rem}
.show .card-actions .button{text-align:center}
.show-map{display:flex;flex-direction:column;min-width:0}
.map-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.6rem;flex-wrap:wrap}
#street-open{padding:.5rem 1.1rem;font-size:.85rem}
.map-open{font-size:.88rem;color:var(--mute)}
#showroom-map{flex:1 1 auto;aspect-ratio:16/9;min-height:280px;border:1px solid var(--line)}
.mapboxgl-map{font:inherit}
dialog{border:1px solid var(--line);background:var(--bg);color:var(--ink);padding:1.8rem;width:min(92vw,28rem)}
dialog::backdrop{background:rgba(20,18,16,.5)}
dialog h2{font-size:1.7rem}
dialog form{display:grid;gap:1rem}
dialog form>*{margin:0}
dialog label{display:grid;gap:.35rem;font-size:.88rem;color:var(--mute);margin:0}
dialog input,dialog textarea,dialog select{width:100%;margin:0;padding:.7rem .8rem;border:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;box-sizing:border-box;min-height:44px}
dialog textarea{min-height:96px;resize:vertical}
dialog .card-actions{margin-top:.25rem}

/* ---- product detail extras: breadcrumb, gallery thumbs, spec table ---- */
.breadcrumb{font-size:.88rem;margin:1rem 0}
.breadcrumb a{color:var(--mute);text-decoration:none}
.breadcrumb a:hover{color:var(--ink)}
.gallery-stage{max-height:82vh;width:100%}
.gal-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:2.8rem;height:2.8rem;padding:0;border-radius:50%;
  background:var(--bg);color:var(--ink);border:1px solid var(--line);font:400 1.9rem/1 var(--sans);display:flex;align-items:center;justify-content:center;opacity:.92}
.gal-nav:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.gal-prev{left:.8rem}.gal-next{right:.8rem}
.gal-count{position:absolute;right:.8rem;bottom:.8rem;z-index:2;background:var(--bg);color:var(--mute);border:1px solid var(--line);padding:.1rem .6rem;font-size:.82rem}
.gallery-stage:focus-visible{outline:2px solid var(--bronze);outline-offset:3px}
.pd-main .gallery-thumbs{margin-top:.9rem}
.pd-side>:first-child{margin-top:0}
.gallery-thumbs{display:flex;flex-wrap:wrap;gap:.6rem}
.gallery-thumbs .thumb{padding:0;border:1px solid var(--line);background:none;flex:none;width:76px;height:76px;overflow:hidden;cursor:pointer}
.gallery-thumbs .thumb img{width:100%;height:100%;object-fit:contain;display:block}
.gallery-thumbs .thumb.active{border-color:var(--bronze);outline:1px solid var(--bronze)}
.gallery-thumbs .thumb:hover{background:none;border-color:var(--bronze)}
.spec-table{border-collapse:collapse;margin:1.2rem 0;width:100%;font-size:.92rem}
.spec-table th,.spec-table td{text-align:left;padding:.5rem 0;border-bottom:1px solid var(--line)}
.spec-table th{color:var(--mute);font-weight:500;width:9rem}
#shop-banner{padding:2rem;margin:1rem 0 2rem}
#shop-banner h1{font-size:clamp(1.8rem,4vw,2.6rem)}
.cart-empty{display:flex;flex-direction:column;align-items:center;gap:2rem;text-align:center;padding:3.5rem 1rem 4rem;color:var(--bronze)}
.cart-empty-art{width:min(22rem,78%);height:auto;display:block}
.cart-empty a.cart-empty-cta{color:var(--bg);font-size:1.02rem;padding:.9rem 2.2rem}
.cart-empty a.cart-empty-cta:hover{color:#fff}

@media(max-width:850px){
  .nav{flex-wrap:wrap}
  .search{order:3;flex-basis:100%}
  .navlinks{overflow:auto;margin-left:0}
  .two,.product-detail{grid-template-columns:1fr}
  .cart-summary,.cart-line,.order-card{align-items:flex-start;flex-direction:column}
  .order-side{width:100%;align-items:flex-start;text-align:left}
  .order-actions{justify-content:flex-start}
  .home-hero{grid-template-columns:1fr;gap:2rem}
  .slab{aspect-ratio:16/10}
  .trust{grid-template-columns:1fr;gap:1rem}
  .cats{grid-template-columns:repeat(2,1fr)}
  .c-marble{grid-column:span 2}
  .show{grid-template-columns:1fr;gap:2rem}
}

/* utility classes replacing inline style attributes (blocked by the CSP) */
.u-center-top{text-align:center;margin-top:1.5rem}
.u-flush{margin:0}
.u-mt-sm{margin-top:.6rem}
.u-mb-md{margin-bottom:1rem}
.delivery-map{height:300px;border:1px solid var(--line)}

/* ---- messages, password helper, account page ---- */
.message.ok{color:#067647}
.pw-field{position:relative}
.pw-field input{padding-right:4.5rem}
.pw-toggle{position:absolute;right:.4rem;top:50%;transform:translateY(-50%);padding:.3rem .6rem;font-size:.8rem;
  background:transparent;color:var(--ink);border:1px solid var(--line)}
.pw-rules{list-style:none;margin:.5rem 0 0;padding:0;font-size:.88rem;color:var(--mute)}
.pw-rules li{margin:.15rem 0}
.pw-rules li.ok{color:#067647}
.link-button{background:none;border:none;color:var(--bronze);padding:0;text-decoration:underline;cursor:pointer;font:inherit}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-top:1.5rem}
.account-links{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0 0}
.account-box h2{margin-top:0}
.field-label{display:block;font-size:.88rem;color:var(--mute);margin-bottom:.25rem}
@media(max-width:720px){.account-grid{grid-template-columns:1fr}}

/* ---- quantity controls, cart, bulk-quote helper (structure only; colours come from the theme) ---- */
.qty-input{width:4.4rem;padding:.7rem .5rem;text-align:center;border:1px solid var(--line);background:transparent;color:inherit;font:inherit;border-radius:0}
.qty-stepper{display:inline-flex;align-items:stretch}
.qty-stepper button{padding:.45rem .85rem;font-size:1.1rem;line-height:1}
.qty-stepper input{width:4rem;text-align:center;border:1px solid var(--line);border-inline:0;background:transparent;color:inherit;font:inherit;border-radius:0}
.cart-line-right{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;justify-content:flex-end}
.line-total{min-width:7rem;text-align:right}
.cart-actions{display:flex;gap:.7rem;flex-wrap:wrap}
.cart-back{margin:0 0 .5rem}
.cart-back a{color:var(--mute);text-decoration:none}
.cart-back a:hover{color:var(--ink)}
.bulk-helper{border:1px solid var(--line);padding:1rem 1.1rem;background:var(--ivory)}
.bulk-helper>*+*{margin-top:.6rem}
@media(max-width:850px){.cart-line-right{justify-content:flex-start}.line-total{text-align:left}}

/* ---- pickup / delivery choice: two aligned, selectable cards ---- */
.fulfillment{border:0;margin:0;padding:0;display:grid;gap:.75rem}
.fulfillment legend{padding:0;margin-bottom:.6rem;font:600 .78rem var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.choice{display:flex;align-items:flex-start;gap:.9rem;padding:1rem 1.1rem;border:1px solid var(--line);cursor:pointer;
  transition:border-color .15s,background .15s}
.choice:hover{border-color:var(--bronze)}
.choice.selected,.choice:has(input:checked){border-color:var(--bronze);background:var(--ivory)}
.choice input[type=radio]{flex:none;width:1.15rem;height:1.15rem;margin:.2rem 0 0;padding:0;accent-color:var(--bronze)}
.choice-body{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.choice-body span{color:var(--mute);font-size:.92rem;line-height:1.45}
.choice:focus-within{outline:2px solid var(--bronze);outline-offset:2px}

/* ---- maps ---- */
.map-fallback{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1rem;min-height:100%;padding:1.5rem;background:var(--ivory)}
.map-fallback p{margin:0}
.delivery-map.map-off{height:auto;border:0;padding:0}

/* ---- In-app pop-up (replaces the browser's alert box) ---- */
.nea-pop-backdrop{position:fixed;inset:0;z-index:1000;background:rgba(20,18,16,.55);display:flex;align-items:center;justify-content:center;padding:1rem}
.nea-pop{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-top:4px solid var(--bronze);width:min(100%,30rem);max-height:90vh;overflow:auto;padding:1.4rem 1.5rem;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.nea-pop-error{border-top-color:var(--danger)}
.nea-pop-success{border-top-color:#2e7d32}
.nea-pop h2{font-size:1.5rem;margin:0 0 .6rem}
.nea-pop-body p{margin:.3rem 0}
.nea-pop-body table{width:100%;border-collapse:collapse;font-size:.92rem;margin:.5rem 0}
.nea-pop-body th,.nea-pop-body td{text-align:left;padding:.3rem .4rem;border-bottom:1px solid var(--line);vertical-align:top}
.nea-pop-actions{display:flex;gap:.6rem;justify-content:flex-end;flex-wrap:wrap;margin-top:1.1rem}
.google-btn{width:100%;margin-top:.5rem}
.order-link{background:none;border:0;padding:0;color:inherit;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.theme-wrap{position:relative;display:inline-block}
.theme-toggle{padding:.45rem .9rem;font-size:.8rem;white-space:nowrap}
.theme-menu{position:absolute;top:calc(100% + .4rem);left:0;z-index:50;min-width:13rem;margin:0;padding:.4rem;list-style:none;background:var(--bg);color:var(--ink);border:1px solid var(--line);box-shadow:0 8px 28px rgba(0,0,0,.2)}
.theme-menu button{display:flex;align-items:center;gap:.7rem;width:100%;text-align:left;background:transparent;color:var(--ink);border:0;padding:.55rem .6rem;font-size:.9rem;letter-spacing:0;text-transform:none;cursor:pointer}
.theme-menu button:hover,.theme-menu button:focus-visible{background:var(--ivory)}
.theme-menu button[aria-checked="true"]{font-weight:700}
.theme-menu small{display:block;color:var(--mute);font-weight:400}
.theme-sw{flex:none;width:1.4rem;height:1.4rem;border-radius:50%;border:1px solid var(--line)}
.theme-sw-ivory{background:linear-gradient(135deg,#fcfaf6 55%,#a98a55 55%)}
.theme-sw-classic{background:linear-gradient(135deg,#f6f7f7 55%,#8a6a45 55%)}

/* ---- contact details with icons ---- */
.contact-stack{display:grid;gap:1.1rem;margin:1rem 0 1.4rem}
.contact-list{list-style:none;margin:0;padding:0;display:grid;gap:.7rem}
.contact-list li{display:flex;align-items:flex-start;gap:.8rem}
.contact-icon{flex:none;width:1.35rem;height:1.35rem;margin-top:.2rem;color:var(--bronze)}
.contact-list a{text-decoration:none}
.contact-list a:hover{text-decoration:underline}
.hours{display:flex;flex-direction:column}
.hours span:last-child,.show .hours span:last-child{display:block}
p.hours{display:flex;flex-direction:column;margin:.2rem 0 1.2rem}
.prose-lines{white-space:pre-line}

/* ---- layout pass (Oct 12): rearrange only, colours and fonts untouched ---- */
.c-furn{grid-column:span 2}
.section>h1:first-child,.container>.section>h1{margin-bottom:1.4rem}
.two{align-items:start}
.form-card>.forgot-row{text-align:right;margin-top:.45rem}
.account-grid,.two{align-items:start}
#login-form{align-self:start}
.info-card>.prose-lines{column-width:26rem;column-gap:2.75rem}
.info-card>.prose-lines>*{break-inside:avoid}
@media(max-width:850px){.c-furn{grid-column:span 2}}

/* ---- redesign pass (Oct 15): calmer rhythm, hairline detail, slow soft motion. Colours only via theme tokens. ---- */
:root{--space-section:clamp(3.5rem,8vw,6rem);--ease:cubic-bezier(.22,.61,.36,1)}
.section{margin-top:var(--space-section)}
.home-hero{padding:clamp(1.5rem,4vw,3.5rem) 0 var(--space-section)}
.home-hero h1{font-size:clamp(2.6rem,6vw,5rem);line-height:1;letter-spacing:-.02em}
.home-hero p{line-height:1.75}
.trust{padding:2rem 0}
.section-head h2,.section>h2{font-size:clamp(1.8rem,3vw,2.5rem);letter-spacing:-.015em}
.section-head h2::after{content:"";display:block;width:2.5rem;height:1px;background:var(--bronze);margin-top:.9rem}
.slab{box-shadow:0 40px 80px -40px rgba(30,28,26,.28)}
.cat{transition:filter .5s var(--ease)}
.cat:hover{filter:brightness(1.05)}
.product-card{transition:border-color .4s var(--ease),transform .5s var(--ease),box-shadow .5s var(--ease)}
.product-card:hover{transform:translateY(-3px);box-shadow:0 24px 40px -28px rgba(30,28,26,.35)}
.product-image img{transition:transform .9s var(--ease),opacity .5s var(--ease)}
.product-card:hover .product-image img{transform:scale(1.03)}
button,.button{transition:background-color .35s var(--ease),color .35s var(--ease),border-color .35s var(--ease)}
.header{backdrop-filter:saturate(1.1)}
.container>h1,.section>h1,.account-box h1{font-size:clamp(2.2rem,4.5vw,3.4rem);letter-spacing:-.02em;line-height:1.05}

/* page entrance: one gentle fade, never repeated */
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.home-hero>div:first-child,.container>.section>h1,.account-box,.info-card,.form-card{animation:rise .8s var(--ease) both}
.form-card{animation-delay:.08s}.info-card{animation-delay:.16s}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* Contact: both cards the same height, form button at the bottom */
.two{align-items:stretch}
.two>.form-card,.two>.info-card{height:100%}
.form-card .message{min-height:1.4rem}

/* Account: one confident action, the rest quiet text links */
.account-links{align-items:center;gap:.4rem 1.4rem}
.account-links .quiet{background:none;border:0;padding:.3rem 0;color:var(--mute);text-transform:none;letter-spacing:0;font-size:.95rem;text-decoration:underline;text-underline-offset:.25em;text-decoration-color:var(--line)}
.account-links .quiet:hover{color:var(--ink);background:none;text-decoration-color:var(--bronze)}
#admin-tools{margin-top:.8rem;padding-top:.8rem;border-top:1px solid var(--line)}
.account-box+.account-box,.account-box+.account-grid{margin-top:2.5rem}
#account-orders-list .order-card{margin:0;border-width:0 0 1px;padding:1.1rem 0;background:transparent}
#account-orders-list .order-side{width:auto;min-width:11rem}
#account-orders-list .order-amount{font-size:1.25rem}

.google-btn{display:flex;align-items:center;justify-content:center;gap:.7rem}
.g-logo{flex:none;display:block}

.purchase-row #quantity{width:5.5rem}

/* ---- redesign (Oct 17): editorial luxury. "html body" keeps these ahead of the theme files. ---- */
html body{overflow-x:clip}
html body .topbar{letter-spacing:.24em;text-transform:uppercase;font-size:.7rem;padding:.65rem 5%}
html body .brand{font-size:clamp(1.6rem,2.4vw,2.1rem);letter-spacing:.32em;text-transform:uppercase}
html body .header{border-bottom:1px solid var(--line)}
html body .header .nav.navlinks{justify-content:center;gap:2.6rem;padding-top:.2rem;padding-bottom:.9rem;margin-left:0;max-width:none;border-top:1px solid var(--line)}
html body .header .nav.navlinks a{font-size:.74rem;letter-spacing:.24em;text-transform:uppercase}
html body .search input{border:0;border-bottom:1px solid var(--line);padding-inline:0;background:transparent}

/* eyebrow labels */
.eyebrow{display:flex;align-items:center;gap:.9rem;margin:0 0 1.6rem;font:600 .72rem var(--sans);letter-spacing:.26em;text-transform:uppercase;color:var(--bronze)}
.eyebrow::before{content:"";width:2.6rem;height:1px;background:var(--bronze)}

/* Home hero: a full-width ivory stage */
html body .home-hero{margin-inline:calc(50% - 50vw);padding:clamp(3rem,7vw,6rem) max(1.25rem,calc(50vw - 620px + 1.25rem));background:var(--ivory);gap:clamp(2rem,5vw,5rem);align-items:center;margin-top:-1.5rem}
html body .home-hero h1{font-size:clamp(3rem,7vw,6rem);line-height:.98;letter-spacing:-.025em;max-width:11em}
html body .home-hero h1 em{font-style:italic;color:var(--bronze)}
html body .home-hero p:not(.eyebrow){font-size:1.1rem;max-width:30rem}
html body .slab{aspect-ratio:4/5;box-shadow:0 50px 90px -50px rgba(30,28,26,.45)}

/* Trust bar: numbered */
html body .trust{counter-reset:t;border:0;padding:3rem 0 0;gap:3rem}
html body .trust>div{counter-increment:t;position:relative;padding-top:1.4rem;border-top:1px solid var(--line)}
html body .trust>div::before{content:"0" counter(t);position:absolute;top:-.62rem;left:0;padding-right:.8rem;background:var(--bg);font:400 .8rem var(--sans);letter-spacing:.2em;color:var(--bronze)}
html body .trust b{font-size:1.4rem;margin-bottom:.4rem}

/* Collections: taller, calmer tiles */
html body .cats{grid-auto-rows:clamp(170px,19vw,250px);gap:1rem}
html body .cat{font-size:1.5rem;padding:1.4rem 1.5rem;align-items:flex-end;justify-content:space-between}
html body .cat::after{content:"\2192";font:300 1.5rem var(--sans);opacity:0;transform:translateX(-8px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
html body .cat:hover::after,html body .cat:focus-visible::after{opacity:1;transform:none}

/* Featured products: open cards, no frames */
html body #featured-products.product-grid{gap:2.2rem 1.6rem}
html body .product-card{border-color:transparent;background:transparent}
html body .product-card .product-image{aspect-ratio:4/5}
html body .product-card .product-body{padding:1.1rem 0 0}
html body .product-card:hover{border-color:transparent;box-shadow:none}

/* Bulk banner: dark band */
html body .bulk{background:var(--ink);color:var(--bg);padding:clamp(2rem,4vw,3.4rem)}
html body .bulk h2{color:var(--bg);font-size:clamp(1.8rem,3vw,2.6rem)}
html body .bulk .muted-text{color:var(--bg);opacity:.75}
html body .bulk .button{background:var(--bg);color:var(--ink);border-color:var(--bg)}

/* Footer */
html body .footer{padding:3rem 5%;font-size:.85rem;letter-spacing:.04em;align-items:center;border-top:1px solid var(--line)}

/* Contact: dark details panel, hairline form */
html body .two>.info-card{background:var(--ink);color:var(--bg);border-color:var(--ink);padding:clamp(1.6rem,3vw,2.8rem)}
html body .two>.info-card h2,html body .two>.info-card a,html body .two>.info-card li,html body .two>.info-card p{color:var(--bg)}
html body .two>.info-card .contact-icon{color:var(--bronze)}
html body .two>.form-card{border-color:transparent;background:transparent;padding-inline:0}
html body .two>.form-card input:not([type=radio]):not([type=checkbox]),html body .two>.form-card textarea:not(.x):not(.y){border:0;border-bottom:1px solid var(--line);background:transparent;padding-inline:0}
html body .two>.form-card input:not([type=radio]):not([type=checkbox]):focus,html body .two>.form-card textarea:not(.x):not(.y):focus{outline:0;border-bottom-color:var(--bronze)}

/* About and other reading pages: editorial type */
html body .container>.section>h1{font-size:clamp(2.8rem,6vw,5rem);line-height:1;margin-bottom:2rem}
html body .info-card>.prose-lines[data-content-key=our_story]::first-letter{float:left;font:400 4.4rem/.8 var(--serif);padding:.35rem .6rem 0 0;color:var(--bronze)}

/* Account: greeting band */
html body .account-box:first-child{background:var(--ivory);border:0;padding:clamp(1.8rem,4vw,3.2rem)}
html body .account-box:first-child h1{font-size:clamp(2.6rem,5vw,4.2rem)}
@media(max-width:850px){
  html body .home-hero{margin-top:0;padding-block:2.5rem}
  html body .header .nav.navlinks{gap:1.4rem;justify-content:flex-start;overflow:auto}
  html body .trust{padding-top:2rem}
}
html body .home-hero h1::before{display:none}

/* Collections tiles: photos of the tile's own products fade slowly in and out */
.cat .cat-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1);z-index:0;transition:opacity 1.4s ease,transform 7s ease-out}
.cat .cat-slide.is-on{opacity:1;transform:scale(1.07)}
.cat.has-photos::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(to top,rgba(20,12,8,.72),rgba(20,12,8,0) 58%)}
.cat>span,.cat::after{position:relative;z-index:2}
html body .cat.has-photos,html[data-theme] body .cat.has-photos{color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.55)}
.cat .cat-cap{position:absolute;left:1.4rem;right:1.4rem;bottom:.55rem;z-index:2;font:500 .78rem/1.2 var(--sans,system-ui);color:rgba(255,255,255,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .6s}
.cat.has-photos .cat-cap{opacity:1}
.cat.has-photos{padding-bottom:1.9rem}
@media (prefers-reduced-motion:reduce){.cat .cat-slide,.cat .cat-slide.is-on{transition:none;transform:none}}
.cat.has-photos .cat-cap::after{content:" \2192";opacity:.9}
.cat .cat-cap{pointer-events:none}

.form-card .submit-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.form-card .submit-row .link-button{margin:0;text-align:left}
.form-card .submit-row>button:not(.link-button){margin-left:auto;min-width:9rem}

/* Home welcome text: paragraphs, with the closing line italic in the serif face */
.home-hero .welcome{max-width:62rem;margin-left:auto;margin-right:auto}
html body .home-hero .welcome p:not(.eyebrow){margin:0 0 1.8rem!important;max-width:none!important;text-align:left;line-height:1.5!important;text-wrap:pretty;font-family:'Cormorant Garamond',Georgia,serif!important;font-style:italic;font-weight:700;font-size:clamp(1.1rem,2.6vw,2.15rem);color:var(--accent-text,var(--bronze))!important;-webkit-text-stroke:.45px currentColor;font-synthesis:weight style}

/* AI-picture notice: slow scrolling line at the top of every page */
.ai-notice{overflow:hidden;white-space:nowrap;background:var(--ink,#1d1d1f);color:var(--bg,#fff);font-size:.78rem;padding:.5rem 0;position:relative}
.ai-notice-track{display:inline-flex;gap:4rem;padding-left:0;animation:ai-scroll 60s linear infinite;will-change:transform}
.ai-notice:hover .ai-notice-track{animation-play-state:paused}
.ai-notice-track span::before{content:"\2022";margin-right:1rem;opacity:.7}
@keyframes ai-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ai-notice{white-space:normal;text-align:center;padding:.5rem 5%}.ai-notice-track{animation:none;display:block}.ai-notice-track span+span{display:none}.ai-notice-track span::before{content:none}}

/* Hover glow on every button, in the theme accent */
html body button:not(:disabled):hover,html body .button:hover,html body a.button:hover,html body .fb-btn:hover,html body .thumb:hover,html body .auth-tab:hover{
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#0071e3) 28%,transparent),0 0 20px 3px color-mix(in srgb,var(--accent,#0071e3) 55%,transparent)!important}
@media (min-width:900px){html body .home-hero .welcome p:not(.eyebrow){text-align:center}}

html body .theme-menu{position:fixed!important;z-index:1000;width:min(16rem,calc(100vw - 16px));max-height:calc(100vh - 100px);overflow-y:auto}
html body .theme-menu li{display:block}

/* Welcome text sits apart from the headline */
html body .home-hero .welcome{margin-top:2.25rem}
/* Phones: search row must not push the page wider than the screen */
html body .search{min-width:0}
html body .search input{min-width:0;width:100%}
/* Theme menu: solid background so nothing shows through it */
html body .theme-menu{background:var(--bg)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:1px solid var(--line)!important;box-shadow:0 14px 40px rgba(0,0,0,.35)!important}
html body .theme-menu button{background:transparent}

/* Size chooser on the product page */
.size-picker{margin:1.2rem 0 .2rem}
.size-title{font-weight:600;margin-bottom:.5rem}
.size-options{display:flex;flex-wrap:wrap;gap:.5rem}
html body .size-opt{display:inline-flex;flex-direction:column;align-items:center;gap:.1rem;min-width:5.2rem;padding:.55rem .9rem;border-radius:12px!important;background:transparent!important;color:var(--ink)!important;border:1.5px solid var(--line)!important;font-weight:600;cursor:pointer}
html body .size-opt small{font-weight:400;font-size:.72rem;opacity:.75}
html body .size-opt.on{background:var(--accent)!important;color:var(--accent-ink,#fff)!important;border-color:var(--accent)!important}
html body .size-opt:disabled{opacity:.45;cursor:not-allowed;text-decoration:line-through}
html body .size-opt .size-price{font-weight:600;opacity:1;font-size:.8rem}

/* ---- Top bar (Nov 5): brand | search | Theme, Shop, Cart | avatar with "Hello, name" under it ---- */
html body .header .nav{display:flex;flex-wrap:wrap;align-items:center;gap:.9rem 1.6rem}
html body .header .nav>.brand{order:1}
html body .search{order:2;flex:1;min-width:200px}
html body .header .navlinks{order:3;display:flex;flex-wrap:nowrap;align-items:center;gap:1.4rem;margin-left:0;overflow:visible;border:0;padding:0}
html body .navcol-acct{order:4}
html body .navcol{display:flex;flex-direction:column;align-items:center;gap:.3rem;min-width:0}
html body .navcol>a{font-size:.95rem;line-height:1.2;padding:0}
html body .navcol-acct{min-width:4.5rem;max-width:9rem}
html body .navcol-acct>a.acct-text{padding:0;font-size:.78rem;color:var(--mute);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html body a.avatar{width:42px;height:42px;padding:0;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--line);color:var(--ink);background:transparent;text-decoration:none}
html body a.avatar.signed-in{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
html body a.avatar .avatar-initial{font-weight:700;font-size:1.05rem;line-height:1}
html body a.avatar:hover{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#0071e3) 28%,transparent),0 0 20px 3px color-mix(in srgb,var(--accent,#0071e3) 55%,transparent)}
@media(max-width:850px){
  html body .header .nav>.brand{flex:1}
  html body .navcol-acct{order:2}
  html body .search{order:3;flex-basis:100%}
  html body .header .navlinks{order:4;flex-basis:100%;justify-content:flex-start;gap:1.6rem}
}

/* ---- Nov 6: top bar (brand+hello | search | Theme/Shop | Cart + avatar at the far right) ---- */
html body .header .nav{display:flex;flex-wrap:wrap;align-items:center;gap:.9rem 1.6rem}
html body .brand-stack{order:1;display:flex;flex-direction:column;align-items:flex-start;gap:1rem}
html body .brand-stack .hello{margin:0;padding:0;font-size:.9rem;color:var(--mute);line-height:1.2}
html body .search{order:2;flex:1;min-width:200px}
html body .header .navlinks{order:3;display:flex;flex-wrap:nowrap;align-items:center;gap:1.4rem;margin:0;padding:0;border:0}
html body .header .navlinks:empty{display:none}
html body .header .navright{order:4;margin-left:auto;display:flex;align-items:center;gap:1.4rem}
html body .navright .navcol{flex-direction:row}
@media(max-width:850px){
  html body .brand-stack{flex:1}
  html body .header .navright{order:2;margin-left:0}
  html body .search{order:3;flex-basis:100%}
  html body .header .navlinks{order:4;flex-basis:100%;justify-content:flex-start}
}

/* ---- Nov 6: hero sits higher ---- */
html[data-theme] body .home-hero,html body .home-hero{padding-top:0!important;margin-top:clamp(-1.6rem,-1.2vw,-.5rem)!important}

/* ---- Nov 6: welcome message is typed letter by letter in a card (see js/welcome.js) ---- */
html body .welcome-src{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html body .slab.has-text{display:flex;align-items:center;justify-content:center;aspect-ratio:auto!important;min-height:clamp(15rem,36vw,28rem)}
html body .welcome-card{position:relative;z-index:1;width:100%;max-width:52rem;margin:0 auto;padding:2rem clamp(1.2rem,4vw,2.4rem)}
html body .welcome-card p{margin:0 0 .9rem!important;max-width:none!important;text-align:center;line-height:1.5!important;font-family:'Cormorant Garamond',Georgia,serif!important;font-style:italic;font-weight:700;font-size:clamp(1.1rem,2.6vw,2.15rem);color:var(--accent-text,var(--bronze))!important;-webkit-text-stroke:.45px currentColor;font-synthesis:weight style}
html body .welcome-card p:last-child{margin-bottom:0!important}
html body .welcome-card .w{display:inline-block;white-space:nowrap}
html body .welcome-card .ch{display:inline-block;opacity:0}
html body .welcome-card .ch.on{opacity:1;animation:ch-drop .32s cubic-bezier(.23,1,.32,1) both}
@keyframes ch-drop{from{opacity:0;transform:translateY(-.7em)}to{opacity:1;transform:translateY(0)}}

/* ---- Nov 6b: Cart link, account column, buttons, inputs, showroom heading ---- */
html body .navright a,html body .navright a:hover{text-decoration:none}
html body .navright .navcol-acct{display:flex;flex-direction:column;align-items:center;gap:.4rem;max-width:9rem}
html body .navright .navcol-acct .hello{font-size:.78rem;color:var(--mute);line-height:1.2;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html body .home-cta{justify-content:center;margin:2.5rem 0 .5rem}
html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]),html body select,html body textarea{border:1.5px solid color-mix(in srgb,var(--ink) 32%,transparent)!important}
html body input:not([type=checkbox]):not([type=radio]):focus,html body select:focus,html body textarea:focus{border-color:var(--accent)!important;outline:2px solid color-mix(in srgb,var(--accent) 35%,transparent);outline-offset:1px}
html[data-theme] body .show-info h2{margin-bottom:3.1rem}
html body .show-info address{margin-bottom:1rem}

/* ---- Nov 9: compact phone header (same arrangement as desktop, much shorter) ---- */
@media(max-width:850px){
  html body .header{position:static}
  html body .header .nav{gap:.45rem .8rem;padding-top:.55rem;padding-bottom:.55rem;align-items:center}
  html body .header .brand{font-size:1.2rem}
  html body .header .brand-mark{height:26px;width:auto}
  html body .header .navright{gap:.9rem;align-items:flex-start}
  html body .navright .navcol{align-items:center}
  html body .navright .navcol:not(.navcol-acct){padding-top:.55rem}
  html body .navright .navcol>a:not(.avatar){font-size:.9rem}
  html body a.avatar{width:36px;height:36px}
  html body a.avatar svg{width:18px;height:18px}
  html body .navright .navcol-acct{gap:.2rem;max-width:7rem}
  html body .navright .navcol-acct .hello{font-size:.7rem}
  html body .search{min-width:0}
  html body .search input{padding:.5rem 1rem;font-size:.95rem}
  html body .search button{padding:.5rem 1.1rem}
  html body .header .navlinks{gap:1rem}
  html body .navlinks .theme-toggle,html body .navlinks .navcol-theme button{padding:.4rem 1rem;font-size:.88rem}
  html body .navlinks .navcol>a{font-size:.88rem}
}
@media(max-width:420px){
  html body .header .brand{font-size:1.02rem;gap:.4rem}
  html body .header .brand-mark{height:22px}
  html body .brand-stack{min-width:0;flex:0 1 auto}
  html body .header .navright{margin-left:auto;gap:.7rem}
}
@media(max-width:420px){
  html[data-theme] body .header .brand{font-size:1rem!important;gap:.4rem!important}
  html[data-theme] body .header .brand-mark{width:24px!important;height:24px!important}
}

/* ---- Nov 9c: tidy phone top bar + wide welcome text on desktop ---- */
@media(min-width:851px){ html body .welcome-card{max-width:none} }
@media(max-width:850px){
  html body .header .nav{align-items:flex-start}
  html body .brand-stack{padding-top:5px}
  html body .header .navright{align-items:flex-start}
  html body .navright .navcol:not(.navcol-acct){padding-top:8px}
  html body .header .navlinks{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:.6rem;align-items:stretch}
  html body .header .navlinks .navcol{display:flex;flex-direction:row;align-items:stretch}
  html body .header .navlinks .navcol>*{flex:1}
  html body .header .navlinks .navcol>a,html body .header .navlinks .theme-toggle,html body .header .navlinks .navcol button{display:flex;align-items:center;justify-content:center;width:100%;height:40px;padding:0 1rem;border-radius:999px;background:var(--surface,color-mix(in srgb,var(--ink) 10%,transparent));color:var(--ink);font-size:.9rem;text-decoration:none;border:0}
}
html[data-theme] body .slab .welcome-card p{font-size:clamp(1.1rem,2.6vw,2.15rem)!important}

/* ---- Nov 15: age confirmation + social links ---- */
.age-check{display:flex;align-items:flex-start;gap:.6rem;margin:.6rem 0;font-size:.95rem;cursor:pointer}
.age-check input[type=checkbox]{width:1.15rem;height:1.15rem;min-height:0;flex:0 0 1.15rem;margin:.15rem 0 0;accent-color:var(--accent,#0071e3)}
.social-links a,.social-row a{text-decoration:underline;text-underline-offset:3px}
.social-row{margin-top:.8rem}

/* ---- Nov 15: welcome message uses a wider italic face (Playfair Display), wider letters ---- */
html[data-theme] body .slab .welcome-card p{font-family:'Playfair Display',Georgia,serif!important;font-style:italic;font-weight:400;letter-spacing:.03em;font-size:clamp(1.05rem,2.65vw,2.4rem)!important;line-height:1.5!important;-webkit-text-stroke:.6px currentColor}

/* ---- Nov 15: social logos + booking confirmation tick + welcome ---- */
.soc{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;text-decoration:none!important;flex:0 0 30px;vertical-align:middle;transition:transform .2s cubic-bezier(.23,1,.32,1)}
.soc svg{width:18px;height:18px}
a.soc:hover{transform:translateY(-2px) scale(1.06)}
.soc-ig{background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}
.soc-tt{background:#000;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.soc-tt .tt-note{filter:drop-shadow(1.2px 1.2px 0 #fe2c55) drop-shadow(-1.2px -1.2px 0 #25f4ee)}
.social-links{display:inline-flex;align-items:center;gap:.6rem}
.social-row{display:flex;align-items:center;gap:.6rem;margin-top:.9rem}
.contact-list .soc{margin:0 .2rem 0 -4px}
.message.ok-confirm{display:flex;align-items:center;gap:.7rem;padding:.85rem 1rem;border-radius:14px;background:color-mix(in srgb,#1d9bf0 14%,transparent);border:1px solid color-mix(in srgb,#1d9bf0 55%,transparent);color:var(--ink);font-weight:600}
.blue-tick{width:28px;height:28px;flex:0 0 28px;animation:tick-pop .45s cubic-bezier(.23,1,.32,1) both}
.blue-tick circle{fill:#1d9bf0}
.blue-tick path{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@keyframes tick-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.blue-tick{animation:none}a.soc{transition:none}}

/* ---- Nov 17: new NEA Ventures logo in the header, bigger footer text ---- */
html[data-theme] body .footer,html body .footer{font-size:1.02rem!important;line-height:1.6;padding-top:2.6rem;padding-bottom:2.6rem}
html body .footer a{font-weight:500}
html body .footer .social-links>span{font-size:1.02rem}
@media(max-width:850px){
  html body .footer{gap:1.1rem;font-size:1rem!important}
}
@media(max-width:420px){
  html[data-theme] body .header .brand-mark{height:34px!important;width:auto!important}
}

/* ---- Nov 17: welcome card = polished marble slab, wording engraved into it ---- */
html[data-theme] body .slab.has-text{background:#efece7 url(../img/marble.jpg) center/cover no-repeat!important;border:1px solid rgba(255,255,255,.7)!important;border-radius:var(--r-lg,18px);box-shadow:0 40px 70px -38px rgba(20,18,16,.55),inset 0 0 0 1px rgba(255,255,255,.55),inset 0 -22px 40px -26px rgba(0,0,0,.28)!important;isolation:isolate}
html[data-theme] body .slab.has-text>svg{display:none}
/* polish: a soft diagonal sheen across the stone */
html[data-theme] body .slab.has-text::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,0) 18%,rgba(255,255,255,.42) 34%,rgba(255,255,255,0) 48%,rgba(255,255,255,0) 62%,rgba(255,255,255,.22) 74%,rgba(255,255,255,0) 86%),linear-gradient(180deg,rgba(255,255,255,.35),rgba(255,255,255,0) 38%)}
/* engraved lettering: carved darker than the stone, lit lip below, shadow above */
/* Nov 17b: lettering uses the same gold as the headline word "light" (--accent-text); dark upper lip keeps it readable on pale stone */
html[data-theme] body .slab .welcome-card p{color:var(--accent-text)!important;-webkit-text-stroke:0!important;font-weight:700!important;text-shadow:0 1.4px 0 rgba(255,255,255,.95),-.8px -1px 0 rgba(40,28,10,.75),-1.4px -1.6px 1px rgba(40,28,10,.35)!important}
html[data-theme] body .slab .welcome-card p .ch{text-shadow:inherit}
@media(prefers-reduced-motion:reduce){html body .welcome-card .ch.on{animation:none}}

/* ---- Nov 20: refined hero. Headline tighter and calmer, soft gold light behind it, marble slab framed like an engraved plaque ---- */
html[data-theme] body .home-hero{position:relative;padding-top:clamp(.6rem,2vw,1.6rem)!important;gap:clamp(1.4rem,3vw,2.4rem)}
html[data-theme] body .home-hero::before{content:"";position:absolute;left:50%;top:-2rem;width:100vw;height:min(100%,44rem);transform:translateX(-50%);z-index:-1;pointer-events:none;background:radial-gradient(52% 58% at 50% 12%,color-mix(in srgb,var(--accent-text) 17%,transparent),transparent 72%)}
html[data-theme] body .home-hero>*{position:relative}
html[data-theme] body .home-hero h1{font-size:clamp(2.15rem,4.9vw,4.35rem)!important;line-height:1.05!important;letter-spacing:-.035em!important;max-width:17em!important;text-wrap:balance}
html[data-theme] body .home-hero h1 em{background:linear-gradient(180deg,color-mix(in srgb,var(--accent-text) 100%,#fff 18%),color-mix(in srgb,var(--accent-text) 88%,#000));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
html[data-theme] body .home-hero h1::after{content:"";display:block;width:3.4rem;height:2px;margin:clamp(1rem,2vw,1.5rem) auto 0;border-radius:2px;background:var(--accent-text);opacity:.85}
html[data-theme] body .slab.has-text{box-shadow:0 44px 80px -40px rgba(0,0,0,.65),0 26px 90px -34px color-mix(in srgb,var(--accent-text) 38%,transparent),inset 0 0 0 1px rgba(255,255,255,.55),inset 0 -22px 40px -26px rgba(0,0,0,.28)!important}
html[data-theme] body .slab.has-text::before{content:"";position:absolute;inset:clamp(8px,1.2vw,14px);z-index:1;pointer-events:none;border:1px solid color-mix(in srgb,var(--accent-text) 62%,transparent);border-radius:calc(var(--r-lg,18px) - 6px)}
@media(max-width:600px){
  html[data-theme] body .home-hero h1{font-size:clamp(1.95rem,8.6vw,2.5rem)!important;line-height:1.08!important;max-width:12em!important}
  html[data-theme] body .home-hero::before{top:-1rem;height:30rem}
}

/* ---- Nov 21: welcome slab = floral-bordered marble plaque with a thick gold rule; fixes for older phones ---- */
/* sheen moves into the slab background so ::after is free for the floral border */
html[data-theme] body .slab.has-text{background:linear-gradient(115deg,rgba(255,255,255,0) 18%,rgba(255,255,255,.42) 34%,rgba(255,255,255,0) 48%,rgba(255,255,255,0) 62%,rgba(255,255,255,.22) 74%,rgba(255,255,255,0) 86%),linear-gradient(180deg,rgba(255,255,255,.35),rgba(255,255,255,0) 38%),#efece7 url(../img/marble.jpg) center/cover no-repeat!important}
html[data-theme] body .slab.has-text::before{inset:clamp(26px,7.4vw,36px);border:3px solid var(--accent-text);border-radius:calc(var(--r-lg,18px) - 8px);box-shadow:0 0 0 1px rgba(255,255,255,.65),inset 0 0 0 1px rgba(255,255,255,.5)}
html[data-theme] body .slab.has-text::after{background:none}
@supports ((-webkit-mask-image:url(x)) or (mask-image:url(x))){
  html[data-theme] body .slab.has-text::after{
    z-index:2;background:var(--accent-text);filter:drop-shadow(0 1px 0 rgba(255,255,255,.85));
    -webkit-mask-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat-x,repeat-x,repeat-y,repeat-y;mask-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat-x,repeat-x,repeat-y,repeat-y;
    -webkit-mask-size:clamp(56px,17vw,104px) auto,clamp(56px,17vw,104px) auto,clamp(56px,17vw,104px) auto,clamp(56px,17vw,104px) auto,auto 20px,auto 20px,20px auto,20px auto;
    mask-size:clamp(56px,17vw,104px) auto,clamp(56px,17vw,104px) auto,clamp(56px,17vw,104px) auto,clamp(56px,17vw,104px) auto,auto 20px,auto 20px,20px auto,20px auto;
    -webkit-mask-position:left 3px top 3px,right 3px top 3px,left 3px bottom 3px,right 3px bottom 3px,center top 4px,center bottom 4px,left 4px center,right 4px center;
    mask-position:left 3px top 3px,right 3px top 3px,left 3px bottom 3px,right 3px bottom 3px,center top 4px,center bottom 4px,left 4px center,right 4px center;
    -webkit-mask-image:url(../img/floral/corner-tl.svg),url(../img/floral/corner-tr.svg),url(../img/floral/corner-bl.svg),url(../img/floral/corner-br.svg),url(../img/floral/strip-top.svg),url(../img/floral/strip-bottom.svg),url(../img/floral/strip-left.svg),url(../img/floral/strip-right.svg);
    mask-image:url(../img/floral/corner-tl.svg),url(../img/floral/corner-tr.svg),url(../img/floral/corner-bl.svg),url(../img/floral/corner-br.svg),url(../img/floral/strip-top.svg),url(../img/floral/strip-bottom.svg),url(../img/floral/strip-left.svg),url(../img/floral/strip-right.svg)}
}
html body .welcome-card{padding:clamp(2.9rem,8vw,3.6rem) clamp(2.3rem,8vw,3.6rem)}
/* "light" in the headline: solid gold everywhere; gradient only where the browser supports it (older phones rendered it invisible) */
html[data-theme] body .home-hero h1 em{background:none;-webkit-text-fill-color:currentColor;color:var(--accent-text)}
@supports (background:color-mix(in srgb,red,blue)) and (-webkit-background-clip:text){
  html[data-theme] body .home-hero h1 em{background:linear-gradient(180deg,color-mix(in srgb,var(--accent-text) 100%,#fff 18%),color-mix(in srgb,var(--accent-text) 88%,#000));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
}
/* no sideways page swipe: grid columns may shrink, and old browsers without overflow:clip get overflow:hidden */
html body .home-hero{grid-template-columns:minmax(0,1fr)}
@media(min-width:901px){html body .home-hero{grid-template-columns:1.1fr .9fr}}
html body .home-hero>*{min-width:0}
@supports not (overflow:clip){html,html body{overflow-x:hidden}}

/* Nov 21b: the live map can never widen the page (Mapbox sizes its canvas in fixed pixels) */
html body .show,html[data-theme] body .show{grid-template-columns:minmax(0,1fr)}
@media(min-width:901px){html body .show,html[data-theme] body .show{grid-template-columns:minmax(0,1fr) minmax(0,3fr)}}
html body .show-map,html body .show-info{min-width:0;max-width:100%}
html body #showroom-map,html body .delivery-map{width:100%;max-width:100%;overflow:hidden;contain:paint}
html body #showroom-map .mapboxgl-canvas-container,html body .delivery-map .mapboxgl-canvas-container{max-width:100%;overflow:hidden}
