:root {
  --cloud: #f7f4ef;
  --teal: #0a6b6e;
  --teal-deep: #0c3335;
  --lava: #a84842;
  --brass: #b8974e;
  --ink: #1a1714;
  --linen: #f3efe8;
  --muted: #7a736a;
  --gallery: #faf8f4;
  --plaster: #efeae2;
  --frame-oak: #6e5230;
  --frame-noir: #1a1a1a;
  --frame-or: #a8872c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  color: var(--ink);
  background: var(--gallery);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
.err { color: var(--lava); }

.atelier-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(10, 107, 110, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(184, 151, 78, 0.06), transparent 50%),
    linear-gradient(180deg, #faf8f4 0%, #f3efe8 55%, #ebe6dc 100%);
}
.atelier-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 5vw;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px) saturate(1.05);
  background: rgba(250, 248, 244, 0.82);
  border-bottom: 1px solid rgba(26, 23, 20, 0.06);
}
.brand img {
  height: 52px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-deep);
  position: relative;
  letter-spacing: 0.02em;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--teal-deep);
  transition: width 0.25s ease;
}
nav a:hover::after { width: 100%; }

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 0;
  padding: 0.9rem 1.5rem;
  font: 600 0.88rem "Syne", sans-serif;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--teal-deep);
  color: var(--cloud);
  box-shadow: none;
}
.btn.primary:hover {
  background: var(--teal);
}
.btn.line {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid rgba(12, 51, 53, 0.28);
}
.btn.line:hover {
  border-color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.5);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(12, 51, 53, 0.18);
  color: var(--teal-deep);
  border-radius: 0;
  padding: 0.55rem 1rem;
}
.btn.full { width: 100%; }

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
  padding: 6vh 5vw 10vh;
  position: relative;
}
.hero-copy { max-width: 32rem; animation: rise 0.9s ease both; }
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  line-height: 0.95;
  color: var(--teal-deep);
  font-weight: 600;
  text-wrap: balance;
}
.lead {
  margin: 1.5rem 0 2.2rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 26rem;
}
.cta-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.hero-gallery {
  position: relative;
  height: min(78vh, 640px);
  animation: rise 1.1s 0.12s ease both;
}
.float {
  position: absolute;
  margin: 0;
  background: #1a1714;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(26, 23, 20, 0.18);
}
.float span {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.f1 {
  width: 62%;
  aspect-ratio: 4/5;
  left: 6%;
  top: 4%;
  transform: rotate(-3deg);
  animation: sway 9s ease-in-out infinite;
}
.f1 span {
  background-image: linear-gradient(145deg, #0a6b6e, #163a3c 45%, #3d2a28 120%);
}
.f2 {
  width: 38%;
  aspect-ratio: 1;
  right: 2%;
  top: 14%;
  transform: rotate(4deg);
  animation: sway 10s 0.6s ease-in-out infinite;
  padding: 10px;
  background: #1a1714;
}
.f2 span {
  background-image: linear-gradient(160deg, #f0ede8, #cfc3a8 55%, #0a6b6e);
}
.f3 {
  width: 44%;
  aspect-ratio: 5/4;
  left: 32%;
  bottom: 0;
  transform: rotate(1deg);
  animation: sway 8s 0.3s ease-in-out infinite;
}
.f3 span {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(240, 237, 232, 0.35), transparent 45%),
    linear-gradient(120deg, #2a1d18, #0a6b6e 75%, #b8974e);
}

.section { padding: 7rem 5vw; }
.section-head { max-width: 36rem; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }

.gallery-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.4rem 1.8rem;
}
.art-piece {
  position: relative;
  min-height: 420px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform 0.45s ease;
  background: transparent;
}
.art-piece:hover { transform: translateY(-4px); }
.art-frame {
  position: absolute;
  inset: 0 0 7.5rem 0;
  z-index: -1;
  padding: 14px;
  background: #1a1714;
  box-shadow: 0 28px 50px rgba(26, 23, 20, 0.14);
}
.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.art-frame i {
  display: block;
  height: 100%;
  opacity: 0.95;
}
.tone-a .art-frame i {
  background: linear-gradient(135deg, #0a6b6e, #1d3f40 55%, #4a3a36);
}
.tone-b .art-frame i {
  background: linear-gradient(150deg, #3a2a22, #5c3d38 80%);
}
.tone-c .art-frame i {
  background: linear-gradient(125deg, #163a3c, #0a6b6e 50%, #8a7640);
}
.art-meta {
  background: transparent;
  color: var(--ink);
  padding: 1rem 0.15rem 0;
  margin: 0;
}
.art-meta .kind {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.art-meta h3 {
  font-size: 1.35rem;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.art-meta p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-meta .price {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.art-meta .btn {
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
}
.art-meta .btn.line {
  color: var(--teal-deep);
  border-color: rgba(12, 51, 53, 0.22);
}
.art-meta .add-btn {
  margin-top: 0.15rem;
  width: auto;
  border-radius: 0;
}

.cart-btn {
  background: var(--teal-deep);
  color: var(--cloud);
  border-radius: 0;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.badge {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 0;
  background: var(--brass);
  color: #1a1408;
  font-size: 0.75rem;
  display: inline-grid;
  place-items: center;
  padding: 0 0.35rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 18, 0.45);
  z-index: 40;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #f7f3ea;
  z-index: 50;
  transform: translateX(105%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.25);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(10, 107, 110, 0.12);
}
.cart-head h2 {
  font-size: 1.4rem;
  color: var(--teal-deep);
}
.cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}
.cart-empty { color: var(--muted); }
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(10, 107, 110, 0.1);
}
.cart-line strong { display: block; color: var(--teal-deep); }
.cart-line small { color: var(--muted); }
.line-price {
  margin-top: 0.35rem;
  font-family: "Fraunces", serif;
  color: var(--ink);
}
.qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.qty button {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(10, 107, 110, 0.25);
  background: white;
  cursor: pointer;
}
.qty .rm {
  border: 0;
  background: transparent;
  color: var(--lava);
  width: auto;
}
.cart-checkout {
  padding: 1rem 1.1rem 1.4rem;
  border-top: 1px solid rgba(10, 107, 110, 0.12);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 0.9rem;
}
.pay-list { display: grid; gap: 0.5rem; }
.pay-card {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(10, 107, 110, 0.2);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.pay-card.on {
  border-color: var(--teal-deep);
  background: rgba(10, 107, 110, 0.08);
}
.pay-card strong { display: block; color: var(--teal-deep); font-size: 0.9rem; }
.pay-card small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.baridi-hint {
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.75rem;
  background: rgba(212, 168, 75, 0.18);
  border-left: 3px solid var(--brass);
  color: var(--ink);
}
.baridi-hint code {
  font-family: ui-monospace, monospace;
  color: var(--teal-deep);
}
.cart-totals { display: grid; gap: 0.35rem; }
.cart-totals div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}
.cart-totals .grand {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(10, 107, 110, 0.15);
  color: var(--teal-deep);
  font-size: 1.05rem;
}
.cart-totals .grand strong {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.teaser-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.atelier-teaser .section-head {
  max-width: 40rem;
}
.config-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 1.8rem;
  align-items: stretch;
}
.dropzone {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  text-align: center;
  min-height: 150px;
  border: 1.5px dashed rgba(10, 107, 110, 0.4);
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  margin-bottom: 1.1rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.dropzone:hover {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.005);
}
.dropzone em { font-style: normal; font-weight: 700; color: var(--teal-deep); }
.dropzone small { color: var(--muted); }

.options { display: grid; gap: 1rem; margin-bottom: 1rem; }
.opt-group .title {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  border: 1px solid rgba(10, 107, 110, 0.22);
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal-deep);
  padding: 0.55rem 0.75rem;
  font: 600 0.82rem "Syne", sans-serif;
  cursor: pointer;
  display: inline-flex;
  gap: 0.55rem;
  align-items: baseline;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip span { color: var(--muted); font-weight: 500; font-size: 0.75rem; }
.chip.on {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--cloud);
}
.chip.on span { color: rgba(247, 244, 239, 0.7); }

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  margin-bottom: 0.75rem;
  border-top: 1px solid rgba(10, 107, 110, 0.14);
}
.price-box strong {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  color: var(--teal-deep);
}

.preview-panel { min-height: 460px; }
.wall {
  height: 100%;
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(90deg, rgba(18, 16, 16, 0.03) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, #d9cfc0, #cfc3b1 55%, #c4b8a6);
  box-shadow: inset 0 0 80px rgba(18, 16, 16, 0.12);
  animation: glowWall 8s ease-in-out infinite;
}
.frame {
  width: min(340px, 78%);
  aspect-ratio: 4/5;
  padding: 16px;
  background: var(--frame-oak);
  box-shadow: 0 28px 55px rgba(18, 16, 16, 0.35);
  transition: background 0.35s ease, transform 0.45s ease;
}
.frame.noir { background: var(--frame-noir); }
.frame.or { background: linear-gradient(145deg, var(--frame-or), #7d6218); }
.frame .mat {
  position: relative;
  height: 100%;
  background: var(--cloud);
  padding: 12px;
  overflow: hidden;
}
.frame img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  display: block;
  z-index: 1;
}
.frame img[hidden] { display: none !important; }
.placeholder {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
  z-index: 0;
}
.placeholder[hidden] { display: none !important; }

.dropzone.has-file {
  border-style: solid;
  border-color: var(--teal);
  background: rgba(10, 107, 110, 0.08);
}
.dropzone .dz-preview {
  width: 72px;
  height: 90px;
  object-fit: cover;
  display: none;
  margin-bottom: 0.35rem;
  box-shadow: 0 6px 16px rgba(18, 16, 16, 0.2);
}
.dropzone.has-file .dz-preview { display: block; }

.craft {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.craft h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--teal-deep);
  margin-bottom: 0.8rem;
}
.craft-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 auto 1.8rem;
  max-width: 36rem;
}
.craft-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.craft-list li {
  padding: 0.65rem 1rem;
  border-bottom: 2px solid var(--brass);
  color: var(--teal-deep);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.35);
}

footer.site-footer {
  margin-top: 3rem;
  padding: 3rem 4vw 1.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 10% 0%, rgba(10, 107, 110, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 70% at 90% 20%, rgba(199, 62, 58, 0.2), transparent 50%),
    #0c1212;
  color: var(--cloud);
  display: grid;
  gap: 2rem;
}
.footer-brand {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}
.footer-logo {
  height: 56px;
  width: auto;
  display: block;
}
.footer-brand p {
  margin: 0;
  color: rgba(240, 237, 232, 0.72);
  line-height: 1.5;
  font-size: 0.95rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 1.5rem;
}
.footer-cols h3 {
  font-family: "Syne", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.75rem;
  font-weight: 700;
}
.footer-cols a,
.footer-cols span {
  display: block;
  color: rgba(240, 237, 232, 0.82);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}
.footer-cols a:hover { color: var(--brass); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(212, 168, 75, 0.25);
  font-size: 0.82rem;
  color: rgba(240, 237, 232, 0.55);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes sway {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes glowWall {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.04); }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2rem; }
  .hero-gallery { height: 340px; order: -1; }
  .config-layout { grid-template-columns: 1fr; }
  nav a { display: none; }
  .brand img { height: 44px; }
  .footer-cols { grid-template-columns: 1fr; }
}
