/* =================================================================
   GRID SYSTEM · shared by every page that is on the grid (body.gpage)
   One 4-column grid for the whole page, header and footer included
   (ref: architecturetemplates.webflow.io).
   - Content starts ON a line: no inset on the start (right) side, the
     gutter is only on the end side. Things that sit against the LEFT
     outer line get .toleft.
   - Lines are static (chosen 27.9).
   - Section labels (.glabel) are the old "ghost" words: big, pale,
     in the logo face, on the left.
   Load after site.css. Reveal behaviour lives in assets/js/grid.js.
   ================================================================= */
:root{--gw:min(94vw,1640px);--gut:clamp(14px,1.6vw,28px);
  --gline:#EFEBE4;--gline-s:#E8E0D3;--gline-d:rgba(255,255,255,.07);
  --h2:clamp(2.3rem,4.2vw,3.4rem)}

.gsec{position:relative;isolation:isolate}
.g{width:var(--gw);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);position:relative;z-index:1}
.g > *,.sub4 > *{padding-inline:0 var(--gut);min-width:0}   /* min-width: a wide child must not stretch its column */
/* a nested 4-col row across the whole grid */
.g > .sub4{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,1fr);padding:0}
.g > .toleft,.sub4 > .toleft{padding-inline:var(--gut) 0}

