/* PencilSoul Studio — premium layer: gallery grey + pale gold */

:root {
  --gold-ink: #8f7134;
  --gold-line: rgba(194, 161, 95, 0.42);
  --shadow-soft: 0 40px 90px -60px rgba(20, 21, 24, 0.6);
}

/* fine film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.026;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

.site-header {
  background: rgba(241, 241, 238, 0.76);
  backdrop-filter: blur(22px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}
.nav a { font-size: 0.68rem; letter-spacing: 0.18em; }

.btn {
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  padding: 17px 28px;
  border-radius: 0;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: #0d0e10; color: var(--gold-soft); border-color: #0d0e10; }
.btn--ghost:hover { background: var(--ink); color: var(--gold-soft); }
.btn--gold { background: var(--gold); color: #141518; }
.btn--gold:hover { background: var(--gold-soft); color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at 50% 50%, rgba(194, 161, 95, 0.2), rgba(194, 161, 95, 0) 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero h1 { letter-spacing: -0.035em; }
.hero h1 em { color: var(--gold-ink); }
.hero .eyebrow { color: var(--gold-ink); }
.hero .eyebrow::before { background: var(--gold); opacity: 1; }
.hero-visual { filter: drop-shadow(0 40px 60px rgba(20, 21, 24, 0.18)); }

/* marquee band */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--gold-soft);
  border-block: 1px solid rgba(194, 161, 95, 0.35);
  padding: 15px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee span::after {
  content: "\25C6";
  font-style: normal;
  font-size: 0.5rem;
  color: var(--gold);
  opacity: 0.8;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* section heads */
.section-head .eyebrow { color: var(--gold-ink); }
.section-head .eyebrow::before { background: var(--gold); opacity: 1; }
.section--dark .eyebrow { color: var(--gold-soft); }

/* card polish */
.card-media {
  background: linear-gradient(155deg, #eeeeea, #e3e3de);
  box-shadow: inset 0 0 0 1px rgba(20, 21, 24, 0.04);
  transition: box-shadow 0.5s var(--ease);
}
.card:hover .card-media { box-shadow: inset 0 0 0 1px var(--gold-line); }
.card-body h3 { letter-spacing: -0.01em; }
.card:hover .card-price { color: var(--gold-ink); }

/* watch the studio */
.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
@media (max-width: 760px) { .watch-grid { grid-template-columns: 1fr; } }
.watch-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  background: #0f1012;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 0;
}
.watch-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.watch-card:hover img { transform: scale(1.045); opacity: 1; }
.watch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.8), rgba(10, 10, 12, 0.05) 55%);
  pointer-events: none;
}
.watch-play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border: 1px solid rgba(244, 241, 232, 0.6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  backdrop-filter: blur(6px);
  background: rgba(20, 21, 24, 0.25);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s;
}
.watch-play::before {
  content: "";
  border-left: 12px solid #f4f1e8;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 4px;
}
.watch-card:hover .watch-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--gold);
  border-color: var(--gold);
}
.watch-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #f4f1e8;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.25;
}
.watch-title small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.watch-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

/* reviews */
.review-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 820px) { .review-shell { grid-template-columns: 1fr; } }
.review-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 28ch;
}
.review-quote em { color: var(--gold-ink); font-style: italic; }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.review-cards { display: grid; gap: 12px; }
.review-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 22px 24px;
}
.review-card p { font-size: 0.95rem; color: var(--ink-soft); }
.review-card footer {
  margin-top: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.review-stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.8rem; margin-bottom: 10px; }

/* frame catalogue */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
@media (max-width: 1000px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .catalog-grid { grid-template-columns: 1fr; } }

.cat-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.cat-card:hover {
  border-color: var(--gold-line);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}
.cat-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #ededea, #e2e2dd);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
}
.cat-media .fp { width: 100%; }
.cat-media img { max-height: 100%; }
.cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: var(--gold);
  color: #141518;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.cat-badge--ink { background: var(--ink); color: var(--gold-soft); }
.cat-body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 1.12rem; }
.cat-cat {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.cat-price { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }
.cat-was { font-size: 0.82rem; color: var(--muted); text-decoration: line-through; }
.cat-now { font-family: var(--serif); font-size: 1.22rem; }
.cat-now small { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; }
.cat-choose {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s;
}
.cat-choose:hover { background: var(--ink); border-color: var(--ink); color: var(--gold-soft); }

/* motion extras */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.section--dark { position: relative; }
.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 30%), rgba(194, 161, 95, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.section--dark:hover .spotlight { opacity: 1; }

.section-head { position: relative; }
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-line), transparent 60%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-spring) 0.2s;
}
.section-head.is-in::after { transform: scaleX(1); }

/* catalogue controls */
.cat-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cat-filters .chip { border-color: var(--line-strong); }
.cat-count { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .section-head::after { transform: none; }
  .spotlight { display: none; }
}

.section--dark > .container { position: relative; z-index: 1; }
.watch-card.is-playing .watch-play,
.watch-card.is-playing .watch-title { opacity: 0; }

/* --- v2 palette: cooler gallery grey, brighter gold --- */
:root {
  --ink: #141519;
  --ink-soft: #34373c;
  --muted: #6e7278;
  --paper: #ededee;
  --paper-2: #e3e3e5;
  --cream: #f6f6f7;
  --gold: #c9a86a;
  --gold-soft: #e2cea6;
  --gold-ink: #9c7a3a;
  --gold-line: rgba(201, 168, 106, 0.45);
  --line: rgba(20, 21, 25, 0.12);
  --line-strong: rgba(20, 21, 25, 0.26);
}
body { background: var(--paper); }
.section--cream { background: #f7f7f8; }

/* animated gold on the hero italic */
.hero h1 em {
  background: linear-gradient(100deg, #a9834a 0%, #dcc08a 38%, #a9834a 70%, #d3b47c 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shift 9s ease-in-out infinite;
}
@keyframes gold-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* catalogue media: keep every frame inside its card */
.cat-media .fp {
  width: auto;
  max-width: 74%;
  max-height: 100%;
}
.cat-media .fp-mat img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
}
.cat-media { aspect-ratio: 1 / 1; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 em { animation: none; }
}

/* uniform catalogue frames: fixed box, art cropped to fill */
.cat-media { aspect-ratio: 1 / 1; padding: 22px; }
.cat-media .fp { width: 100%; height: 100%; display: block; }
.cat-media .fp-frame { height: 100%; }
.cat-media .fp-mat { height: 100%; display: flex; align-items: center; justify-content: center; }
.cat-media .fp-mat img {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
}

/* flex min-content guard so tall artworks cannot widen the frame */
.cat-media .fp-mat img { min-width: 0; min-height: 0; flex: 1 1 0; }

/* unify loud video thumbnails with the grey/gold palette */
.watch-card img {
  filter: grayscale(0.92) sepia(0.22) contrast(1.04) brightness(0.96);
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease), filter 0.7s var(--ease);
}
.watch-card:hover img { filter: grayscale(0) sepia(0) contrast(1) brightness(1); }
