:root {
  --bg: #5c3a28;
  --bg-dark: #2a1911;
  --wood: #7a5139;
  --wood-soft: #8d6146;
  --sand: #efe2cd;
  --sand-deep: #d8bea0;
  --text: #fff8ef;
  --muted: rgba(255, 245, 232, 0.78);
  --card: rgba(43, 22, 14, 0.82);
  --border: rgba(245, 223, 195, 0.16);
  --shadow: 0 25px 60px rgba(16, 7, 4, 0.4);
  --header-height: 72px;
  --hero-top-gap: 2.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  background:
    linear-gradient(rgba(40, 23, 14, 0.54), rgba(40, 23, 14, 0.72)),
    url("assets/wood-background.png") center top / cover fixed no-repeat;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: visible;
}

.site-header,
main,
.modal,
.lightbox {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  border-bottom: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.03) 45%, rgba(0, 0, 0, 0.14)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 16%, transparent 82%, rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, rgba(132, 90, 63, 0.14), rgba(61, 36, 24, 0.16)),
    url("assets/wood-background.png") center 24% / cover no-repeat;
  box-shadow: 0 8px 22px rgba(20, 9, 4, 0.22);
}

.header-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.04)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      rgba(0, 0, 0, 0.012) 1px,
      rgba(0, 0, 0, 0.012) 3px
    );
  mix-blend-mode: soft-light;
  opacity: 0.9;
}

.header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 6.35rem;
  height: 6.35rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(255, 212, 130, 0.28))
    drop-shadow(0 6px 12px rgba(34, 18, 8, 0.42))
    drop-shadow(0 1px 0 rgba(255, 240, 225, 0.22));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.9;
  transform: none;
  text-shadow: 0 1px 0 rgba(60, 30, 18, 0.2);
}

.brand-name,
.brand-title,
.site-nav a,
.menu-toggle {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 0.04em;
}

.brand-title {
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 700;
  margin-top: 0.45rem;
}

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

.site-nav a {
  padding: 0.55rem 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(60, 30, 18, 0.2);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  background: rgba(69, 41, 25, 0.88);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

main {
  padding-top: var(--header-height);
}

.hero-section,
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 2.4rem;
  min-height: auto;
  padding-top: calc(3.5rem + var(--hero-top-gap));
  padding-bottom: 3.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sand-deep);
  font-size: 0.9rem;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5.8vw, 5.1rem);
  max-width: 10ch;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy h1 span + span {
  margin-top: 0.08em;
}

.hero-text,
.section-heading p,
.story-card p,
.gallery-card p,
.contact-card p,
.modal-details p {
  font-size: 1.36rem;
  line-height: 1.35;
  color: var(--muted);
}

.hero-text {
  margin-top: 1.55rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d1a25d, #9d6a30);
  color: #fffaf2;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 30px rgba(24, 10, 3, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(24, 10, 3, 0.34);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #c38753, #925833);
  color: #fffdf9;
  box-shadow: 0 12px 30px rgba(24, 10, 3, 0.24);
}

.button-secondary {
  border: 1px solid rgba(255, 240, 221, 0.24);
  background: rgba(255, 255, 255, 0.02);
}

.story-card,
.quote-card,
.gallery-card,
.contact-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-slider {
  position: relative;
  height: 500px;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(28, 15, 9, 0.75);
}

.hero-visual {
  align-self: start;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 450ms ease, transform 450ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-slide-guitar img {
  object-position: 48% 42%;
}

.hero-slide-cat img {
  object-position: 58% 46%;
}

.hero-slide-jewel img {
  object-position: 48% 58%;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(21, 11, 6, 0.92));
}

.hero-slide figcaption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 2.2rem;
  font-size: 1.25rem;
  z-index: 1;
  max-width: 22rem;
}

.slider-dots {
  position: absolute;
  right: 1.2rem;
  bottom: 8.5rem;
  display: flex;
  gap: 0.55rem;
  z-index: 2;
}

.dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.dot.is-active {
  background: var(--sand);
}

.section-heading {
  max-width: 100%;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 0.7rem;
  max-width: none;
  width: 100%;
}

.section-heading h2 span {
  display: block;
}

.section-heading p {
  max-width: none;
  width: 100%;
}

.story-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: stretch;
}

.story-card,
.quote-card,
.gallery-card,
.contact-card {
  border-radius: 0;
}

