/* Design tokens: restyle the whole site by changing these */
:root {
  --forest: #1f3a2e;
  --forest-deep: #15291f;
  --copper: #b4581f;
  --copper-dark: #8f4416;
  --copper-soft: #e8a574;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --ink: #1c2420;
  --muted: #5d655f;
  --line: #e3dccd;
  --glass: rgb(21 38 30 / 0.68);
  --glass-solid: rgb(21 38 30 / 0.94);
  --glass-edge: rgb(255 255 255 / 0.14);
  --radius: 18px;
  --radius-lg: 1.5rem;
  /* Width of the cards and the photo grid; lower it to pull everything in from the screen edges */
  --max: 64rem;
  /* Space between the cards and the screen edge */
  --gutter: .75rem;
  --col: min(var(--max), 100% - 2 * var(--gutter));
}

/* Fonts are self-hosted (latin only): Fraunces for headings, Inter for text */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--cream);line-height:1.6;font-size:1.0625rem}
h1,h2,h3{font-family:Fraunces,Georgia,serif;line-height:1.08;margin:0 0 .6rem;letter-spacing:-.01em}
img{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--copper-soft);outline-offset:3px}
section[id]{scroll-margin-top:6rem}

.skip-link{position:absolute;left:-999px;top:0;z-index:30;padding:.75rem 1rem;background:var(--paper);color:var(--ink);font-weight:700}
.skip-link:focus{left:.75rem;top:.75rem}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:48px;padding:.7rem 1.4rem;border-radius:12px;font-weight:700;text-decoration:none;border:2px solid var(--copper);background:var(--copper);color:#fff;font-size:1rem}
.btn:hover{background:var(--copper-dark);border-color:var(--copper-dark)}
.btn.ghost{background:transparent;border-color:rgb(255 255 255/.85);color:#fff}
.btn.ghost:hover{background:rgb(255 255 255/.15)}
.btn svg{width:18px;height:18px;flex:none}

/* Floating glass bubble */
.bubble{position:fixed;z-index:20;top:12px;left:0;right:0;width:var(--col);margin:0 auto;
  display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem .5rem .5rem 1rem;border-radius:var(--radius);
  background:var(--glass);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);
  border:1px solid var(--glass-edge);box-shadow:inset 0 1px 0 rgb(255 255 255/.18),0 10px 30px rgb(0 0 0/.18);color:#fff;transition:transform .3s ease}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.bubble{background:var(--glass-solid)}}
/* Pages without a photo behind the bubble (404) get a solid one so the white text stays readable */
.bubble.solid{background:var(--glass-solid)}
/* Tucked away while scrolling down; a keyboard user tabbing in always brings it back */
.bubble.tucked{transform:translateY(calc(-100% - 60px))}
.bubble:has(:focus-visible){transform:none}
.brand{flex:1 1 0;min-width:0;font-family:Fraunces,Georgia,serif;font-weight:800;font-size:1rem;line-height:1.15;text-decoration:none}
.bubble .contact-btn{min-height:44px;padding:.4rem 1.1rem;border-radius:12px}
.menu-btn{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:12px;border:1px solid rgb(255 255 255/.35);background:transparent;color:#fff;cursor:pointer}
.menu-btn svg{width:22px;height:22px}
.links{display:none;width:100%;flex-direction:column;padding:.25rem 0 .35rem}
.links.open{display:flex}
.links a{padding:.75rem .25rem;text-decoration:none;font-weight:600;border-top:1px solid rgb(255 255 255/.12)}

/* Hero: full-width photo that fills the first screen */
.hero{position:relative;min-height:100vh;min-height:min(100svh,58rem);display:grid;place-items:center;text-align:center;color:#fff;background:#14201a;overflow:hidden}
.hero > img{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center 55%}
.hero::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgb(10 18 14/.55) 0%,rgb(10 18 14/.35) 40%,rgb(10 18 14/.7) 100%)}
.hero-inner{position:relative;z-index:2;padding:7rem 1.25rem 4rem;max-width:52rem}
.hero h1{font-size:clamp(2.6rem,9vw,5.6rem);font-weight:800;color:#fff;text-shadow:0 2px 24px rgb(0 0 0/.35);text-wrap:balance}
.hero p{font-size:clamp(1.1rem,2.6vw,1.35rem);margin:0 auto 1.75rem;max-width:36rem;color:#f2efe6;text-wrap:balance}
.glass-btn{display:inline-flex;align-items:center;gap:.5rem;min-height:50px;padding:.75rem 1.5rem;border-radius:14px;color:#fff;text-decoration:none;font-weight:700;
  background:rgb(255 255 255/.14);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgb(255 255 255/.4);box-shadow:inset 0 1px 0 rgb(255 255 255/.25)}
.glass-btn:hover{background:rgb(255 255 255/.24)}

.section{width:var(--col);margin:0 auto;padding:3.5rem .5rem}
/* A section that sits on the page as a card */
.card{margin:var(--gutter) auto;padding:2.25rem 1.25rem;background:var(--paper);border-radius:var(--radius-lg);box-shadow:0 1px 2px rgb(31 58 46/.05),0 8px 24px rgb(31 58 46/.06)}
.kicker{font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;color:var(--copper);margin:0 0 .5rem}
h2{font-size:clamp(1.9rem,5vw,3rem);font-weight:800}

/* Photo mosaic (home page) and the plain grid of every photo (/projects/) */
.mosaic,.photo-grid{display:grid;gap:.75rem;grid-template-columns:1fr 1fr;margin-top:1.5rem}
.mosaic a,.photo-grid a{display:block;border-radius:14px;overflow:hidden;position:relative}
.mosaic img,.photo-grid img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3;transition:transform .4s}
.mosaic a:hover img,.photo-grid a:hover img{transform:scale(1.04)}
.mosaic a:first-child{grid-column:1/-1}
.mosaic a:first-child img{aspect-ratio:16/10}
.mosaic a:nth-child(even):last-child{grid-column:1/-1}
.mosaic a:nth-child(even):last-child img{aspect-ratio:16/10}
.see-all{margin:1.25rem 0 0;text-align:center}
.btn.outline{background:transparent;border-color:var(--forest);color:var(--forest)}
.btn.outline:hover{background:var(--forest);color:#fff}

/* Photo viewer */
.viewer{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgb(8 12 10/.94);color:#fff}
.viewer::backdrop{background:rgb(0 0 0/.6)}
.viewer[open]{display:grid;grid-template-rows:auto 1fr auto}
.viewer-top{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem}
.viewer-count{font-weight:600;font-size:.95rem;color:#d9d4c8}
.viewer-stage{position:relative;display:grid;place-items:center;min-height:0;padding:0 .5rem}
/* Positioned so max-height resolves against the stage and tall photos fit whole */
.viewer-stage img{position:absolute;inset:0 .5rem;margin:auto;max-width:calc(100% - 1rem);max-height:100%;border-radius:8px;user-select:none;-webkit-user-drag:none}
.viewer-cap{text-align:center;padding:.75rem 1rem 1.25rem;min-height:3rem;color:#e7e2d6}
.v-btn{width:48px;height:48px;border-radius:50%;border:1px solid rgb(255 255 255/.3);background:rgb(255 255 255/.12);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;display:grid;place-items:center;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.v-btn:hover{background:rgb(255 255 255/.24)}
.v-prev,.v-next{position:absolute;top:50%;transform:translateY(-50%)}
.v-prev{left:.75rem}.v-next{right:.75rem}

/* Services: flat tiles inside the card */
.services{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;gap:.75rem}
.services li{padding:1.4rem 1.5rem;background:var(--cream);border-radius:14px}
.services h3{font-size:1.5rem;margin:0 0 .5rem}
.services h3::after{content:"";display:block;width:2.25rem;height:3px;margin-top:.55rem;border-radius:2px;background:var(--copper)}
.services p{margin:0;color:var(--muted)}

/* Scope of work */
.scope{display:grid;gap:1rem}
.scope h2{margin:0}
.scope-text p{margin:0 0 1rem;color:var(--muted)}
.scope-text p:last-child{margin-bottom:0}
.scope-text .lead{font-size:1.2rem;line-height:1.55;color:var(--ink)}

/* Follow us band */
.follow{display:grid;gap:1rem;margin-top:1rem;padding:1.35rem 1.5rem;border-radius:14px;background:var(--forest);color:#f6f1e3;align-items:center}
.follow h3{margin:0 0 .15rem;font-size:1.4rem;color:#fff;text-wrap:balance}
.follow p{margin:0;color:#c4cec6}
.follow-buttons{display:flex;flex-direction:column;gap:.6rem}

/* Reviews */
.reviews-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:.5rem 1.5rem}
.rating{margin:0;font-weight:600;color:var(--muted)}
.rating .stars{color:var(--copper);letter-spacing:.12em}
.text-link{color:var(--copper-dark);font-weight:700;text-underline-offset:3px}
.quotes{display:grid;gap:.75rem;margin:1.5rem 0 1.25rem}
.quote{margin:0;padding:1.25rem 1.35rem;background:var(--cream);border-radius:14px;border:1px solid var(--line)}
.quote p{margin:0 0 .75rem}
.quote footer{font-size:.92rem;font-weight:600;color:var(--muted)}
.quote .stars{color:var(--copper);letter-spacing:.12em;margin:0 0 .5rem}

/* Contact and footer: one green card at the bottom of the page */
.contact{margin-top:var(--gutter);background:var(--forest);color:#f6f1e3}
.contact .section{display:grid;gap:1rem;padding:2rem .5rem 1.25rem;text-align:center}
.contact .kicker{color:var(--copper-soft);margin:0 0 .25rem}
.contact h2{color:#fff;font-size:clamp(1.4rem,3.4vw,1.9rem);margin:0}
.area{margin:.25rem 0 0;color:#c4cec6;font-size:.95rem}
.contact-rows{display:grid;gap:.75rem}
.contact-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem 1.25rem}
.phone{font-family:Fraunces,serif;font-weight:800;font-size:1.7rem;color:#fff;text-decoration:none}
.email{font-weight:700;font-size:1.2rem;color:#fff;text-decoration:none;overflow-wrap:anywhere}
.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
.actions .btn{min-height:44px;padding:.45rem 1.1rem}
.contact-hours{margin:0;color:#c4cec6;font-size:.95rem}
.site-footer{background:var(--forest);color:#a9b8ad}
/* Below the contact band the footer continues it, with a faint line between */
body:has(.contact) .site-footer-inner{border-top:1px solid rgb(255 255 255/.1)}
.site-footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.6rem 1.5rem;width:var(--col);margin:0 auto;padding:.8rem .5rem 1rem;font-size:.82rem}
.site-footer-inner p{margin:0}
.socials{list-style:none;margin:0;padding:0;display:flex;gap:.25rem}
.socials a{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:#e9e4d6}
.socials a:hover{background:rgb(255 255 255/.12);color:#fff}
.socials svg{width:22px;height:22px}

/* Pages without a hero (404, projects) sit below the floating bubble */
.page-narrow{padding-top:8rem;padding-bottom:5rem}
.page-photos{padding-top:7.5rem}
.page-narrow h1,.page-photos h1{font-size:clamp(2rem,6vw,3rem);font-weight:800}
.back{margin-bottom:1.25rem}

/* Contact pane: dark liquid glass under the nav, opened by the Contact button */
.pane{position:fixed;inset:5.25rem calc((100% - var(--col)) / 2) auto auto;margin:0;width:min(26rem,var(--col));max-width:none;max-height:none;padding:0;overflow:hidden;
  border:1px solid rgb(255 255 255/.3);border-radius:26px;color:#fff;transform-origin:top right;
  background:rgb(21 38 30/.55);-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);
  box-shadow:inset 0 1px 0 rgb(255 255 255/.45),inset 0 -1px 0 rgb(255 255 255/.08),0 24px 60px rgb(0 0 0/.35);
  transition:opacity .22s ease,transform .22s ease}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.pane{background:var(--glass-solid)}}
@starting-style{.pane[open]{opacity:0;transform:translateY(-8px) scale(.97)}}
.pane::backdrop{background:rgb(8 14 11/.28)}
/* A soft highlight across the top-left corner, like light catching the glass */
.pane::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(120% 70% at 12% 0%,rgb(255 255 255/.2),transparent 55%)}
.pane-inner{position:relative;display:grid;gap:1rem;padding:1.25rem 1.25rem 1.5rem}
.pane-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.pane h2{font-size:1.5rem;margin:0;color:#fff}
.pane-note{margin:0;color:#dfe6e0;font-size:.95rem}
.pane .contact-row{justify-content:space-between}
.pane .phone{font-size:1.45rem}
.pane .email{font-size:1.05rem}

@media(min-width:48rem){
  :root{--gutter:1rem}
  .section{padding-inline:0}
  .card{padding:2.75rem 2.5rem}
  .site-footer-inner{padding-inline:0}
  .bubble{top:16px;padding:.55rem .55rem .55rem 1.25rem;flex-wrap:nowrap;gap:1.75rem}
  .brand{flex:0 1 auto;margin-right:auto;font-size:1.15rem}
  .scope{grid-template-columns:1fr 1.5fr;gap:3.5rem;align-items:start}
  .follow{grid-template-columns:1fr auto}
  .follow-buttons{flex-direction:row}
  .quotes{grid-template-columns:repeat(3,1fr)}
  .site-footer-inner{justify-content:space-between}
  .contact-row{justify-content:space-between}
  .contact .section{grid-template-columns:1fr auto;align-items:center;text-align:left;padding:2rem 0 1.25rem}
  .menu-btn{display:none}
  .links{display:flex;flex-direction:row;width:auto;gap:1.75rem;padding:0}
  .links a{padding:.4rem 0;border:0;opacity:.92}
  .links a:hover{opacity:1;color:var(--copper-soft)}
  .bubble .contact-btn{order:3}
  /* Feature photo with two beside it, then one row of four. The home page shows at most 7;
     with fewer, the bottom row shares the full width so no photo is left alone */
  .mosaic{grid-template-columns:repeat(12,1fr)}
  .mosaic a:first-child{grid-column:span 8;grid-row:span 2}
  .mosaic a:first-child img{aspect-ratio:auto;min-height:100%}
  .mosaic a:nth-child(n+2){grid-column:span 4}
  .mosaic a:nth-child(n+4){grid-column:span 3}
  .mosaic a:nth-child(even):last-child img{aspect-ratio:4/3}
  .mosaic a:nth-child(4):nth-last-child(3),.mosaic a:nth-child(4):nth-last-child(3)~a{grid-column:span 4}
  .mosaic a:nth-child(4):nth-last-child(2),.mosaic a:nth-child(4):nth-last-child(2)~a{grid-column:span 6}
  .mosaic a:nth-child(4):nth-last-child(2) img,.mosaic a:nth-child(4):nth-last-child(2)~a img{aspect-ratio:2/1;object-position:center 60%}
  .mosaic a:nth-child(4):last-child{grid-column:1/-1}
  .mosaic a:nth-child(4):last-child img{aspect-ratio:3/1;object-position:center 60%}
  .mosaic a:nth-child(2):last-child{grid-column:span 4;grid-row:span 2}
  .mosaic a:nth-child(2):last-child img{aspect-ratio:auto;min-height:100%}
  .mosaic a:first-child:last-child{grid-column:1/-1}
  .photo-grid{grid-template-columns:repeat(3,1fr)}
  .services{grid-template-columns:repeat(2,1fr);gap:1rem}
  .v-prev{left:1.5rem}.v-next{right:1.5rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.bubble,.pane,.mosaic img,.photo-grid img{transition:none}.mosaic a:hover img,.photo-grid a:hover img{transform:none}}
