/* ==========================================================================
   RJ DESIGN STUDIO — luxury bespoke furniture
   Palette: walnut charcoal + warm ivory + brushed brass
   ========================================================================== */

:root {
  --bg: #14100c;
  --bg-panel: #1c1611;
  --bg-panel-2: #201911;
  --ivory: #ece3d3;
  --ivory-dim: #b9ac97;
  --ivory-faint: #7c705f;
  --brass: #b3874f;
  --brass-bright: #dcb279;
  --line: rgba(236, 227, 211, 0.12);
  --line-bright: rgba(236, 227, 211, 0.22);
  --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.55);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --header-h: 84px;
  --ease-silk: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 0.84, 0.44, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--brass); color: #14100c; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #e0b878;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

p { color: var(--ivory-dim); margin: 0; }

/* ---------------- Preloader ---------------- */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s var(--ease-soft), visibility 0.9s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark {
  width: 54px; height: 54px;
  border: 1px solid var(--line-bright);
  border-top-color: var(--brass);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Header ---------------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease-soft), height 0.4s var(--ease-soft), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  height: 68px;
  background: rgba(20, 16, 12, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 3px;
  background: transparent;
  transition: background 0.4s ease;
}
.logo-wrap img { height: 34px; width: auto; display: block; }
.logo-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
  line-height: 1.1;
}
.logo-word .logo-tagline { display: block; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--brass-bright); font-family: var(--font-body); font-weight: 600; margin-top: 2px; }

nav.main-nav { display: flex; align-items: center; gap: 40px; }
nav.main-nav a {
  font-size: 0.88rem;
  color: var(--ivory-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
nav.main-nav a:hover { color: var(--ivory); }
nav.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brass-bright); transition: width 0.4s var(--ease-silk);
}
nav.main-nav a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--line-bright);
  padding: 10px 22px;
  border-radius: 2px;
  font-size: 0.82rem;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--brass); border-color: var(--brass); color: #14100c; }

.menu-toggle {
  display: none;
  background: none; border: none; color: var(--ivory);
  width: 26px; height: 18px; position: relative;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ivory);
}
.menu-toggle::before { top: 0; }
.menu-toggle span { top: 8px; }
.menu-toggle::after { bottom: 0; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #100d0a;
  --hero-x: 0px;
  --hero-y: 0px;
  --hero-scale: 1;
}
.hero-media {
  position: absolute;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background: url("../images/portfolio/hero.jpg") center center / cover no-repeat;
  transform: translate3d(calc(var(--hero-x) * -1), calc(var(--hero-y) * -1), 0) scale(calc(1.10 + var(--hero-scale)));
  filter: saturate(.96) contrast(1.03) brightness(1.04);
  transition: filter 1.2s ease;
  will-change: transform;
}
.hero-ambient {
  position: absolute;
  inset: -18%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 32% 42% at 76% 28%, rgba(231,190,132,.24), transparent 70%),
    radial-gradient(ellipse 24% 24% at 68% 67%, rgba(180,132,76,.14), transparent 70%),
    radial-gradient(ellipse 20% 55% at 98% 46%, rgba(241,228,207,.10), transparent 72%),
    radial-gradient(ellipse 34% 20% at 42% 100%, rgba(126,91,51,.18), transparent 76%);
  filter: blur(30px);
  mix-blend-mode: screen;
  animation: ambientFloat 13s ease-in-out infinite alternate;
}
#hero-canvas { position:absolute; inset:-4%; width:108%; height:108%; touch-action:none; pointer-events:none; z-index:2; mix-blend-mode:screen; opacity:.96; will-change:transform; }
.hero-grain { position:absolute; inset:-20%; z-index:4; pointer-events:none; opacity:.07; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); animation:grainShift 11s steps(8) infinite; }
.hero-veil { position:absolute; inset:0; z-index:1.6; pointer-events:none; background:
  radial-gradient(ellipse 44% 62% at 74% 39%, rgba(244,214,175,.06), transparent 72%),
  linear-gradient(90deg, rgba(16,13,10,.22) 0%, rgba(16,13,10,.07) 42%, rgba(16,13,10,0) 100%),
  linear-gradient(180deg, rgba(16,13,10,.08) 0%, rgba(16,13,10,.04) 50%, rgba(12,9,7,.13) 100%); }
