/* ============================================================
   PETAL WAYS — DESIGN SYSTEM (public site)
   Ported from the design-system tokens. Single linked stylesheet.
   @import must stay first.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Indie+Flower&display=swap");

:root {
  /* --- Neutrals: paper & ink --- */
  --ivory:        #FBF8F2;
  --cream:        #F4ECDD;
  --parchment:    #F8F2E7;
  --linen:        #EFE6D6;
  --sand:         #E4D8C3;
  --taupe:        #B9AB95;
  --stone:        #8A8170;
  --charcoal:     #3A352D;
  --espresso:     #2A2620;

  /* --- Dusty Rose (pressed petal) --- */
  --rose-100:     #F4E2D9;
  --rose-200:     #E9CABB;
  --rose-300:     #DDB0A0;
  --rose-400:     #CE9A86;
  --rose-500:     #BC8169;
  --rose-600:     #A56A52;

  /* --- Sage (foliage) --- */
  --sage-100:     #E7E8DC;
  --sage-200:     #CDCFBC;
  --sage-300:     #ABAE92;
  --sage-400:     #898E6C;
  --sage-500:     #6E7355;
  --sage-600:     #565B42;

  /* --- Terracotta (kiln / earth) --- */
  --terra-100:    #EBD3C2;
  --terra-200:    #DCAE8E;
  --terra-300:    #C5824F;
  --terra-400:    #B06435;
  --terra-500:    #934E28;
  --terra-600:    #763E20;

  /* --- Honey ochre (pollen / stamen) --- */
  --honey-200:    #E6CE9A;
  --honey-300:    #D4AF6A;
  --honey-400:    #C49250;
  --honey-500:    #A8773A;

  /* ========== SEMANTIC ALIASES ========== */
  --surface-page:        var(--ivory);
  --surface-page-alt:    var(--cream);
  --surface-card:        var(--parchment);
  --surface-well:        var(--linen);
  --surface-ink:         var(--espresso);
  --surface-rose:        var(--rose-100);
  --surface-sage:        var(--sage-100);

  --text-heading:        var(--espresso);
  --text-body:           var(--charcoal);
  --text-muted:          var(--stone);
  --text-faint:          var(--taupe);
  --text-on-dark:        var(--ivory);
  --text-on-dark-muted:  #BDB3A0;
  --text-accent:         var(--terra-400);

  --brand:               var(--terra-400);
  --brand-hover:         var(--terra-500);
  --brand-press:         var(--terra-600);
  --accent-rose:         var(--rose-400);
  --accent-sage:         var(--sage-400);
  --accent-honey:        var(--honey-400);

  --border-hair:         var(--sand);
  --border-soft:         #DECFBA;
  --border-strong:       var(--taupe);
  --border-ink:          var(--charcoal);

  --focus-ring:          color-mix(in oklab, var(--terra-400) 55%, transparent);

  --ok:                  var(--sage-500);
  --warn:                var(--honey-500);
  --error:               #B0443A;
  --error-surface:       #F2DCD6;

  /* ========== TYPOGRAPHY ========== */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-serif:   "Cormorant Garamond", Georgia, serif;
  --font-body:    "Mulish", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Menlo", monospace;
  --font-wordmark: "Indie Flower", "Comic Sans MS", cursive;

  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  --fs-display:   clamp(3.25rem, 6vw, 5.5rem);
  --fs-h1:        clamp(2.5rem, 4.4vw, 3.75rem);
  --fs-h2:        clamp(2rem, 3.2vw, 2.75rem);
  --fs-h3:        1.75rem;
  --fs-h4:        1.375rem;
  --fs-lead:      1.25rem;
  --fs-body:      1.0625rem;
  --fs-sm:        0.9375rem;
  --fs-xs:        0.8125rem;
  --fs-eyebrow:   0.75rem;

  --lh-tight: 1.05; --lh-display: 1.08; --lh-heading: 1.18; --lh-snug: 1.4; --lh-body: 1.65; --lh-relaxed: 1.8;
  --ls-display: -0.015em; --ls-heading: -0.01em; --ls-body: 0; --ls-eyebrow: 0.22em; --ls-button: 0.04em;

  /* ========== SPACING / LAYOUT ========== */
  --space-0: 0; --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem; --space-10: 8rem;
  --section-y:        clamp(4rem, 9vw, 8rem);
  --section-y-tight:  clamp(3rem, 6vw, 5rem);

  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px; --radius-xl: 22px;
  --radius-pill: 999px; --radius-frame: 3px;
  --bw-hair: 1px; --bw-frame: 1.5px;

  --container:       1200px;
  --container-wide:  1360px;
  --container-text:  68ch;
  --gutter:          clamp(1.25rem, 4vw, 3rem);

  /* ========== ELEVATION ========== */
  --shadow-xs: 0 1px 2px rgba(58, 53, 45, 0.06);
  --shadow-sm: 0 2px 6px rgba(58, 53, 45, 0.07);
  --shadow-md: 0 8px 24px rgba(58, 53, 45, 0.09);
  --shadow-lg: 0 18px 48px rgba(58, 53, 45, 0.12);
  --shadow-xl: 0 30px 70px rgba(58, 53, 45, 0.16);
  --shadow-frame: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 40px rgba(58, 53, 45, 0.14);
  --shadow-focus: 0 0 0 3px var(--focus-ring);

  --ease-soft:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-inout: cubic-bezier(0.45, 0.05, 0.25, 1);
  --dur-fast: 140ms; --dur-base: 240ms; --dur-slow: 420ms; --dur-veil: 700ms;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--text-accent); }
