/* ===== Prince Galant — modern editorial system ===== */
:root {
  /* Dark theme. --cream / --ink keep their names so every existing rule still
     resolves; what changed is which end of the scale they point to.
     --cream = the reading colour (now light text), --ink = the page ground. */
  --ink: #121215;
  --ink-soft: #1a1a1f;
  --ink-softer: #212127;
  --cream: #f2f2f3;
  --cream-soft: #1a1a1f;
  /* Silver, used as the accent the way steel reads on a dial. */
  --gold: #9aa3b0;
  --gold-light: #cfd4da;
  --line: rgba(242, 242, 243, 0.12);
  --line-dark: rgba(242, 242, 243, 0.14);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --tex: url('/wp-content/uploads/2026/07/pg-texture-guilloche.jpg');
  /* Guilloché texture, faint enough to read as grain rather than wallpaper.
     The two dark tones stay far enough apart to separate adjacent sections. */
  --tex-light: linear-gradient(rgba(18,18,21,.93), rgba(18,18,21,.93)), var(--tex);
  --tex-light-soft: linear-gradient(rgba(26,26,31,.93), rgba(26,26,31,.93)), var(--tex);
  --tex-dark: linear-gradient(rgba(10,10,12,.94), rgba(10,10,12,.94)), var(--tex);
  /* Body copy on dark needs a softer tone than pure white. */
  --body: rgba(242, 242, 243, 0.62);
  --muted: rgba(242, 242, 243, 0.42);
}

/* Shared painting rules for any surface using a --tex-* background-image. */
.pg-page,
.pg-split, .pg-pillars, .pg-anatomy, .pg-signature, .pg-marquee-band, .pg-detail,
.pg-chapter, .pg-quote-block, .pg-duo-chapter, .pg-collections,
.pg-mprod-gallery, .pg-mprod-specs, .pg-mprod-shipping, .pg-mprod-faq,
.pg-boutique-hero, .pg-boutique-cats,
.pg-legal-hero, .pg-legal-body,
#pg-header, .pg-trust-bar, .pg-mobile-nav, .pg-footer {
  background-repeat: no-repeat, repeat;
  background-size: cover, 560px;
}

/* Hairline seam between consecutive light sections, so each block reads as
   its own panel even when two similar tones sit next to each other. */
.pg-split, .pg-pillars, .pg-anatomy, .pg-signature,
.pg-chapter, .pg-duo-chapter, .pg-collections,
.pg-mprod-gallery, .pg-mprod-specs, .pg-mprod-shipping, .pg-mprod-faq,
.pg-boutique-cats, .pg-legal-body {
  border-top: 1px solid var(--line);
}
/* No seam where a dark block already provides the break. */
.pg-marquee-band + *, .pg-detail + *, .pg-quote-block + *, .pg-hero + * { border-top: 0; }

html { scroll-behavior: smooth; }

.pg-page {
  background-image: var(--tex-light);
  color: var(--cream);
  overflow-x: hidden;
  font-family: var(--sans);
}
.pg-page * { box-sizing: border-box; }
.pg-wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ---------- Reveal-on-scroll (snappy: heavy slow fades read as dated) ---------- */
.pg-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.pg-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Clip-path "shutter" reveal for photography ---------- */
.pg-wipe {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s var(--ease);
}
.pg-wipe.is-visible { clip-path: inset(0 0% 0 0); }

/* ---------- Scroll parallax on photography containers ----------
   Uses `translate` (not `transform`) so it composes with the reveal
   animation's transform instead of overwriting it. */
.pg-split-media, .pg-anatomy-item, .pg-collection-media, .pg-mprod-g-item {
  translate: 0 var(--py, 0px);
}

/* ---------- Magnetic buttons ---------- */
.pg-magnetic { transition: transform 0.25s var(--ease); }