.hero-veil::before {
  content:""; position:absolute; inset:-25%;
  background:linear-gradient(118deg, transparent 27%, rgba(236,202,157,.18) 41%, rgba(255,238,214,.03) 47%, transparent 58%);
  transform:translateX(-45%) rotate(.001deg);
  animation:lightSweep 11s cubic-bezier(.55,.05,.22,1) infinite;
  filter:blur(12px);
}
.hero-veil::after { content:""; position:absolute; inset:0; background:radial-gradient(ellipse at center, transparent 42%, rgba(7,5,4,.07) 100%); }
.hero-content::after {
  content:""; position:absolute; width:42vw; height:42vw; max-width:620px; max-height:620px;
  left:52%; top:42%; transform:translate(-50%,-50%); pointer-events:none; z-index:-1;
  background:radial-gradient(circle, rgba(238,195,135,.12) 0%, rgba(206,154,92,.055) 28%, transparent 68%);
  filter:blur(18px); animation:heroPulse 8s ease-in-out infinite;
}
.hero-kicker { opacity:0; transform:translateY(12px); }
.hero-title { opacity:1; }
.hero-title .line { perspective:900px; }
.hero-title .word { will-change:transform, opacity, filter; }
@keyframes heroPulse { 0%,100%{opacity:.55; transform:translate(-50%,-50%) scale(.94)} 50%{opacity:1; transform:translate(-48%,-52%) scale(1.08)} }
@keyframes ambientFloat { 0%{transform:translate3d(-2%,1%,0) scale(1)} 50%{transform:translate3d(2%,-2%,0) scale(1.05)} 100%{transform:translate3d(5%,2%,0) scale(1.02)} }
@keyframes lightSweep { 0%,48%{transform:translateX(-55%)} 70%{transform:translateX(22%)} 100%{transform:translateX(55%)} }
@keyframes grainShift { 0%,100%{transform:translate3d(0,0,0)} 25%{transform:translate3d(2%,-1%,0)} 50%{transform:translate3d(-1%,2%,0)} 75%{transform:translate3d(1%,1%,0)} }
.hero-content { z-index: 5; }
.hero .scroll-cue { z-index:6; }
.hero-title { text-shadow: 0 14px 42px rgba(0,0,0,.48); }
.hero-kicker { text-shadow: 0 5px 20px rgba(0,0,0,.5); }
.hero-sub { text-shadow: 0 5px 22px rgba(0,0,0,.52); }
.hero::before {
  content:""; position:absolute; inset:-12%; z-index:1.45; pointer-events:none;
  background:
    radial-gradient(ellipse 24% 18% at 18% 28%, rgba(232,190,128,.10), transparent 70%),
    radial-gradient(ellipse 28% 22% at 82% 72%, rgba(211,157,91,.12), transparent 72%),
    radial-gradient(ellipse 18% 42% at 55% 18%, rgba(255,236,207,.06), transparent 72%);
  filter:blur(26px); transform:translate3d(0,0,0) scale(1.05);
  animation:studioAura 15s ease-in-out infinite alternate;
}
.hero::after {
  content:""; position:absolute; inset:-20%; z-index:1.48; pointer-events:none; opacity:.42;
  background:repeating-linear-gradient(115deg, transparent 0 17%, rgba(231,201,164,.035) 17.15% 17.22%, transparent 17.4% 34%);
  transform:translateX(-8%) rotate(.001deg); animation:studioLines 22s linear infinite;
}
@keyframes studioAura { 0%{transform:translate3d(-2%,1%,0) scale(1.02)} 50%{transform:translate3d(3%,-2%,0) scale(1.09)} 100%{transform:translate3d(-1%,3%,0) scale(1.05)} }
@keyframes studioLines { from{transform:translateX(-9%)} to{transform:translateX(9%)} }
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 40px;
  perspective: 1200px;
}
.hero-inner { max-width: 1240px; margin: 0 auto; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.98;
  color: var(--ivory);
  margin: 0 0 28px;
  transform-style: preserve-3d;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .word {
  display: inline-block;
  transform-style: preserve-3d;
}
.hero-title .char {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.hero-title .word-accent {
  font-style: italic;
  color: var(--brass-bright);
}

.hero-sub {
  max-width: 480px;
  font-size: 1.05rem;
  color: #d5cabb;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
}

.hero-actions { display: flex; gap: 18px; align-items: center; opacity: 0; transform: translateY(16px); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brass);
  color: #14100c;
  padding: 15px 30px;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.5s var(--ease-silk), background 0.3s;
  border: 1px solid var(--brass);
}
.btn-primary:hover { background: var(--brass-bright); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ivory);
  padding: 15px 8px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line-bright);
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--brass-bright); color: var(--brass-bright); }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ivory-faint);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  opacity: 0;
}
.scroll-cue .stick {
  width: 1px; height: 34px; background: linear-gradient(var(--brass-bright), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .stick::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--brass-bright);
  animation: cueflow 2.2s ease-in-out infinite;
}
@keyframes cueflow { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------------- Section shells ---------------- */
section { position: relative; }
.section-pad { padding: 140px 0; }
@media (max-width: 780px) { .section-pad { padding: 90px 0; } }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 70px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 620px; }
.section-head p { max-width: 340px; text-align: right; }
@media (max-width: 780px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head p { text-align: left; }
}