::selection { background: var(--rose-200); }
*::-webkit-scrollbar { width: 10px; }
*::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 10px; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.pw-display { font-family: var(--font-display); font-weight: var(--fw-regular); font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); color: var(--text-heading); }
.pw-h1 { font-family: var(--font-display); font-weight: var(--fw-regular); font-size: var(--fs-h1); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); color: var(--text-heading); }
.pw-h2 { font-family: var(--font-display); font-weight: var(--fw-regular); font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); color: var(--text-heading); }
.pw-h3 { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h3); line-height: var(--lh-heading); color: var(--text-heading); }
.pw-eyebrow { font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-accent); }
.pw-lead { font-family: var(--font-body); font-weight: var(--fw-regular); font-size: var(--fs-lead); line-height: var(--lh-relaxed); color: var(--text-body); }
.pw-body { font-family: var(--font-body); font-weight: var(--fw-regular); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-body); }
.pw-script { font-family: var(--font-serif); font-style: italic; font-weight: var(--fw-regular); }
em { font-style: italic; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.pw-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.pw-container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }
.pw-container-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.pw-section { padding: var(--section-y) 0; }
.pw-section-tight { padding: var(--section-y-tight) 0; }
.pw-surface-alt { background: var(--surface-page-alt); }
.pw-surface-rose { background: var(--surface-rose); }
.pw-surface-ink { background: var(--espresso); color: var(--text-on-dark); }

/* ============================================================
   BUTTONS (ported from design-system Button)
   ============================================================ */
.pw-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  letter-spacing: var(--ls-button); line-height: 1; text-decoration: none;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  padding: 13px 24px; transition: all var(--dur-base) var(--ease-soft);
}
.pw-btn-lg { padding: 16px 30px; font-size: var(--fs-body); }
.pw-btn-sm { padding: 10px 18px; font-size: var(--fs-xs); }
.pw-btn-primary { background: var(--brand); color: var(--ivory); }
.pw-btn-primary:hover { background: var(--brand-hover); }
.pw-btn-secondary { background: transparent; color: var(--text-body); border-color: var(--border-strong); }
.pw-btn-secondary:hover { border-color: var(--charcoal); background: var(--surface-card); }
.pw-btn-ghost { background: transparent; color: var(--text-accent); border-color: transparent; padding-left: 4px; padding-right: 4px; }
.pw-btn-ghost:hover { color: var(--brand-hover); }
.pw-btn-on-dark { background: var(--ivory); color: var(--espresso); }
.pw-btn-on-dark:hover { background: var(--cream); }
.pw-btn-full { width: 100%; justify-content: center; }

/* ============================================================
   FRAME (botanical wash placeholder — until real photography)
   ============================================================ */
