/* ============================================================
   SOUNDNOTE — PROJECTS · Royal Cinematic Edition
   Scoped to .pj-royal so it never affects other pages.
   Typography inherits global --font-serif / --font-sans.
   ============================================================ */

.pj-royal {
  --pj-ink: #0c0c0e;
  --pj-ink-soft: #16161a;
  --pj-gold: #c89a3d;
  --pj-gold-light: #e7c979;
  --pj-gold-deep: #9a6e1f;
  --pj-gold-grad: linear-gradient(135deg, #f2dc9c 0%, #d7ab4e 42%, #9a6e1f 100%);
  --pj-serif: var(--font-serif);
  --pj-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   HERO — dark, cinematic, royal
   ------------------------------------------------------------ */
.pj-hero {
  position: relative;
  min-height: clamp(680px, 96vh, 1040px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--pj-ink);
}
.pj-hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 70% at 12% 48%, rgba(200,154,61,0.13), transparent 70%),
    linear-gradient(90deg, rgba(6,6,8,0.24), transparent 55%);
}
.pj-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pj-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  transform: scale(1.08);
  transform-origin: 60% 45%;
  animation: pjKenBurns 24s ease-in-out infinite alternate;
}
/* Ken Burns — slow cinematic zoom + drift */
@keyframes pjKenBurns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.2) translate(-1.5%, -2%); }
}

/* dark black overlay (~75%) for high text legibility */
.pj-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,6,8,0.65) 0%, rgba(6,6,8,0.42) 38%, rgba(6,6,8,0.88) 100%),
    radial-gradient(105% 110% at 8% 72%, rgba(6,6,8,0.9) 0%, rgba(6,6,8,0.42) 55%, rgba(6,6,8,0.04) 82%);
}

/* thin gold frame inside the hero */
.pj-hero-frame {
  position: absolute; inset: 26px;
  border: 1px solid rgba(200,154,61,0.35);
  z-index: 2; pointer-events: none;
}
.pj-hero-frame::before, .pj-hero-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border: 2px solid var(--pj-gold);
}
.pj-hero-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.pj-hero-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.pj-hero-content { position: relative; z-index: 3; padding-bottom: clamp(4rem, 7vw, 7rem); padding-top: 9rem; }
.pj-breadcrumb { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1.75rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.pj-breadcrumb a { color: rgba(255,255,255,0.6); }
.pj-breadcrumb a:hover { color: var(--pj-gold-light); }
.pj-breadcrumb span { color: rgba(255,255,255,0.85); }
.pj-breadcrumb .pj-sep { color: var(--pj-gold); }

.pj-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.7rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--pj-gold-light); font-weight: 600; margin-bottom: 1.4rem;
}
.pj-hero-eyebrow::before { content: ""; width: 46px; height: 1px; background: var(--pj-gold-grad); }

.pj-hero-title {
  font-family: var(--pj-serif);
  font-weight: 600;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.98;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  text-shadow: 0 2px 44px rgba(0,0,0,0.5);
}
.pj-hero-title em {
  font-style: italic;
  background: var(--pj-gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 8px 28px rgba(200,154,61,0.2));
}

/* gold accent line that expands on load */
.pj-hero-line {
  display: block;
  width: 130px; height: 2px;
  background: var(--pj-gold-grad);
  margin: 0 0 1.9rem;
  transform: scaleX(0);
  transform-origin: left center;
}

.pj-hero-subtitle {
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}

/* premium CTA buttons */
.pj-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.pj-hero-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1.05rem 2.4rem;
  font-family: var(--font-ui);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--pj-ease), box-shadow 0.4s var(--pj-ease), background 0.4s var(--pj-ease), color 0.4s var(--pj-ease), border-color 0.4s var(--pj-ease);
}
.pj-hero-btn svg { width: 16px; height: 10px; transition: transform 0.4s var(--pj-ease); }
.pj-hero-btn:hover svg { transform: translateX(5px); }
.pj-hero-btn::before {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: left 0.65s var(--pj-ease);
}
.pj-hero-btn:hover::before { left: 130%; }
.pj-hero-btn--gold { background: var(--pj-gold-grad); color: #1a1408; }
.pj-hero-btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 42px -16px rgba(200,154,61,0.8); }
.pj-hero-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); backdrop-filter: blur(6px); }
.pj-hero-btn--ghost:hover { transform: translateY(-3px); border-color: var(--pj-gold); color: var(--pj-gold-light); }

