/* ==========================================================================
   Mustache Home — public website
   Palette: charcoal ink + warm cream + antique gold
   ========================================================================== */
:root {
  --ink: #0e0c0a;
  --ink-2: #181512;
  --ink-3: #231f1b;
  --cream: #f4eee6;
  --sand: #e8dfd2;
  --on-gold: #0e0c0a;
  --gold: #c8a165;
  --gold-2: #a8844c;
  --gold-3: #e6cc9c;
  --on-dark: #efe8dd;
  --on-dark-muted: #a79d8f;
  --on-light: #1c1917;
  --on-light-muted: #5b534a;
  --line-dark: rgba(239, 232, 221, .14);
  --line-light: rgba(28, 25, 23, .14);
  --f-display: 'Cinzel', 'Times New Roman', serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Josefin Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --radius: 18px;
  --pad: clamp(20px, 5vw, 72px);
  --sec: clamp(88px, 12vw, 180px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--on-dark);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65; font-weight: 300;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--sec) 0; position: relative; }
.muted { color: var(--on-dark-muted); }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* Light sections */
.about, .process, .portfolio, .values, .estimate, .faq { background: var(--cream); color: var(--on-light); }
.about .muted, .process .muted, .portfolio .muted, .values .muted, .estimate .muted, .faq .muted { color: var(--on-light-muted); }

/* Typography */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: var(--gold); margin: 0 0 22px; }
.about .eyebrow, .process .eyebrow, .portfolio .eyebrow, .values .eyebrow, .estimate .eyebrow, .faq .eyebrow { color: var(--gold-2); }
.eyebrow .line { width: 40px; height: 1px; background: currentColor; display: inline-block; }
.display { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 6vw, 88px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 28px; text-transform: uppercase; }
.display em, .hero__title em, .footer__cta em { font-family: var(--f-serif); font-style: italic; text-transform: none; font-weight: 400; color: var(--gold); letter-spacing: 0; }
.about .display em, .process .display em, .portfolio .display em, .values .display em, .estimate .display em, .faq .display em { color: var(--gold-2); }

