*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h, 4.5rem) + 0.5rem);
  scroll-padding-bottom: calc(var(--sticky-cta-h, 4rem) + 0.5rem);
}

:root { --header-h: 4.5rem; }

body { min-width: 0; }

.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(var(--max-w), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.band { padding-block: var(--s-12); }

.wordmark {
  font-family: "Italiana", Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: 0;
}

h1, h2, h3, p { overflow-wrap: break-word; }

.kicker {
  margin: 0 0 var(--s-2);
  color: var(--c-muted);
  font-weight: 600;
  font-size: var(--fs-0);
  letter-spacing: 0;
  text-transform: none;
}

.lede, .note { color: var(--c-muted); }
.lede { margin: var(--s-4) 0 0; max-width: 40rem; }
.note { margin: var(--s-6) 0 0; max-width: 40rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.4rem var(--s-4);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}
.button:hover { background: #734C26; }
.button:visited { color: var(--c-accent-ink); }
.button.secondary {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-accent);
}
.button.secondary:hover { background: var(--c-tint); color: var(--c-ink); }
.hero .button.secondary { background: var(--c-bg); }
.button.secondary:visited { color: var(--c-ink); }

.icon-button, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-ink);
}
.icon-button svg, .menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  background: transparent;
  transition: background-color var(--t-base) var(--ease);
}
.site-header.is-scrolled { background: var(--c-surface); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  min-height: 4rem;
  padding: var(--s-2) var(--gutter);
}
.wordmark { margin-inline-end: auto; }
.desktop-nav { display: none; }
.header-end { display: flex; align-items: center; gap: var(--s-2); }
.header-cta.button { display: none; }

.lang-switch { display: flex; align-items: center; gap: 0.15rem; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.35rem;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch a[aria-current="true"] {
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.desktop-nav a, .drawer-nav a {
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(22rem, 100%);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: var(--s-4);
  border: 0;
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--shadow-1);
  overflow: auto;
  overscroll-behavior: contain;
}
.drawer::backdrop, .lightbox::backdrop { background: rgb(42 22 16 / .55); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.drawer .lang-switch { margin-top: var(--s-4); }
.drawer-nav { display: grid; margin-top: var(--s-4); }
.drawer-nav a { padding-block: var(--s-2); }
.drawer .button { width: 100%; margin-top: var(--s-6); }

.hero {
  --content-inset: max(var(--gutter), calc((100% - var(--max-w)) / 2));
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(72vh, 125vw);
  isolation: isolate;
}
.hero-figure { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero-figure picture, .hero-figure img { width: 100%; height: 100%; max-width: none; }
.hero-figure img { object-fit: cover; object-position: center 72%; }

.shelf-tick {
  position: absolute;
  z-index: 2;
  left: calc(var(--content-inset) + 16px);
  top: max(12%, calc(var(--header-h, 4.5rem) + 8px));
  bottom: max(12%, calc(var(--sticky-cta-h, 4rem) + 8px));
  width: 2px;
  background: var(--c-accent);
  transform-origin: top center;
  animation: shelf-draw 320ms var(--ease) both;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(26rem, 1fr);
  flex: 1;
  min-height: inherit;
  padding-top: max(12%, calc(var(--header-h, 4.5rem) + 8px));
  padding-bottom: calc(var(--sticky-cta-h, 4rem) + var(--s-4));
  padding-inline-start: calc(var(--content-inset) + 16px + 2px + 14px);
  padding-inline-end: var(--content-inset);
}
.hero-copy-block { max-width: 36rem; }
#hero-h { animation: hero-headline 200ms var(--ease) 320ms both; }
.hero-copy .subline { margin: var(--s-4) 0 0; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}
.fact-chips li {
  margin: 0;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: var(--c-tint);
  color: var(--c-ink);
}

@keyframes shelf-draw {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes hero-headline {
  from { opacity: 0; }
  to { opacity: 1; }
}

#about-h, #services-h, #gallery-h, #contact-h {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
}
#about-h::before, #services-h::before, #gallery-h::before, #contact-h::before {
  content: "";
  width: 18px;
  height: 2px;
  margin-top: calc((1em * var(--lh-heading) - 2px) / 2);
  background: var(--c-accent);
}

.about-grid, .contact-grid { display: grid; gap: var(--s-8); }
.about-copy p { margin: var(--s-4) 0 0; }
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-6);
  margin: 0;
}
.highlights dt { color: var(--c-muted); font-size: var(--fs-0); font-weight: 600; }
.highlights dd { margin: var(--s-1) 0 0; font-weight: 600; }
.about-figure { margin: 0; }
.about-figure img { width: 100%; height: auto; border-radius: var(--r-lg); }

