/* =====================================================================
   AVENUE SIGNATURE SYSTEM
   One layer that defines the brand: tokens, type, chrome, buttons, folio.
   Palette is derived from the Avenue mark (#392483) and the materials of
   bathware: vitreous china, glaze, chrome.
     Porcelain     #F6F7F9  page white (cool white of fired china)
     Avenue Royal  #1e3a8a  signature; royal blue tuned toward the logo indigo
     Glaze Midnight#0D1430  deep sections
     Ink           #151B2E  text
     Mist          #E8ECF4  tinted panels
     Chrome        #A7B1C2  hairlines and fine detail (the metal of fittings)
   Type: Archivo Expanded (display, echoes the wide AVENUE wordmark),
         Manrope (body, brand rule), IBM Plex Mono (specs, folios, labels).
   Fonts: Fontsource (OFL), served locally so the site works offline.
   ===================================================================== */

@font-face{font-family:"Avenue Display";src:url("../fonts/signature/archivo-wdth.woff2") format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:swap}
@font-face{font-family:"Avenue Mono";src:url("../fonts/signature/plex-mono-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Avenue Mono";src:url("../fonts/signature/plex-mono-500.woff2") format("woff2");font-weight:500;font-display:swap}

:root{
  --porcelain:#f6f7f9; --royal:#1e3a8a; --royal-hover:#1b347c; --royal-deep:#172554;
  --midnight:#0d1430; --ink:#151b2e; --mist:#e8ecf4; --chrome:#a7b1c2; --royal-light:#93c5fd;
  --display:"Avenue Display",Manrope,Arial,sans-serif; --mono:"Avenue Mono",ui-monospace,Menlo,monospace;
  --gold:#1e3a8a; --gold-light:#93c5fd; --gold-pale:#bfdbfe; /* legacy names used by premium.css */
}

/* ---------- Type ---------- */
h1,h2,.footer-word,.cine-mf-text,.cine-card-meta strong,.category-card h3,.product-name,.scanner-name h3,.cine-pre-count,.cine-curtain span,.cine-rv-side,.pl-total strong{
  font-family:var(--display)!important;font-variation-settings:"wdth" 118;font-stretch:118%}
h1{font-weight:300;letter-spacing:-.035em}
h2{font-weight:340;letter-spacing:-.03em}
.product-name,.scanner-name h3,.category-card h3,.cine-card-meta strong{font-weight:500!important;letter-spacing:.01em!important}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* Utility face: labels, eyebrows, specifications, counts */
.tag,.pl-q,.pl-slot,.pl-num,.reference-label,.cine-eyebrow,.cine-kicker,.group-tabs button,.filters label,.product-meta>span,
.specs li,.finish-label,.detail-copy>p:not(.detail-price):not(.subtle),.scanner-top,.range-labels,.pr-tip b{
  font-family:var(--mono)!important;font-weight:500;letter-spacing:.06em}
.tag,.pl-q,.reference-label{text-transform:uppercase;font-size:11px!important}
.specs li{font-weight:400;letter-spacing:0;font-size:12.5px}

::selection{background:#bfdbfe;color:var(--ink)}
:focus-visible{outline:2px solid var(--royal)!important;outline-offset:3px}

/* ---------- Header: Avenue Royal ---------- */
html[data-theme] .header:not(.over-hero),
html[data-theme] .header.cine-solid{background:var(--royal)!important;box-shadow:0 1px 0 rgba(255,255,255,.08),0 12px 30px -20px rgba(13,20,48,.7)}
html[data-theme] .header nav a:after{background:#fff!important;height:1px}
html[data-theme] .header .project-link span{border-color:rgba(255,255,255,.5)!important}
@media (max-width:980px){html[data-theme] .header nav{background:var(--midnight)!important}}

/* ---------- Footer: deep royal, quiet wordmark ---------- */
html[data-theme] footer{background:var(--royal-deep)!important;color:#bfdbfe}
html[data-theme] .footer-word{color:#fff!important;opacity:.94;font-weight:250}
html[data-theme] footer .footer-bottom,html[data-theme] footer .footer-bottom *{color:#9fb0d6}
html[data-theme] footer .footer-bottom a{color:#fff;text-decoration-color:var(--royal-light)}

/* ---------- Buttons ---------- */
html[data-theme] .primary,html[data-theme] .primary.light{background:var(--royal)!important;border-color:var(--royal)!important;color:#fff!important;border-radius:0}
html[data-theme] .primary:before,html[data-theme] .primary.light:before{background:var(--royal-deep)!important}
html[data-theme] .primary:hover,html[data-theme] .primary.light:hover,html[data-theme] .primary:focus-visible{background:var(--royal)!important;color:#fff!important}
html[data-theme] .secondary{border-color:var(--royal)!important;color:var(--royal)!important}
html[data-theme] .secondary:before{background:var(--royal)!important}
html[data-theme] .secondary:hover{color:#fff!important}
html[data-theme] :is(.hero,.studio-page,.studio-invitation,.contact-section,.reference-hero,.reference-sheets,.catalogue-reader,.studio-planner,footer,.cine-manifesto,.cine-rv,.journey-panel.water) .secondary{border-color:rgba(147,197,253,.6)!important;color:#fff!important}

/* ---------- Restraint: remove effects that read as generated ---------- */
.cine-grain,.cine-marquee,.pm-spot-light,.cine-cursor{display:none!important}
.pm-btn:after,.footer-word:after{display:none!important}
.primary.pm-btn:hover{box-shadow:none}

/* ---------- Folio: every product points to its printed page ---------- */
.folio{display:inline-flex;align-items:center;gap:6px;font:500 10px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;
  color:var(--royal);background:none;border:1px solid #cbd3e1;padding:6px 8px;cursor:pointer;transition:border-color .3s,background .3s}
.folio:before{content:"";width:9px;height:11px;border:1px solid currentColor;border-radius:1px;box-shadow:2px -2px 0 -1px #fff,2px -2px 0 0 currentColor}
.folio:hover{border-color:var(--royal);background:#f4f6fc}
.product-card .folio{position:absolute;left:10px;top:10px;z-index:2;background:rgba(246,247,249,.92)}
.product-card{position:relative}
.detail-copy [data-page].text-button{font:500 11px/1 var(--mono)!important;letter-spacing:.08em;text-transform:uppercase;color:var(--royal)!important;
  border:1px solid #cbd3e1;padding:10px 12px;text-decoration:none!important;margin-top:6px}
.detail-copy [data-page].text-button:hover{border-color:var(--royal)}

/* ---------- Printed proof (home) ---------- */
.proof{background:var(--porcelain);color:var(--ink);padding:clamp(80px,10vw,140px) 0 clamp(70px,9vw,120px);border-top:1px solid #d8deea}
.proof-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:6vw;padding:0 7vw;align-items:end}
.proof-head h2{font-size:clamp(2.2rem,4.4vw,4.4rem);line-height:1.02;max-width:12ch}
.proof-head p{font-size:15px;line-height:1.75;color:#5a6479;max-width:46ch}
.proof-sheet{margin-top:clamp(40px,6vw,70px);display:flex;gap:18px;overflow-x:auto;padding:6px 7vw 22px;scroll-snap-type:x proximity;scroll-padding-inline:7vw;scrollbar-width:thin;scrollbar-color:#b4bfd2 transparent}
.proof-page{flex:0 0 clamp(150px,15vw,200px);scroll-snap-align:start;background:none;border:0;padding:0;cursor:pointer;text-align:left;color:inherit}
.proof-page img{display:block;width:100%;aspect-ratio:950/1344;object-fit:cover;background:#fff;box-shadow:0 1px 0 #d8deea,0 18px 30px -22px rgba(13,20,48,.45);transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .6s}
.proof-page span{display:flex;justify-content:space-between;margin-top:12px;font:500 10px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#5a6479}
.proof-page span b{font-weight:500;color:var(--royal)}
.proof-page:hover img{transform:translateY(-6px);box-shadow:0 1px 0 #d8deea,0 26px 40px -24px rgba(13,20,48,.55)}
.proof-steps{list-style:none;margin:clamp(50px,7vw,90px) 7vw 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--ink)}
.proof-steps li{padding:22px 24px 0 0}
.proof-steps li+li{padding-left:24px;border-left:1px solid #d8deea}
.proof-steps b{display:block;font:500 11px/1 var(--mono);letter-spacing:.08em;color:var(--royal);margin-bottom:16px}
.proof-steps strong{display:block;font-family:var(--display);font-variation-settings:"wdth" 118;font-weight:500;font-size:17px;letter-spacing:-.01em;margin-bottom:8px}
.proof-steps p{font-size:13.5px;line-height:1.65;color:#5a6479}
.proof-steps a{color:var(--royal);text-underline-offset:3px}
@media (max-width:900px){
  .proof-head{grid-template-columns:1fr;gap:22px}
  .proof-steps{grid-template-columns:1fr 1fr}
  .proof-steps li:nth-child(3){padding-left:0;border-left:0}
  .proof-steps li:nth-child(n+3){border-top:1px solid #d8deea;margin-top:22px}
}
@media (max-width:520px){
  .proof-steps{grid-template-columns:1fr}
  .proof-steps li,.proof-steps li+li{padding:20px 0 0;border-left:0}
  .proof-steps li+li{border-top:1px solid #d8deea;margin-top:20px}
}
/* Labels use the mono face; the controls inside them stay in Manrope */
.filters label :is(select,input,textarea),.enquiry-panel label :is(select,input,textarea){font-family:Manrope,Arial,sans-serif!important;letter-spacing:0!important;text-transform:none}
.proof-item{flex:0 0 clamp(150px,15vw,200px);scroll-snap-align:start}
.proof-item .proof-page{width:100%}
.proof-page span em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:8px}
.proof-steps a{text-decoration:underline;text-decoration-color:rgba(30,58,138,.45);text-underline-offset:3px;font-weight:600}

/* ---------- Films: graded "Avenue Porcelain" (media/video/*-signature.mp4, recipe in GRADE-avenue-porcelain.txt) ----------
   Faucet film: keep the spout and the falling water in frame as the card expands. */
.cine-rv-frame video{translate:calc((1 - var(--p, 0)) * -17%) calc((1 - var(--p, 0)) * -4%)!important} /* centre the spout while the window is small; full frame at full size */
.cine-rv-frame{background:var(--midnight)!important}
html[data-theme] .cine-rv-shade,.cine-rv-shade{background:linear-gradient(0deg,rgba(10,16,38,.7),rgba(10,16,38,0) 45%),linear-gradient(90deg,rgba(10,16,38,.62),rgba(10,16,38,.2) 38%,transparent 55%)!important}
html[data-theme] .hero-shade,.hero-shade{background:linear-gradient(90deg,rgba(10,16,38,.5) 0%,rgba(10,16,38,.26) 32%,rgba(10,16,38,0) 58%),linear-gradient(0deg,rgba(10,16,38,.38) 0%,rgba(10,16,38,0) 26%),linear-gradient(180deg,rgba(10,16,38,.5) 0%,rgba(10,16,38,0) 16%)!important}
.hero h1{text-shadow:0 2px 24px rgba(10,16,38,.35),0 1px 2px rgba(10,16,38,.25)}
.cine-rv-side{color:rgba(191,219,254,.55)!important}
