/* pages.css: page compositions. */

/* ================= HOME: hero ================= */
.hero { position: relative; display: grid; align-items: center; min-height: min(calc(100svh - 108px), 860px); padding-block: clamp(1.5rem, 4vw, 3rem); overflow: clip; }
.hero__panel { display: none; }
.hero__grid { position: relative; display: grid; gap: 2rem; align-items: center; }
.hero__copy { display: grid; gap: 1.4rem; justify-items: start; }
.hero__title { line-height: 1.1; }
.hero__sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .4rem; }
.hero__frame { order: -1; width: 100%; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) {
  .hero__panel { display: block; position: absolute; inset: 0 0 0 auto; width: 42%; background: var(--cream); }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .hero__frame { order: 0; width: auto; max-width: 100%; justify-self: center; aspect-ratio: 4 / 5; height: clamp(420px, calc(100svh - 108px - 5rem), 760px); }
}

/* ================= HOME: category bento ================= */
.bento-head { margin-bottom: 2.5rem; }
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 1rem; }
.bento__cell { position: relative; display: block; overflow: hidden; border-radius: var(--radius-card); background: var(--cream); text-decoration: none; }
.bento__cell:first-child { grid-column: 1 / -1; grid-row: span 2; }
.bento__cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.bento__cell:hover img, .bento__cell:focus-visible img { transform: scale(1.05); }
.bento__plate { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: var(--radius-button); background: var(--white); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; transition: background-color .45s var(--ease-out), color .45s var(--ease-out); }
.bento__plate i { font-size: 1.2em; transition: transform .45s var(--ease-out); }
.bento__cell:hover .bento__plate, .bento__cell:focus-visible .bento__plate { background: var(--red); color: var(--white); }
.bento__cell:hover .bento__plate i { transform: translate(2px, -2px); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(200px, 20vw, 280px); }
  .bento__cell:first-child { grid-column: 1 / 8; grid-row: 1 / 3; }
  .bento__cell:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
  .bento__cell:nth-child(3) { grid-column: 8 / 13; grid-row: 2; }
  .bento__cell:nth-child(4) { grid-column: 1 / 5; grid-row: 3; }
  .bento__cell:nth-child(5) { grid-column: 5 / 9; grid-row: 3; }
  .bento__cell:nth-child(6) { grid-column: 9 / 13; grid-row: 3; }
}

/* ================= HOME: pinned story ================= */
.story { background: var(--cream); padding-block: var(--section-y); }
.story__head { margin-bottom: 2.5rem; }
.story__stage { display: grid; gap: 3rem; }
.story__step { display: grid; gap: 1.5rem; align-items: center; }
.story__frame { aspect-ratio: 4 / 3; }
.story__text { display: grid; gap: .9rem; justify-items: start; }
.story__text p { color: var(--muted); max-width: 40ch; }
@media (min-width: 768px) {
  .story__step { grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
  .story__frame { max-height: 60svh; }
}
.story.is-pinned { display: grid; align-content: center; gap: 2rem; padding-block: calc(var(--nav-h) + 1rem) 1rem; }
.story.is-pinned .story__head { margin-bottom: 0; }
.story.is-pinned .story__stage { gap: 0; }

/* ================= HOME: horizontal pan ================= */
.hpan { overflow: visible; scroll-snap-type: none; padding-block: var(--section-y); }
.hpan__head { margin-bottom: 2.25rem; display: grid; gap: .75rem; }
.hpan__lede { color: var(--muted); }
.hpan [data-hpan-track] { width: auto; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-bottom: 1rem; }
.hpan [data-hpan-track]::-webkit-scrollbar { display: none; }
.hpan__item { width: min(72vw, 300px); }
.hpan__end { width: min(72vw, 300px); background: var(--cream); border-radius: var(--radius-card); padding: 2rem; display: grid; align-content: center; justify-items: start; gap: 1.25rem; }
@media (min-width: 768px) {
  .hpan__item, .hpan__end { width: clamp(260px, 24vw, 340px); }
}
.hpan.is-pinned { flex-direction: column; justify-content: center; align-items: stretch; gap: 2rem; padding-block: calc(var(--nav-h) + .5rem) 1rem; }
.hpan.is-pinned .hpan__head { margin-bottom: 0; }
.hpan.is-pinned [data-hpan-track] { width: max-content; max-width: none; overflow: visible; padding-bottom: 0; }
@media (min-width: 768px) and (max-height: 800px) {
  .hpan.is-pinned .pcard__frame { aspect-ratio: 1 / 1; }
}

/* ================= HOME: statement band ================= */
.statement .container { max-width: 900px; display: grid; gap: 1.5rem; text-align: center; justify-items: center; }
.statement p { color: var(--cream); font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 56ch; }
.facts { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; width: 100%; }
.facts li { max-width: none; padding: 1.25rem 1rem; border-top: 1px solid rgb(242 183 5 / 0.3); color: var(--cream); font-weight: 500; }
.facts li:first-child { border-top: 0; }
@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { border-top: 0; border-left: 1px solid rgb(242 183 5 / 0.3); padding: .5rem 1.5rem; }
  .facts li:first-child { border-left: 0; }
}