/* Buttons */
.btn { --bg: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; position: relative; overflow: hidden; isolation: isolate; transition: color .4s var(--ease-out), border-color .4s; will-change: transform; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--fill, var(--on-dark)); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease-out); z-index: -1; }
.btn:hover::before { transform: translateY(0); }
.btn .i { transition: transform .4s var(--ease-out); }
.btn:hover .i { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--on-gold); --fill: var(--on-dark); }
.btn--ghost { border: 1px solid currentColor; --fill: var(--gold); }
.btn--ghost:hover { color: var(--on-gold); border-color: var(--gold); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn--block { width: 100%; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; }
.loader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.loader__panel--top { top: 0; } .loader__panel--bottom { bottom: 0; }
.loader__inner { position: relative; text-align: center; }
.loader__mark { width: 120px; margin: 0 auto 20px; fill: transparent; stroke: var(--gold); stroke-width: .8; }
.loader__word { font-family: var(--f-display); letter-spacing: .5em; font-size: 14px; color: var(--on-dark); padding-left: .5em; }
.loader__count { margin-top: 18px; font-family: var(--f-serif); font-size: 22px; color: var(--on-dark-muted); font-style: italic; }
.no-js .loader, .reduced .loader { display: none; }

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; mix-blend-mode: difference; display: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor__ring { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s; }
.cursor__ring em { font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: #fff; }
.cursor.is-view .cursor__ring em { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 950; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); transform-origin: 0 50%; transform: scaleX(0); }
.grain { position: fixed; inset: -50%; z-index: 800; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 8s steps(10) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0) } 10% { transform: translate(-5%,-10%) } 30% { transform: translate(3%,-15%) } 50% { transform: translate(12%,9%) } 70% { transform: translate(9%,4%) } 90% { transform: translate(-1%,7%) } }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 500; display: flex; align-items: center; gap: 32px; padding: 22px var(--pad); transition: transform .6s var(--ease-out), background .4s, padding .4s, backdrop-filter .4s; }
.nav.is-scrolled { background: rgba(14, 12, 10, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; fill: var(--gold); }
.brand__text { font-family: var(--f-display); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.brand__text b { font-weight: 400; color: var(--gold); margin-left: 6px; }
.nav__links { display: flex; gap: 34px; margin-left: auto; }
.nav__links a { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; position: relative; padding: 8px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: 2px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 450; background: var(--ink-2); display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad) 40px; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-family: var(--f-display); font-size: clamp(34px, 9vw, 64px); text-transform: uppercase; display: flex; align-items: baseline; gap: 18px; }
.menu nav a i { font-family: var(--f-serif); font-size: 16px; color: var(--gold); }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; color: var(--on-dark-muted); }
@media (max-width: 1080px) { .nav__links, .nav__cta { display: none; } .nav__burger { display: block; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px var(--pad) 120px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; transform-origin: 50% 40%; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,10,.55) 0%, rgba(14,12,10,.25) 35%, rgba(14,12,10,.9) 100%), radial-gradient(ellipse at 20% 80%, rgba(14,12,10,.7), transparent 60%); }
.hero__content { position: relative; z-index: 2; max-width: 980px; }
.hero__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 10.5vw, 168px); line-height: .92; margin: 0 0 30px; letter-spacing: -.02em; }
.mask { display: block; overflow: hidden; padding-bottom: .06em; }
.mask > span { display: inline-block; }
.hero__sub { font-size: clamp(17px, 1.6vw, 21px); max-width: 540px; color: var(--on-dark); opacity: .9; margin: 0 0 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cards { position: absolute; right: var(--pad); top: 22%; z-index: 1; width: min(28vw, 380px); aspect-ratio: 3/4; }
.float-card { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.float-card img { width: 100%; height: 100%; object-fit: cover; }
.float-card--a { width: 72%; height: 62%; right: 0; top: 0; }
.float-card--b { width: 58%; height: 48%; left: 0; bottom: 0; border: 6px solid var(--ink); }
.hero__meta { position: absolute; right: var(--pad); bottom: 44px; z-index: 2; display: flex; gap: 28px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1px solid var(--line-dark); border-radius: 20px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 80% { transform: translateY(16px); opacity: 0 } 100% { opacity: 0 } }
@media (max-width: 900px) { .hero__cards { display: none; } .hero__meta { display: none; } .scroll-cue { display: none; } }

/* Marquee */
.marquee { background: var(--gold); color: var(--on-gold); overflow: hidden; padding: 22px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 40px; align-items: center; will-change: transform; }
.marquee span { font-family: var(--f-display); font-size: clamp(22px, 3vw, 40px); text-transform: uppercase; letter-spacing: .04em; }
.marquee i { font-style: normal; font-size: 18px; }

/* About */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__lead { font-family: var(--f-serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; margin: 0 0 44px; font-weight: 400; }
.about__lead .w { opacity: .18; transition: none; }
.about__founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding-top: 30px; border-top: 1px solid var(--line-light); }
.about__founder strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: .06em; }
.about__founder span { font-size: 13px; color: var(--on-light-muted); letter-spacing: .1em; text-transform: uppercase; }
.about__founder blockquote { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--gold-2); }
.about__right { position: relative; min-height: 640px; }
.reveal-img { margin: 0; overflow: hidden; border-radius: var(--radius); position: absolute; }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.about__img-a { width: 76%; height: 78%; right: 0; top: 0; }
.about__img-b { width: 50%; height: 44%; left: 0; bottom: 0; border: 8px solid var(--cream); }
.about__badge { position: absolute; left: 12%; top: 18%; width: 150px; height: 150px; z-index: 2; background: var(--ink); color: var(--gold); border-radius: 50%; display: grid; place-items: center; }
.about__badge svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; font-size: 15.5px; letter-spacing: 3px; font-family: var(--f-body); animation: spin 18s linear infinite; }
.about__badge-mark { width: 60px; fill: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(70px, 9vw, 130px); }
.stat { border-top: 1px solid var(--line-light); padding-top: 26px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1; color: var(--on-light); }
.stat span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-light-muted); }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__right { min-height: 480px; } .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } .about__founder { grid-template-columns: 1fr; } }