/* ---------------- Philosophy ---------------- */
.philosophy { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  align-items: center;
}
.philosophy-figure {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
}
.philosophy-figure img { width: 100%; height: 100%; object-fit: contain; background: #0e0b08; transition: transform 1.2s var(--ease-soft); }
.philosophy-figure:hover img { transform: scale(1.06); }
.philosophy-figure .frame {
  position: absolute; inset: 18px;
  border: 1px solid rgba(236,227,211,0.35);
  pointer-events: none;
}
.philosophy-copy p { font-size: 1.12rem; color: var(--ivory-dim); margin-bottom: 26px; }
.philosophy-copy p:first-of-type { color: var(--ivory); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; }
.stat-row { display: flex; gap: 50px; margin-top: 40px; }
.stat b { font-family: var(--font-display); font-size: 2rem; color: var(--brass-bright); display: block; }
.stat span { font-size: 0.8rem; color: var(--ivory-faint); }

@media (max-width: 900px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ---------------- Collection / Filters ---------------- */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--ivory-dim);
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 0.82rem;
  transition: all 0.35s var(--ease-soft);
}
.filter-btn:hover { color: var(--ivory); border-color: var(--brass-bright); }
.filter-btn.active { background: var(--brass); border-color: var(--brass); color: #14100c; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
}
.product-card .pc-img-wrap { position: absolute; inset: 0; overflow: hidden; }
.product-card img {
  width: 100%; height: 100%; object-fit: contain; background: #0e0b08;
  transition: transform 1.1s var(--ease-soft), filter 0.6s;
  filter: saturate(0.92) brightness(0.86);
}
.product-card:hover img { transform: scale(1.08); filter: saturate(1) brightness(0.7); }

.product-card .pc-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20,16,12,0.92) 100%);
}
.product-card .pc-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 28px;
  transform: translateY(6px);
  transition: transform 0.5s var(--ease-silk);
}
.product-card:hover .pc-meta { transform: translateY(0); }
.pc-cat {
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--brass-bright);
  display: block; margin-bottom: 8px;
}
.pc-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--ivory); }
.pc-price { font-size: 0.82rem; color: var(--ivory-dim); margin-top: 6px; display: block; }

.pc-view {
  position: absolute; top: 26px; right: 26px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(236,227,211,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7) rotate(-30deg);
  transition: all 0.45s var(--ease-silk);
  color: var(--ivory);
}
.product-card:hover .pc-view { opacity: 1; transform: scale(1) rotate(0deg); background: rgba(20,16,12,0.5); }

/* ---------------- Craft process ---------------- */
.craft { background: var(--bg-panel-2); }
.craft-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.craft-step {
  background: var(--bg-panel-2);
  padding: 46px 34px;
}
.craft-step .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass-bright);
  margin-bottom: 30px;
  display: block;
}
.craft-step h3 { font-size: 1.2rem; margin-bottom: 14px; }
.craft-step p { font-size: 0.92rem; }
@media (max-width: 900px) { .craft-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .craft-steps { grid-template-columns: 1fr; } }

/* ---------------- Testimonial ---------------- */
.testimonial { text-align: center; padding: 150px 0; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--ivory);
  max-width: 780px;
  margin: 0 auto 30px;
  line-height: 1.45;
  font-style: italic;
}
.testimonial cite { font-style: normal; font-size: 0.85rem; color: var(--ivory-faint); }

/* ---------------- Contact ---------------- */
.contact { background: var(--bg-panel); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 50px; } }

.contact-info p { font-size: 1.05rem; margin-bottom: 34px; max-width: 380px; }
.contact-line { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-line .ci-label { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ivory-faint); width: 90px; flex-shrink: 0; padding-top: 3px; }
.contact-line a, .contact-line span.val { color: var(--ivory); font-size: 1rem; }
.contact-line a:hover { color: var(--brass-bright); }