/* premium statistics under hero copy */
.pj-hero-ribbon {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.85rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.pj-hero-ribbon > div {
  display: flex;
  flex-direction: column;
  min-width: 11rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--pj-ease), border-color 0.4s var(--pj-ease), background 0.4s var(--pj-ease);
}
.pj-hero-ribbon > div:hover {
  transform: translateY(-3px);
  border-color: rgba(200,154,61,0.55);
  background: rgba(200,154,61,0.1);
}
.pj-hero-ribbon b { font-family: var(--pj-serif); font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; }
.pj-hero-ribbon span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pj-gold-light); margin-top: 0.5rem; }

/* ------------------------------------------------------------
   HERO — cinematic load animations (staggered)
   ------------------------------------------------------------ */
.pj-hero-eyebrow,
.pj-hero-title,
.pj-hero-subtitle,
.pj-hero-actions .pj-hero-btn,
.pj-hero-ribbon > div {
  opacity: 0;
  transform: translateY(30px);
  animation: pjHeroUp 1s var(--pj-ease) forwards;
}
.pj-hero-eyebrow { animation-delay: 0.2s; }
.pj-hero-title { animation-delay: 0.36s; }
.pj-hero-line { animation: pjLineExpand 1s var(--pj-ease) 0.56s forwards; }
.pj-hero-subtitle { animation-delay: 0.7s; }
.pj-hero-actions .pj-hero-btn:nth-child(1) { animation-delay: 0.88s; }
.pj-hero-actions .pj-hero-btn:nth-child(2) { animation-delay: 1.0s; }
.pj-hero-ribbon > div:nth-child(1) { animation-delay: 1.15s; }
.pj-hero-ribbon > div:nth-child(2) { animation-delay: 1.28s; }

@keyframes pjHeroUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pjLineExpand { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .pj-hero-media img,
  .pj-hero-eyebrow,
  .pj-hero-title,
  .pj-hero-subtitle,
  .pj-hero-actions .pj-hero-btn,
  .pj-hero-ribbon > div {
    animation: none; opacity: 1; transform: none;
  }
  .pj-hero-line { animation: none; transform: scaleX(1); }
}

/* ------------------------------------------------------------
   SECTION HEADERS
   ------------------------------------------------------------ */
.pj-royal .sn-section { position: relative; }
.pj-section-head { max-width: 44rem; }
.pj-eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--pj-gold-deep); font-weight: 600; margin-bottom: 1.1rem;
}
.pj-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--pj-gold-grad); }
.pj-section-title { font-family: var(--pj-serif); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.03; letter-spacing: -0.01em; }
.pj-section-title em { font-style: italic; color: var(--pj-gold-deep); }
.pj-section-head p { margin-top: 1.25rem; font-size: 1.05rem; line-height: 1.8; color: var(--color-muted); }

.pj-intro { text-align: center; }
.pj-intro .pj-section-head { margin: 0 auto; }
.pj-intro .pj-eyebrow { justify-content: center; }
.pj-ornament { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 1.6rem 0 0.4rem; color: var(--pj-gold); }
.pj-ornament::before, .pj-ornament::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--pj-gold)); }
.pj-ornament::after { background: linear-gradient(90deg, var(--pj-gold), transparent); }
.pj-ornament span { width: 7px; height: 7px; transform: rotate(45deg); background: var(--pj-gold-grad); }

/* index badge for each section */
.pj-section-index {
  position: absolute; top: 3rem; right: 2rem;
  font-family: var(--pj-serif); font-style: italic;
  font-size: 5.5rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(200,154,61,0.28);
  pointer-events: none; user-select: none;
}

/* ------------------------------------------------------------
   LUXURY GALLERY CARDS
   ------------------------------------------------------------ */
.pj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 300px;
  gap: 1.5rem;
}
.pj-card { position: relative; grid-column: span 4; overflow: hidden; background: var(--pj-ink); }
.pj-card--wide { grid-column: span 8; }
.pj-card--tall { grid-row: span 2; }

.pj-card-link { display: block; width: 100%; height: 100%; position: relative; color: #fff; }
.pj-card-media { position: absolute; inset: 0; overflow: hidden; }
.pj-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--pj-ease); }
.pj-card-link:hover .pj-card-media img { transform: scale(1.07); }