/* Expand */
.expand { position: relative; height: 260vh; background: var(--ink); }
.expand__pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.expand__frame { position: absolute; inset: 0; clip-path: inset(22% 30% 22% 30% round 24px); }
.expand__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.expand__frame::after { content: ''; position: absolute; inset: 0; background: rgba(14,12,10,.35); }
.expand__text { position: relative; z-index: 2; text-align: center; mix-blend-mode: normal; }
.expand__text .display { font-size: clamp(44px, 8vw, 132px); margin: 0; }

/* Services */
.services { background: var(--ink); position: relative; }
.services__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 60px; overflow: hidden; }
.services__head { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 50px; }
.services__head .eyebrow { grid-column: 1 / -1; }
.services__head .display { margin: 0; }
.services__track { display: flex; gap: 28px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.svc { position: relative; width: clamp(290px, 30vw, 440px); aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; flex: none; background: var(--ink-3); }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.svc:hover img { transform: scale(1.16); }
.svc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,10,.1) 30%, rgba(14,12,10,.92)); }
.svc__no { position: absolute; top: 22px; left: 26px; z-index: 2; font-family: var(--f-serif); font-style: italic; font-size: 26px; color: var(--gold); }
.svc__body { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 2; }
.svc h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .02em; }
.svc p { margin: 0; color: var(--on-dark-muted); font-size: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease-out), opacity .5s; }
.svc:hover p, .svc:focus-within p { max-height: 120px; opacity: 1; }
@media (hover: none) { .svc p { max-height: none; opacity: 1; } }
@media (max-width: 900px) { .services__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; } .svc { scroll-snap-align: start; } .services__head .muted { display: none; } }

/* Process */
.steps { list-style: none; margin: 60px 0 0; padding: 0 0 0 70px; position: relative; display: grid; gap: 70px; max-width: 880px; }
.steps__line { position: absolute; left: 22px; top: 10px; bottom: 10px; width: 1px; background: var(--line-light); }
.steps__line span { position: absolute; inset: 0; background: var(--gold-2); transform-origin: top; transform: scaleY(0); }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 30px; position: relative; }
.step::before { content: ''; position: absolute; left: -54px; top: 16px; width: 13px; height: 13px; border-radius: 50%; background: var(--cream); border: 1px solid var(--gold-2); transition: background .4s; }
.step.is-on::before { background: var(--gold-2); }
.step__no { font-family: var(--f-display); font-size: 58px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold-2); }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: 28px; margin: 4px 0 10px; text-transform: uppercase; }
.step p { margin: 0; color: var(--on-light-muted); font-size: 17px; max-width: 520px; }
@media (max-width: 640px) { .steps { padding-left: 44px; } .steps__line { left: 8px; } .step::before { left: -42px; } .step { grid-template-columns: 1fr; gap: 6px; } .step__no { font-size: 40px; } }

/* Portfolio */
.portfolio__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; }
.portfolio__head .display { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--on-light); }
.chip.is-active { background: var(--on-light); color: var(--cream); border-color: var(--on-light); }
.chip sup { font-size: 10px; margin-left: 4px; opacity: .6; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 18px; grid-auto-flow: dense; }
.tile { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--sand); grid-column: span 4; grid-row: span 3; }
.tile--wide { grid-column: span 8; grid-row: span 3; }
.tile--tall { grid-column: span 4; grid-row: span 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; }
.tile:hover img { transform: scale(1.06); }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(14,12,10,.85)); color: var(--on-dark); transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s; }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; opacity: 1; }
.tile__cap b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 18px; text-transform: uppercase; }
.tile__cap span { font-size: 13px; color: var(--on-dark-muted); letter-spacing: .08em; }
@media (hover: none) { .tile__cap { opacity: 1; transform: none; } }
.portfolio__more { display: flex; justify-content: center; margin-top: 50px; }
.portfolio .btn--ghost:hover { color: var(--on-gold); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .tile, .tile--wide, .tile--tall { grid-column: span 1; grid-row: span 2; } .tile--wide { grid-column: span 2; } }

