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

html {
  scroll-behavior: auto;
  background: #ffffff;
}

[hidden] {
  display: none !important;
}

body.gallery {
  --paper: #ffffff;
  --ink: #141414;
  --clay: #3a3a3a;
  --moss: #141414;
  --rose: #141414;
  --rose-deep: #000000;
  --cream: #ffffff;
  --muted: #3a3a3a;
  --line: rgba(20, 20, 20, 0.14);
  --serif: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  --sans: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

body.gallery::before {
  display: none;
}

html[data-lang="es"] .lang-en,
html[data-lang="en"] .lang-es {
  display: none;
}

body.gallery a {
  color: inherit;
}

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

body.gallery.is-piece .g-hero {
  display: none;
}

body.gallery.is-piece #piece {
  display: block !important;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}

.skip:focus {
  top: 12px;
}

.ig-banner {
  padding: 10px 18px;
  background: #1c1612;
  color: #f3eee7;
  font-size: 0.92rem;
}

.ig-banner p {
  margin: 0 auto;
  max-width: 980px;
}

.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

.update-banner {
  padding: 10px 18px;
  background: #9a4a5c;
  color: #fff8f4;
  border-bottom: 1px solid rgba(255, 248, 244, 0.28);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.update-banner p {
  max-width: 920px;
  margin: 0 auto;
}

.update-banner a {
  color: #fff8f4;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.update-banner a:focus-visible {
  outline: 2px solid #f6e7c1;
  outline-offset: 3px;
}

.g-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  background: #ffffff;
  color: #141414;
  border-bottom: 1px solid #e6e6e6;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: max-content;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.brand-submark {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.g-nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
  font-size: 0.92rem;
}

.g-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-toggle,
.lang,
.cart-chip,
.owner-dot,
.icon-x {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.lang,
.cart-chip,
.owner-dot {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 12px;
}

.owner-dot {
  width: 40px;
  padding: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.g-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.05fr);
  gap: 24px 36px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 12px;
  background: #ffffff;
  color: #141414;
}

.g-hero-copy,
.g-hero-stage {
  position: relative;
  z-index: 1;
}

.g-wordmark {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #141414;
}

.g-wordmark em {
  font-style: normal;
  font-weight: 700;
  color: #141414;
}

.g-hero-copy {
  margin: 0;
}

.g-hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: #f4f4f4;
}

.g-hero-stage img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  object-fit: contain;
  object-position: center;
  background: #f4f4f4;
}

.g-hero-copy {
  z-index: 2;
}

.g-hero h1,
.band h2,
.piece h1,
.sheet h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-wrap: balance;
}

.g-hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  color: #141414;
}

.g-hero h1 em,
.piece h1 {
  font-style: italic;
  font-weight: 500;
}

.eyebrow,
.g-hero .lede,
.fine,
.form-note,
.facts dt,
.specs dt {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: #3a3a3a;
  font-size: 0.75rem;
}

.g-hero .eyebrow,
.g-hero .lede,
.poster-state {
  color: #3a3a3a;
}

.g-hero .lede {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.02rem;
}

.poster-state {
  margin: 12px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.g-hero .buy-quiet {
  color: #7c3848;
  border-color: #9a4a5c;
  background: #ffffff;
}

body.gallery.nav-solid .g-header,
body.gallery.is-piece .g-header {
  background: #ffffff;
  color: #141414;
  border-bottom: 1px solid #e6e6e6;
}

body.gallery.is-piece {
  padding-top: 148px;
}

.lede {
  max-width: 28rem;
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.hero-actions,
.piece-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.buy,
.buy-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #111;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.buy,
.g-hero .buy,
.buy-bar .buy {
  background: #9a4a5c;
  color: #fff8f4;
  border-color: #9a4a5c;
  border-radius: 6px;
}

.buy-quiet,
.g-hero .buy-quiet {
  background: #ffffff;
  color: #7c3848;
  border-color: #9a4a5c;
  border-radius: 6px;
}

.buy:hover,
.buy:focus-visible,
.buy:active,
.buy-quiet:hover,
.buy-quiet:focus-visible,
.buy-quiet:active {
  background: #7c3848;
  color: #fff8f4;
  border-color: #7c3848;
}

.buy:focus-visible,
.buy-quiet:focus-visible {
  outline: 2px solid #7c3848;
  outline-offset: 3px;
}

.g-nav a:focus-visible,
.lang:focus-visible {
  outline: 2px solid #8d3d32;
  outline-offset: 3px;
}

.band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.band-head {
  max-width: 40rem;
  margin-bottom: 28px;
}

.band h2,
.piece h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 22px;
}

.work {
  min-width: 0;
}

.work-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f4f4f4;
}