.pw-frame {
  position: relative; border-radius: var(--radius-frame); overflow: hidden;
  background: var(--surface-card); box-shadow: var(--shadow-frame);
  border: var(--bw-frame) solid #fff; aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
}
.pw-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Soft gradient layer over any framed image — adds depth and warmth. */
.pw-frame:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--espresso) 12%, transparent) 0%,
      transparent 22%,
      transparent 58%,
      color-mix(in oklab, var(--espresso) 32%, transparent) 100%),
    linear-gradient(120deg,
      color-mix(in oklab, var(--terra-500) 10%, transparent) 0%,
      transparent 40%);
}
/* Flat frame: rounded photo that sits directly on the page — no mat, shadow or panel. */
.pw-frame-flat { background: transparent; box-shadow: none; border: none; }
.pw-frame-label { position: relative; z-index: 2; font-family: var(--font-display); font-style: italic; font-size: var(--fs-sm); color: var(--text-faint); }
/* Artwork frames: always show the whole piece, matted, uniform style (no crop). */
.pw-frame-art { padding: 4%; background: var(--surface-card); }
.pw-frame-art img { object-fit: contain; }
.pw-frame-art::after { display: none; }
.pw-wash-rose  { background: linear-gradient(135deg, var(--rose-100), var(--rose-300)); }
.pw-wash-sage  { background: linear-gradient(135deg, var(--sage-100), var(--sage-300)); }
.pw-wash-terra { background: linear-gradient(135deg, var(--terra-100), var(--terra-300)); }
.pw-wash-honey { background: linear-gradient(135deg, var(--honey-200), var(--honey-400)); }
.pw-wash-mixed { background: linear-gradient(135deg, var(--rose-200), var(--honey-300) 55%, var(--sage-300)); }

/* ============================================================
   SMALL UI: tags, badges, eyebrow rule
   ============================================================ */
.pw-tag {
  display: inline-flex; align-items: center; font-family: var(--font-body); font-size: var(--fs-xs);
  color: var(--text-body); background: var(--surface-card); border: 1px solid var(--border-hair);
  border-radius: var(--radius-pill); padding: 7px 14px; cursor: pointer; transition: all var(--dur-base) var(--ease-soft);
}
.pw-tag:hover { border-color: var(--border-strong); }
.pw-tag.is-selected { background: var(--terra-400); color: var(--ivory); border-color: var(--terra-400); }
.pw-badge {
  display: inline-flex; align-items: center; font-family: var(--font-body); font-size: var(--fs-xs);
  font-weight: var(--fw-semibold); border-radius: var(--radius-pill); padding: 5px 12px;
}
.pw-badge-rose { background: var(--rose-100); color: var(--rose-600); }
.pw-badge-sage { background: var(--sage-100); color: var(--sage-600); }
.pw-badge-terra { background: var(--terra-100); color: var(--terra-500); }
.pw-badge-neutral { background: var(--linen); color: var(--stone); }
.pw-badge-sold { background: var(--espresso); color: var(--ivory); }
.pw-badge-available { background: var(--sage-100); color: var(--sage-600); }

/* ============================================================
   FORMS (ported from design-system Field/Input)
   ============================================================ */
.pw-field { display: flex; flex-direction: column; gap: 7px; }
.pw-label { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-body); }
.pw-label .req { color: var(--terra-400); }
.pw-helper { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-faint); }
.pw-input, .pw-textarea, .pw-select {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-body); color: var(--text-body);
  background: var(--surface-page); border: 1px solid var(--border-hair); border-radius: var(--radius-md);
  padding: 12px 14px; transition: border-color var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
}
.pw-input:focus, .pw-textarea:focus, .pw-select:focus { outline: none; border-color: var(--terra-400); box-shadow: var(--shadow-focus); }
.pw-textarea { resize: vertical; }

/* ============================================================
   MOTION TOKENS  (from motion-design skill)
   ============================================================ */
:root {
  --ease-out-quart:    cubic-bezier(.165, .84, .44, 1);
  --ease-out-expo:     cubic-bezier(.19, 1, .22, 1);
  --ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);
}

/* ============================================================
   DECORATIVE LAYER — petals & organic blobs
   A clipping layer so decorations never cause horizontal scroll,
   while page content above can still overflow (e.g. hero accents).
   ============================================================ */
.pw-deco-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.pw-deco-body  { position: relative; z-index: 1; }

.pw-petal {
  position: absolute; pointer-events: none;
  /* JS sets --pw-flee-x / --pw-flee-y as the cursor nears; the shape drifts away
     and eases back. `translate` is an INDIVIDUAL transform prop, so it composes
     with any inline `transform: rotate()` on the wrapper instead of clobbering it. */
  translate: var(--pw-flee-x, 0px) var(--pw-flee-y, 0px);
  transition: translate 600ms var(--ease-out-quart);
}
.pw-petal__svg {
  display: block; transform-origin: center;
  animation: pw-petal-float var(--pw-float-dur, 12s) var(--ease-in-out-cubic) infinite;
  animation-delay: var(--pw-float-delay, 0s); will-change: transform;
}
@keyframes pw-petal-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(6deg); }
}