/* Compare */
.compare { background: var(--ink-2); }
.compare__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.compare__box { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; --pos: 50%; user-select: none; }
.compare__box img { width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before img { filter: grayscale(1) contrast(1.6) brightness(1.25) sepia(.25); }
.compare__before::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(200,161,101,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(200,161,101,.18) 1px, transparent 1px); background-size: 32px 32px; mix-blend-mode: multiply; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--gold); pointer-events: none; }
.compare__handle .i { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; padding: 14px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--gold); color: var(--on-gold); }
.compare__tag { position: absolute; top: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(14,12,10,.6); backdrop-filter: blur(8px); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; pointer-events: none; }
.compare__tag--l { left: 18px; } .compare__tag--r { right: 18px; }
@media (max-width: 900px) { .compare__grid { grid-template-columns: 1fr; } }

/* Works map */
.works__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; margin-top: 30px; }
.works__map { min-height: 520px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); background: var(--ink-2); }
.works__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow: auto; }
.work { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line-dark); cursor: pointer; transition: border-color .3s, background .3s; text-align: left; width: 100%; }
.work:hover, .work.is-active { border-color: var(--gold); background: rgba(200,161,101,.06); }
.work img, .work .ph { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--ink-3); }
.work b { display: block; font-weight: 500; font-size: 16px; }
.work small { color: var(--on-dark-muted); font-size: 13px; letter-spacing: .06em; }
.bar { height: 4px; background: var(--line-dark); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.pin { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); box-shadow: 0 0 0 0 rgba(200,161,101,.6); animation: pulse 2.2s infinite; }
.pin--done { background: var(--on-dark-muted); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,161,101,.55); } 70% { box-shadow: 0 0 0 18px rgba(200,161,101,0); } 100% { box-shadow: 0 0 0 0 rgba(200,161,101,0); } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--ink-2); color: var(--on-dark); border-radius: 12px; }
.leaflet-popup-content { font-family: var(--f-body); margin: 14px 16px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--on-dark); }
.leaflet-container { font-family: var(--f-body); background: #1b1916; }
.tiles-dark { filter: grayscale(1) invert(1) brightness(.78) contrast(1.15) sepia(.18); }
@media (max-width: 900px) { .works__grid { grid-template-columns: 1fr; } .works__map { min-height: 380px; } }

/* Values */
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.value { padding: 34px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-light); transition: transform .5s var(--ease-out), box-shadow .5s; }
.value:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(28,25,23,.35); }
.value .i { width: 34px; height: 34px; color: var(--gold-2); stroke-width: 1.3; }
.value h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; text-transform: uppercase; margin: 22px 0 10px; }
.value p { margin: 0; color: var(--on-light-muted); font-size: 16px; }
@media (max-width: 1000px) { .values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values__grid { grid-template-columns: 1fr; } }

/* Testimonials */
.testi { background: var(--ink); }
.testi__stage { position: relative; max-width: 1000px; margin: 0 auto; text-align: center; }
.testi__quote { width: 64px; fill: var(--gold); margin: 0 auto 30px; }
.testi__slides { position: relative; min-height: 280px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.slide.is-active { position: relative; opacity: 1; visibility: visible; }
.slide p { font-family: var(--f-serif); font-size: clamp(26px, 3.4vw, 46px); line-height: 1.25; margin: 0 0 30px; }
.slide cite { font-style: normal; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--gold); }
.slide cite span { display: block; color: var(--on-dark-muted); margin-top: 6px; letter-spacing: .1em; }
.testi__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.testi__nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: border-color .3s, background .3s; }
.testi__nav button:hover { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
[data-dots] { display: flex; gap: 8px; }
[data-dots] i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-dark); transition: background .3s, width .3s; }
[data-dots] i.is-on { background: var(--gold); width: 24px; border-radius: 4px; }

