/* Savoia Construction Group — design system ported from the approved Replit prototype:
   light, airy, Inter in light weights, lowercase section titles, hairline dividers,
   rounded photo frames, dark charcoal footer with a gold accent line. */
:root {
  --bg: #f9f8f6;          /* page */
  --alt: #f3f1ec;         /* alternate band (prototype #f8f7f5 on white) */
  --white: #ffffff;
  --fg: #1b322d;          /* deep teal-black text */
  --muted: #677e7a;
  --primary: #325d54;     /* buttons, curtain */
  --primary-dark: #26483f;
  --gold: #be8c37;
  --gold-text: #a3742a;   /* gold that passes contrast on light backgrounds */
  --line: #e5e3df;
  --charcoal: #1a1a1a;
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1280px;
  --pad: clamp(20px, 3vw, 32px);
  --nav-h: 80px;
  --radius: 8px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.band { position: relative; z-index: 2; padding-block: clamp(80px, 9vw, 128px); background: var(--bg); }
.band--white { background: var(--white); }
.band--alt { background: var(--alt); }
.band--dark { background: var(--charcoal); color: #fff; }
.band--lined { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.title { font-size: clamp(2.5rem, 5vw, 3.9rem); font-weight: 300; text-transform: lowercase; margin-bottom: clamp(40px, 5vw, 64px); }
.label { display: block; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.75; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Buttons: square, uppercase, tracked (prototype) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 32px; border: 1px solid transparent; border-radius: 0; font: 500 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.2); }
.btn--line { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn--line:hover { background: var(--fg); color: #fff; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #a9792b; }
.btn--ghost-light { border-color: rgba(255,255,255,.25); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Navbar */
.nav-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.nav-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #525252; text-decoration: none; transition: color .2s; padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #0a0a0a; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); }
.nav-links .nav-cta { color: #fff; background: var(--primary); padding: 12px 18px; }
.nav-links .nav-cta:hover { color: #fff; background: var(--primary-dark); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: #262626; }
.menu-btn svg { width: 26px; height: 26px; display: block; }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 0 max(var(--pad), env(safe-area-inset-left, 0px)) 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s ease, padding .3s; border-bottom: 1px solid transparent; }
  .nav-links.is-open { max-height: 560px; opacity: 1; padding-bottom: 20px; border-bottom-color: var(--line); }
  .nav-links a { padding: 13px 4px; }
  .nav-links .nav-cta { margin-top: 10px; text-align: center; padding: 15px; }
  .logo img { height: 46px; }
}
.page-top { height: var(--nav-h); }

/* Hero: framed photo, giant spaced letters, curtain reveal */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; padding-top: var(--nav-h); }
.hero__frame { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
@media (min-width: 768px) { .hero__frame { padding: 16px 32px 32px; } }
.hero__frame > div { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius); background: #33413e; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__frame > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,.45) 100%); }
.hero__content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; color: #fff; }
.hero__word { display: flex; justify-content: center; font-weight: 200; font-size: clamp(3.6rem, 12.5vw, 12rem); line-height: 1; letter-spacing: .15em; margin-right: -.15em; text-shadow: 0 2px 40px rgba(0,0,0,.25); margin-bottom: 22px; }
.hero__word span { display: inline-block; }
.hero h1 { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 400; line-height: 1.5; max-width: 40ch; color: rgba(255,255,255,.94); text-shadow: 0 1px 18px rgba(0,0,0,.35); margin-bottom: 36px; letter-spacing: .01em; }
.hero .actions { justify-content: center; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 44px; transform: translateX(-50%); color: rgba(255,255,255,.7); animation: bob 2s infinite; }
.hero__scroll svg { width: 32px; height: 32px; display: block; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
.curtain { position: fixed; top: 0; bottom: 0; width: 50%; background: var(--primary); z-index: 200; pointer-events: none; }
.curtain--l { left: 0; animation: curtainL 1.6s cubic-bezier(.22,.61,.36,1) forwards; }
.curtain--r { right: 0; animation: curtainR 1.6s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes curtainL { 0% { transform: translateX(0); opacity: .95; } 60% { opacity: .9; } 100% { transform: translateX(-100%); opacity: 0; visibility: hidden; } }
@keyframes curtainR { 0% { transform: translateX(0); opacity: .95; } 60% { opacity: .9; } 100% { transform: translateX(100%); opacity: 0; visibility: hidden; } }
.hero__word span { animation: letterUp .9s cubic-bezier(.16,1,.3,1) both; }
.hero__word span:nth-child(1) { animation-delay: .6s; } .hero__word span:nth-child(2) { animation-delay: .66s; } .hero__word span:nth-child(3) { animation-delay: .72s; }
.hero__word span:nth-child(4) { animation-delay: .78s; } .hero__word span:nth-child(5) { animation-delay: .84s; } .hero__word span:nth-child(6) { animation-delay: .9s; }
.hero h1, .hero .actions { animation: fadeUp .8s cubic-bezier(.22,.61,.36,1) 1.25s both; }
@keyframes letterUp { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.after-hero { position: relative; z-index: 2; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease-out, transform .8s ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curtain { display: none; }
  .hero__word span, .hero h1, .hero .actions, .hero__scroll { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* About */
.about { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 80px); }
.about .title { margin: 0; }
.about p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.8; margin-bottom: 1.6em; }
.about strong { color: var(--fg); font-weight: 500; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* Services accordion */
.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 2.6vw, 32px) 0; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.svc__name { display: flex; align-items: center; gap: clamp(22px, 3.4vw, 40px); }
.svc__num { font: 400 .85rem ui-monospace, Menlo, monospace; color: rgba(27,50,45,.4); min-width: 1.6em; }
.svc__name h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 300; color: rgba(27,50,45,.72); transition: color .3s; }
.svc__head:hover h3, .svc.is-open h3 { color: var(--fg); }
.svc__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .3s; }
.svc__head:hover .svc__icon { border-color: var(--fg); }
.svc__icon::before, .svc__icon::after { content: ""; grid-area: 1/1; width: 14px; height: 1.5px; background: var(--fg); transition: transform .3s; }
.svc__icon::after { transform: rotate(90deg); }
.svc.is-open .svc__icon::after { transform: rotate(0deg); }
.svc__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s ease, opacity .5s ease; }
.svc.is-open .svc__panel { grid-template-rows: 1fr; opacity: 1; }
.svc__panel > div { overflow: hidden; min-height: 0; }
.svc__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); padding: 0 0 clamp(32px, 4vw, 48px) clamp(46px, 7vw, 80px); }
.svc__body p { color: var(--muted); line-height: 1.75; }
.dots { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; }
.dots li { display: flex; align-items: center; gap: 12px; font-size: .94rem; color: rgba(27,50,45,.85); }
.dots li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.svc__link { font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.svc__link:hover { color: var(--primary); }
@media (max-width: 860px) { .svc__body { grid-template-columns: 1fr; padding-left: 0; } }

/* Image carousel */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); height: clamp(240px, 26vw, 330px); background: var(--alt); }
.carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.carousel img.is-on { opacity: 1; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .3s; z-index: 2; color: #262626; font-size: 18px; }
.carousel:hover .carousel__btn, .carousel__btn:focus-visible { opacity: 1; }
@media (hover: none) { .carousel__btn { opacity: 1; } }
.carousel__btn--p { left: 12px; } .carousel__btn--n { right: 12px; }
.carousel__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s, background .3s; }
.carousel__dots button.is-on { width: 20px; background: #fff; }

/* Guided Journey */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.journey li { padding: 34px 26px 10px 0; position: relative; }
.journey li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.journey .num { font: 400 .85rem ui-monospace, Menlo, monospace; color: rgba(27,50,45,.4); display: block; margin-bottom: 18px; }
.journey h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); font-weight: 300; margin-bottom: 12px; }
.journey p { color: var(--muted); font-size: .95rem; margin: 0; }
.journey .key h3 { color: var(--gold-text); }
.journey .tag { display: inline-block; margin-top: 14px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.journey-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.journey-foot .title { margin: 0; }
.journey-foot p { margin: 0; }
@media (max-width: 1000px) { .journey { grid-template-columns: 1fr; } .journey li, .journey li + li { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Projects: full-width photo with floating white card */
.projects { display: grid; gap: clamp(64px, 8vw, 96px); }
.project { position: relative; }
.project__img { overflow: hidden; border-radius: var(--radius); }
.project__img img { width: 100%; height: clamp(420px, 44vw, 620px); object-fit: cover; transition: transform .7s; }
.project:hover .project__img img { transform: scale(1.03); }
.project__card { position: absolute; left: 32px; bottom: 32px; max-width: 460px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); padding: 32px; }
.project__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #737373; margin-bottom: 12px; }
.project__meta i { width: 4px; height: 4px; border-radius: 50%; background: #a3a3a3; }
.project__card h3 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); font-weight: 300; color: #171717; margin-bottom: 12px; }
.project__card p { font-size: .9rem; color: #525252; line-height: 1.7; margin: 0; }
@media (max-width: 700px) { .project__card { position: relative; left: auto; bottom: auto; margin: -64px 16px 0; padding: 24px; } }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.numbers .big { font-size: clamp(4.5rem, 9vw, 8rem); font-weight: 200; line-height: 1; color: rgba(27,50,45,.16); margin-bottom: 14px; font-variant-numeric: tabular-nums; display: flex; justify-content: center; }
.numbers .wheel { display: inline-block; height: 1em; overflow: hidden; width: .62em; }
.numbers .wheel span { display: block; transition: transform 1.8s cubic-bezier(.22,.61,.36,1); }
.numbers .wheel span b { display: block; height: 1em; font-weight: 200; }
.numbers p { margin: 0 auto; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); max-width: 26ch; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr; gap: 48px; } }

/* Gallery */
.gallery-head { text-align: center; margin-bottom: 56px; }
.gallery-head .title { margin: 0; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px, 19vw, 260px); gap: 16px; }
.mosaic button { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--line); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic button:hover img { transform: scale(1.04); }
.mosaic .tall { grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .mosaic .tall { grid-row: span 2; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1300px); }
dialog.lightbox::backdrop { background: rgba(0,0,0,.9); }
dialog.lightbox img { max-height: 86vh; width: auto; border-radius: 6px; }
dialog.lightbox .close { position: fixed; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); background: none; border: 0; color: rgba(255,255,255,.85); font: 300 2.2rem/1 var(--sans); cursor: pointer; padding: 8px; }
dialog.lightbox .nav { position: fixed; top: 50%; transform: translateY(-50%); background: none; border: 0; color: rgba(255,255,255,.8); font: 200 3rem/1 var(--sans); cursor: pointer; padding: 12px; }
dialog.lightbox .prev { left: max(8px, env(safe-area-inset-left, 0px)); } dialog.lightbox .next { right: max(8px, env(safe-area-inset-right, 0px)); }
dialog.lightbox p { color: rgba(255,255,255,.75); font-size: .9rem; text-align: center; margin: 12px auto 0; }