/* Continuous auto-rotation for radial flower motifs (bloom / seedhead).
   Spin lives on the inner <svg> so it composes with the wrapper's float —
   the flower drifts and wobbles while turning slowly, like a real bloom in a breeze.
   Linear timing keeps the turn perfectly steady across loops (no per-cycle stutter). */
.pw-petal--spin > .pw-petal__svg > svg {
  transform-origin: 50% 50%;
  animation: pw-petal-spin var(--pw-spin-dur, 48s) linear infinite;
}
.pw-petal--spin-rev > .pw-petal__svg > svg { animation-direction: reverse; }
@keyframes pw-petal-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.pw-blob {
  position: absolute; pointer-events: none; opacity: .55;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: pw-blob-morph 24s var(--ease-in-out-cubic) infinite; will-change: border-radius, transform;
}
@keyframes pw-blob-morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg) scale(1); }
  50%      { border-radius: 60% 40% 34% 66% / 57% 59% 41% 43%; transform: rotate(8deg) scale(1.04); }
}
.pw-blob-rose  { background: radial-gradient(circle at 35% 35%, var(--rose-200), transparent 70%); }
.pw-blob-sage  { background: radial-gradient(circle at 35% 35%, var(--sage-200), transparent 70%); }
.pw-blob-honey { background: radial-gradient(circle at 35% 35%, var(--honey-200), transparent 70%); }

/* ============================================================
   LOAD REVEAL (one orchestrated hero entrance) + hover lift
   ============================================================ */
.pw-reveal { opacity: 0; transform: translateY(20px); animation: pw-reveal-up 700ms var(--ease-out-quart) forwards; animation-delay: var(--pw-delay, 0s); }
@keyframes pw-reveal-up { to { opacity: 1; transform: none; } }

.pw-lift { transition: transform var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-quart); }
@media (hover: hover) { .pw-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } }

/* ============================================================
   CAROUSEL dots
   ============================================================ */
.pw-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.pw-carousel-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); border: none; background: var(--sand); cursor: pointer; padding: 0; transition: background 150ms ease, width var(--dur-base) var(--ease-out-quart); }
.pw-carousel-dot.is-active { background: var(--terra-400); width: 28px; }
.pw-carousel { position: relative; }
.pw-carousel-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: none; }
.pw-carousel-track::-webkit-scrollbar { display: none; }
.pw-carousel-slide { flex: 0 0 auto; width: clamp(220px, 78vw, 288px); scroll-snap-align: start; }
.pw-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--ivory) 90%, transparent); backdrop-filter: blur(4px); border: 1px solid var(--border-hair); box-shadow: var(--shadow-md); color: var(--text-heading); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background var(--dur-base) var(--ease-soft); }
.pw-carousel-btn:hover { background: var(--ivory); }
@media (max-width: 560px) { .pw-carousel-btn { display: none; } }

/* ============================================================
   GALLERY SNAPSHOT (home) — matted gallery wall
   ============================================================ */