/* Estimator */
.estimate__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.est-result { margin-top: 40px; padding: 34px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); }
.est-result span { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.est-result strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4vw, 56px); margin: 10px 0 4px; }
.est-result small { display: block; color: var(--on-dark-muted); font-size: 14px; margin-bottom: 26px; }
.est-form { display: grid; gap: 30px; }
.est-form fieldset { border: 0; margin: 0; padding: 0; }
.est-form legend { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-light-muted); margin-bottom: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line-light); background: #fff; transition: all .3s var(--ease-out); cursor: pointer; }
.opts input:checked + span { background: var(--on-light); color: var(--cream); border-color: var(--on-light); }
.opts input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.range { display: grid; gap: 14px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-light-muted); }
.range b { color: var(--on-light); font-weight: 500; letter-spacing: .06em; }
.range input { width: 100%; accent-color: var(--gold-2); height: 30px; }
@media (max-width: 900px) { .estimate__grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--ink); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); }
.contact__list { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 22px; font-size: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list .i { color: var(--gold); margin-top: 4px; }
.contact__list a:hover { color: var(--gold); }
.contact__map-link { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.form-card { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 24px; padding: clamp(24px, 4vw, 48px); position: relative; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--ink); border-radius: 999px; margin-bottom: 30px; }
.tabs button { flex: 1; min-height: 44px; border-radius: 999px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); transition: background .4s var(--ease-out), color .3s; }
.tabs button.is-active { background: var(--gold); color: var(--on-gold); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { position: relative; }
.field--full, .lead-form .btn, .form-note { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); font: inherit; font-size: 17px; padding: 26px 0 10px; border-radius: 0; transition: border-color .3s; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8a165' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.field select option { background: var(--ink-2); }
.field input[type="date"] { color-scheme: dark; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field label { position: absolute; left: 0; top: 26px; color: var(--on-dark-muted); pointer-events: none; transition: transform .35s var(--ease-out), font-size .35s, color .3s; transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.is-static { transform: translateY(-22px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.field .err { display: block; min-height: 18px; color: #f19a8a; font-size: 13px; margin-top: 4px; }
.field.is-invalid input { border-color: #f19a8a; }
.field[hidden] { display: none; }
.form-note { font-size: 13px; color: var(--on-dark-muted); margin: 0; text-align: center; }
.form-success { text-align: center; padding: 40px 10px; }
.tick { width: 84px; margin: 0 auto 20px; fill: none; stroke: var(--gold); stroke-width: 2; }
.tick circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-out) forwards; }
.tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; margin: 0 0 10px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lead-form { grid-template-columns: 1fr; } .tabs button { font-size: 11px; letter-spacing: .04em; } }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; font-family: var(--f-display); font-size: 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--f-body); font-weight: 300; font-size: 30px; color: var(--gold-2); transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--on-light-muted); max-width: 640px; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; gap: 20px; } }

/* Footer */
.footer { background: var(--ink); padding: 100px 0 40px; border-top: 1px solid var(--line-dark); }
.footer__cta { display: flex; flex-direction: column; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(46px, 9vw, 150px); line-height: .95; margin-bottom: 90px; }
.footer__cta span:last-child { display: flex; align-items: center; gap: 24px; }
.footer__cta .i { width: clamp(40px, 6vw, 90px); height: clamp(40px, 6vw, 90px); stroke-width: 1; color: var(--gold); transition: transform .6s var(--ease-out); }
.footer__cta:hover .i { transform: translateX(20px) rotate(-45deg); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.footer h4 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 16px; }
.footer p { margin: 0 0 8px; color: var(--on-dark-muted); }
.footer p a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: all .3s; }
.socials a:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 13px; color: var(--on-dark-muted); }
.footer__admin:hover { color: var(--gold); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Floating */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 400; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(37,211,102,.6); transition: transform .4s var(--ease-out); }
.wa:hover { transform: scale(1.08); }
.wa .i { width: 28px; height: 28px; }
.to-top { position: fixed; right: 30px; bottom: 92px; z-index: 400; width: 44px; height: 44px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--line-dark); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .4s var(--ease-out); }
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 980; background: rgba(8,7,6,.94); display: grid; place-items: center; padding: 60px 90px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 160px); border-radius: 12px; object-fit: contain; }
.lightbox figcaption { margin-top: 18px; text-align: center; color: var(--on-dark-muted); }
.lightbox figcaption b { display: block; color: var(--on-dark); font-family: var(--f-display); font-weight: 400; font-size: 20px; text-transform: uppercase; }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--on-gold); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; } .lightbox__nav--next { right: 20px; top: 50%; }
@media (max-width: 640px) { .lightbox { padding: 70px 12px; } .lightbox__nav { top: auto; bottom: 16px; } }