/* Dark before/after band (replaces the prototype's reviews band until real reviews exist) */
.ba-band { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.ba-band .label { color: rgba(255,255,255,.5); }
.ba-band h2 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 18px; color: #fff; }
.ba-band h2 em { font-style: normal; color: var(--gold); }
.ba-band p { color: rgba(255,255,255,.62); font-size: 1.05rem; }
@media (max-width: 900px) { .ba-band { grid-template-columns: 1fr; } }
.ba { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; max-width: 100%; background: #333; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b322d' stroke-width='1.6'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/22px no-repeat; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input:focus-visible ~ .ba__line::after { outline: 2px solid var(--gold); outline-offset: 3px; }
.ba__tag { position: absolute; bottom: 14px; z-index: 1; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.5); padding: 6px 10px; border-radius: 3px; pointer-events: none; }
.ba__tag--b { left: 14px; } .ba__tag--a { right: 14px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 300; margin-bottom: 16px; }
.contact .lead { margin-bottom: 40px; max-width: 46ch; }
.contact__img { border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--nav-h) + 24px); }
.contact__img img { width: 100%; height: 620px; object-fit: cover; }
@media (max-width: 1000px) { .contact { grid-template-columns: 1fr; } .contact__img { display: none; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form label .opt { text-transform: none; letter-spacing: 0; color: #9aa8a5; }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--fg); background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; min-height: 52px; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23677e7a' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form input[type=file] { padding: 13px 16px; background: var(--bg); font-size: .9rem; }
.form .hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.form .btn { width: 100%; margin-top: 8px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form-note a { color: var(--fg); }
.hp { position: absolute; left: -9999px; }
.thanks { display: none; padding: 40px 0; }
.thanks h3 { font-size: 2rem; margin-bottom: 14px; }
.is-sent .form, .is-sent .form-intro { display: none; }
.is-sent .thanks { display: block; }
.form-error { color: #a1301f; font-weight: 500; margin: 0; }

/* Footer */
.footer { position: relative; z-index: 2; background: var(--charcoal); color: #fff; }
.footer__cta { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-block: clamp(56px, 6vw, 80px); }
.footer__cta .label { color: rgba(255,255,255,.4); font-weight: 600; }
.footer__cta h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.footer__cta h2 span { color: var(--gold); display: block; }
.footer__cta p { color: rgba(255,255,255,.6); max-width: 40ch; margin: 0 0 18px auto; text-align: right; }
.footer__cta .actions { justify-content: flex-end; }
@media (max-width: 860px) { .footer__cta .wrap { grid-template-columns: 1fr; } .footer__cta p { text-align: left; margin-left: 0; } .footer__cta .actions { justify-content: flex-start; } }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(48px, 5vw, 64px); }
.footer__grid h3 { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__grid a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer__grid a:hover { color: var(--gold); }
.footer__brand img { height: 64px; width: auto; margin-bottom: 20px; }
.footer__brand p { color: rgba(255,255,255,.5); font-size: .9rem; max-width: 34ch; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; font-size: .78rem; color: rgba(255,255,255,.4); }
.footer__bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.preview-bar { position: relative; z-index: 101; background: var(--gold); color: #fff; font-size: .8rem; text-align: center; padding: 7px 16px; letter-spacing: .02em; }

/* Inner pages */
.page-head { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(48px, 6vw, 80px); background: var(--bg); position: relative; z-index: 2; }
.crumbs { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 300; max-width: 20ch; margin-bottom: 24px; }
.page-head .lead { max-width: 58ch; margin-bottom: 32px; }
.page-photo { border-radius: var(--radius); overflow: hidden; }
.page-photo img { width: 100%; height: clamp(320px, 46vw, 620px); object-fit: cover; }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 80px); }
.split .title { margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 20px; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.note { border-left: 2px solid var(--gold); padding: 6px 0 6px 24px; margin-bottom: 32px; }
.note h3 { font-size: 1.5rem; margin-bottom: 10px; }
.note p { color: var(--muted); margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) { .photo-grid { grid-template-columns: 1fr 1fr; } }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 120px 1fr 1.2fr; gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step .num { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 200; line-height: 1; color: rgba(27,50,45,.18); }
.step h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 300; }
.step h2 small { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin-top: 12px; font-weight: 500; }
.step p { color: var(--muted); margin: 0; }
.step .head { color: var(--fg); font-weight: 500; margin-bottom: 8px; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; gap: 10px; } }
.cities { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.cities a { padding: 30px 24px 30px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.cities a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.cities strong { display: block; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 300; margin-bottom: 6px; }
.cities span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cities a:hover strong { color: var(--primary); }
@media (max-width: 860px) { .cities { grid-template-columns: 1fr 1fr; } .cities a:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .cities { grid-template-columns: 1fr; } .cities a, .cities a + a { padding-left: 0; border-left: 0; } }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--line); padding: 10px 16px; font-size: .9rem; background: var(--white); }
.tags a { text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-bottom: 40px; }
.filters button { background: none; border: 0; padding: 6px 0; font: 500 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--fg); box-shadow: inset 0 -1px 0 var(--gold); }
.work { columns: 3 300px; column-gap: 16px; }
.work button { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; break-inside: avoid; background: var(--line); }
.work img { width: 100%; transition: transform .6s; }
.work button:hover img { transform: scale(1.03); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; font-weight: 400; margin: 1.6em 0 .5em; }
.prose p { color: var(--muted); }

/* Before/after project tabs */
.ba-tabs { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.ba-tabs button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 16px 0 16px 18px; color: rgba(255,255,255,.55); cursor: pointer; font: inherit; position: relative; transition: color .2s; }
.ba-tabs button::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: transparent; transition: background .2s; }
.ba-tabs button strong { display: block; font-weight: 500; font-size: 1.02rem; color: rgba(255,255,255,.75); }
.ba-tabs button span { display: none; font-size: .9rem; line-height: 1.55; margin-top: 6px; }
.ba-tabs button:hover strong { color: #fff; }
.ba-tabs button[aria-selected="true"]::before { background: var(--gold); }
.ba-tabs button[aria-selected="true"] strong { color: #fff; }
.ba-tabs button[aria-selected="true"] span { display: block; color: rgba(255,255,255,.62); }

/* Project cards as before/after sliders */
.project .ba { aspect-ratio: 16 / 10; height: auto; max-height: 82vh; width: 100%; border-radius: var(--radius); }
@media (max-width: 700px) { .project .ba { aspect-ratio: 4 / 5; } }
.project .ba img { transition: none; }
.project:hover .project__img img { transform: none; }
.project .ba__tag { top: 18px; bottom: auto; }
.project .ba__tag--b { left: 18px; } .project .ba__tag--a { right: 18px; }
.project__hint { display: block; margin-top: 14px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }

/* Portrait project photos: photo and text side by side instead of a cropped banner */
.project--tall { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.project--tall .project__img { order: 2; }
.project--tall .project__img img { height: auto; aspect-ratio: 4 / 5; max-height: 86vh; }
.project--tall .project__card { position: static; max-width: 480px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
.project--tall .project__card h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.project--tall .project__card p { font-size: 1rem; }
@media (max-width: 760px) { .project--tall { grid-template-columns: 1fr; } .project--tall .project__img { order: 0; } .project--tall .project__card { margin: 0; } }
.ba--tall { aspect-ratio: 3 / 4; max-width: 480px; margin-inline: auto; }
.work [hidden] { display: none !important; }

/* Phone: header link, sticky mobile call button, form call line */
.nav-links .nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); letter-spacing: .06em; white-space: nowrap; }
.nav-phone svg, .call-fab svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (min-width: 1081px) and (max-width: 1280px) { .nav-links { gap: 20px; } .nav-links a { letter-spacing: .08em; } }
.call-fab { display: none; }
@media (max-width: 860px) {
  .call-fab { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; background: var(--primary); color: #fff; font: 500 .85rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
  .call-fab svg { width: 18px; height: 18px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
.call-line { margin: -24px 0 32px; color: var(--muted); }
.call-line a { color: var(--fg); font-weight: 500; }

/* Outdoor: four headed services */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 5vw, 56px); }
.jump a { border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); text-decoration: none; }
.jump a:hover { border-color: var(--gold); }
.outdoor { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: calc(var(--nav-h) + 16px); }
.outdoor:only-child, .outdoor:not(:has(.outdoor__photos)) { grid-template-columns: 1fr; }
.outdoor h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 300; margin: 10px 0 16px; }
.outdoor p { color: var(--muted); max-width: 52ch; }
.outdoor .dots { margin: 20px 0 28px; }
.outdoor__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.outdoor__photos img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .outdoor { grid-template-columns: 1fr; } .outdoor__photos { grid-template-columns: 1fr 1fr; } .outdoor__photos img:nth-child(3) { display: none; } }