/* ---- the lines: <div class="gl" aria-hidden="true"><div class="gl-in"><i></i>×5</div></div> ---- */
.gl{position:absolute;inset:0;z-index:0;display:flex;justify-content:center;pointer-events:none}
.gl-in{width:var(--gw);height:100%;position:relative}
.gl-in i{position:absolute;top:0;bottom:0;width:1px;background:var(--gline)}
.gl-in i:nth-child(1){right:0}.gl-in i:nth-child(2){right:25%}.gl-in i:nth-child(3){right:50%}
.gl-in i:nth-child(4){right:75%}.gl-in i:nth-child(5){right:100%}
.gsec.dark{background:var(--dark);color:#fff}
.gsec.dark .gl-in i{background:var(--gline-d)}
.gsec.dark .muted{color:rgba(255,255,255,.55)}
.gsec.sand{background:var(--sand)}
.gsec.sand .gl-in i{background:var(--gline-s)}

/* ---- section label (ghost word), cols 3-4, same row as the title ---- */
/* physical padding: the label is direction:ltr, so logical sides would flip */
.g > .glabel,.sub4 > .glabel{grid-column:3 / span 2;grid-row:1;padding:0 var(--gut) 0 0}
.g > .glabel.c4{grid-column:4}
.glabel{font-family:var(--en);direction:ltr;text-align:left;font-size:clamp(2.8rem,5.2vw,6.4rem);line-height:.9;letter-spacing:.015em;
  text-transform:uppercase;color:rgba(20,17,14,.1);align-self:start;white-space:nowrap;pointer-events:none;user-select:none}
.gsec.dark .glabel{color:rgba(244,233,214,.1)}

/* ---- type ---- */
.gsec h2{font-size:var(--h2);font-weight:500;letter-spacing:-.03em;line-height:1.06}
.muted{color:var(--muted)}
.gsub{margin-top:18px;color:var(--muted);font-weight:300;line-height:1.8;max-width:66ch}
.gsec.dark .gsub{color:rgba(255,255,255,.6)}
.gmore{display:inline-flex;align-items:center;gap:14px;font-size:.88rem;font-weight:500;padding-bottom:6px;border-bottom:1px solid currentColor;transition:gap .3s}
.gmore svg{width:30px;height:12px}
.gmore:hover{gap:22px}

/* ---- header: logo on the right line, one centred menu, CTA on the left line (body.hdr-side) ---- */
.gpage{--gl-c:var(--gline)}
.gpage.hdr-side{--edge:calc((100vw - var(--gw)) / 2)}
.gpage header.solid{border-bottom-color:var(--gline)}
/* ---- footer on the grid (lines as a background, no extra markup) ---- */
.gpage footer .wrap{--gl-c:rgba(255,255,255,.07);max-width:none;width:var(--gw);padding:0;background:
  linear-gradient(var(--gl-c),var(--gl-c)) 100% 0/1px 100% no-repeat,
  linear-gradient(var(--gl-c),var(--gl-c)) 75% 0/1px 100% no-repeat,
  linear-gradient(var(--gl-c),var(--gl-c)) 50% 0/1px 100% no-repeat,
  linear-gradient(var(--gl-c),var(--gl-c)) 25% 0/1px 100% no-repeat,
  linear-gradient(var(--gl-c),var(--gl-c)) 0 0/1px 100% no-repeat}
.gpage .fmain{grid-template-columns:repeat(4,1fr);gap:0}
.gpage .fmain > *{padding-inline:0 var(--gut)}
.gpage .fbot > :last-child{padding-inline-start:var(--gut)}

/* ---- inner page top: crumbs, label, title, lead ---- */
.gph{padding:clamp(34px,4.4vw,64px) 0 clamp(50px,6vw,90px)}
.gcrumbs{grid-column:1 / -1;display:flex;gap:10px;align-items:center;font-size:.84rem;color:var(--muted);margin-bottom:clamp(36px,4.6vw,70px)}
.gcrumbs a{transition:color .2s}
.gcrumbs a:hover{color:var(--ink)}
.gcrumbs i{width:14px;height:1px;background:currentColor;opacity:.5}
.gcrumbs span{color:var(--ink)}
.g > .glabel.gph-l{grid-row:2}
.gph h1{grid-column:1 / span 2;grid-row:2;font-size:clamp(2.3rem,4vw,3.9rem);font-weight:500;letter-spacing:-.04em;line-height:1.04}
.gph h1 b{font-weight:500;color:var(--brass-2)}
.gph .lead{grid-column:1 / span 2;margin-top:24px;font-size:1.06rem;max-width:68ch}
/* a row of short facts under the page title */
.gfacts{margin-top:clamp(44px,5vw,76px);border-top:1px solid var(--gline);list-style:none}
.gfacts li{padding-top:clamp(20px,2.4vw,30px)}
.gfacts b{display:block;font-family:var(--en);font-weight:400;font-size:clamp(1.9rem,3vw,2.8rem);line-height:1}
.gfacts b small{font-family:var(--he);font-size:.45em;font-weight:500}
.gfacts span{display:block;color:var(--muted);font-weight:300;font-size:.92rem;margin-top:10px;line-height:1.6;max-width:40ch}

/* ---- buttons in the page top, against the left line ---- */
.gph .ctas{grid-column:3 / span 2;grid-row:3;align-self:end;display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;padding-inline:var(--gut) 0!important}
.gph.dark h1{color:#fff}
.gph.dark h1 b{color:var(--brass-soft)}
.gph.dark .lead{color:rgba(255,255,255,.7)}
.gph.dark .gcrumbs,.gph.dark .gcrumbs a{color:rgba(255,255,255,.5)}
.gph.dark .gcrumbs span{color:#fff}

/* ---- text on the right half, a photo on the left half (under the label) ---- */
.gsplit2{padding:clamp(90px,10vw,150px) 0}
.gtxt{grid-column:1 / span 2;grid-row:1 / span 2}
.gtxt p{color:var(--ink-2);font-weight:300;line-height:1.9;font-size:1.05rem;margin-top:22px;max-width:66ch}
.gtxt p b{font-weight:500}
.gtxt .checks{margin-top:30px}
.gtxt .btn{margin-top:30px}
.gsec.dark .gtxt p{color:rgba(255,255,255,.65)}
.g > .gpic{grid-column:3 / span 2;grid-row:2;padding-inline:var(--gut) 0;margin-top:clamp(30px,3vw,50px)}
.gpic .gmask{aspect-ratio:4/5;overflow:hidden}
.gpic.wide .gmask{aspect-ratio:4/3}
.gpic img{width:100%;height:100%;object-fit:cover}
.gpic span{display:block;margin-top:12px;font-size:.84rem;color:var(--muted);font-weight:300}

/* ---- numbered rows: number · title · text on the last two columns ---- */
.ghd{grid-column:1 / span 2;grid-row:1;margin-bottom:clamp(40px,5vw,70px)}
.g > .grows{grid-column:1 / -1;padding:0;list-style:none}
.grows li{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);padding:clamp(22px,2.4vw,32px) 0}
.gsec.dark .grows li{border-top-color:rgba(255,255,255,.12)}
.grows li > *{padding-inline:0 var(--gut)}
.grows .n{font-family:var(--en);font-size:clamp(1.6rem,2.4vw,2.2rem);line-height:1;color:var(--brass-2)}
.gsec.dark .grows .n{color:var(--brass-soft)}
.grows h4{font-size:1.2rem;font-weight:500}
.grows p{grid-column:3 / span 2;color:var(--muted);font-weight:300;line-height:1.75;max-width:64ch}
.gsec.dark .grows p{color:rgba(255,255,255,.6)}

/* ---- closing band: a dark card that stands on its own (light margin above the footer)
   <section class="gsec gband"><div class="g"><div class="gband-box"> .txt .btns .pic ---- */
.gband{padding:clamp(40px,5vw,80px) 0 clamp(80px,9vw,140px)}
.g > .gband-box{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,1fr);background:var(--dark);color:#fff;padding:0;overflow:hidden}
.gband-box .txt{grid-column:1 / span 2;padding:clamp(40px,5vw,84px) clamp(28px,3.4vw,56px) 0}
.gband-box .txt h2{color:#fff}
.gband-box .txt p{margin-top:18px;color:rgba(255,255,255,.62);font-weight:300;line-height:1.8;max-width:60ch}
.gband-box .btns{grid-column:1 / span 2;display:flex;gap:12px;flex-wrap:wrap;align-self:end;padding:34px clamp(28px,3.4vw,56px) clamp(40px,5vw,84px)}
.gband-box .pic{grid-column:3 / span 2;grid-row:1 / span 2;position:relative;min-height:clamp(320px,34vw,520px)}
.gband-box .pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.btn-ghost-w{border:1px solid rgba(255,255,255,.4);color:#fff}

/* ---- lead form: underline fields (home closing, quote page, contact) · <form class="gf" data-lead> ---- */
.gf{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--gut)}
.gf .f{border-bottom:1px solid #8A8378;margin-bottom:30px;transition:border-color .25s}
.gf .f:focus-within{border-color:var(--ink);box-shadow:0 1px 0 var(--ink)}
.gf .f.full{grid-column:1 / -1}
.gf label.l{display:block;font-size:.78rem;color:var(--muted)}
.gf label.l span{font-weight:300}
.gf input,.gf textarea{width:100%;border:0;background:transparent;padding:8px 0 12px;font:inherit;font-size:1.08rem;color:var(--ink);outline:none;resize:none}
.gf textarea{min-height:46px;line-height:1.5}
.gf .pick{margin-bottom:36px;grid-column:1 / -1}
.gf .pick span{border-color:#8A8378;background:transparent}
.gf .go{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-top:6px}
.gf .go small{color:var(--muted);font-size:.78rem;font-weight:300;max-width:46ch;line-height:1.6}
.gf .go small a{text-decoration:underline}
.gf button[type=submit]{display:inline-flex;align-items:center;gap:16px;background:var(--ink);color:#fff;padding:18px 30px;font-weight:500;font-size:1rem;transition:background .25s,gap .3s}
.gf button[type=submit]:hover{background:var(--brass-2);gap:24px}
.gf button[type=submit] svg{width:30px;height:12px}
.gform-ok{padding:30px 0}
.gform-ok h3{font-size:2rem;font-weight:500}
.gform-ok p{color:var(--muted);margin:10px 0 24px}
.gf select{width:100%;border:0;background:transparent;padding:8px 0 12px;font:inherit;font-size:1.08rem;color:var(--ink);outline:none}
.gf .wa-alt{display:inline-flex;align-items:center;gap:8px;font-size:.9rem;font-weight:500;border-bottom:1px solid currentColor;padding-bottom:3px}
.gf .wa-alt svg{width:16px;height:16px;color:#25D366}

/* ---- toolbar above a list: filter chips on the right, count/sort on the left ---- */
.g > .stool{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;
  padding:0 0 clamp(18px,2vw,26px);border-bottom:1px solid var(--gline);margin-bottom:clamp(34px,4vw,56px)}
.stool .chips button{border-radius:0;padding:10px 20px;font-size:.92rem}
.stool .sort{display:flex;gap:14px;align-items:center;font-size:.9rem;color:var(--muted)}
.stool .cnt{color:var(--muted);font-size:.9rem}
.stool .cnt b{font-family:var(--en);font-weight:400;font-size:1.3rem;color:var(--ink);margin-inline-end:4px}
.stool select{border:1px solid var(--line);border-radius:0;padding:9px 14px;background:var(--bg);font:inherit;font-size:.9rem;color:var(--ink)}

/* ---- photo gallery on the grid: justified rows. Every photo in a row has the same height
   and the row fills the width, so portrait and landscape shots line up instead of a ragged masonry.
   Each <a> carries style="--r:<width/height>" (tools/build-gallery.py); ::after soaks up the last row.
   <div class="mgrid gmason" data-lb-group> <a data-lb href style="--r:1.33"><img><span>caption</span></a> ... ---- */
.g > .gmason{grid-column:1 / -1;columns:auto;display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--gut);
  padding:0;padding-inline-end:var(--gut);margin-bottom:var(--gut);--rowh:clamp(190px,21vw,330px)}
.g > .gmason::after{content:'';flex:999 1 0}
.gmason > a{flex:var(--r,1) 1 calc(var(--r,1) * var(--rowh));aspect-ratio:var(--r,1);margin:0;border-radius:0}
.gmason > a img{width:100%;height:100%;object-fit:cover}

/* ---- a form stands out as a white card with a soft shadow (add .gf-card to the form's box) ---- */
.gf-card{background:#fff;padding:clamp(26px,3.2vw,52px)!important;box-shadow:0 40px 90px -40px rgba(20,17,14,.32),0 2px 10px -4px rgba(20,17,14,.07)}
.gf-h{font-size:clamp(1.5rem,2.2vw,2rem);font-weight:500;letter-spacing:-.02em;margin-bottom:24px}
.gf p.l{grid-column:1 / -1;font-size:.78rem;color:var(--muted);margin-bottom:10px}
.gf .pick span{padding:8px 13px;font-size:.86rem}
.gf .agree{grid-column:1 / -1;display:flex;gap:10px;align-items:flex-start;font-size:.9rem;color:var(--ink-2);margin:0 0 22px;cursor:pointer;line-height:1.5}
.gf .agree input{width:18px;height:18px;margin-top:2px;accent-color:var(--ink);flex:none}
.gf .agree a{text-decoration:underline}

/* ---- reveal (grid.js): text rises out of a blur; titles rise line by line
   from behind a mask; images (.gmask) open upwards and settle from a zoom ---- */
.gs .gsec .reveal{opacity:0;transform:translateY(80px);filter:blur(8px)}
.gs .gsec .ttl{opacity:1;transform:none;filter:none}
.ttl .ln{display:block;overflow:hidden;padding-bottom:.1em;margin-bottom:-.1em}
.ttl .ln > span{display:block}
.gs .gsec .ttl .ln > span{transform:translateY(110%)}
.gs .gmask{clip-path:inset(100% 0 0 0)}

@media(max-width:560px){.gf{grid-template-columns:1fr}}
@media(max-width:900px){
  .gl-in i:nth-child(2),.gl-in i:nth-child(4){display:none}
  .gpage footer .wrap{background:
    linear-gradient(var(--gl-c),var(--gl-c)) 100% 0/1px 100% no-repeat,
    linear-gradient(var(--gl-c),var(--gl-c)) 50% 0/1px 100% no-repeat,
    linear-gradient(var(--gl-c),var(--gl-c)) 0 0/1px 100% no-repeat}
  .g,.g > .sub4,.gpage .fmain{grid-template-columns:1fr 1fr}
  /* footer on phones: the brand first, then the site links, then shop + contact side by side */
  .gpage .fmain{row-gap:40px}
  .gpage .fmain > .fbrand{grid-column:1 / -1}
  .gpage .fmain > .fnav{grid-column:1 / -1;order:1}
  .gpage .fmain > .fnav ul{grid-template-columns:1fr 1fr;column-gap:var(--gut)}
  .gpage .fmain > .fshop{order:2}
  .gpage .fmain > .fcontact{order:3}
  .gpage .fsocial{gap:12px;margin-top:22px}
  .gpage .fbot{flex-direction:column;align-items:flex-start;gap:10px}
  .gpage .fbot > :last-child{padding-inline-start:0}
  .g > .gmason{--rowh:120px;gap:8px}
  .g > .glabel,.sub4 > .glabel,.g > .glabel.c4,.g > .glabel.gph-l{grid-column:1 / -1;grid-row:auto;margin-bottom:12px;font-size:clamp(1.7rem,7.6vw,3rem);padding-inline:0;overflow:hidden;text-overflow:clip}
  .glabel br{display:none}   /* one line on phones */
  .gph h1,.gph .lead,.gtxt,.ghd{grid-column:1 / -1;grid-row:auto}
  .gph .ctas{grid-column:1 / -1;grid-row:auto;justify-content:flex-start;margin-top:26px;padding-inline:0 var(--gut)!important}
  .g > .gpic{grid-column:1 / -1;grid-row:auto;padding-inline:0 var(--gut)}
  .grows li{grid-template-columns:1fr 1fr;row-gap:10px}
  .grows p{grid-column:1 / -1}
  .g > .gband-box{grid-template-columns:1fr}
  .gband-box .txt,.gband-box .btns,.gband-box .pic{grid-column:1 / -1;grid-row:auto}
  .gband-box .pic{min-height:260px}
}