.story-card {
  padding: 0;
}

.story-card p:first-child,
.modal-details p:first-of-type {
  margin-top: 0;
}

.story-card p {
  max-width: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.story-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  align-self: stretch;
  background: transparent;
}

.quote-card p {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.22rem, 2vw, 1.48rem);
  line-height: 1.35;
  color: var(--sand);
  padding-left: 0;
  text-align: justify;
  margin-top: auto;
}

.story-photo {
  margin: 0;
  align-self: stretch;
  background: transparent;
}

.story-photo img {
  width: 100%;
  max-width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: 24% center;
  border-radius: 1rem;
  box-shadow: none;
}

.gallery-grid {
  display: grid;
  gap: 1.2rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.offer-card img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  box-shadow: none;
}

.offer-thumb-01 {
  object-fit: cover;
  object-position: center top;
  background: rgba(22, 12, 7, 0.2);
}

.offer-thumb-02 {
  object-fit: cover;
  object-position: center 42%;
  background: rgba(22, 12, 7, 0.16);
}

.offer-thumb-03 {
  object-fit: cover;
  object-position: center top;
  background: rgba(22, 12, 7, 0.12);
}

.offer-thumb-04 {
  object-fit: cover;
  object-position: center top;
}

.offer-card img.offer-thumb-05 {
  object-fit: cover;
  object-position: center top;
  background: rgba(22, 12, 7, 0.12);
}

.offer-thumb-06 {
  object-position: center 58%;
}

.offer-card {
  cursor: pointer;
}

.offer-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(22, 12, 7, 0.14);
  box-shadow: var(--shadow);
}

.offer-copy {
  padding-top: 1rem;
}

.service-number {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--sand-deep);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: 0.12em;
  padding-bottom: 0;
}

.offer-card h3,
.gallery-card h3,
.contact-card h3,
#modal-title {
  margin: 0 0 0.6rem;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.6rem;
  color: var(--sand);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.filmstrip {
  position: relative;
  width: 100%;
  border-radius: 0.85rem;
  overflow: hidden;
  background: rgba(22, 12, 7, 0.3);
}

.filmstrip-viewport {
  overflow: hidden;
}

.filmstrip-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.filmstrip-slide {
  flex: 0 0 50%;
  aspect-ratio: 1.55;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 244, 222, 0.2);
}

.filmstrip-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filmstrip-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 244, 222, 0.5);
  border-radius: 50%;
  color: var(--text);
  background: rgba(35, 20, 13, 0.78);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease, opacity 180ms ease;
}

.filmstrip-arrow:hover:not(:disabled),
.filmstrip-arrow:focus-visible:not(:disabled) {
  background: var(--accent);
}

.filmstrip-arrow:disabled {
  cursor: default;
  opacity: 0.28;
}

.filmstrip-arrow-prev {
  left: 1rem;
}

.filmstrip-arrow-next {
  right: 1rem;
}

.scrape-canvas {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.js-scrape-ready .scrape-canvas {
  display: block;
}

.scrape-canvas.is-clearing {
  opacity: 0;
}

.scrape-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 244, 222, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(54, 29, 17, 0.56);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.scrape-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
  .scrape-canvas {
    display: none;
  }
}

.offer-card p,
.gallery-card p,
.contact-card p {
  margin: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.contact-card a {
  color: var(--sand);
}

.contact-heading h2,
.contact-heading p {
  max-width: none;
  width: 100%;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: stretch;
}

.contact-map {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 450px;
  min-height: 450px;
  border: 0;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  background: rgba(22, 12, 7, 0.35);
}

.contact-map-fallback {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-map-fallback a {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.4rem;
}

.contact-card {
  padding: 1.6rem 1.5rem;
  min-height: 0;
}

.contact-card-box {
  background: linear-gradient(180deg, rgba(67, 40, 26, 0.62), rgba(45, 26, 17, 0.5));
  border: 1px solid rgba(239, 226, 205, 0.18);
  border-radius: 1rem;
  box-shadow: 0 18px 38px rgba(18, 8, 4, 0.24);
}

.inquiry-heading h2,
.inquiry-heading p {
  max-width: none;
  width: 100%;
}

.inquiry-form {
  display: grid;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.55rem;
}

.form-field span {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--sand);
}

.required-marker {
  color: #f0b58f;
  font-size: 0.8em;
  font-weight: 700;
  vertical-align: super;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(239, 226, 205, 0.28);
  border-radius: 1rem;
  background: rgba(33, 18, 12, 0.54);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 245, 232, 0.62);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(240, 209, 158, 0.32);
  outline-offset: 1px;
  border-color: rgba(240, 209, 158, 0.6);
}

