/* Surrey CNC — tokens
   spoil  #26221e  spoilboard, the dark of the machine bed
   board  #3a342d  raised panels on dark
   mdf    #aab29b  moisture-resistant MDF, the colour of the trees
   sage   #dde0d4  page ground, pale MR MDF dust
   birch  #e6d3b1  ply face
   brass  #c8922e  from the logo, used for actions only
   ink    #1f1c19  text
*/
:root{
  --spoil:#26221e; --board:#3a342d; --mdf:#aab29b; --sage:#dde0d4;
  --birch:#e6d3b1; --brass:#c8922e; --brass-d:#a87618; --ink:#1f1c19;
  --muted:#5b5a50; --line:rgba(31,28,25,.16);
  --f:"Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap:min(1240px, 100% - 2*clamp(20px, 4vw, 56px));
  --ease:cubic-bezier(.2,.7,.1,1);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--sage);color:var(--ink);font-family:var(--f);font-size:1.0625rem;line-height:1.55;font-variation-settings:"wdth" 100;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--brass);outline-offset:3px;border-radius:2px}
.wrap{width:var(--wrap);margin-inline:auto}
.skip{position:absolute;left:-999px;top:8px;background:var(--brass);color:var(--ink);padding:.6em 1em;z-index:100}
.skip:focus{left:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.small{font-size:.875rem;color:var(--muted);margin:.6rem 0 0}

h1,h2,h3{margin:0;font-weight:800;line-height:1.02;letter-spacing:-.01em}
h2{font-size:clamp(2.1rem, 4.6vw, 3.9rem);font-variation-settings:"wdth" 112;max-width:16ch}
h3{font-size:1.15rem;font-weight:700;font-variation-settings:"wdth" 104;line-height:1.2}
p{margin:0 0 1em;max-width:62ch}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;padding:.95em 1.5em;border-radius:3px;background:var(--brass);color:var(--ink);font-weight:700;font-variation-settings:"wdth" 108;text-decoration:none;border:0;font:inherit;font-weight:700;cursor:pointer;transition:background .2s}
.btn:hover{background:#d9a23c}
.btn-ghost{background:transparent;color:#f3efe6;box-shadow:inset 0 0 0 1.5px rgba(243,239,230,.6)}
.btn-ghost:hover{background:rgba(243,239,230,.1)}
.btn-small{padding:.6em 1em;font-size:.9rem}
.btn-wide{width:100%}
.send-row{display:flex;flex-wrap:wrap;gap:.6rem}
.send-row .btn{flex:1 1 180px}
.btn-line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.btn-line:hover{background:rgba(31,28,25,.06)}

/* Header */
.site-head{position:fixed;inset:0 0 auto;z-index:50;display:flex;align-items:center;gap:2rem;padding:14px clamp(20px,4vw,56px);color:#f3efe6;transition:background .35s, color .35s, box-shadow .35s}
.site-head.solid{background:rgba(221,224,212,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:var(--ink);box-shadow:0 1px 0 var(--line)}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;font-weight:800;font-variation-settings:"wdth" 118;font-size:1.05rem}
.brand img{width:44px;height:auto}
.site-head nav{margin-left:auto}
.site-head ul{display:flex;gap:1.8rem;list-style:none;margin:0;padding:0}
.site-head nav a{text-decoration:none;font-weight:500;font-size:.95rem}
.site-head nav a:hover{text-decoration:underline}
@media (max-width:760px){.site-head nav{display:none}.site-head .btn-small{margin-left:auto}.brand span{display:none}}

/* HERO */
.hero{position:relative;height:260vh;background:var(--spoil)}
.hero-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;color:#f3efe6}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(calc(1 - var(--shade,0) * .45)) saturate(.9)}
.hero-stage::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(26,23,20,.6) 0%, rgba(26,23,20,.25) 30%, rgba(26,23,20,.55) 55%, rgba(26,23,20,.94) 100%);opacity:var(--shade,0);pointer-events:none}
.hero-board{position:absolute;inset:0;width:100%;height:100%;z-index:2}
.m-type text{font-family:var(--f);font-weight:900;font-variation-settings:"wdth" 125;letter-spacing:-.02em}
.grain{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:.22;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.hero-copy{position:absolute;z-index:4;left:clamp(20px,4vw,56px);right:clamp(20px,4vw,56px);top:96px;bottom:clamp(28px,7vh,96px);display:flex;flex-direction:column;justify-content:flex-end;max-width:920px;opacity:var(--copy,0);transform:translateY(calc((1 - var(--copy,0)) * 24px));pointer-events:none}
.hero-copy.live{pointer-events:auto}
.hero-copy h1{color:#fff;text-shadow:0 2px 24px rgba(0,0,0,.45);font-size:clamp(1.9rem, min(5vw, 7.2vh), 4.4rem);font-variation-settings:"wdth" 110;max-width:20ch;margin-bottom:.4em;text-wrap:balance}
.hero-copy p{font-size:clamp(.95rem,min(1.4vw,2.2vh),1.2rem);max-width:46ch;color:#f3efe6;text-shadow:0 1px 12px rgba(0,0,0,.5)}
.hero-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:clamp(.6rem,2vh,1.4rem)}
.hero-sub{position:absolute;z-index:4;left:0;right:0;padding:0 24px;text-align:center;margin:0 auto;max-width:none;font-size:clamp(.95rem,1.3vw,1.15rem);color:rgba(243,239,230,.88);opacity:calc(1 - var(--p,0)*7)}
.hero-cue{position:absolute;z-index:4;left:50%;bottom:28px;transform:translateX(-50%);margin:0;font-size:.8rem;color:rgba(243,239,230,.7);display:flex;flex-direction:column;align-items:center;gap:8px;opacity:calc(1 - var(--p,0)*6)}
.hero-cue span{width:1px;height:38px;background:linear-gradient(rgba(243,239,230,0), rgba(243,239,230,.8));animation:cue 2s var(--ease) infinite}
@keyframes cue{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
.hero-caption{position:absolute;z-index:4;right:clamp(20px,4vw,56px);bottom:clamp(40px,9vh,96px);margin:0;max-width:24ch;font-size:.8rem;color:rgba(243,239,230,.62);text-align:right;opacity:var(--copy,0)}
@media (max-width:900px){.hero-caption{display:none}}

/* FOR */
.for{padding:clamp(80px,12vw,160px) 0 clamp(64px,9vw,120px)}
.for-grid{display:grid;grid-template-columns:1fr;gap:3rem}
.for-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:2.2rem 2.5rem}
.for-list > div{border-top:2px solid var(--ink);padding-top:1rem}
.for-list h3{margin-bottom:.5rem}
.for-list p{color:var(--muted);font-size:1rem;margin:0}
.materials{font-size:clamp(1.2rem,2vw,1.6rem);line-height:1.3;max-width:40ch;font-variation-settings:"wdth" 104}
.materials strong{font-weight:800}

/* WORK */
.work{padding:clamp(40px,6vw,80px) 0 clamp(80px,10vw,140px)}
.work-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:1.5rem;margin-bottom:2.2rem}
.filters{display:flex;flex-wrap:wrap;gap:.4rem}
.filters button{font:inherit;font-size:.9rem;padding:.5em .95em;border-radius:99px;border:1.5px solid var(--line);background:transparent;color:var(--ink);cursor:pointer}
.filters button:hover{border-color:var(--ink)}
.filters button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--sage)}
.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:clamp(160px,17vw,240px);grid-auto-flow:dense;gap:14px}
.tile{position:relative;grid-row:span 2;margin:0}
.tile.tall{grid-row:span 3}
.tile.wide{grid-column:span 2;grid-row:span 3}
.tile[hidden]{display:none}
.tile button{all:unset;cursor:zoom-in;display:block;width:100%;height:calc(100% - 2rem);overflow:hidden;border-radius:2px;background:var(--mdf)}
.tile button:focus-visible{outline:3px solid var(--brass);outline-offset:3px}
.tile img{width:100%;height:100%;object-fit:cover;transition:transform .9s var(--ease)}
.tile button:hover img{transform:scale(1.035)}
.tile p{margin:.5rem 0 0;font-size:.9rem;font-weight:500;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:150px}.tile.wide{grid-column:span 2;grid-row:span 2}}
@media (max-width:520px){.grid{grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:10px}.tile,.tile.tall{grid-column:auto;grid-row:auto}.tile.wide{grid-column:span 2;grid-row:auto}.tile button{height:auto;aspect-ratio:3/4}.tile.wide button{aspect-ratio:4/3}.tile p{font-size:.8rem}}
.more{margin-top:2.5rem;font-size:1.05rem}