.piece-media {
  position: relative;
}

.sold-plaque {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  padding: 5px 8px;
  background: #1c1915;
  color: #f7f1ea;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.work-media img,
.piece-media img,
.about-media img,
.split img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f4f4;
}

.work-body {
  display: grid;
  gap: 6px;
  padding-top: 12px;
}

.work h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}

.work h3 a {
  text-decoration: none;
}

.meta,
.piece-story,
.facts dd,
.trust p,
.legal p {
  color: var(--muted);
}

.meta,
.price-line {
  margin: 0;
  font-size: 0.92rem;
}

.work .buy,
.work .buy-quiet,
.piece-actions .buy,
.piece-actions .buy-quiet,
.cart-footer .buy,
.contact-form .buy {
  width: 100%;
}

.filters {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.filters button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: #111111;
  color: #ffffff;
}

.piece {
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 10px;
}

.piece-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: start;
}

.piece-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  background: #f4f4f4;
}

.piece-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.piece-price {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 2.4rem;
}

.specs,
.facts {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.specs div,
.facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
}

.specs dt,
.facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.specs dd,
.facts dd {
  margin: 0;
}

.ship-note,
.fine {
  color: var(--muted);
  font-size: 0.92rem;
}

.back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.about,
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-media img,
.split img {
  aspect-ratio: 4 / 5;
}

.trust,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.trust h3,
.legal h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
}

.contact-links {
  flex-direction: column;
  align-items: flex-start;
}

.contact-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form,
.sheet form,
.owner-login-card {
  display: grid;
  gap: 12px;
}

.contact-form label,
.sheet label,
.owner-login-card label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.sheet input,
.owner-login-card input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}

.checkout-result {
  width: min(760px, calc(100% - 36px));
  margin: 20px auto 60px;
  padding: 28px;
  border: 1px solid var(--line);
}

body.gallery:not(.is-piece) main {
  padding-top: 124px;
}

#shop.band {
  padding-top: 28px;
  scroll-margin-top: 140px;
}

#shop .band-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

body.gallery a.wa-float {
  position: fixed;
  top: auto;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 8;
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1c1612;
  color: #f7f1ea;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 34;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #ffffff;
  color: #141414;
  border-top: 1px solid var(--line);
}

.buy-bar strong,
.buy-bar span {
  display: block;
}

.buy-bar .buy {
  width: auto;
  min-width: 46%;
}

