*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { padding-bottom: var(--sticky-cta-h); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap { width: min(100%, var(--max-w)); margin-inline: auto; padding-inline: var(--gutter); }
main a, main button, footer a, footer button, h2, #main {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  scroll-margin-bottom: calc(var(--sticky-cta-h) + 0.75rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand menu" "lang lang";
  align-items: center;
  gap: 0.15rem 0.75rem;
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding: 0.4rem var(--gutter);
}
.wordmark {
  grid-area: brand;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--c-ink);
}
.header-lang { grid-area: lang; }
.menu-toggle { grid-area: menu; }
.nav-desktop { display: none; }
.nav-desktop a, .drawer-nav a {
  color: var(--c-ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.15rem;
}
.lang { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.lang a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.15rem 4px;
  color: var(--c-ink);
  text-decoration: none;
}
.lang a[aria-current="true"] {
  background-image: repeating-linear-gradient(90deg, var(--c-accent) 0 6px, transparent 6px 14px);
  background-size: auto 6px;
  background-repeat: repeat-x;
  background-position: left bottom;
}
.site-header .header-cta { display: none; }
.menu-toggle, .icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-ink);
}
.icon-button svg, .menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.55rem 1rem;
  border-radius: 0;
  font: 600 var(--fs-0) / 1.25 var(--font-body);
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.button-primary { background: var(--c-accent); color: var(--c-accent-ink); border: 1.5px solid var(--c-accent); }
.button-primary:hover { background: #C9A200; border-color: #C9A200; }
.button-secondary { background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-ink); }
.button-secondary:hover { background: var(--c-tint); }
.hero-actions, .map-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-layout {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
  align-items: start;
  padding-top: var(--s-4);
}
.hero-figure, .hero-copy { grid-column: 2; min-width: 0; }
.hero-tape { grid-column: 1 / -1; grid-row: 2; margin-top: var(--s-3); margin-bottom: var(--s-6); }
.hero-copy { grid-row: 3; }
.hero-figure {
  grid-row: 1;
  width: min(100%, 28rem);
  margin-inline: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.map-wash { position: relative; background: var(--c-surface); }
.map-wash picture { display: block; aspect-ratio: 4 / 5; background: var(--c-surface); }
.map-wash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) saturate(0.55);
}
.map-pin {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 48%;
  width: 2rem;
  height: 3rem;
  transform: translate(-50%, -100%);
  color: var(--c-ink);
}
.sample-badge {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 0.2rem 0.4rem;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font: 500 0.6875rem / 1.35 var(--font-body);
}
.map-caption, .map-card p {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--c-surface);
  color: var(--c-ink);
}
.kicker { margin: 0 0 var(--s-2); color: var(--c-muted); font-weight: 600; }
.hero-copy h1 { margin-bottom: var(--s-3); }
.hero-copy .subline { margin: 0 0 var(--s-4); max-width: 42rem; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.fact-chips li {
  background: var(--c-tint);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  padding: 0.35rem 0.6rem;
}

.survey-tape {
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--c-accent) 0 6px, transparent 6px 14px);
}
.section-tape { margin-block: var(--s-16); }
.section h2 { margin-bottom: var(--s-4); }
.prose p, .section-intro, .service-note, .hours-note { margin: 0 0 var(--s-3); max-width: 68ch; }
.muted { color: var(--c-muted); }

.about-photo { margin: var(--s-4) 0 0; background: var(--c-surface); }
.about-photo img { width: 100%; height: auto; object-fit: contain; background: var(--c-surface); }
.highlights { display: grid; gap: var(--s-4); margin: var(--s-6) 0 0; }
.highlights div { min-width: 0; }
.highlights dt { color: var(--c-muted); font-size: var(--fs-0); }
.highlights dd { margin: 0.15rem 0 0; font-family: var(--font-display); font-size: var(--fs-2); }

.service-list { list-style: none; margin: 0; padding: 0; max-width: 40rem; display: grid; gap: var(--s-4); }
.service-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.service-list svg { width: 24px; height: 24px; margin-top: 0.15rem; flex: none; }
.service-list h3 { font-size: calc(var(--fs-2) * var(--scale-heading)); }
.service-list p { margin: 0.2rem 0 0; }