/* ================= Masonry (home teaser and gallery) ================= */
.masonry { list-style: none; padding: 0; columns: 2; column-gap: 1rem; }
.masonry > li { max-width: none; break-inside: avoid; margin-bottom: 1rem; }
.masonry .frame { display: block; width: 100%; }
.masonry img { transition: transform .8s var(--ease-out); }
.masonry li:hover img { transform: scale(1.03); }
.teaser__head { margin-bottom: 2.5rem; }
.teaser__cta { margin-top: 2rem; }
@media (min-width: 1024px) {
  .teaser .masonry { columns: 3; }
  .teaser .masonry > li:nth-child(5) { padding-top: 4rem; }
}

/* ================= HOME: visit split ================= */
.visit__grid { display: grid; gap: 2.5rem; align-items: center; }
.visit__copy { display: grid; gap: 1rem; justify-items: start; }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1rem; }
.map { aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map--square { aspect-ratio: 1 / 1; }
@media (min-width: 1024px) { .visit__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }

/* ================= Page heads ================= */
.page-head { padding-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: 1.1rem; }
.page-head p { color: var(--muted); font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 56ch; }

/* ================= FURNITURE index ================= */
.rail { list-style: none; padding: 0; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 2.5rem; padding-bottom: .5rem; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { max-width: none; flex: 0 0 38%; scroll-snap-align: start; }
.rail__item { display: grid; gap: .6rem; text-decoration: none; }
.rail__item .frame { aspect-ratio: 1 / 1; }
.rail__item img { transition: transform .8s var(--ease-out); }
.rail__item:hover img { transform: scale(1.05); }
.rail__name { font-family: var(--font-display); font-weight: 600; transition: color .3s var(--ease-out); }
.rail__item:hover .rail__name { color: var(--red); }
@media (min-width: 640px) { .rail > li { flex-basis: 26%; } }
@media (min-width: 1024px) { .rail { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; } }
.catalog { padding-block: 2.5rem var(--section-y); }
.catalog .tabs { margin-bottom: 2.5rem; }

/* ================= CATEGORY page ================= */
.banner { position: relative; }
.banner__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__wrap { position: relative; margin-top: -3rem; }
.banner__plate { background: rgb(92 22 38 / 0.82); color: var(--cream); border-radius: var(--radius-card); padding: clamp(1.25rem, 2.5vw, 2rem); max-width: 560px; display: grid; gap: .8rem; }
.banner__plate h1 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
.banner__plate p { color: var(--cream); }
@media (min-width: 768px) {
  .banner__media { aspect-ratio: 21 / 9; }
  .banner__wrap { position: absolute; inset: auto 0 clamp(1rem, 3vw, 2.5rem) 0; margin-top: 0; }
}
.cat-count { padding-top: 2.5rem; color: var(--muted); font-weight: 500; }
.cat-grid { padding-block: 1.25rem var(--section-y); }
.guide { padding-bottom: var(--section-y); display: grid; gap: 1.75rem; }
.more { padding-bottom: var(--section-y); display: grid; gap: 1.75rem; }
.more__list { list-style: none; padding: 0; display: grid; gap: 0 2.5rem; }
.more__list > li { max-width: none; }
.more__item { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); text-decoration: none; transition: color .3s var(--ease-out); }
.more__item .frame { width: 64px; height: 64px; flex: none; border-radius: 12px; }
.more__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; flex: 1; }
.more__item i { color: var(--red); font-size: 1.3rem; transition: transform .4s var(--ease-out); }
.more__item:hover .more__name { color: var(--red); }
.more__item:hover i { transform: translate(2px, -2px); }
@media (min-width: 768px) { .more__list { grid-template-columns: 1fr 1fr; } }
.strip-wrap { padding-bottom: var(--section-y); }