/* ---------- Ambient / idle motion ---------- */
.pg-hero-glow { animation: pg-glow-drift 9s ease-in-out infinite; }
.pg-hero-glow.pg-glow-tracking {
  animation: none;
  transform: translate(var(--gx, 0px), var(--gy, 0px));
  transition: transform 0.6s cubic-bezier(.16,1,.3,1);
}
@keyframes pg-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-26px, 20px) scale(1.08); }
}
.pg-signature-mono { animation: pg-mono-breathe 13s ease-in-out infinite; }
@keyframes pg-mono-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.035); }
}
.pg-quote-mark { animation: pg-mark-float 7s ease-in-out infinite; }
@keyframes pg-mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Word-by-word text reveal (headings, pull-quotes) ---------- */
.pg-anim-words .pg-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.28em);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.pg-anim-words.is-visible .pg-word { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pg-anim-words .pg-word { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ---------- Marquee ---------- */
.pg-marquee-band {
  background-image: var(--tex-dark);
  border-bottom: 0;
  overflow: hidden;
  padding: 18px 0;
}
.pg-marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: pg-marquee 38s linear infinite;
}
.pg-marquee-track span {
  font: 500 12px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(242,242,243,0.7);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}
.pg-marquee-track span em { color: var(--gold); font-style: normal; }
@keyframes pg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Duotone hover ---------- */
@media (hover: hover) and (pointer: fine) {
  .pg-duotone { filter: grayscale(1) contrast(1.08) brightness(0.95); transition: filter 0.7s ease, transform 0.7s ease; }
  .pg-duotone-hover:hover .pg-duotone { filter: grayscale(0) contrast(1) brightness(1); }
}

/* ---------- Buttons ---------- */
.pg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border-radius: 0;
  padding: 15px 28px;
  font: 500 11.5px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
/* Primary: light plate on the dark ground, like a steel marker on a dial. */
.pg-btn-gold { background: var(--cream); color: var(--ink); }
.pg-btn-gold:hover { background: var(--gold-light); color: var(--ink); }
/* Outline variants both sit on dark now, so they behave identically. */
.pg-btn-ghost,
.pg-btn-ghost-dark { background: transparent; color: var(--cream); border-color: rgba(242,242,243,0.32); }
.pg-btn-ghost:hover,
.pg-btn-ghost-dark:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.pg-btn span.shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.4) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.9s ease;
}
.pg-btn:hover span.shine { transform: translateX(130%); }

