:root {
  --bg: #fff;
  --bg-2: #f2f2f2;
  --ink: #1c1915;
  --muted: #5c564e;
  --line: rgba(28, 25, 21, 0.14);
  --accent: #7d342c;
  --header: rgba(255, 255, 255, 0.94);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(28, 25, 21, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.6rem;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}

.skip:focus { top: 0.6rem; }

.sr-only {
  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(1180px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--accent);
}

.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
}

.brand span {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle > span:first-child,
.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle > span:first-child::before { top: -5px; }
.nav-toggle > span:first-child::after { top: 5px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover { color: var(--accent); }

.site-nav a.btn-fill,
.site-nav a.btn-fill:hover { color: var(--bg); }

.site-nav a.btn:hover { color: var(--bg); }

.site-nav a.btn-fill:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn:hover { background: var(--ink); color: var(--bg); }

.btn-fill {
  background: var(--ink);
  color: var(--bg);
}

.btn-fill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.hero {
  max-width: 46rem;
  padding: clamp(2.4rem, 7vw, 5.5rem) 0 clamp(1.4rem, 3vw, 2.4rem);
}

.kicker {
  margin: 0 0 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 7.4vw, 6.4rem);
}

.role {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--muted);
}

.lede {
  max-width: 38rem;
  margin: 1.1rem 0 0;
  font-size: 1.12rem;
  color: #3c3731;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.jumps a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.jumps a:hover { color: var(--ink); border-color: var(--ink); }

.section {
  scroll-margin-top: 5.6rem;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0 clamp(2.8rem, 6vw, 4.5rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.15rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

#count {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter {
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.filter:hover { border-color: var(--ink); }

.filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.masonry {
  columns: 1;
  column-gap: 0.75rem;
}

.shot {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 0.75rem;
}

.shot.is-hidden,
#grid:not(.is-ready) .shot:not([data-cat="tableaux"]) {
  display: none !important;
}

.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-2);
  cursor: zoom-in;
  overflow: hidden;
}

.shot img {
  width: 100%;
  display: block;
  vertical-align: middle;
  transition: transform 0.6s ease;
}

.shot button:hover img { transform: scale(1.035); }

#grid.is-anim .shot:not(.is-hidden) {
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.infos {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.prose p { margin: 0 0 1rem; }

.prose p:last-child { margin-bottom: 0; }

.services {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.2rem;
}

.services li {
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.contacts a,
.contacts .phone {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 5.2rem;
  padding: 0.9rem 0.95rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contacts .phone img {
  width: min(100%, 210px);
  height: auto;
  margin-top: 0.45rem;
}

.contacts a:hover { border-color: var(--ink); transform: translateY(-2px); }

.contacts small {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--muted);
}

.contacts strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.articles {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.articles li { margin: 0.35rem 0; }

.articles a { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p { margin: 0; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
}

.site-footer a { color: inherit; }

dialog {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #100e0c;
}

dialog::backdrop { background: #100e0c; }

dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb {
  width: min(1100px, calc(100vw - 5.5rem));
}

.lb figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lb img {
  max-width: 100%;
  max-height: min(78vh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.28s ease;
}

.lb figcaption {
  margin: 0;
  color: #f3efe7;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  border: 0;
  background: transparent;
  color: #f3efe7;
  cursor: pointer;
  font-family: var(--serif);
  line-height: 1;
}

.lb-close {
  top: 0.6rem;
  right: 0.7rem;
  font-size: 2.4rem;
  width: 2.6rem;
  height: 2.6rem;
}

.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.4rem;
  width: 2.8rem;
  padding: 0;
}

.lb-prev { left: 0.4rem; }
.lb-next { right: 0.4rem; }

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { color: #fff; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .masonry { columns: 2; }
}

@media (min-width: 1020px) {
  .masonry { columns: 3; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-header { position: sticky; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.4rem 1.1rem 1.1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a { padding: 0.55rem 0; }

  .site-nav .btn { width: 100%; margin-top: 0.2rem; }

  .infos { grid-template-columns: 1fr; }

  .contacts { grid-template-columns: 1fr; }

  .lb { width: calc(100% - 4.2rem); }

  .services { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .filter, .shot img, .contacts a { transition: none; }
  #grid.is-anim .shot:not(.is-hidden) { animation: none; }
}