/* ================= PRODUCT page ================= */
.product { padding-top: 1.5rem; padding-bottom: var(--section-y); }
.product__grid { display: grid; gap: 2rem; margin-top: 1.25rem; }
.product__gallery { display: grid; gap: .9rem; align-content: start; }
.product__main { aspect-ratio: 4 / 5; }
.product__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; margin: -4px; }
.product__thumbs::-webkit-scrollbar { display: none; }
.product__thumbs button { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; scroll-snap-align: start; border: 2px solid transparent; padding: 0; background: var(--cream); transition: border-color .3s var(--ease-out), opacity .3s; opacity: .75; }
.product__thumbs button[aria-pressed="true"] { border-color: var(--red); opacity: 1; }
.product__thumbs button:hover { opacity: 1; }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { display: grid; gap: 1rem; align-content: start; }
.product__cat { font-size: .9rem; color: var(--muted); }
.product__cat a { text-decoration: none; font-weight: 600; }
.product__cat a:hover { color: var(--red); text-decoration: underline; }
.product__title { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.025em; line-height: 1.05; font-weight: 700; }
.product__summary { color: var(--muted); }
.product__price { display: flex; align-items: center; gap: .5rem; padding-left: .9rem; border-left: 3px solid var(--gold); color: var(--gold-text); font-weight: 600; font-size: 1.1rem; }
.product__price i { color: var(--gold); font-size: 1.3rem; }
.product__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.highlights { list-style: none; padding: 0; display: grid; gap: .55rem; margin-top: .4rem; }
.highlights li { position: relative; padding-left: 1.4rem; max-width: none; }
.highlights li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.specs { display: grid; gap: .6rem; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 7rem 1fr; gap: .75rem; }
.specs dt { font-weight: 600; color: var(--muted); font-size: .92rem; }
.specs dd { margin: 0; }
@media (min-width: 1024px) {
  .product__grid { grid-template-columns: 7fr 5fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .product__info { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
  .product__thumbs { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
  .product__thumbs button { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}
.about-piece { padding-bottom: var(--section-y); display: grid; gap: 2rem; }
.about-piece__text { display: grid; gap: 1rem; }
.about-piece__text p { color: var(--muted); }
.see-it { background: var(--cream); border-radius: var(--radius-card); padding: 1.75rem; display: grid; gap: .75rem; justify-items: start; align-content: start; }
.see-it h3 { font-size: 1.3rem; }
.see-it p { color: var(--muted); }
@media (min-width: 1024px) { .about-piece { grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; } }
.pairs { padding-bottom: var(--section-y); display: grid; gap: 1.75rem; }
.pairs .pgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 1.25rem; padding-bottom: .5rem; }
.pairs .pgrid::-webkit-scrollbar { display: none; }
.pairs .pgrid > li { flex: 0 0 min(70vw, 280px); scroll-snap-align: start; }
@media (min-width: 1024px) {
  .pairs .pgrid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .pairs .pgrid > li { flex: none; }
}
.buybar { display: none; }
@media (max-width: 767px) {
  body.has-buybar { padding-bottom: 80px; }
  .buybar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky); background: var(--white); border-top: 1px solid var(--line); padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); }
  .buybar__name { font-family: var(--font-display); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ================= GALLERY page ================= */
.filters { margin-top: 2rem; }
.gallery { padding-block: 2rem var(--section-y); }
.gallery .masonry { margin-top: 2rem; }
@media (min-width: 1024px) { .gallery .masonry { columns: 3; } }
@media (min-width: 1280px) { .gallery .masonry { columns: 4; } }
.g-item { display: block; width: 100%; padding: 0; text-align: left; cursor: zoom-in; border-radius: var(--radius-card); }
.gallery .frame img { transition: transform .8s var(--ease-out); }
.gallery li:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: transparent; width: 100%; height: 100%; max-width: 100vw; max-height: 100dvh; color: var(--cream); }
.lightbox::backdrop { background: rgb(63 14 26 / 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__inner { display: grid; gap: 1rem; justify-items: center; padding: 4.5rem 1rem 1.5rem; width: min(100%, 1100px); }
.lightbox__img { max-height: 74dvh; width: auto; max-width: 100%; border-radius: var(--radius-card); object-fit: contain; background: var(--burgundy); }
.lightbox__cap { text-align: center; max-width: 60ch; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: var(--radius-button); background: rgb(251 243 230 / 0.14); color: var(--cream); display: grid; place-items: center; font-size: 1.5rem; transition: background-color .3s var(--ease-out); }
.lightbox__btn:hover { background: rgb(251 243 230 / 0.28); }
.lightbox__btn--close { top: 1rem; right: 1rem; }
.lightbox__btn--prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__btn { --focus: 0 0 0 3px var(--burgundy-deep), 0 0 0 5px var(--gold); }

/* ================= ABOUT page ================= */
.about-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section-y); }
.about-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.about-hero__copy { display: grid; gap: 1.25rem; justify-items: start; }
.about-hero__copy p { color: var(--muted); }
.about-hero__frame { aspect-ratio: 3 / 4; }
@media (min-width: 1024px) { .about-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; } .about-hero__frame { max-height: 78svh; } }
.zig { padding-block: 0 var(--section-y); }
.zig__row { display: grid; gap: 1.75rem; align-items: center; }
.zig__row + .zig__row { margin-top: var(--section-y); }
.zig__copy { display: grid; gap: 1rem; justify-items: start; }
.zig__copy p { color: var(--muted); }
.zig__frame { aspect-ratio: 5 / 4; }
@media (min-width: 900px) {
  .zig__row { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
  .zig__row--flip .zig__frame { order: 2; }
}
.quote-line { max-width: 20ch; margin-inline: auto; font-size: clamp(1.9rem, 4.2vw, 3.5rem); letter-spacing: -0.025em; line-height: 1.12; font-weight: 600; text-wrap: balance; text-align: center; }
.faq-sec { padding-block: var(--section-y); display: grid; gap: 1rem; }
.faq-sec .faq { margin-top: 1rem; }
.cta-center { padding-bottom: var(--section-y); text-align: center; display: grid; justify-items: center; gap: 1.5rem; }

/* ================= CONTACT page ================= */
.contact-top { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section-y); display: grid; gap: 2.5rem; align-items: start; }
.contact-top__copy { display: grid; gap: 1.5rem; }
.crows { display: grid; }
.crow { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.crow:last-child { border-bottom: 1px solid var(--line); }
.crow > i { font-size: 1.9rem; color: var(--red); }
.crow__label, .crow__value { display: block; }
.crow__label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.crow__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25; }
a.crow:hover .crow__value { color: var(--red); }
@media (min-width: 1024px) { .contact-top { grid-template-columns: 1.05fr .95fr; gap: 4.5rem; } }
.composer { background: var(--cream); padding-block: var(--section-y); }
.composer__grid { display: grid; gap: 3rem; align-items: start; }
.composer form { display: grid; gap: 1.25rem; margin-top: 1.5rem; max-width: 560px; }
.composer__fallback { display: none; }
.composer__fallback.is-shown { display: inline-flex; }
.directions { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.directions p { color: var(--muted); }
@media (min-width: 1024px) { .composer__grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; } }

/* ================= 404 ================= */
.notfound { min-height: 60svh; display: grid; place-content: center; justify-items: center; gap: 1.5rem; text-align: center; padding-block: var(--section-y); }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.03em; font-weight: 700; max-width: 18ch; }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.75rem; }

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  .bento__cell:hover img, .bento__cell:focus-visible img, .masonry li:hover img, .rail__item:hover img, .gallery li:hover img { transform: none; }
  .bento__cell img, .bento__plate, .bento__plate i, .masonry img, .rail__item img, .gallery .frame img, .more__item i, .lightbox__btn, .product__thumbs button { transition: none; }
}