/* ===================== HERO ===================== */
.pg-hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.pg-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pg-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* Neutral desaturation — the old sepia/hue-rotate gave a warm vintage cast. */
  filter: grayscale(0.55) contrast(1.05) brightness(0.62);
}
.pg-hero:not(.pg-hero-carousel) .pg-hero-media img { animation: pg-kenburns 16s ease-out forwards; }
@keyframes pg-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.pg-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,13,15,0.94) 22%, rgba(13,13,15,0.45) 60%, rgba(13,13,15,0.15) 100%),
              linear-gradient(to top, rgba(13,13,15,0.88) 0%, rgba(13,13,15,0.05) 45%);
  z-index: 1;
}
.pg-hero-glow {
  position: absolute; z-index: 1;
  width: 640px; height: 640px;
  right: -160px; top: 10%;
  background: radial-gradient(circle, rgba(201,205,211,0.14) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.pg-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 32px 96px;
  max-width: 1320px;
  margin: 0 auto;
}

/* ---------- Hero carousel (shared slide mechanics) ---------- */
.pg-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.pg-hero-slide.is-active { opacity: 1; }
.pg-hero-slide.is-active .pg-hero-media img { animation: pg-kenburns 6.5s ease-out forwards; }

.pg-hero-carousel .pg-hero-inner,
.pg-hero-carousel .pg-maison-hero-inner {
  display: grid;
}
.pg-hero-text {
  grid-row: 1; grid-column: 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.pg-hero-text.is-active { opacity: 1; transform: none; pointer-events: auto; }
.pg-hero-cta { grid-row: 2; grid-column: 1; align-self: start; }

.pg-hero-dots {
  position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; gap: 14px;
}
.pg-hero-dot {
  position: relative;
  width: 20px; height: 20px;
  border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: transparent;
}
.pg-hero-dot::after {
  content: "";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(250,250,250,0.4);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.pg-hero-dot.is-active::after { background: var(--cream); transform: translate(-50%, -50%) scale(1.2); }

/* Ring that fills over the carousel interval, showing time until next slide */
.pg-hero-dot-ring { position: absolute; inset: 0; transform: rotate(-90deg); pointer-events: none; }
.pg-hero-dot-ring circle {
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 50.3;
  stroke-dashoffset: 50.3;
  opacity: 0;
}
.pg-hero-dot.is-active .pg-hero-dot-ring circle {
  opacity: 1;
  animation: pg-dot-fill 6s linear forwards;
}
.pg-hero-carousel:hover .pg-hero-dot.is-active .pg-hero-dot-ring circle {
  animation-play-state: paused;
}
@keyframes pg-dot-fill {
  from { stroke-dashoffset: 50.3; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-hero-slide, .pg-hero-text { transition: none !important; }
  .pg-hero-dot-ring circle { animation: none !important; opacity: 0 !important; }
}
.pg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 24px;
}
.pg-eyebrow::before { content: ""; width: 24px; height: 1px; background: rgba(242,242,243,0.3); }
/* Variant for eyebrows placed over dark photography (hero) */
.pg-eyebrow-on-dark { color: rgba(250,250,250,0.65); }
.pg-eyebrow-on-dark::before { background: rgba(250,250,250,0.4); }
.pg-hero-title {
  font: 400 clamp(3rem, 7vw, 6.5rem)/1.0 var(--serif);
  color: var(--cream);
  max-width: 1000px;
  margin: 0 0 26px;
  letter-spacing: -0.02em;
}
.pg-hero-sub {
  font: 400 clamp(1rem, 1.3vw, 1.15rem)/1.6 var(--sans);
  color: rgba(250,250,250,0.7);
  max-width: 480px;
  margin: 0 0 44px;
}
.pg-scroll-cue {
  position: absolute; z-index: 2; right: 40px; bottom: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(250,250,250,0.5);
}
.pg-scroll-cue span { font: 500 10px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.18em; writing-mode: vertical-rl; }
.pg-scroll-cue .line { width: 1px; height: 46px; background: rgba(250,250,250,0.25); position: relative; overflow: hidden; }
.pg-scroll-cue .line::after { content:""; position:absolute; top:-100%; left:0; width:100%; height:100%; background: var(--cream); animation: pg-scrollline 2.2s ease-in-out infinite; }
@keyframes pg-scrollline { 0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; } }

@media (max-width: 780px) {
  .pg-hero-media img { object-position: center 15%; }
  .pg-scroll-cue { display: none; }
}

/* ===================== SECTION: Pourquoi ===================== */
.pg-split {
  background-image: var(--tex-light);
  padding: 150px 0;
  position: relative;
}
.pg-split-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 80px;
  align-items: center;
}
.pg-split.reverse .pg-split-grid { grid-template-columns: 1.08fr 0.92fr; }
.pg-split.reverse .pg-split-text { order: 2; }
.pg-split.reverse .pg-split-media { order: 1; }
.pg-quote-mark {
  font: 400 180px/1 var(--serif);
  color: var(--cream);
  opacity: 0.07;
  position: absolute;
  top: -50px; left: -12px;
  pointer-events: none;
  user-select: none;
}
.pg-split-text { position: relative; }
.pg-split-heading {
  font: 400 clamp(2.2rem, 3.6vw, 3.4rem)/1.05 var(--serif);
  letter-spacing: -0.015em;
  margin: 0 0 26px;
  position: relative;
}
.pg-split-body { font: 400 17px/1.75 var(--sans); color: var(--body); max-width: 520px; }
.pg-split-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 0;
  overflow: hidden;
}
.pg-split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pg-split-media:hover img { transform: scale(1.04); }
.pg-split-card {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink-softer);
  color: var(--cream);
  padding: 16px 22px;
  border-radius: 0;
}
.pg-split-card .l1 { font: 500 10px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-light); margin: 0 0 6px; }
.pg-split-card .l2 { font: 400 14px/1.3 var(--sans); margin: 0; }

@media (max-width: 900px) {
  .pg-split-grid, .pg-split.reverse .pg-split-grid { grid-template-columns: 1fr; gap: 40px; }
  .pg-split.reverse .pg-split-text, .pg-split.reverse .pg-split-media { order: initial; }
  .pg-split { padding: 90px 0; }
  .pg-quote-mark { font-size: 100px; }
}