.service-list {
  display: grid;
  gap: var(--s-6);
  margin: var(--s-8) 0 0;
  padding: 0;
  list-style: none;
}
.service-list > li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: var(--s-3);
  align-items: start;
}
.service-list svg {
  width: 24px;
  height: 24px;
  margin-top: 0.15rem;
  color: var(--c-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-list svg [fill="currentColor"] { fill: currentColor; stroke: none; }
.service-list h3 { margin: 0; }
.service-list p { margin: var(--s-2) 0 0; color: var(--c-muted); }

.gallery-intro { margin-top: var(--s-4); max-width: 42rem; color: var(--c-muted); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-8) 0 0;
  padding: 0;
  list-style: none;
}
.gallery-grid:not([data-masonry="true"]) > li { aspect-ratio: var(--tile-ratio); }
.gallery-grid[data-masonry="true"] { grid-auto-rows: 1px; }
.tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: start;
}
.tile picture { display: block; }
.tile img { width: 100%; height: auto; }
.gallery-grid:not([data-masonry="true"]) .tile img { height: 100%; object-fit: cover; }
.tile-badge {
  position: absolute;
  inset-inline-start: var(--s-2);
  bottom: var(--s-2);
  padding: 2px var(--s-2);
  border-radius: var(--r-sm);
  background: rgb(42 22 16 / .55);
  color: var(--c-accent-ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.contact-list { display: grid; gap: var(--s-4); margin: var(--s-6) 0 0; }
.contact-list > div { margin: 0; }
.contact-list dt { color: var(--c-muted); font-size: var(--fs-0); font-weight: 600; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-ink);
  font-weight: 600;
}
.hours {
  width: 100%;
  max-width: 28rem;
  margin-top: var(--s-6);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--c-tint);
  border-radius: var(--r-md);
  overflow: hidden;
}
.hours caption {
  caption-side: top;
  margin-bottom: var(--s-3);
  font-weight: 600;
  text-align: start;
}
.hours th, .hours td {
  padding: var(--s-3) var(--s-4);
  font-weight: 600;
  text-align: start;
  vertical-align: top;
}
.hours td { font-weight: 500; }

.map-card {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--c-tint);
}
.map-pin {
  width: 28px;
  height: 28px;
  color: var(--c-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}
.map-card p { margin: 0; font-weight: 600; }
.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
  list-style: none;
}
.map-links a, .contact-list a { color: var(--c-ink); }
.map-links a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.site-footer {
  padding: var(--s-12) 0 calc(var(--sticky-cta-h, 4rem) + var(--s-8));
}
.footer-grid { display: grid; gap: var(--s-3); justify-items: start; }
.footer-grid p { margin: 0; }
.socials { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); margin: 0; padding: 0; list-style: none; }
.socials a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.prototype-notice { max-width: 42rem; color: var(--c-muted); font-size: var(--fs-0); }
.offer-link[hidden] { display: none; }
.offer-link:not([hidden]) { margin-top: var(--s-2); }

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: var(--c-surface);
}
.sticky-cta .button { width: min(100%, 28rem); }
html:has(dialog[open]) .sticky-cta { visibility: hidden; }

picture.image-unavailable {
  display: grid;
  place-items: center;
  min-height: 8rem;
  background: var(--c-tint);
}
picture.image-unavailable img { display: none; }
picture.image-unavailable::after {
  content: attr(data-fallback-label);
  padding: var(--s-4);
  color: var(--c-muted);
  text-align: center;
}

.lightbox {
  width: min(64rem, calc(100% - 2rem));
  max-width: calc(100% - 1.5rem);
  padding: 0;
  border: 0;
  background: transparent;
  overscroll-behavior: contain;
}
.lightbox-panel {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--shadow-1);
}
.viewer-toolbar { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.viewer-toolbar .button { min-height: 44px; }
.viewer-image { display: grid; place-items: center; min-height: 12rem; }
.viewer-image img { width: auto; max-width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
#viewer-caption { margin: 0; }
.viewer-count { margin: 0; color: var(--c-muted); font-variant-numeric: tabular-nums; }

@media (max-width: 380px) {
  .hero-actions .button { flex: 1 1 12rem; }
}

@media (min-width: 769px) {
  .hero { min-height: max(72vh, 56.25vw); }
  .hero-copy { grid-template-rows: auto minmax(8rem, 1fr); padding-bottom: var(--s-8); }
  .hero-copy-block, .hero-copy .subline { max-width: 32rem; }
}

@media (min-width: 1024px) {
  :root { --header-h: 64px; --sticky-cta-h: 0px; }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-4);
    min-height: 64px;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
    flex-wrap: nowrap;
  }
  .wordmark { margin-inline-end: 0; }
  .desktop-nav { display: flex; justify-content: center; gap: var(--s-6); }
  .menu-toggle { display: none; }
  .header-cta.button { display: inline-flex; white-space: nowrap; }
  .shelf-tick { bottom: max(12%, 8px); }
  .about-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
  .about-copy { grid-column: 1; grid-row: 1; }
  .about-figure { grid-column: 2; grid-row: 1; }
  .highlights { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-list > li { grid-template-columns: 1fr; row-gap: var(--s-3); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: var(--s-12); }
}

@media (prefers-reduced-motion: reduce) {
  .shelf-tick, #hero-h { animation: none; }
  #hero-h { opacity: 1; }
  .shelf-tick { transform: none; }
  .site-header, .button { transition: none; }
}
