﻿/* ════════════════════════════════════════════════════════════════════════
   ATELIER — shop teaser
   v6 — full rebuild.  Editorial cream split: an editorial story block on
   the left and a sculptural picture-plate on the right.  Refined bronze
   hairlines, slow ambient orbs, and a generous responsive collapse.
   Keeps the existing class API.
   ════════════════════════════════════════════════════════════════════════ */

.atelier {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

/* Hairline top + bottom — limits the section visually inside the dark/cream stack */
.atelier::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 141, 87, 0.30), transparent);
  z-index: 1;
}

/* ─ Ambient backdrop ───────────────────────────────────────────────────── */
.atelier-atmos { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.atelier-scan {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 60% 60% at 72% 44%, rgba(176, 141, 87, 0.16), transparent 64%),
    radial-gradient(ellipse 40% 45% at 18% 70%, rgba(176, 141, 87, 0.09), transparent 58%);
  filter: blur(8px);
  animation: scanDrift 32s ease-in-out infinite;
}

/* ─ Two-column editorial layout ───────────────────────────────────────── */
.atelier-grid {
  position: relative; z-index: 3;
  max-width: var(--content-max);
  margin: 0 auto;
  padding:
    clamp(96px, 14vh, 180px)
    var(--page-gutter)
    clamp(80px, 12vh, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

/* ─ Story column ──────────────────────────────────────────────────────── */
.atelier-story {
  display: flex; flex-direction: column;
  gap: clamp(20px, 2.4vw, 30px);
  min-width: 0;
  position: relative;
}
.atelier-story .section-kicker { justify-content: flex-start; }

.atelier-heading {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
  padding-bottom: 0.08em;
  max-width: 18ch;
}
.atelier-heading em {
  font-style: italic;
  color: var(--bronze);
  font-weight: 400;
}

.atelier-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.78;
  color: rgba(58, 53, 46, 0.82);
  max-width: 48ch;
}

.atelier-actions {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Pill CTA with bronze fill-wipe on hover */
.atelier-cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px;
  background: var(--ink);
  color: var(--warm-white);
  font-family: var(--font-sc);
  font-size: 10.5px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition:
    gap        0.55s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
    transform  0.55s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
.atelier-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--bronze);
  transform: translateX(-101%);
  transition: transform 0.55s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
  z-index: -1;
}
.atelier-cta:hover { gap: 22px; transform: translateY(-2px); }
.atelier-cta:hover::before { transform: translateX(0); }
.atelier-cta svg { stroke: currentColor; }

.atelier-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(13px, 1.05vw, 14.5px);
  color: var(--muted);
}

/* ─ Picture plate ─────────────────────────────────────────────────────── */
.atelier-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  min-width: 0;
}

/* Outer hairline frame — sits just inside the image */
.atelier-frame-inner {
  position: absolute; inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(176, 141, 87, 0.08), transparent 72%),
    var(--limestone);
  box-shadow:
    0 30px 60px -28px rgba(60, 45, 25, 0.30),
    0 10px 24px -18px rgba(60, 45, 25, 0.22),
    inset 0 0 0 1px rgba(176, 141, 87, 0.28);
  transition: box-shadow 0.6s ease;
}
@media (hover: hover) {
  .atelier-frame:hover .atelier-frame-inner {
    box-shadow:
      0 38px 72px -28px rgba(60, 45, 25, 0.36),
      0 14px 28px -16px rgba(60, 45, 25, 0.24),
      inset 0 0 0 1px rgba(176, 141, 87, 0.46);
  }
}

/* Corner brackets */
.atelier-frame-inner::before,
.atelier-frame-inner::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  z-index: 3; pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.55s ease;
}
.atelier-frame-inner::before {
  top: 12px; left: 12px;
  border-top: 1px solid rgba(176, 141, 87, 0.62);
  border-left: 1px solid rgba(176, 141, 87, 0.62);
}
.atelier-frame-inner::after {
  bottom: 12px; right: 12px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.62);
  border-right: 1px solid rgba(176, 141, 87, 0.62);
}
@media (hover: hover) {
  .atelier-frame:hover .atelier-frame-inner::before,
  .atelier-frame:hover .atelier-frame-inner::after { opacity: 1; }
}

.atelier-frame-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  z-index: 1;
  filter: sepia(6%) contrast(1.04) brightness(0.95);
  transition: opacity 0.6s ease, filter 0.6s ease, transform 2s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
@media (hover: hover) {
  .atelier-frame:hover .atelier-frame-img {
    opacity: 0.97;
    filter: sepia(3%) contrast(1.06) brightness(1.0);
    transform: scale(1.03);
  }
}

/* Floating studio tag */
.atelier-frame-tag {
  position: absolute;
  bottom: clamp(14px, 2vw, 22px);
  left:   clamp(14px, 2vw, 22px);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  font-family: var(--font-sc);
  font-size: clamp(9.5px, 1vw, 11px);
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(246, 242, 236, 0.14);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 24px -12px rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  z-index: 2;
  transition: background 0.5s ease, border-color 0.5s ease;
}
.atelier-frame-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bronze-light);
  box-shadow: 0 0 0 2px rgba(176, 141, 87, 0.18);
  flex-shrink: 0;
}
@media (hover: hover) {
  .atelier-frame:hover .atelier-frame-tag {
    background: rgba(10, 9, 8, 0.65);
    border-color: rgba(176, 141, 87, 0.40);
  }
}

/* Ambient orbs */
.atelier-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.atelier-orb-1 {
  width: 56%; height: 56%;
  top: 12%; left: 16%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.20), transparent 70%);
  animation: atlOrb1 12s ease-in-out infinite;
}
.atelier-orb-2 {
  width: 40%; height: 40%;
  bottom: 10%; right: 14%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.12), transparent 70%);
  animation: atlOrb2 16s ease-in-out infinite;
}

/* ─ Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .atelier-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vh, 48px);
    text-align: center;
  }
  .atelier-story { align-items: center; }
  .atelier-heading { max-width: none; }
  .atelier-body { text-align: center; max-width: 60ch; }
  .atelier-actions { justify-content: center; }
  .atelier-frame {
    aspect-ratio: 4 / 3;
    max-width: 560px;
    justify-self: center;
  }
  .atelier-frame-img {
    opacity: 0.96;
    filter: contrast(1.03) brightness(0.98);
  }
}
@media (max-width: 540px) {
  .atelier-frame { aspect-ratio: 4 / 5; max-width: 100%; }
  .atelier-cta { padding: 14px 24px; font-size: 10px; letter-spacing: 0.36em; }
  .atelier-frame-tag {
    font-size: 8.5px;
    letter-spacing: 0.28em;
    padding: 6px 11px 6px 9px;
    gap: 7px;
    bottom: 10px; left: 10px;
  }
  .atelier-frame-tag::before { width: 4px; height: 4px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .atelier-scan,
  .atelier-orb-1,
  .atelier-orb-2 { animation: none !important; }
  .atelier-cta::before,
  .atelier-frame-img,
  .atelier-cta { transition: none !important; }
}

/* Keyframes local to this file */
@keyframes atlOrb1 {
  0%, 100% { transform: translate(0, 0)   scale(1); }
  50%      { transform: translate(18px, -14px) scale(1.08); }
}
@keyframes atlOrb2 {
  0%, 100% { transform: translate(0, 0)   scale(1); }
  50%      { transform: translate(-20px, 12px) scale(1.10); }
}
@keyframes scanDrift {
  0%, 100% { transform: translate(0, 0)   scale(1); opacity: 1; }
  50%      { transform: translate(-16px, 10px) scale(1.05); opacity: 0.72; }
}