.pw-snapshot { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: center; }
.pw-snapshot__side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) {
  .pw-snapshot { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   CAUSES GRID — columns adapt to how many causes are active
   ============================================================ */
.pw-cause-card {
  background: var(--surface-card); border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg); padding: 34px 28px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-xs);
}
.pw-causes { display: grid; gap: 26px; }
.pw-causes[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.pw-causes[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pw-causes[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* A single highlighted cause spans the full width — centre its content so it reads well. */
.pw-causes[data-count="1"] .pw-cause-card { align-items: center; text-align: center; }
.pw-causes[data-count="1"] .pw-cause-card p { max-width: 62ch; }
@media (max-width: 760px) { .pw-causes { grid-template-columns: 1fr !important; } }

/* Responsive safety net for the shared column grids (pw-grid-3 / pw-grid-4),
   so they collapse on mobile on ANY page that uses them (e.g. the process
   partial used on both home and preservation). !important beats inline styles. */
@media (max-width: 900px) { .pw-grid-4 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 760px) {
  .pw-grid-3 { grid-template-columns: 1fr !important; }
  .pw-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) { .pw-grid-4 { grid-template-columns: 1fr !important; } }

/* Utility: hide a decorative element on small screens (e.g. hero motifs that overlap text). */
@media (max-width: 640px) { .pw-hide-sm { display: none !important; } }

/* ============================================================
   PAGINATION
   ============================================================ */
.pw-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.pw-page-num, .pw-page-btn {
  min-width: 42px; height: 42px; padding: 0 8px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 14.5px; color: var(--text-body);
  border: 1px solid var(--border-hair); background: var(--surface-card);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-base) var(--ease-soft), border-color var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft), transform 150ms var(--ease-out-quart);
}
@media (hover: hover) {
  .pw-page-num:hover, .pw-page-btn:hover { border-color: var(--terra-300); color: var(--text-accent); transform: translateY(-1px); }
}
.pw-page-num.is-active { background: var(--terra-400); border-color: var(--terra-400); color: var(--ivory); font-weight: var(--fw-semibold); }
@media (hover: hover) { .pw-page-num.is-active:hover { transform: none; color: var(--ivory); } }
.pw-page-btn.is-disabled { opacity: .38; pointer-events: none; }
.pw-page-ellipsis { min-width: 24px; text-align: center; color: var(--text-faint); font-family: var(--font-body); }

/* ============================================================
   POSTER-FIRST VIDEO — clickable play, controls appear on start
   ============================================================ */
.pw-video { position: relative; }
.pw-video__play {
  position: absolute; inset: 0; z-index: 3; border: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--espresso) 26%, transparent);
  transition: background var(--dur-base) var(--ease-soft);
}
.pw-video__play:hover { background: color-mix(in oklab, var(--espresso) 16%, transparent); }
.pw-video__play span {
  width: 66px; height: 66px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--ivory) 92%, transparent);
  color: var(--terra-500); box-shadow: var(--shadow-lg);
  transition: transform var(--dur-base) var(--ease-out-quart);
}
@media (hover: hover) { .pw-video__play:hover span { transform: scale(1.08); } }

/* ============================================================
   ARTWORK VIEWER — hover magnify + click-to-open lightbox
   ============================================================ */
.pw-viewer { display: flex; flex-direction: column; }
.pw-zoomable { position: relative; cursor: zoom-in; }
.pw-zoomable img { will-change: transform; }
@media (hover: hover) {
  .pw-zoomable img { transition: transform 200ms var(--ease-out-quart); }
  .pw-zoomable.is-zooming img { transform: scale(2.1); }
}
.pw-zoom-hint {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--ivory) 84%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--border-hair);
  font-family: var(--font-body); font-size: 12px; color: var(--text-muted);
  box-shadow: var(--shadow-sm); pointer-events: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart);
}
@media (hover: hover) { .pw-zoomable:hover .pw-zoom-hint { opacity: 1; transform: none; } }

.pw-thumbs { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pw-thumb { width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid transparent; padding: 0; cursor: pointer; background: var(--surface-page-alt); transition: border-color 150ms ease, transform 150ms var(--ease-out-quart); }
.pw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) { .pw-thumb:hover { transform: translateY(-2px); } }
.pw-thumb.is-active { border-color: var(--terra-400); }