/* TREES — dark section, the product glows */
.trees{background:var(--spoil);color:#f3efe6;padding:clamp(80px,11vw,150px) 0}
.trees-intro{display:grid;grid-template-columns:1.1fr 1fr;gap:3rem;align-items:end;margin-bottom:clamp(40px,6vw,72px)}
.trees-intro p{color:rgba(243,239,230,.78);margin:0}
@media (max-width:860px){.trees-intro{grid-template-columns:1fr;gap:1.2rem}}
.builder{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(24px,4vw,56px);align-items:start}
@media (max-width:900px){.builder{grid-template-columns:1fr}}
.preview{position:relative;background:radial-gradient(120% 90% at 50% 40%, #3d362e 0%, #2b2621 60%, #231f1b 100%);border-radius:4px;padding:clamp(16px,3vw,36px) clamp(40px,5vw,64px) 20px clamp(16px,3vw,36px);min-height:100%}
.preview svg{width:100%;height:auto;max-height:72vh;display:block;margin:0 auto;overflow:visible}
.preview-note{font-size:.8rem;color:rgba(243,239,230,.5);margin:12px 0 0;text-align:center;max-width:none}
.ruler{position:absolute;right:clamp(12px,2vw,24px);top:clamp(16px,3vw,36px);bottom:48px;width:14px;border-right:1.5px solid rgba(243,239,230,.35);background:repeating-linear-gradient(to bottom, rgba(243,239,230,.35) 0 1px, transparent 1px 12px) right/6px 100% no-repeat}
.ruler span{position:absolute;right:20px;top:50%;transform:translateY(-50%) rotate(-90deg);transform-origin:right center;font-size:.8rem;white-space:nowrap;color:rgba(243,239,230,.75)}
#tree .tag-g, #tree .banner-g{transition:opacity .35s, transform .45s var(--ease)}
#tree .tree-g{transition:transform .6s var(--ease)}

.config fieldset{border:0;margin:0 0 1.8rem;padding:0}
.config legend{font-weight:700;font-variation-settings:"wdth" 108;margin-bottom:.7rem;padding:0}
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.seg label{cursor:pointer}
.seg input,.swatches input{position:absolute;opacity:0}
.seg span{display:flex;flex-direction:column;gap:2px;padding:.85rem .9rem;border-radius:3px;box-shadow:inset 0 0 0 1.5px rgba(243,239,230,.22);height:100%;transition:box-shadow .2s, background .2s}
.seg b{font-size:1.35rem;font-variation-settings:"wdth" 118;font-weight:800}
.seg small{font-size:.78rem;color:rgba(243,239,230,.6);line-height:1.25}
.seg em{font-style:normal;margin-top:auto;padding-top:.4rem;font-weight:600}
.seg input:checked + span{box-shadow:inset 0 0 0 2px var(--brass);background:rgba(200,146,46,.08)}
.seg input:focus-visible + span{outline:3px solid var(--brass);outline-offset:3px}
.swatches{display:flex;gap:1.4rem}
.swatches label{display:flex;align-items:center;gap:.6rem;cursor:pointer}
.sw{display:inline-block;width:26px;height:26px;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.swatches .sw{box-shadow:0 0 0 2px var(--spoil),0 0 0 3px rgba(243,239,230,.3)}
.swatches input:checked + .sw{box-shadow:0 0 0 2px var(--spoil),0 0 0 4px var(--brass)}
.swatches input:focus-visible + .sw{outline:3px solid var(--brass);outline-offset:4px}
.sw-mdf{background:#9da48c}.sw-white{background:#f4f1ea}
.sw-birch{background:var(--birch)}.sw-grey{background:#7d7a73}.sw-black{background:#1d1c1b}
.field{display:block;margin-bottom:1rem}
.field span{display:block;font-size:.9rem;margin-bottom:.35rem}
.field input,.field textarea{width:100%;font:inherit;padding:.8rem .9rem;border-radius:3px;border:1.5px solid rgba(243,239,230,.25);background:rgba(243,239,230,.05);color:inherit}
.field input::placeholder,.field textarea::placeholder{color:rgba(243,239,230,.38)}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--brass)}
.hint{font-size:.82rem;color:rgba(243,239,230,.55);margin:-.3rem 0 0}
.hint.warn{color:#e8b866}
.total{border-top:1.5px solid rgba(243,239,230,.2);padding-top:1rem;margin-bottom:1.2rem}
.total p:first-child{display:flex;justify-content:space-between;align-items:baseline;margin:0;max-width:none}
.total strong{font-size:2rem;font-variation-settings:"wdth" 118;font-weight:800}
.trees .small{color:rgba(243,239,230,.55)}

.trees-photos{display:grid;grid-template-columns:.75fr 1.25fr;gap:clamp(14px,2vw,24px);margin-top:clamp(56px,8vw,110px);align-items:end}
.trees-photos figure{margin:0}
.trees-photos img{border-radius:2px;width:100%}
.trees-photos figcaption{font-size:.85rem;color:rgba(243,239,230,.6);margin-top:.6rem}
@media (max-width:700px){.trees-photos{grid-template-columns:1fr}}

/* HOP BOX — birch ground */
.hopbox{background:var(--birch);padding:clamp(80px,11vw,150px) 0;position:relative}
.hopbox::before{content:"";position:absolute;left:0;right:0;top:0;height:10px;background:repeating-linear-gradient(180deg,#c99a63 0 1px,#ecdcc0 1px 2.5px)}
.hop-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,6vw,96px);align-items:start}
@media (max-width:860px){.hop-grid{grid-template-columns:1fr}}
.hop-main{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:2px;background:#d8c39f}
.hop-thumbs{display:flex;gap:10px;margin-top:10px}
.hop-thumbs button{all:unset;cursor:pointer;width:84px;height:84px;border-radius:2px;overflow:hidden;opacity:.55;transition:opacity .2s;position:relative}
.hop-thumbs button img{width:100%;height:100%;object-fit:cover}
.hop-thumbs button[aria-pressed="true"],.hop-thumbs button:hover{opacity:1}
.hop-thumbs button[aria-pressed="true"]::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--ink)}
.hop-thumbs button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.hop-copy{position:sticky;top:100px}
@media (max-width:860px){.hop-copy{position:static}}
.hop-copy h2 img{width:120px;height:auto}
.lede{font-size:clamp(1.6rem,3vw,2.4rem);line-height:1.1;font-weight:800;font-variation-settings:"wdth" 112;margin:1.2rem 0 1rem;max-width:18ch}
.uses{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem 2rem;margin:2rem 0}
.uses div{border-top:1.5px solid rgba(31,28,25,.3);padding-top:.7rem}
.uses dt{font-weight:700}
.uses dd{margin:.2rem 0 0;font-size:.95rem;color:#4f4636}
@media (max-width:480px){.uses{grid-template-columns:1fr}}
.finishes{margin-bottom:1.8rem}
.finishes p{margin:0 0 .5rem}
.finishes ul{list-style:none;display:flex;flex-wrap:wrap;gap:1.2rem;margin:0;padding:0}
.finishes li{display:flex;align-items:center;gap:.5rem;font-size:.95rem}
.hopbox .small{color:#6b5f4a}

/* ABOUT */
.about{padding:clamp(80px,11vw,150px) 0}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,6vw,96px);align-items:center}
@media (max-width:860px){.about-grid{grid-template-columns:1fr}}
.about-img{margin:0}
.about-img img{width:100%;border-radius:2px}
.about-copy h2{margin-bottom:1.6rem}
.about-copy p{font-size:1.1rem;line-height:1.6}
.sign{font-weight:800;font-variation-settings:"wdth" 120;font-size:1.3rem;margin-top:1.6rem}

/* QUOTE */
.quote{background:var(--mdf);padding:clamp(80px,11vw,150px) 0}
.quote-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(32px,6vw,96px);align-items:start}
@media (max-width:860px){.quote-grid{grid-template-columns:1fr}}
.steps{list-style:none;padding:0;margin:2.2rem 0 0;counter-reset:s}
.steps li{counter-increment:s;display:grid;grid-template-columns:3rem 1fr;column-gap:.6rem;padding:1.1rem 0;border-top:1.5px solid rgba(31,28,25,.25)}
.steps li::before{content:counter(s);grid-row:span 2;font-size:1.8rem;font-weight:800;font-variation-settings:"wdth" 125;line-height:1}
.steps p{margin:.25rem 0 0;color:#3c3d33}
.qform{background:var(--spoil);color:#f3efe6;padding:clamp(24px,3.5vw,44px);border-radius:4px}
.qform .small{color:rgba(243,239,230,.55)}
.form-error{color:#f0bb5a;margin:.8rem 0 0;font-weight:600}
input[type=date]{color-scheme:dark}

/* FOOTER */
.foot{background:var(--spoil);color:#e9e4d9;padding:72px 0 28px}
.foot-grid{display:grid;grid-template-columns:auto 1fr 1fr 1fr;gap:2.5rem;align-items:start}
.foot-grid img{width:120px}
.foot address{font-style:normal}
.foot p{font-size:.95rem;line-height:1.7}
.legal{max-width:none;margin-top:3rem;font-size:.8rem;color:rgba(233,228,217,.5)}
@media (max-width:760px){.foot-grid{grid-template-columns:1fr 1fr}}

/* LIGHTBOX */
.lightbox{border:0;padding:0;background:transparent;max-width:min(1200px,94vw);max-height:92vh;color:#f3efe6}
.lightbox::backdrop{background:rgba(26,23,20,.92)}
.lightbox img{max-height:80vh;width:auto;margin:0 auto;border-radius:2px}
.lightbox p{text-align:center;margin:1rem auto 0;max-width:60ch}
.lb-close{position:fixed;top:16px;right:20px;width:48px;height:48px;border-radius:50%;border:0;background:rgba(243,239,230,.12);color:#f3efe6;font-size:1.8rem;cursor:pointer;line-height:1}
.lightbox[open]{animation:lb .35s var(--ease)}
@keyframes lb{from{opacity:0;transform:scale(.98)}}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .hero{height:100vh}
}

@media (max-height:560px){.hero-copy p{display:none}}