.form-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.privacy-consent {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
}

.privacy-consent input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--sand-deep);
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-status {
  margin: 0;
  color: var(--sand);
  font-weight: 700;
}

.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;
}

.modal-dialog {
  position: relative;
  width: min(1200px, calc(100vw - 3rem));
  min-width: 0;
  max-width: 1200px;
  margin: calc(var(--header-height) + 1rem) auto 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.7rem;
  background: linear-gradient(180deg, rgba(72, 42, 28, 0.94), rgba(35, 20, 13, 0.94));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  grid-template-areas:
    "feature details"
    "feature actions";
  gap: 1.4rem;
  align-items: start;
}

.contact-card-box p + p {
  margin-top: 0.5rem;
}

.modal-price {
  margin-top: 0.7rem;
  color: var(--sand);
  font-size: 1.2rem;
  font-weight: 700;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: rgba(255, 245, 232, 0.86);
  font-size: 1rem;
}

p {
  text-align: justify;
  text-justify: inter-word;
}

.modal,
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.modal.is-open,
.lightbox.is-open {
  display: block;
}

.modal-backdrop,
.lightbox {
  background: rgba(11, 6, 4, 0.84);
  backdrop-filter: blur(12px);
}

.modal {
  padding: 0;
}

.modal-close,
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 10;
  border: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  touch-action: manipulation;
}

.modal-close,
.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.5rem;
}

.modal-content {
  display: contents;
  min-width: 0;
}

.modal-feature {
  grid-area: feature;
  min-width: 0;
}

.modal-details {
  grid-area: details;
  min-width: 0;
}

#modal-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  max-width: 100%;
  margin-bottom: 0.45rem;
  color: var(--sand-deep);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.modal-category-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-photo-code {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.modal-actions {
  grid-area: actions;
}

.modal-feature img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 1.2rem;
  background: rgba(0, 0, 0, 0.2);
}

.modal-gallery-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  margin-top: 1.5rem;
}

.modal-thumbs {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.35rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) rgba(255, 255, 255, 0.1);
}

.modal-gallery-arrow {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(239, 226, 205, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-gallery-arrow:hover,
.modal-gallery-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--sand);
  outline: none;
}

.modal-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.button.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(239, 226, 205, 0.28);
}

.button.button-secondary:hover,
.button.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.modal-thumb {
  flex: 0 0 5.2rem;
  width: 5.2rem;
  height: 5.2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.modal-thumb.is-active {
  border-color: var(--sand);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  place-items: center;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 2rem;
}

.lightbox-arrow-left {
  left: 2rem;
}

.lightbox-arrow-right {
  right: 2rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(1rem);
  min-width: min(28rem, calc(100vw - 2rem));
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: rgba(34, 18, 11, 0.94);
  border: 1px solid rgba(239, 226, 205, 0.26);
  box-shadow: 0 18px 38px rgba(18, 8, 4, 0.34);
  color: var(--text);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 90;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.thanks-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(28, 15, 9, 0.76), rgba(28, 15, 9, 0.76)),
    url("assets/wood-background.png") center / cover no-repeat fixed;
}

.thanks-main {
  width: min(100%, 780px);
}

.thanks-card {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(72, 42, 28, 0.9), rgba(35, 20, 13, 0.9));
  border: 1px solid rgba(239, 226, 205, 0.18);
  box-shadow: var(--shadow);
}

.thanks-card h1 {
  margin: 0.4rem 0 1rem;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
}

