/* A restrained, evening palette and a fixed editorial navigation rail. */
:root {
  --bg: #171816;
  --white: #20221f;
  --ink: #f1f0ea;
  --muted: #adaea5;
  --accent: #d4aa82;
  --line: #3a3b36;
  --tint: #1b1d1a;
  --gutter: clamp(26px, 5vw, 88px);
  --rail: 88px;
}
html { color-scheme: dark; }
body { font-size: 15px; }
h1,h2 { font-weight: 450; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem,3.3vw,3rem); }
.eyebrow { color: var(--accent); }
.skip-link { background: var(--white); }
.button { background: var(--accent); border-color: var(--accent); color: #211c16; border-radius: 2px; }
.button:hover { background: #e6c4a0; border-color: #e6c4a0; }
.button.outline { background: transparent; color: var(--accent); border-color: #a2886e; }
.button.outline:hover { background: #35302a; border-color: var(--accent); }
.text-link:hover { color: #efcaa5; }
.header { background: #171816f5; }
.nav .button { border-color: #80705f; }
.nav .button:hover { color: #171816; }
.desktop-rail { display: none; }
.hero { padding: 0; background: #141512; }
.hero-layout { position: relative; width: 100%; max-width: none; gap: 0; }
.hero-content { position: relative; z-index: 2; }
.hero-title .eyebrow { color: var(--accent); font-size: .83rem; letter-spacing: .04em; }
.hero h1 { font-weight: 480; text-wrap: balance; letter-spacing: -.055em; }
.hero-copy p { color: #deded5; }
.hero-meta { border-color: #ffffff26; color: #b4b5ac; }
.hero-meta strong { color: #f5f2eb; }
.hero-media { background: #1b1c19; touch-action: auto; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; filter: saturate(.88) brightness(.94); }
.zoom-layer { position: absolute; inset: 0; overflow: hidden; transform-origin: center; pointer-events: none; }
.gallery-section { background: var(--tint); }
.gallery-caption { color: var(--muted); }
.experience article img { filter: saturate(.88); }
.calc-block,.services-group,.services-group:first-child,.service-row { border-color: var(--line); }
.fields>label,.fields>.field,form>label { color: #c8c9c0; }
.step { color: var(--accent); }
input,textarea,.counter { border-color: #45473f; border-radius: 2px; }
.counter:focus-within { border-color: var(--accent); }
.counter button:hover:not(:disabled) { background: #383a34; }
.counter button:disabled { color: #777971; }
.promo { background: #302c26; border-color: #78634d; }
.services-group summary:hover { color: var(--accent); }
.summary { border-color: #45473f; border-radius: 2px; }
.summary-line.discount { color: #a7c69b; }
.map { background: #232722; }
.form-msg { background: #27392d; color: #c6e3c5; }
.form-msg.error { background: #482c26; color: #f4c2b2; }
.mobile-total:not([hidden]) { background: #171816fa; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible,summary:focus-visible { outline-color: var(--accent); }
/* The photo viewer occupies the viewport itself, not a framed modal box. */
#lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; background: black; color: #fff; }
#lightbox::backdrop { background: #000; }
.lightbox-panel { display: block; position: relative; width: 100%; height: 100%; isolation: isolate; }
.lightbox-panel::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg,#000d 0%,#0006 21%,transparent 41%),linear-gradient(180deg,#0005 0%,transparent 18%); }
.lightbox-stage { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; overflow: hidden; background: #141512; touch-action: none; }
#largePhoto,.lightbox-stage .photo-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.photo-error { position: absolute; z-index: 2; inset: 40% 15% auto; text-align: center; }
.close-photo { position: absolute; top: max(18px,env(safe-area-inset-top)); right: max(23px,env(safe-area-inset-right)); z-index: 3; color: white; background: #0003; }
.photo-view-controls { position: absolute; z-index: 2; bottom: max(27px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(720px,calc(100% - 40px)); text-align: center; }
.photo-view-controls h2 { font-size: clamp(1.35rem,2.1vw,1.9rem); font-weight: 400; text-shadow: 0 1px 18px #0008; line-height: 1.3; margin-bottom: 7px; }
.photo-view-controls .lightbox-toolbar { justify-content: center; gap: 22px; padding: 0; border: none; }
.photo-view-controls .lightbox-icon { color: #fff; background: transparent; }
.photo-view-controls .lightbox-icon:hover { background: #ffffff17; }
.photo-progress strong { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: .84rem; letter-spacing: .045em; text-shadow: 0 1px 7px #000; }
.photo-ticks { height: 37px; display: flex; align-items: end; justify-content: space-between; gap: 2px; margin: 3px 0 8px; }
.photo-ticks span { width: 1px; height: var(--tick-height,9px); background: #fff; opacity: var(--tick-opacity,.3); transition: height .45s cubic-bezier(.2,.75,.3,1),opacity .3s; }
.lightbox-thumbnails { display: flex; gap: 0; padding: 0; overflow-x: auto; scrollbar-width: none; background: #0003; }
.photo-thumb { flex: 1 0 46px; width: auto; min-width: 46px; height: clamp(46px,7vw,78px); padding: 0; border: none; opacity: .53; }
.photo-thumb:first-child,.photo-thumb:last-child { margin: 0; }
.photo-thumb[aria-current=true] { opacity: 1; border: none; }
.photo-thumb:focus-visible { outline-offset: -3px; }

@media (min-width:961px) {
  html { scroll-padding-top: 26px; }
  body { padding-left: var(--rail); }
  .header { display: none; }
  .desktop-rail {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--rail);
    background: #171816; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    gap: 12px; padding: 30px 0 24px;
  }
  .rail-mark { display: block; width: 43px; height: 43px; color: var(--accent); flex-shrink: 0; }
  .rail-mark svg { width: 100%; height: 100%; }
  .rail-nav { display: flex; flex-direction: column; align-items: center; gap: clamp(9px,2.5vh,25px); min-height: 0; overflow: auto; scrollbar-width: none; width: 100%; padding: 10px 0; }
  .rail-nav a { position: relative; flex-shrink: 0; writing-mode: vertical-rl; transform: rotate(180deg); color: #bdbeb5; padding: 6px 14px; font-size: .83rem; white-space: nowrap; transition: color .2s; }
  .rail-nav a:hover,.rail-nav a[aria-current] { color: var(--accent); }
  .rail-nav a[aria-current]::after { content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
  .rail-book { color: var(--accent); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; flex-shrink: 0; }
  .rail-book:hover,.rail-book[aria-current] { border-color: var(--accent); }
  .rail-book svg { width: 21px; height: 21px; }
  .hero-layout { display: flex; align-items: center; min-height: max(620px,100svh); isolation: isolate; }
  .hero-content { width: min(760px,64%); margin-left: var(--gutter); padding: 48px 0 80px; }
  .hero h1 { font-size: clamp(3.3rem,5.15vw,5.5rem); max-width: none; line-height: 1.03; text-wrap: pretty; }
  .hero-title .eyebrow { margin-bottom: 24px; }
  .hero-copy p { font-size: 1.12rem; max-width: 580px; }
  .hero-meta { margin-top: 36px; max-width: 550px; gap: 20px; }
  .hero-meta span+span::before { margin-right: 20px; }
  .hero-visual { position: absolute; inset: 0; z-index: 0; }
  .hero-media { position: absolute; inset: 0 0 0 20%; height: auto; }
  .hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,#141512 0%,#141512ed 14%,#141512bf 36%,#14151238 61%,#14151200 84%),linear-gradient(0deg,#1415129c 0%,transparent 24%); }
  .hero-image { object-position: 65% center; }
  .summary { top: 26px; }
}
@media (min-width:961px) and (max-height:640px) {
  .desktop-rail { padding: 16px 0; gap: 8px; }
  .rail-nav { gap: 5px; padding: 0; }
  .rail-nav a { padding-block: 3px; font-size: .78rem; }
}
@media (min-width:761px) and (max-width:960px) {
  .hero-layout { width: calc(100% - var(--gutter)*2); gap: 26px; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
  .hero { padding: 42px 0 27px; }
}
@media (max-width:760px) {
  :root { --gutter: 19px; }
  .hero-layout { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-content { padding: 24px var(--gutter) 31px; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: clamp(2.55rem,9.5vw,3.8rem); text-wrap: pretty; }
  .hero-title .eyebrow { margin-bottom: 13px; }
  .hero-media { height: clamp(230px,67vw,390px); }
  .photo-view-controls { width: calc(100% - 24px); bottom: max(17px,env(safe-area-inset-bottom)); }
  .photo-view-controls h2 { font-size: 1.3rem; margin-bottom: 1px; }
  .photo-ticks { height: 28px; margin-bottom: 5px; }
  .close-photo { top: max(11px,env(safe-area-inset-top)); right: max(11px,env(safe-area-inset-right)); }
  .hero-image { object-position: 62% center; }
  .hero-copy p { color: var(--muted); }
  .hero-meta { max-width: none; }
}
@media (max-height:520px) and (orientation:landscape) {
  .photo-view-controls { width: min(540px,calc(100% - 70px)); bottom: 9px; }
  .photo-view-controls h2 { font-size: 1rem; margin: 0; }
  .photo-view-controls .photo-ticks { height: 16px; margin: 0 0 4px; }
  .lightbox-thumbnails { display: flex; }
  .photo-thumb { height: 38px; }
}
@media (max-width:365px) {
  :root { --gutter: 12px; }
  .hero h1 { font-size: 2.35rem; }
}