form#enquiryForm { display: flex; flex-direction: column; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { position: relative; }
.field label {
  display: block; font-size: 0.76rem; letter-spacing: 0.06em; color: var(--ivory-faint); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-bright);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 2px;
  transition: border-color 0.3s;
}
.field select option { background: var(--bg-panel); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brass-bright);
}
.field textarea { resize: vertical; min-height: 90px; }
.field.readonly-note { display: none; }
.field.readonly-note.show { display: block; }
.field.readonly-note input { color: var(--brass-bright); }

.form-submit {
  margin-top: 10px;
  align-self: flex-start;
}
.form-note { font-size: 0.78rem; color: var(--ivory-faint); margin-top: 6px; }
.form-status {
  font-size: 0.9rem; margin-top: 4px; min-height: 1.2em;
}
.form-status.ok { color: #a8c9a1; }
.form-status.err { color: #d99a8b; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------------- Footer ---------------- */
footer { padding: 60px 0 34px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 50px; border-bottom: 1px solid var(--line);
  gap: 40px; flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ivory-faint); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--ivory-dim); margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--brass-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; flex-wrap: wrap; gap: 14px;
}
.footer-bottom span, .footer-bottom a { font-size: 0.78rem; color: var(--ivory-faint); }
.footer-bottom a:hover { color: var(--brass-bright); }

/* ---------------- Product Modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10, 8, 6, 0.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-soft), visibility 0.45s;
  padding: 30px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-panel {
  background: var(--bg-panel);
  width: min(1080px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  transform: translateY(30px) scale(0.98);
  opacity: 0;
  transition: transform 0.55s var(--ease-silk), opacity 0.5s var(--ease-silk);
}
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: sticky; top: 16px; float: right; margin-right: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20,16,12,0.7);
  border: 1px solid var(--line-bright);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.modal-close:hover { background: var(--brass); color: #14100c; border-color: var(--brass); }

.modal-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
@media (max-width: 800px) { .modal-body { grid-template-columns: 1fr; } }

.modal-gallery { position: relative; background: #0e0b08; }
.modal-gallery-main { aspect-ratio: 4/3.4; overflow: hidden; }
.modal-gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #0e0b08; }
.modal-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.modal-thumbs img {
  width: 68px; height: 54px; object-fit: cover; border-radius: 2px; opacity: 0.5; cursor: pointer;
  border: 1px solid transparent; transition: opacity 0.3s, border-color 0.3s; flex-shrink: 0;
}
.modal-thumbs img.active, .modal-thumbs img:hover { opacity: 1; border-color: var(--brass-bright); }

.modal-info { padding: 50px 46px; }
.modal-info .pc-cat { margin-bottom: 14px; }
.modal-info h2 { font-size: 2rem; margin-bottom: 12px; }
.modal-info .price { color: var(--brass-bright); font-size: 1.1rem; margin-bottom: 26px; display: block; }
.modal-info .desc { color: var(--ivory-dim); margin-bottom: 30px; line-height: 1.75; }
.spec-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.spec-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-size: 0.9rem; }
.spec-row span:first-child { color: var(--ivory-faint); }
.spec-row span:last-child { color: var(--ivory); text-align: right; }

/* ---------------- Toast ---------------- */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ivory); color: #14100c;
  padding: 16px 26px; border-radius: 3px;
  font-size: 0.9rem; z-index: 600;
  opacity: 0; pointer-events: none;
  transition: all 0.5s var(--ease-silk);
  box-shadow: var(--shadow-deep);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Responsive nav ---------------- */
@media (max-width: 860px) {
  nav.main-nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(20,16,12,0.98); flex-direction: column; justify-content: center;
    gap: 34px; transform: translateX(100%); transition: transform 0.5s var(--ease-silk);
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { font-size: 1.3rem; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
}

.text-center { text-align: center; }


/* ---------------- Ambient studio motion ---------------- */
[data-motion-reveal] { opacity:0; transform: translateY(34px); transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease-soft); }
[data-motion-reveal].is-visible { opacity:1; transform:none; }
.product-card { transform: translateZ(0); will-change: transform; }
.product-card .pc-img-wrap img { transition: transform 1.2s var(--ease-soft), filter 1.2s var(--ease-soft); }
.product-card:hover .pc-img-wrap img { transform:scale(1.045); filter:saturate(1.05) contrast(1.02); }
@media (prefers-reduced-motion: reduce) {
  .hero-grain { display:none; }
  [data-motion-reveal] { opacity:1; transform:none; transition:none; }
}