/* Reduced motion — content stays readable, no scrubbing */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain, .cursor { display: none !important; }
  .expand { height: auto; } .expand__pin { position: relative; height: 80vh; } .expand__frame { clip-path: none; }
  .reveal-img img, .expand__frame img { transform: none; }
  .about__lead .w { opacity: 1; }
}
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* ==========================================================================
   Mobile-first layer (phones & small tablets)
   ========================================================================== */
.mbar, .services__swipe, .works__hint { display: none; }
.menu__cta { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.works__wrap { position: relative; }
@media (max-width: 760px) {
  :root { --sec: 84px; --radius: 14px; }
  body { font-size: 16px; }
  .grain { display: none; }
  .nav { padding: calc(14px + env(safe-area-inset-top)) 18px 14px; }
  .nav.is-scrolled { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 10px; }
  .brand__mark { width: 38px; }
  .brand__text { font-size: 15px; }
  .menu { padding: calc(96px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom)); }
  .menu nav a { font-size: 34px; padding: 6px 0; }
  .menu__cta .btn { flex: 1; }

  /* sticky quick-action bar */
  .mbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 420; display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 4px; padding: 6px; border-radius: 20px; background: rgba(24,21,18,.88); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--line-dark); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); transform: translateY(150%); transition: transform .5s var(--ease-out); }
  .mbar.is-on { transform: none; }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 14px; font-size: 11px; letter-spacing: .06em; color: var(--on-dark); -webkit-tap-highlight-color: transparent; }
  .mbar a:active { background: rgba(255,255,255,.08); }
  .mbar .i { width: 20px; height: 20px; }
  .mbar a.mbar__main { background: var(--gold); color: var(--on-gold); flex-direction: row; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
  .mbar a.mbar__main:active { background: var(--gold-3); }
  .wa, .to-top { display: none; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

  /* hero */
  .hero { min-height: 100svh; padding: 120px 20px calc(48px + env(safe-area-inset-bottom)); }
  .hero__title { font-size: clamp(46px, 14vw, 72px); margin-bottom: 20px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .2em; }
  .hero__sub { font-size: 16px; margin-bottom: 26px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .display { font-size: clamp(34px, 10vw, 52px); margin-bottom: 20px; }
  .eyebrow { font-size: 11px; margin-bottom: 16px; }
  .marquee { padding: 14px 0; }

  /* about */
  .about__right { min-height: 380px; }
  .about__badge { width: 110px; height: 110px; left: 4%; top: 6%; }
  .about__badge svg:first-child { font-size: 14px; }
  .about__badge-mark { width: 44px; }
  .about__lead { font-size: 23px; }
  .stats { gap: 16px; margin-top: 56px; }
  .stat b { font-size: 42px; }
  .stat span { font-size: 11px; }

  /* expanding image: shorter scroll distance */
  .expand { height: 170vh; }
  .expand__pin { height: 100svh; }

  /* services: native swipe carousel */
  .services__pin { padding: 70px 0 40px; min-height: auto; }
  .services__head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 26px; }
  .services__swipe { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 8px; }
  .services__swipe .i { width: 16px; height: 16px; animation: nudge 1.6s var(--ease-out) infinite; }
  .services__track { gap: 14px; padding: 0 20px 16px; scroll-padding: 0 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .services__track::-webkit-scrollbar { display: none; }
  .svc { width: 78vw; aspect-ratio: 4/5; }
  .svc h3 { font-size: 22px; }

  /* process */
  .steps { gap: 44px; margin-top: 36px; }
  .step h3 { font-size: 22px; }
  .step p { font-size: 15.5px; }

  /* portfolio */
  .portfolio__head { margin-bottom: 26px; gap: 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 10px; }
  .tile { border-radius: 12px; }
  .tile__cap { padding: 40px 12px 10px; }
  .tile__cap b { font-size: 14px; }
  .tile__cap span { font-size: 11px; }
  .portfolio__more .btn { width: 100%; }

  /* compare */
  .compare__grid { gap: 26px; }
  .compare__box { aspect-ratio: 4/5; }

  /* map */
  .works__map { min-height: 340px; }
  .works__hint { display: block; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 500; padding: 6px 12px; border-radius: 999px; background: rgba(14,12,10,.8); font-size: 12px; white-space: nowrap; pointer-events: none; }
  .works__list { max-height: none; overflow: visible; }
  .work { grid-template-columns: 64px 1fr; }
  .work img, .work .ph { width: 64px; height: 64px; }

  /* values / testimonials */
  .value { padding: 24px 22px; }
  .testi__slides { min-height: 320px; }
  .slide p { font-size: 24px; }
  .testi__nav button { width: 48px; height: 48px; }

  /* estimator: controls first, result after */
  .estimate__grid > div:first-child { display: contents; }
  .estimate__grid > div:first-child > .eyebrow { order: 0; }
  .estimate__grid > div:first-child > .display { order: 1; margin-bottom: 8px; }
  .estimate__grid > div:first-child > .muted { order: 2; margin: 0; }
  .est-form { order: 3; gap: 22px; }
  .est-result { order: 4; padding: 24px; margin-top: 0; }
  .est-result strong { font-size: 32px; }
  .est-result .btn { width: 100%; }
  .estimate__grid { gap: 20px; }
  .opts { gap: 8px; }
  .opts span { min-height: 46px; padding: 0 16px; }

  /* contact */
  .form-card { padding: 20px 18px; border-radius: 18px; }
  .contact__list { font-size: 16px; }
  .field input, .field select, .field textarea { font-size: 16px; } /* 16px stops iOS zoom-on-focus */

  /* faq & footer */
  .faq summary { font-size: 17px; padding: 20px 40px 20px 0; }
  .footer__cta { margin-bottom: 50px; }

  /* lightbox: full-bleed with swipe */
  .lightbox { padding: 60px 0 90px; }
  .lightbox img { border-radius: 0; max-height: calc(100svh - 220px); }
  .lightbox figcaption { padding: 0 18px; }
}
@keyframes nudge { 50% { transform: translateX(6px); } }
@media (hover: none) { .btn:hover::before { transform: translateY(101%); } .btn:active::before { transform: translateY(0); } .svc:hover img { transform: scale(1.08); } }

/* ==========================================================================
   Navbar alignment — labels never wrap, everything sits on one baseline
   ========================================================================== */
.nav { align-items: center; }
.brand, .brand__text, .nav__links a, .nav__cta { white-space: nowrap; }
.brand { flex: none; line-height: 1; }
.nav__links { gap: clamp(18px, 2.1vw, 34px); align-items: center; }
.nav__links a { display: inline-flex; align-items: center; font-size: 12.5px; letter-spacing: .16em; line-height: 1; padding: 12px 0; }
.nav__links a::after { bottom: 4px; }
.nav__cta { flex: none; }
@media (max-width: 1320px) { .nav { gap: 22px; } .nav__links a { letter-spacing: .12em; } }
@media (max-width: 1220px) { .nav__cta { display: none; } }

/* ==========================================================================
   Theme toggle
   ========================================================================== */
.theme-toggle { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: inherit; transition: border-color .3s, background .3s, transform .5s var(--ease-out); }
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle:active { transform: rotate(40deg); }
.theme-toggle .i { width: 19px; height: 19px; }
.theme-toggle .i-sun, html[data-theme="light"] .theme-toggle .i-moon { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
@media (max-width: 1080px) { .theme-toggle { margin-left: auto; } .nav__burger { margin-left: 4px; } }

/* ==========================================================================
   Light theme — dark sections turn warm ivory, cream sections turn white.
   Anything that sits on a photo keeps light text.
   ========================================================================== */
html[data-theme="light"] {
  color-scheme: light;
  --ink: #f6f1e9;
  --ink-2: #efe8dc;
  --ink-3: #e5dccd;
  --cream: #fffdf9;
  --sand: #efe7db;
  --on-dark: #1c1917;
  --on-dark-muted: #5b534a;
  --line-dark: rgba(28, 25, 23, .14);
  --gold: #b8914f;
}
html[data-theme="light"] .grain { opacity: .03; }
html[data-theme="light"] .display em, html[data-theme="light"] .footer__cta em, html[data-theme="light"] .eyebrow { color: var(--gold-2); }

/* surfaces over photography stay dark-on-light-text in both themes */
.hero, .expand, .svc, .lightbox, .compare__tag, .est-result {
  --on-dark: #efe8dd;
  --on-dark-muted: #c2b8aa;
  --line-dark: rgba(239, 232, 221, .22);
}
.hero, .expand__text, .svc { color: var(--on-dark); }
html[data-theme="light"] .hero .display em, html[data-theme="light"] .hero__title em, html[data-theme="light"] .expand .display em, html[data-theme="light"] .hero .eyebrow, html[data-theme="light"] .expand .eyebrow { color: #d6b173; }
.est-result { background: #16130f; }

/* nav: light text while floating over the hero photo, dark glass-free text once scrolled */
html[data-theme="light"] .nav:not(.is-scrolled):not(.is-menu) { color: #efe8dd; --line-dark: rgba(239, 232, 221, .3); }
html[data-theme="light"] .nav.is-scrolled { background: rgba(255, 253, 249, .86); border-bottom-color: var(--line-dark); }
html[data-theme="light"] .nav.is-menu { color: var(--on-dark); }

/* map tiles: inverted for dark, warm natural for light */
html[data-theme="light"] .tiles-dark { filter: sepia(.25) saturate(.75) brightness(1.02); }
html[data-theme="light"] .leaflet-container { background: #efe8dc; }
html[data-theme="light"] .field input[type="date"] { color-scheme: light; }
html[data-theme="light"] .mbar { background: rgba(255, 253, 249, .92); box-shadow: 0 18px 40px -16px rgba(28, 25, 23, .35); }
html[data-theme="light"] .mbar a:active { background: rgba(28, 25, 23, .06); }
html[data-theme="light"] .to-top { box-shadow: 0 10px 30px -12px rgba(28, 25, 23, .3); }
html[data-theme="light"] .loader__mark { stroke: var(--gold-2); }

html[data-theme="light"] .btn--gold { --fill: #16130f; }
html[data-theme="light"] .btn--gold:hover { color: #efe8dd; }
/* light theme: small gold text needs a deeper step to stay readable on ivory */
html[data-theme="light"] .field input:focus + label, html[data-theme="light"] .field input:not(:placeholder-shown) + label,
html[data-theme="light"] .field textarea:focus + label, html[data-theme="light"] .field textarea:not(:placeholder-shown) + label,
html[data-theme="light"] .field label.is-static, html[data-theme="light"] .contact__map-link, html[data-theme="light"] .contact__list .i,
html[data-theme="light"] .footer h4, html[data-theme="light"] .menu nav a i, html[data-theme="light"] .slide cite,
html[data-theme="light"] .testi__quote, html[data-theme="light"] .eyebrow { color: #8a6a33; fill: #8a6a33; }
html[data-theme="light"] .hero .eyebrow, html[data-theme="light"] .expand .eyebrow { color: #d6b173; }