/* ===================== SECTION: Pillars ===================== */
.pg-pillars {
  background-image: var(--tex-light-soft);
  padding: 150px 0 140px;
  position: relative;
}
.pg-pillars-head { text-align: center; max-width: 640px; margin: 0 auto 72px; }
.pg-pillars-head .pg-eyebrow { justify-content: center; }
.pg-pillars-title { font: 400 clamp(2.2rem, 3.8vw, 3.6rem)/1.05 var(--serif); letter-spacing: -0.015em; color: var(--cream); margin: 16px 0 0; }
.pg-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.pg-pillar {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 48px 36px 56px;
  transition: background 0.3s var(--ease);
}
.pg-pillar:first-child { border-left: 1px solid var(--line); }
.pg-pillar:nth-child(2) { transform: none; }
.pg-pillar:hover { background: var(--ink-softer); transform: none; }
.pg-pillar-num { font: 500 11px/1 var(--sans); color: var(--muted); letter-spacing: 0.14em; }
.pg-pillar-rule { width: 24px; height: 1px; background: rgba(242,242,243,0.28); margin: 20px 0; }
.pg-pillar h3 { font: 400 24px/1.25 var(--serif); letter-spacing: -0.01em; color: var(--cream); margin: 0; }

@media (max-width: 860px) {
  .pg-pillars-grid { grid-template-columns: 1fr; }
  .pg-pillar { border-left: 1px solid var(--line); }
  .pg-pillar:nth-child(2), .pg-pillar:nth-child(2):hover { transform: none; }
  .pg-pillars { padding: 90px 0; }
}

/* ===================== SECTION: Anatomy gallery ===================== */
.pg-anatomy {
  background-image: var(--tex-light);
  padding: 150px 0;
}
.pg-anatomy-head { max-width: 680px; margin: 0 0 56px; }
.pg-anatomy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 10px;
}
.pg-anatomy-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
}
.pg-anatomy-item.big { grid-column: span 2; grid-row: span 2; }
.pg-anatomy-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pg-anatomy-item:hover img { transform: scale(1.05); }
.pg-anatomy-caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(13,13,15,0.8), transparent);
  color: var(--cream);
  font: 500 11px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.pg-anatomy-item:hover .pg-anatomy-caption { opacity: 1; transform: none; }
.pg-anatomy-item.big .pg-anatomy-caption { font-size: 13px; padding: 22px; }

@media (max-width: 900px) {
  .pg-anatomy-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .pg-anatomy-item.big { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; height: auto; }
  .pg-anatomy { padding: 90px 0; }
}

/* ===================== SECTION: Detail ticker ===================== */
.pg-detail {
  background-image: var(--tex-dark);
  padding: 100px 0;
  text-align: center;
}
.pg-detail-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 34px;
  list-style: none; margin: 0 0 40px; padding: 0;
}
.pg-detail-list li { font: 500 12px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.pg-detail-quote { font: 400 clamp(1.4rem,2.4vw,2rem)/1.45 var(--serif); color: var(--cream); max-width: 760px; margin: 0 auto; letter-spacing: -0.01em; }

/* ===================== SECTION: Closing signature ===================== */
.pg-signature {
  position: relative;
  background-image: var(--tex-light-soft);
  padding: 180px 0 160px;
  text-align: center;
  overflow: hidden;
}
.pg-signature-mono {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font: 400 46vw/1 var(--serif);
  color: rgba(242,242,243,0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.pg-signature-inner { position: relative; z-index: 1; }
.pg-signature-inner .pg-eyebrow { justify-content: center; }
.pg-signature-title { font: 400 clamp(2.2rem, 4vw, 3.8rem)/1.08 var(--serif); letter-spacing: -0.02em; color: var(--cream); max-width: 800px; margin: 20px auto 22px; }
.pg-signature-tagline { font: 400 italic 18px/1.6 var(--serif); color: var(--muted); margin: 0 0 40px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pg-reveal, .pg-marquee-track, .pg-promo-track, .pg-trust-track, .pg-hero-media img, .pg-scroll-cue .line::after,
  .pg-hero-glow, .pg-quote-mark, .pg-quote-block .mark {
    animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .pg-signature-mono { animation: none !important; transform: translate(-50%, -50%) !important; }
  .pg-wipe { clip-path: none !important; transition: none !important; }
  .pg-split-media, .pg-anatomy-item, .pg-collection-media, .pg-mprod-g-item, .pg-magnetic { transform: none !important; translate: none !important; transition: none !important; }
}