.gallery-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-items: start; }
.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--c-surface);
  color: inherit;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery-tile[data-ratio="3/4"] { aspect-ratio: 3 / 4; }
.gallery-tile[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.gallery-tile picture { display: block; height: 100%; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }

.map-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1rem;
}
.map-plate {
  min-height: 10rem;
  display: grid;
  place-items: center;
  background: var(--c-tint);
  color: var(--c-ink);
}
.map-plate svg { width: 2.5rem; height: 3.5rem; }
.map-card .map-actions, .map-card .maps-link { margin-inline: 1rem; }
.maps-link { min-height: 44px; display: inline-flex; align-items: center; }
.contact-rows { display: grid; gap: var(--s-4); margin: 0; }
.contact-rows div { display: grid; gap: 0.15rem; min-width: 0; }
.contact-rows dt { color: var(--c-muted); font-size: var(--fs-0); }
.contact-rows dd { margin: 0; }
.contact-rows a { min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }

.site-footer { padding: var(--s-6) 0 var(--s-8); }
.site-footer p { margin: 0 0 var(--s-3); max-width: 68ch; }
.prototype-notice { color: var(--c-muted); font-size: var(--fs-0); }
.back-top { min-height: 44px; display: inline-flex; align-items: center; }

.sticky-cta {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  padding: 0.5rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.sticky-cta a { flex: 1 1 auto; }

dialog {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
  overscroll-behavior: contain;
}
dialog::backdrop { background: rgb(44 29 18 / .46); }
#menu-drawer {
  margin: 0 0 0 auto;
  width: min(22rem, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: var(--s-4);
}
#menu-drawer[open] {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.drawer-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.drawer-nav { display: grid; align-content: start; }
.drawer-nav a { justify-content: flex-start; padding-inline: 0; }
#lightbox {
  width: min(64rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: var(--s-3);
}
.viewer-toolbar, .viewer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.viewer-count { margin: 0; font-variant-numeric: tabular-nums; min-width: 3.5rem; }
.viewer-image { position: relative; background: var(--c-tint); min-height: 12rem; margin-top: var(--s-3); }
.viewer-image img { width: 100%; height: min(54dvh, 620px); object-fit: contain; background: var(--c-tint); }
#viewer-caption { margin: var(--s-3) 0 0; max-width: 68ch; }
picture.image-unavailable { position: relative; }
picture.image-unavailable img { opacity: 0; }
picture.image-unavailable::after {
  content: attr(data-fallback-label);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: start;
  justify-items: start;
  padding: 0.75rem;
  text-align: start;
  color: var(--c-ink);
  background: rgb(247 241 230 / .94);
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .header-inner {
    min-height: 64px;
    display: flex;
    flex-wrap: wrap;
    grid-template-areas: none;
  }
  .wordmark, .header-lang, .menu-toggle { grid-area: auto; }
  .nav-desktop { display: flex; gap: 1rem; margin-inline: auto; }
  .site-header .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .sticky-cta { display: none; }
  .hero-layout {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    grid-template-columns: var(--gutter) minmax(0, 1.05fr) minmax(22rem, 0.95fr) var(--gutter);
    column-gap: var(--s-6);
    align-items: center;
  }
  .hero-figure { grid-column: 2; grid-row: 1; width: 100%; margin-inline: 0; }
  .hero-copy { grid-column: 3; grid-row: 1; }
  .hero-tape { grid-column: 1 / -1; grid-row: 2; width: auto; margin-inline: 0; margin-block: var(--s-16); }
  .after-hero { display: none; }
  .map-wash picture { aspect-ratio: 16 / 9; }
  .map-wash img { object-fit: contain; }
  .about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
  .about-photo { margin-top: 0; }
  .highlights { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-list li { grid-template-columns: 28px minmax(0, 1fr); }
  .service-list svg { width: 28px; height: 28px; }
  .gallery-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-figure { animation: map-rise 480ms var(--ease) both; }
  .hero-tape { animation: tape-draw 480ms var(--ease) both; transform-origin: left center; }
}
@keyframes map-rise {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}
@keyframes tape-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-figure, .hero-tape { animation: none; }
}