@media (min-width: 721px) {
  body.gallery.is-piece a.wa-float {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

.buy-bar[hidden],
.ig-banner[hidden],
.lightbox[hidden] {
  display: none !important;
}

.pay-status:empty {
  display: none;
}

.pay-status {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 45;
  width: min(440px, calc(100% - 28px));
  transform: translateX(-50%);
  margin: 0;
  padding: 12px 14px;
  background: var(--ink);
  color: #f8f3ec;
  text-align: center;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(28, 22, 18, 0.35);
}

.cart-drawer.open {
  display: block;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  background: var(--paper);
}

.cart-items {
  overflow: auto;
  flex: 1;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 72px;
  height: 90px;
  object-fit: cover;
}

.sheet,
.owner-login {
  width: min(460px, calc(100% - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
}

.sheet form input,
.sheet form select,
.sheet form textarea {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}

.sheet form,
.owner-login-card {
  position: relative;
  padding: 22px;
  background: var(--paper);
  color: var(--ink);
}

.sheet::backdrop,
.owner-login::backdrop,
.lightbox {
  background: rgba(18, 12, 10, 0.72);
}

.zelle-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #f4f4f4;
  color: #141414;
  border: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox button,
.icon-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.4rem;
}

.g-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.g-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.owner-menu {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .works,
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .piece-layout,
  .about,
  .split,
  .contact,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand-submark {
    display: none;
  }

  .g-header {
    gap: 8px;
  }

  .g-hero {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1180px);
    gap: 16px;
  }

  .g-hero-stage img {
    max-height: 58vh;
    object-fit: contain;
  }

  .g-wordmark {
    font-size: clamp(2.7rem, 12vw, 3.5rem);
  }

  .works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .work h3 {
    font-size: 1.15rem;
    line-height: 1;
  }

  .work .price-line,
  .work .meta {
    font-size: 0.78rem;
  }

  .sold-plaque {
    left: 6px;
    bottom: 6px;
    padding: 4px 6px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  body.gallery:not(.is-piece) main {
    padding-top: 176px;
  }

  #shop.band {
    scroll-margin-top: 190px;
  }

  body.gallery a.wa-float,
  body.gallery.is-piece a.wa-float {
    top: auto;
    right: 12px;
    bottom: 16px;
    left: auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  body.gallery:not(.is-piece) a.wa-float {
    top: 214px;
    bottom: auto;
    right: 16px;
  }

  body.gallery.is-piece a.wa-float {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 172px);
    bottom: auto;
    left: 12px;
    right: auto;
  }

  body.gallery a.wa-float::after,
  body.gallery.is-piece a.wa-float::after {
    content: "WA";
    color: #f7f1ea;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .menu-toggle {
    display: inline-block;
  }

  .g-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 16px;
    background: #ffffff;
    color: #141414;
    border-bottom: 1px solid var(--line);
  }

  .g-nav.is-open,
  body.gallery.nav-solid .g-nav.is-open,
  body.gallery.is-piece .g-nav.is-open {
    display: flex;
    background: #ffffff;
    color: #141414;
  }

  .g-nav a {
    padding: 12px 0;
  }

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

  .piece {
    width: min(100% - 20px, 1180px);
    margin-top: 12px;
  }

  .piece-media {
    max-height: 36vh;
    aspect-ratio: 4 / 5;
    background: #f4f4f4;
  }

  body.gallery.is-piece {
    padding-top: 196px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .piece-media img {
    height: 100%;
    min-height: 280px;
    object-fit: contain;
    background: #f4f4f4;
  }

  .piece h1 {
    font-size: 2.7rem;
  }

  .piece-price {
    margin: 4px 0 8px;
    font-size: 2rem;
  }

  .piece-actions {
    margin-top: 8px;
  }

  .g-hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.5rem);
  }

  .band {
    width: min(100% - 28px, 1180px);
    padding: 48px 0;
  }

  .buy-bar {
    display: flex;
  }
}

@media (min-width: 721px) {
  .buy-bar {
    display: none !important;
  }

  body.gallery.is-piece a.wa-float {
    position: fixed;
    top: auto;
    right: 18px;
    bottom: 18px;
    left: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .g-wordmark {
    animation: wordmark-in 640ms ease both;
  }

  .g-hero-stage img {
    transform: none;
  }

  .work {
    transition: transform 180ms ease;
  }

  .work-media img {
    transition: transform 200ms ease;
  }

  .work:hover {
    transform: translateY(-6px);
  }

  .work:hover .work-media img,
  .work:focus-within .work-media img {
    transform: scale(1.025);
  }

  .buy,
  .buy-quiet {
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms ease;
  }

  .buy:active,
  .buy-quiet:active {
    transform: translateY(1px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .g-wordmark,
  .g-hero-stage img,
  .work,
  .work-media img,
  .buy,
  .buy-quiet {
    animation: none;
    transition: none;
  }
}

@keyframes wordmark-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-settle {
  from { transform: scale(1.12); }
  to { transform: scale(1.08); }
}