.thanks-card p {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero-section,
  .story-layout,
  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-slider {
    height: 560px;
  }

  .filmstrip-slide {
    aspect-ratio: 1.4;
  }

  .filmstrip-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .modal-dialog {
    width: calc(100vw - 2rem);
    max-height: calc(100dvh - var(--header-height) - 1rem);
    overflow-y: auto;
    margin-top: calc(var(--header-height) + 0.75rem);
    grid-template-columns: 1fr;
    grid-template-areas:
      "feature"
      "details"
      "actions";
  }

  .modal-feature img {
    max-height: 50vh;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .contact-stack {
    grid-template-rows: auto;
  }
}

@media (min-width: 821px) and (max-width: 960px) {
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
  }

  main {
    padding-top: 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .brand-mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-radius: 1rem;
    background: rgba(67, 40, 26, 0.92);
  }

  .site-nav a {
    width: 100%;
    padding: 0.35rem 0;
    border-left: 0;
    border-bottom: 0;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
    --hero-top-gap: 1.25rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
  }

  main {
    padding-top: 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .brand-mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .site-nav a {
    font-size: 1.05rem;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0 0.25rem;
    background: rgba(67, 40, 26, 0.92);
    border-radius: 1rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
  }

  .site-nav a {
    width: 100%;
    padding: 0.35rem 0;
    border-left: 0;
    border-bottom: 0;
  }

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

  .hero-slider {
    height: 500px;
  }

  .slider-dots {
    bottom: 6.6rem;
  }

  .hero-copy,
  .hero-text,
  .section-heading p,
  .story-card p,
  .offer-card p,
  .gallery-card p,
  .contact-card p,
  .modal-details p {
    font-size: 1.22rem;
  }

  .hero-section {
    gap: 1.6rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .offer-grid,
  .gallery-grid {
    gap: 1.6rem;
  }

  .modal.is-open {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-dialog {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: calc(100dvh - var(--header-height));
    width: calc(100vw - 1rem);
    margin-top: var(--header-height);
    margin-bottom: 0;
    padding: 0.85rem 0.85rem 0;
    border-radius: 1.1rem 1.1rem 0 0;
    overflow: hidden;
    grid-template-columns: unset;
    grid-template-areas: unset;
  }

  .modal-content {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
  }

  .modal-feature,
  .modal-details,
  .modal-actions {
    grid-area: unset;
  }

  .modal-details {
    padding-bottom: 0.25rem;
  }

  .modal-thumbs {
    gap: 0.6rem;
    margin: 0.75rem 0 0.25rem;
  }

  .modal-thumb {
    flex-basis: 4.4rem;
    width: 4.4rem;
    height: 4.4rem;
  }

  .modal-actions {
    flex-shrink: 0;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0;
    padding: 0.85rem 0 1rem;
    border-top: 1px solid rgba(239, 226, 205, 0.14);
    background: rgba(35, 20, 13, 0.98);
  }

  .modal-feature img {
    width: 100%;
    max-height: 32vh;
  }

  .button.button-primary,
  .button.button-secondary,
  .hero-cta {
    width: 100%;
  }

  .form-actions {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero-section,
  .content-section,
  .modal {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .content-section[id] {
    scroll-margin-top: calc(var(--header-height) + 1rem);
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .filmstrip-slide {
    flex-basis: 100%;
    aspect-ratio: 0.88;
  }

  .filmstrip-arrow {
    width: 2.7rem;
    height: 2.7rem;
  }

  .offer-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 2.15rem;
  }

  .hero-slider {
    height: 390px;
    border-radius: 1.25rem;
  }

  .hero-section {
    padding-top: calc(1.5rem + var(--hero-top-gap));
  }

  .slider-dots {
    bottom: 4.8rem;
    right: 0.9rem;
  }

  .hero-slide figcaption {
    left: 1rem;
    right: 1rem;
    bottom: 1.4rem;
    font-size: 0.98rem;
    max-width: 15rem;
  }

  .modal-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - var(--header-height));
  }

  .modal-close,
  .lightbox-close {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
  }

  .modal-feature img {
    max-height: 28vh;
    border-radius: 0.9rem;
  }

  .lightbox {
    padding: 3.5rem 0.75rem;
  }

  .lightbox img {
    max-width: calc(100vw - 1.5rem);
    max-height: 76dvh;
  }

  .modal-details p,
  .modal-price {
    font-size: 1.05rem;
  }

  .modal-actions .button {
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
  }

  .modal-thumb {
    width: 3.8rem;
    height: 3.8rem;
  }

  .lightbox-arrow-left {
    left: 0.75rem;
  }

  .lightbox-arrow-right {
    right: 0.75rem;
  }

  .toast {
    bottom: 1rem;
    min-width: calc(100vw - 1rem);
    border-radius: 1rem;
  }
}

@media (max-width: 360px) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 3rem;
    height: 3rem;
  }

  .brand-title {
    font-size: 1rem;
  }
}