/* permanent cinematic gradient — disabled for clean image display */
.pj-card-media::after {
  content: none;
  display: none;
}
.pj-card-link:hover .pj-card-media::after {
  content: none;
  display: none;
}

/* gold hairline frame that draws in on hover */
.pj-card-frame { position: absolute; inset: 14px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--pj-ease); }
.pj-card-frame::before, .pj-card-frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--pj-gold-light);
}
.pj-card-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.pj-card-frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.pj-card-link:hover .pj-card-frame { opacity: 1; }

.pj-card-index {
  position: absolute; top: 1.35rem; left: 1.5rem; z-index: 4;
  font-family: var(--pj-serif); font-style: italic; font-weight: 600;
  font-size: 1.5rem; color: var(--pj-gold-light);
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

.pj-card-body {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  padding: 1.9rem 1.9rem 1.75rem;
  transform: translateY(8px); transition: transform 0.55s var(--pj-ease);
}
.pj-card-link:hover .pj-card-body { transform: translateY(0); }
.pj-card-cat {
  display: inline-block; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--pj-gold-light); font-weight: 600; margin-bottom: 0.55rem;
}
.pj-card-title { font-family: var(--pj-serif); font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: #fff; margin: 0 0 0.5rem; }
.pj-card-loc { display: block; font-size: 0.82rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.72); }
.pj-card-spec { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 0.3rem; }

.pj-card-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  color: var(--pj-gold-light);
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.45s var(--pj-ease), max-height 0.45s var(--pj-ease);
}
.pj-card-cta svg { width: 16px; height: 10px; }
.pj-card-link:hover .pj-card-cta { opacity: 1; max-height: 2rem; }

/* ------------------------------------------------------------
   STATS — royal dark band
   ------------------------------------------------------------ */
.pj-stats { position: relative; background: var(--pj-ink); overflow: hidden; }
.pj-stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(200,154,61,0.14) 0%, transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(200,154,61,0.05) 78px 79px);
}
.pj-stats .pj-eyebrow { color: var(--pj-gold-light); justify-content: center; }
.pj-stats .pj-section-title { color: #fff; }
.pj-stats-inner { position: relative; z-index: 2; text-align: center; }
.pj-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; }
.pj-stat { padding: 2rem 1rem; border-left: 1px solid rgba(200,154,61,0.2); }
.pj-stat:first-child { border-left: 0; }
.pj-stat-num { display: block; font-family: var(--pj-serif); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; background: var(--pj-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pj-stat-label { display: block; margin-top: 0.9rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 992px) {
  .pj-grid { grid-auto-rows: 260px; gap: 1.1rem; }
  .pj-card, .pj-card--wide { grid-column: span 6; }
  .pj-section-index { display: none; }
  .pj-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pj-stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 600px) {
  .pj-hero { min-height: 88vh; }
  .pj-hero-content { padding-bottom: 3rem; padding-top: 7rem; }
  .pj-hero-frame { inset: 14px; }
  .pj-hero-ribbon { gap: 1.4rem 2rem; }
  .pj-hero-ribbon b { font-size: 2rem; }
  .pj-hero-actions { gap: 0.75rem; }
  .pj-hero-btn { flex: 1 1 auto; justify-content: center; padding: 1rem 1.4rem; }
  .pj-grid { grid-template-columns: 1fr; grid-auto-rows: 78vw; }
  .pj-card, .pj-card--wide, .pj-card--tall { grid-column: span 1; grid-row: span 1; }
  .pj-stat-grid { grid-template-columns: 1fr; }
  .pj-stat { border-left: 0; border-top: 1px solid rgba(200,154,61,0.2); }
  .pj-stat:first-child { border-top: 0; }
}

/* ------------------------------------------------------------
   GLightbox — Projects page: image-only viewer (no text)
   ------------------------------------------------------------ */
.glightbox-container.gpj-clean .gslide-description,
.glightbox-container.gpj-clean .gdesc-inner,
.glightbox-container.gpj-clean .gslide-title,
.glightbox-container.gpj-clean .gslide-desc,
.glightbox-container.gpj-clean .glightbox-counter,
.glightbox-container.gpj-clean .gcounter {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
}