.pw-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 3vw; background: color-mix(in oklab, var(--espresso) 93%, transparent); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.pw-lightbox__stage { position: relative; width: min(94vw, 1200px); height: min(88vh, 1000px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pw-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,.5); user-select: none; -webkit-user-select: none; -webkit-user-drag: none; cursor: zoom-in; transition: transform 260ms var(--ease-out-quart); }
.pw-lightbox__img.is-zoomed { cursor: grab; transition: none; }
.pw-lightbox__img.is-grabbing { cursor: grabbing; }
.pw-lb-btn { position: absolute; z-index: 4; width: 48px; height: 48px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: var(--ivory); cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background var(--dur-base) var(--ease-soft); }
.pw-lb-btn:hover { background: rgba(255,255,255,.22); }
.pw-lb-close { top: 20px; right: 20px; }
.pw-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.pw-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.pw-lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4; font-family: var(--font-body); font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.82); }
.pw-lb-caption { position: absolute; top: 26px; left: 26px; z-index: 4; font-family: var(--font-display); font-size: 18px; color: var(--ivory); max-width: 60vw; }
@media (max-width: 560px) { .pw-lb-prev { left: 8px; } .pw-lb-next { right: 8px; } .pw-lb-caption { display: none; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .pw-petal__svg, .pw-petal--spin > .pw-petal__svg > svg, .pw-blob { animation: none !important; }
  .pw-petal { transition: none !important; translate: 0 0 !important; }
  .pw-reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  .pw-zoomable img, .pw-lightbox__img { transition: none !important; }
}

/* ============================================================
   TRANSPARENT OVERLAY NAVBAR
   Fixed header: fully transparent over the hero at the top,
   gains a soft blurred ground on scroll (.is-scrolled). The first
   section of each page reserves clearance so nothing tucks under it.
   ============================================================ */
:root { --pw-nav-h: 76px; }
html { scroll-padding-top: var(--pw-nav-h); }
.pw-site-header { background: transparent; }
main > section:first-child { padding-top: calc(var(--space-8) + var(--pw-nav-h)) !important; }

/* ============================================================
   GALLERY WALL (home snapshot) — organic masonry
   ============================================================ */
.pw-wall { column-count: 3; column-gap: 20px; }
.pw-wall > a { position: relative; display: block; break-inside: avoid; margin-bottom: 20px; text-decoration: none; }
.pw-wall__cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 9px 13px; border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--ivory) 90%, transparent); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart);
}
.pw-wall__cap-title { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--text-heading); }
.pw-wall__cap-price { font-family: var(--font-display); font-size: 15px; color: var(--terra-500); white-space: nowrap; }
@media (hover: hover) { .pw-wall > a:hover .pw-wall__cap { opacity: 1; transform: none; } }
@media (max-width: 760px) { .pw-wall { column-count: 2; } }
@media (max-width: 460px) { .pw-wall { column-count: 1; } }

/* ============================================================
   PRINTS / ZAZZLE STRIP (reusable component)
   ============================================================ */
.pw-prints-strip { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.pw-prints-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: start; }
@media (max-width: 680px) { .pw-prints-strip { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   HERO ARTWORK ACCENTS — tightly framed to the artwork itself
   (no surrounding mat/container)
   ============================================================ */
.pw-hero-art {
  position: absolute; display: block; overflow: hidden;
  border-radius: var(--radius-frame); border: 1.5px solid #fff;
  box-shadow: var(--shadow-md);
  transform: rotate(var(--rot, 0deg));
  transition: transform var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-quart);
}
.pw-hero-art img { display: block; width: 100%; height: auto; }
@media (hover: hover) {
  .pw-hero-art:hover { transform: rotate(var(--rot, 0deg)) translateY(-8px); box-shadow: var(--shadow-lg); }
}

/* ============================================================
   HOVER — contained image zoom + card lift (gallery, prints)
   The frame stays put; only the image scales inside it (overflow
   hidden), so the cursor never leaves the hit area.
   ============================================================ */
.pw-zoom { transition: box-shadow var(--dur-base) var(--ease-out-quart); }
.pw-zoom img { transition: transform 520ms var(--ease-out-quart); will-change: transform; }
@media (hover: hover) {
  .pw-zoom:hover { box-shadow: var(--shadow-lg); }
  .pw-zoom:hover img { transform: scale(1.07); }
}

.pw-gallery-card { transition: transform var(--dur-base) var(--ease-out-quart), opacity var(--dur-base) var(--ease-soft); }
.pw-gallery-card .pw-frame { transition: box-shadow var(--dur-base) var(--ease-out-quart); }
.pw-gallery-card .pw-frame img { transition: transform 520ms var(--ease-out-quart); will-change: transform; }
.pw-gallery-card .pw-gc-title { transition: color 150ms ease; }
@media (hover: hover) {
  .pw-gallery-card:hover { transform: translateY(-7px); }
  .pw-gallery-card:hover .pw-frame { box-shadow: var(--shadow-lg); }
  .pw-gallery-card:hover .pw-frame img { transform: scale(1.055); }
  .pw-gallery-card:hover .pw-gc-title { color: var(--text-accent); }
}
@media (prefers-reduced-motion: reduce) {
  .pw-zoom img, .pw-gallery-card, .pw-gallery-card .pw-frame img { transition: none !important; }
  .pw-zoom:hover img, .pw-gallery-card:hover, .pw-gallery-card:hover .pw-frame img { transform: none !important; }
}
