:root {
  --bg: #ffffff;
  --bg-alt: #f7f5f1;
  --bg-dark: #1a1d24;
  --border: #e3e0d9;
  --border-strong: #c9c4ba;
  --text: #1a1d24;
  --text-muted: #5a5d63;
  --text-light: #8b8d92;
  --accent: #8b6f3f;
  --accent-dark: #6b5530;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* TOP BAR */
.top-bar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 0.55rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left { display: flex; gap: 1.5rem; }
.top-bar a { color: inherit; text-decoration: none; transition: color 0.2s; }
.top-bar a:hover { color: var(--accent); }

/* NAV */
nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
nav.scrolled .container {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  transition: padding 0.35s ease;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
  position: relative;
  transition: transform 0.3s ease;
}
.logo:hover { transform: translateY(-1px); }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.005em;
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.logo-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover .logo-name::after { width: 100%; }
.logo-tag {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.nav-links li { position: relative; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
.nav-links a:not(.nav-cta)::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}
.nav-links a:not(.nav-cta):hover { color: var(--accent-dark); }
.nav-links a:not(.nav-cta):hover::before { width: 100%; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-links a:not(.nav-cta):hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.nav-cta {
  padding: 0.85rem 1.6rem !important;
  background: var(--text);
  color: white !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.06em;
  border: 1px solid var(--text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.nav-cta::after {
  content: '→';
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  font-size: 1rem;
  line-height: 0;
}
.nav-cta:hover {
  color: white !important;
  border-color: var(--accent-dark);
  letter-spacing: 0.08em;
}
.nav-cta:hover::before { transform: translateY(0); }
.nav-cta:hover::after { transform: translateX(4px); }

/* HERO */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(184, 137, 58, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(107, 85, 48, 0.06), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  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.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.15 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.6;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero-eyebrow::before {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--accent);
}
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-dark);
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  background: var(--text);
  color: white;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--text);
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-secondary {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover {
  border-color: var(--text);
  background: white;
}
.hero-credentials {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 540px;
}
.credential-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.credential-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 60%;
  background: radial-gradient(ellipse at center top,
    rgba(255, 235, 195, 0.5) 0%,
    rgba(255, 235, 195, 0.2) 30%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-visual::after {
  content: '';
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 24px;
  background: radial-gradient(ellipse at center,
    rgba(40, 28, 12, 0.25) 0%,
    rgba(40, 28, 12, 0.10) 40%,
    transparent 75%);
  pointer-events: none;
  filter: blur(6px);
  z-index: 0;
}
.hero-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1056 / 1367;
  position: relative;
  margin: 0 auto;
  z-index: 2;
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-placard {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  opacity: 0;
  animation: fadeInPlacard 1s 1s forwards;
  position: relative;
}
@keyframes fadeInPlacard {
  to { opacity: 1; }
}
.hero-placard-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.hero-placard-text {
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
}
.hero-placard-text .item-num {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}
.hero-placard-text .item-name {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
  display: block;
}
.hero-placard-text .item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: block;
}
.hero-frame-mat {
  position: absolute;
  inset: 11.5%;
  background: #f9f6ee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}
.hero-frame-art {
  position: absolute;
  inset: -20% -25%;
  background-image: url("frames/sample-hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-frame-img {
  position: absolute;
  inset: 0%;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: drop-shadow(0 22px 38px rgba(0,0,0,0.22)) drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}

/* SHOWCASE STRIP */
.showcase {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 4.5rem;
}
.showcase-head { text-align: center; margin-bottom: 2.5rem; }
.showcase-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.showcase-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.showcase-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.showcase-scroll {
  position: relative;
  margin: 0 -2rem;
}
.showcase-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 2rem 1.5rem;
  scroll-snap-type: x mandatory;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.showcase-track {
  overflow-x: auto;
  scrollbar-width: thin;
}
.showcase-track::-webkit-scrollbar {
  height: 0;
}
.showcase-track:hover::-webkit-scrollbar {
  height: 6px;
}
.showcase-card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.showcase-card:hover { transform: translateY(-4px); }
.showcase-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.showcase-card:hover .showcase-frame {
  border-color: var(--border-strong);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}
.showcase-info {
  padding: 1rem 0.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.showcase-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}
.showcase-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.showcase-tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.3rem;
}

/* SECTION */
.section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* COLLECTION GRID */
.frame-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.frame-card {
  background: white;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.frame-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.frame-card-visual {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.frame-card-img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
  transition: transform 0.4s ease;
}
.frame-card:hover .frame-card-img { transform: scale(1.04); }
.frame-card-info {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.frame-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.frame-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.frame-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.3rem;
}

/* CREDENTIALS BAR */
.credentials-bar {
  background: var(--bg-dark);
  color: white;
  padding: 3rem 0;
}
.credentials-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.cred-item {
  border-left: 1px solid rgba(255,255,255,0.15);
  padding: 0 1rem;
}
.cred-item:first-child { border-left: none; }
.cred-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.cred-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.process-step {
  padding-top: 2rem;
  border-top: 2px solid var(--text);
}
.process-num {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.process-step h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.process-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* FOOTER */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-name {
  color: white;
  font-size: 1.7rem;
}
.footer-brand .logo-tag {
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  max-width: 340px;
}
footer h5 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-list { list-style: none; }
.footer-list li {
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
  color: rgba(255,255,255,0.7);
}
.footer-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-list a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* ============================================ */
/* FRAME DETAIL PAGE                            */
/* ============================================ */
.frame-detail-page {
  padding: 4rem 0 5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.frame-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.frame-detail-back:hover { color: var(--accent-dark); }
.frame-detail-back::before {
  content: '←';
  font-size: 1.1rem;
}
.frame-detail-head {
  text-align: center;
  margin-bottom: 3rem;
}
.frame-detail-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}
.frame-detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.frame-detail-title em {
  font-style: italic;
  color: var(--accent-dark);
}
.frame-detail-meta {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}
.frame-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* PREVIEW STAGE (left side) */
.preview-stage {
  background: white;
  border: 1px solid var(--border);
  padding: 3.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  position: sticky;
  top: 100px;
}
.preview-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: var(--frame-aspect, 4/5);
  transition: all 0.4s ease;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.18)) drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
.preview-frame-mat {
  position: absolute;
  /* THIN MAT — about 3% reveal between frame and artwork */
  inset: 10%;
  background: var(--mat-color, #f9f6ee);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
  transition: all 0.4s;
  z-index: 1;
}
.preview-frame-art {
  position: absolute;
  inset: 5% 10%;            /* small mat reveal */
  background-size: cover;
  background-reapeat: no-repeat;
  background-position: center;
  background-color: #888;
  transition: background-image 0.3s;
}
.preview-frame-art.placeholder {
  background: linear-gradient(180deg, #a89678 0%, #6a5234 60%, #2d1f12 100%);
}
.preview-frame-art.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 35% 25%, rgba(240, 220, 180, 0.45), transparent 55%),
    radial-gradient(ellipse at 65% 75%, rgba(40, 25, 12, 0.55), transparent 60%);
}
.preview-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
}

/* CONTROLS */
.preview-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.control-section {
  background: white;
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
}
.control-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.control-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.control-value {
  font-size: 0.9rem;
  color: var(--accent-dark);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

/* MAT COLOR SWATCHES */
.mat-options {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.mat-swatch {
  width: 38px;
  height: 38px;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  transition: all 0.2s;
}
.mat-swatch:hover { transform: scale(1.08); }
.mat-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text), inset 0 0 0 2px white;
}

/* SIZES */
.size-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.size-btn {
  padding: 0.7rem 0.4rem;
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 500;
}
.size-btn:hover { border-color: var(--accent); }
.size-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

/* UPLOAD ZONE */
.upload-zone {
  border: 1px dashed var(--border-strong);
  background: var(--bg-alt);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.upload-zone:hover {
  border-color: var(--accent);
  background: white;
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-icon {
  font-size: 1.4rem;
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
  font-weight: 300;
}
.upload-text {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SAMPLE ARTWORK BUTTONS */
.sample-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.sample-btn {
  padding: 0.7rem 0.5rem;
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}
.sample-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.sample-btn .artist {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* INQUIRY FORM */
.inquiry-section {
  background: white;
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
}
.inquiry-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.inquiry-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-group label .required {
  color: var(--accent-dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: white;
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--text); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--text);
  color: white;
  border: 1px solid var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.form-submit:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.form-disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

/* SUCCESS STATE */
.success-state {
  display: none;
  padding: 3rem 0;
  text-align: center;
}
.success-state.active { display: block; }
.success-mark {
  width: 56px;
  height: 56px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 1.6rem;
}
.success-state h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.success-state p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container { padding: 0 1.25rem; }
  .top-bar-left { gap: 1rem; }
  .top-bar .container { font-size: 0.72rem; }
  .logo-name { font-size: 1.4rem; }
  .logo-tag { font-size: 0.55rem; letter-spacing: 0.28em; }
  .nav-links { gap: 1.25rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 0.7rem 1.2rem !important; font-size: 0.78rem !important; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-frame { max-width: 280px; }
  .hero-credentials { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .showcase { padding: 2.5rem 0 3rem; }
  .showcase-card { width: 220px; }
  .section { padding: 3.5rem 0; }
  .frame-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .credentials-bar .container { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .cred-item:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  /* frame detail */
  .frame-detail-page { padding: 2.5rem 0 3rem; }
  .frame-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .preview-stage {
    position: static;
    min-height: 400px;
    padding: 2.5rem 1.5rem;
  }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 540px) {
  .frame-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .credentials-bar .container { grid-template-columns: 1fr; }
  .cred-item { border-left: none; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .cred-item:first-child { border-top: none; padding-top: 0; }
}
