/* ============================================================
   moodboard & co — individual project (brand) page styles
   Light, editorial, vibrant — matches the main site language.
   (Only work pages load this file.)
   ============================================================ */

body {
  background: var(--off-white);
  color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
  /* deepened accent so ANY brand colour stays readable on cream
     (light accents like yellow/green won't wash out as text) */
  --ink-accent: color-mix(in srgb, var(--accent) 62%, var(--black));
}

/* ============================================================
   TOP NAV — floating glass pill (light)
   ============================================================ */
.wp-nav {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 8px 32px -14px rgba(10, 10, 10, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.wp-nav-back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 0.25s ease, background 0.25s ease, gap 0.25s ease;
}

.wp-nav-back:hover {
  color: var(--ink-accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  gap: 12px;
}

.wp-nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.wp-nav-logo span { color: #9B5DE5; }

.wp-nav-siblings {
  display: flex;
  gap: 8px;
}

.wp-nav-sib {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid rgba(10, 10, 10, 0.14);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.wp-nav-sib:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   HERO — cream, colourful gradient wash, big editorial title
   ============================================================ */
.wp-hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px 80px 72px;
  overflow: hidden;
  background: var(--off-white);
}

/* vibrant gradient wash (NOT dark) top-right + accent glow bottom-left */
.wp-hero::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: var(--gradient, linear-gradient(135deg, var(--accent) 0%, #fff 100%));
  border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  animation: wpFloat 16s ease-in-out infinite;
}

.wp-hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  filter: blur(80px);
  opacity: 0.3;
  z-index: 0;
  animation: wpFloat 20s ease-in-out infinite reverse;
}

@keyframes wpFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-3%, 4%) scale(1.06); }
}

.wp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.wp-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(72px, 12vw, 200px);
  letter-spacing: -0.02em;
  line-height: 0.88;
  color: var(--black);
  margin: 0 0 36px;
  animation: wpRise 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.08s both;
}

.wp-title em { font-style: italic; }

/* meta card — floating glass, bottom-right */
.wp-hero-meta {
  position: absolute;
  bottom: 72px;
  right: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
  text-align: right;
  padding: 26px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 20px 50px -24px rgba(10, 10, 10, 0.3);
  animation: wpRise 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.28s both;
}

.wp-hero-meta .wp-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wp-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.wp-meta-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

@keyframes wpRise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   OVERVIEW — editorial statement, accent quote bar
   ============================================================ */
.wp-overview {
  position: relative;
  background: var(--off-white);
  padding: 130px 80px;
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 80px;
  align-items: start;
  overflow: hidden;
}

.wp-overview-label {
  position: sticky;
  top: 120px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-gray);
  z-index: 2;
}

.wp-overview-label::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--ink-accent);
  margin-bottom: 16px;
}

.wp-desc {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--black);
  max-width: 24ch;
  max-width: 30ch;
  margin: 0;
  padding-left: 30px;
  border-left: 2px solid var(--ink-accent);
}

.wp-desc em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-accent);
}

/* ============================================================
   GALLERY — elevated masonry cards
   ============================================================ */
.wp-gallery {
  position: relative;
  background: var(--off-white);
  padding: 40px 80px 120px;
  overflow: hidden;
}

/* soft accent glow behind the grid */
.wp-gallery::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -8%;
  width: 40vw;
  height: 40vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.wp-gallery-eyebrow {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-gray);
  display: block;
  margin-bottom: 8px;
}

.wp-gallery-eyebrow::after {
  content: "Creative highlights";
  display: block;
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--black);
}

.wp-gallery-grid {
  position: relative;
  z-index: 2;
  columns: 3;
  column-gap: 20px;
  margin-top: 44px;
}

.wp-media-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: block;
  background: #fff;
  box-shadow: 0 6px 24px -12px rgba(10, 10, 10, 0.28);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
  /* scroll reveal */
  opacity: 0;
  transform: translateY(30px);
}

.wp-media-item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.wp-media-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -20px rgba(10, 10, 10, 0.34);
}

.wp-media-item img,
.wp-media-item video {
  width: 100%;
  display: block;
  border-radius: 18px;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.wp-media-item:hover img,
.wp-media-item:hover video {
  transform: scale(1.05);
}

/* thin accent frame on hover */
.wp-media-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.wp-media-item:hover::after { opacity: 1; }

/* ============================================================
   CTA / next — light, warm, big
   ============================================================ */
.wp-cta {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  padding: 160px 40px 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

/* big colourful glow rising from the bottom */
.wp-cta::before {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 78vw;
  max-width: 1300px;
  max-height: 820px;
  background: var(--gradient, linear-gradient(135deg, var(--accent) 0%, #fff 100%));
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.wp-cta-head {
  position: relative;
  z-index: 2;
  order: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.wp-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wp-cta-eyebrow::before,
.wp-cta-eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ink-accent);
}

.wp-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6.2vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--black);
  margin: 0;
  max-width: 15ch;
}

.wp-cta-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-accent);
}

.wp-cta-start {
  position: relative;
  z-index: 2;
  order: 1;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--ink-accent);
  padding: 21px 42px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--accent) 78%, transparent);
}

.wp-cta-start:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 52px -12px color-mix(in srgb, var(--accent) 88%, transparent);
}

.wp-cta-back {
  position: relative;
  z-index: 2;
  order: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.25s, gap 0.25s;
  display: inline-flex;
  gap: 8px;
}

.wp-cta-back:hover { color: var(--ink-accent); gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .wp-nav { top: 12px; left: 14px; right: 14px; padding: 10px 12px 10px 18px; }
  .wp-nav-logo { display: none; }
  .wp-hero { padding: 130px 24px 56px; min-height: 88vh; }
  .wp-hero-seal { display: none; }
  .wp-hero-meta {
    position: relative; bottom: auto; right: auto; text-align: left;
    margin-top: 36px; flex-direction: row; flex-wrap: wrap; gap: 24px;
    align-self: flex-start;
  }
  .wp-overview { grid-template-columns: 1fr; gap: 28px; padding: 80px 24px; }
  .wp-overview-label { position: static; top: auto; }
  .wp-desc { padding-left: 20px; max-width: none; }
  .wp-gallery { padding: 20px 16px 80px; }
  .wp-gallery-grid { columns: 2; column-gap: 14px; }
  .wp-media-item { margin-bottom: 14px; }
  .wp-cta { padding: 100px 24px 90px; gap: 26px; }
}

@media (max-width: 599px) {
  .wp-gallery-grid { columns: 1; }
  .wp-hero-meta { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-hero::before, .wp-hero::after { animation: none; }
  .wp-title, .wp-hero-meta { animation: none; }
  .wp-seal-ring, .wp-seal-star { animation: none; }
  .wp-media-item { opacity: 1; transform: none; }
}

/* reveal everything when scripting is unavailable */
@media (scripting: none) {
  .wp-media-item { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Gallery hover affordance — subtle serif glass chip, bottom-left
   ============================================================ */
.wp-media-hint {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  padding: 7px 18px;
  border-radius: 100px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1;
  color: var(--black);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(1.8) brightness(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 24px -12px rgba(10, 10, 10, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.wp-media-item:hover .wp-media-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Hero rotating seal / badge (typographic, not media)
   ============================================================ */
.wp-hero-seal {
  position: absolute;
  top: 26%;
  right: 13%;
  z-index: 2;
  width: clamp(180px, 18vw, 250px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: wpRise 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both;
}

.wp-seal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: wpSpin 26s linear infinite;
}

.wp-seal-ring text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  fill: var(--ink-accent);
}

.wp-seal-star {
  position: relative;
  z-index: 2;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1;
  color: var(--ink-accent);
  animation: wpSealStar 5s ease-in-out infinite;
}

@keyframes wpSpin {
  to { transform: rotate(360deg); }
}

@keyframes wpSealStar {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50%      { transform: scale(1.18) rotate(90deg); opacity: 1; }
}

/* ============================================================
   Lightbox (click to expand) — light frosted, NOT dark
   ============================================================ */
.wp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(244, 241, 236, 0.8);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.wp-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wp-lightbox-media {
  position: relative;
  max-width: min(92vw, 1080px);
  max-height: 88vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(10, 10, 10, 0.55);
  transform: scale(0.94);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.wp-lightbox.is-open .wp-lightbox-media { transform: scale(1); }

.wp-lightbox-media img,
.wp-lightbox-media video {
  display: block;
  max-width: min(92vw, 1080px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
}

.wp-lb-btn {
  position: fixed;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  color: var(--black);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, color 0.25s;
}

.wp-lb-btn:hover {
  background: var(--ink-accent);
  color: #fff;
  transform: scale(1.06);
}

.wp-lb-close { top: 28px; right: 28px; }
.wp-lb-prev  { left: 28px;  top: 50%; transform: translateY(-50%); }
.wp-lb-next  { right: 28px; top: 50%; transform: translateY(-50%); }
.wp-lb-prev:hover, .wp-lb-next:hover { transform: translateY(-50%) scale(1.06); }

.wp-lb-counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 201;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mid-gray);
}

@media (max-width: 599px) {
  .wp-lb-btn { width: 44px; height: 44px; font-size: 17px; }
  .wp-lb-close { top: 16px; right: 16px; }
  .wp-lb-prev { left: 12px; }
  .wp-lb-next { right: 12px; }
}

/* ============================================================
   "Coming soon" state (work pages without content yet)
   ============================================================ */
.wp-soon {
  position: relative;
  z-index: 2;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  padding: 70px 24px 30px;
}

.wp-soon-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wp-soon-eyebrow::before,
.wp-soon-eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ink-accent);
}

.wp-soon-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 82px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--black);
  margin: 0;
  max-width: 16ch;
}

.wp-soon-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-accent);
}

.wp-soon-text {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--mid-gray);
  max-width: 48ch;
  margin: 0;
}

.wp-soon-dots {
  display: flex;
  gap: 9px;
  margin-top: 8px;
}

.wp-soon-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-accent);
  opacity: 0.3;
  animation: wpSoonPulse 1.4s ease-in-out infinite;
}

.wp-soon-dots span:nth-child(2) { animation-delay: 0.2s; }
.wp-soon-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wpSoonPulse {
  0%, 100% { opacity: 0.28; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .wp-soon-dots span { animation: none; opacity: 0.5; }
}

/* hero seal hidden on tablet/phone — placed last so it wins the cascade
   over the base .wp-hero-seal { display:grid } defined earlier */
@media (max-width: 1023px) {
  .wp-hero-seal { display: none !important; }
}
