/* ============================================================
   PATRICIAN YOUTH CENTRE - Design System
   Palette: cream base, deep plum ink, purple, teal, pink.
   Green is accent-only. No yellow. No orange.
   ============================================================ */

:root {
  --cream: #FAF4EA;
  --cream-2: #F3EADB;
  --ink: #2E2440;
  --purple: #6C3FC5;
  --purple-deep: #4B2A8C;
  --teal: #1E9E9B;
  --teal-deep: #157370;
  --pink: #F27FAB;
  --pink-soft: #FAD7E4;
  --pink-deep: #C74B7E;
  --green: #3D995B;
  --green-deep: #2C7444;
  --green-tint: #E2F1E7;
  --green-accent: #3D995B;
  --white: #FFFDF9;

  --radius-lg: 28px;
  --radius-xl: 44px;
  --shadow-card: 0 10px 30px rgba(46, 36, 64, 0.10);
  --shadow-lift: 0 18px 44px rgba(46, 36, 64, 0.16);

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Figtree", sans-serif;

  --wrap: 1180px;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.01em; }

.display {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  font-weight: 800;
  text-transform: uppercase;
}

h2.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}

h3 { font-size: 1.35rem; font-weight: 800; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  opacity: 0.85;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 8px;
  border-radius: 8px;
  background: currentColor;
  opacity: 0.85;
}

.lede { font-size: 1.16rem; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .35s var(--ease-bounce), box-shadow .3s ease, background .25s ease;
  will-change: transform;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 8px 22px rgba(61, 153, 91, .35); }
.btn-primary:hover { background: var(--green-deep); box-shadow: 0 14px 30px rgba(61, 153, 91, .4); }
.btn-teal { background: var(--pink-deep); color: var(--white); box-shadow: 0 8px 22px rgba(199, 75, 126, .32); }
.btn-teal:hover { background: #A93A67; }
.btn-ghost { background: transparent; color: var(--ink); border: 2.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn .arrow { transition: transform .3s var(--ease-bounce); display: inline-block; }
.btn:hover .arrow { transform: translateX(5px) rotate(-8deg); }

/* ---------- Announcement bar ---------- */
.announce {
  display: block;
  background: var(--pink-deep);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  padding: 11px 20px;
  text-decoration: none;
}
.announce strong { text-transform: uppercase; letter-spacing: .06em; }
.announce .arrow { display: inline-block; transition: transform .3s var(--ease-bounce); }
.announce:hover .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 244, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid rgba(46, 36, 64, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .logo-mark { width: 40px; height: 40px; flex: none; }
.logo span em { font-style: normal; color: var(--green-deep); }
.logo span .teal { color: var(--ink); }

nav.main-nav { display: flex; align-items: center; gap: 6px; }
nav.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 15px;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease, transform .3s var(--ease-bounce);
}
nav.main-nav a:hover { background: rgba(61, 153, 91, .12); transform: translateY(-2px); }
nav.main-nav a.active { background: var(--ink); color: var(--cream); }
nav.main-nav a.nav-cta { background: var(--pink); color: var(--ink); margin-left: 8px; }
nav.main-nav a.nav-cta:hover { background: var(--green); color: var(--white); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero h1 span.hl-green { color: var(--green-deep); }
.hero h1 span.hl-teal { color: var(--pink-deep); }
.hero .lede { margin: 26px 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  margin-bottom: 22px;
  transform: rotate(-2deg);
}

.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-xl);
  aspect-ratio: 4/4.6;
  background: linear-gradient(150deg, var(--purple) 0%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-photo .photo-note {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-weight: 700; text-align: center; padding: 30px;
  font-size: .95rem;
}
.sticker {
  position: absolute;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 5px 6px 0 var(--ink);
  z-index: 3;
  transition: transform .4s var(--ease-bounce);
}
.sticker:hover { transform: rotate(0deg) scale(1.06) !important; }
.sticker small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

/* ---------- Squiggles & doodles (the signature) ---------- */
.squiggle, .doodle {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.doodle-wiggle { pointer-events: auto; cursor: default; }
.doodle-wiggle:hover svg { animation: wiggle .6s ease-in-out; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-9deg); }
  60% { transform: rotate(7deg); }
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.floaty { animation: floaty 7s ease-in-out infinite; }
.floaty.slow { animation-duration: 10s; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 15px 0;
  transform: rotate(-1.2deg);
  margin: 0 -20px;
  width: calc(100% + 40px);
}
.marquee-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: .04em;
}
.marquee-track .dot { color: var(--pink); }
.marquee-track .dot:nth-of-type(3n) { color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
section.band { position: relative; padding: 96px 0; overflow: hidden; }
.band-green { background: var(--green-deep); color: var(--cream); }
.band-green .eyebrow { color: var(--pink-soft); }
.band-teal { background: var(--green-deep); color: var(--cream); }
.band-teal .eyebrow { color: var(--pink-soft); }
.band-pink { background: var(--pink-soft); }
.band-cream2 { background: var(--cream-2); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-bounce), box-shadow .35s ease;
  position: relative;
}
.card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow-lift); }
.card:nth-child(even):hover { transform: translateY(-8px) rotate(.6deg); }
.card .card-icon {
  width: 74px; height: 74px;
  margin-bottom: 20px;
  transition: transform .45s var(--ease-bounce);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.1); }
.card h3 { margin-bottom: 10px; text-transform: uppercase; }
.card p { font-size: .98rem; opacity: .88; }
.card .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag-purple { background: rgba(108,63,197,.12); color: var(--purple); }
.tag-teal { background: rgba(30,158,155,.14); color: var(--teal-deep); }
.tag-pink { background: rgba(242,127,171,.2); color: #B3466F; }
.tag-green { background: rgba(61,153,91,.14); color: var(--green-deep); }
.tag-ink { background: rgba(46,36,64,.1); color: var(--ink); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.stat {
  color: var(--ink);
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 6px 7px 0 var(--ink);
  transition: transform .35s var(--ease-bounce), box-shadow .35s ease;
}
.stat:hover { transform: translate(-3px, -5px); box-shadow: 10px 12px 0 var(--ink); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; }
.stat:nth-child(1) .num { color: var(--green-deep); }
.stat:nth-child(2) .num { color: var(--pink-deep); }
.stat:nth-child(3) .num { color: var(--purple); }
.stat:nth-child(4) .num { color: var(--ink); }
.stat .label { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; opacity: .8; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3.4;
  box-shadow: var(--shadow-lift);
}
.hero-photo img, .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: rgba(255,255,255,.88); font-weight: 700; padding: 28px; font-size: .95rem;
}
.ph-green { background: linear-gradient(140deg, var(--green), var(--green-deep)); }
.ph-teal { background: linear-gradient(140deg, var(--green), var(--green-deep)); }
.ph-pink { background: linear-gradient(140deg, var(--pink), #C74B7E); }
.ph-ink { background: linear-gradient(140deg, #453763, var(--ink)); }

/* ---------- Timetable (What's On) ---------- */
.timetable { display: grid; gap: 18px; margin-top: 44px; }
.day-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-bounce), box-shadow .3s ease;
}
.day-row:hover { transform: translateX(8px); box-shadow: var(--shadow-lift); }
.day-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.day-name .day-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 9px; flex: none; }
.sessions { display: flex; flex-direction: column; gap: 14px; }
.session { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; }
.session .time { font-weight: 800; font-size: .92rem; color: var(--green-deep); }
.session .what strong { display: block; font-size: 1.02rem; }
.session .what span { font-size: .88rem; opacity: .75; }

/* ---------- Notice ---------- */
.notice {
  color: var(--ink);
  background: var(--pink-soft);
  border: 2px dashed #C74B7E;
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  font-size: .95rem;
  margin-top: 30px;
}
.notice strong { color: #B3466F; }

/* ---------- Accordion-ish detail lists ---------- */
.detail-list { margin-top: 34px; display: grid; gap: 14px; }
.detail-item {
  background: var(--white);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
}
.detail-item h4 { font-size: 1.08rem; text-transform: uppercase; margin-bottom: 6px; }
.detail-item p { font-size: .95rem; opacity: .88; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; margin-top: 44px; align-items: start; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1.5px solid rgba(46,36,64,.08); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ci { width: 46px; height: 46px; flex: none; }
.contact-line strong { display: block; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; opacity: .65; }
.contact-line a { font-weight: 700; text-decoration: none; }
.contact-line a:hover { color: var(--green-deep); }

form.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 2px solid rgba(46,36,64,.18);
  border-radius: 16px;
  background: var(--white);
  transition: border-color .25s ease, box-shadow .25s ease, transform .3s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(61,153,91,.16);
  transform: translateY(-1px);
}
textarea { min-height: 130px; resize: vertical; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 30px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); text-transform: uppercase; }
.cta-band p { opacity: .92; margin-top: 12px; }
.cta-band .btn-primary { background: var(--pink); color: var(--ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--white); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 70px 0 34px;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; position: relative; z-index: 2; }
.footer-grid h4 { text-transform: uppercase; font-size: .95rem; margin-bottom: 16px; color: var(--pink); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { text-decoration: none; opacity: .85; transition: opacity .2s ease, padding-left .25s ease; }
.footer-grid a:hover { opacity: 1; padding-left: 5px; color: var(--pink); }
.footer-mission { font-size: .95rem; opacity: .82; max-width: 40ch; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(250,244,234,.15);
  margin-top: 50px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .84rem;
  opacity: .7;
  position: relative;
  z-index: 2;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--ease-bounce); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 74px 0 60px; overflow: hidden; }
.page-hero .display { max-width: 14ch; }
.page-hero .lede { margin-top: 20px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
  .card-grid, .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 46px 34px; }
}
@media (max-width: 700px) {
  nav.main-nav {
    position: fixed;
    inset: 70px 16px auto 16px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lift);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    display: none;
    z-index: 70;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { text-align: center; padding: 13px; }
  .menu-toggle { display: block; }
  .card-grid, .card-grid.cols-4, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .day-row { grid-template-columns: 1fr; gap: 10px; }
  .session { grid-template-columns: 1fr; gap: 2px; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero { padding: 56px 0 70px; }
  .sticker { display: none; }
}

/* archive caption */
.media-cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(46,36,64,.85); color: var(--cream);
  font-size: .78rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}

/* Mobile: squiggles out of the text's way */
@media (max-width: 700px) {
  .hero .squiggle { display: none; }
  .doodle { display: none; }
  .page-hero .squiggle { width: 200px !important; opacity: .45; }
  section.band .squiggle { opacity: .45; width: 150px !important; }
}

/* funders strip */
.funders {
  border-top: 1px solid rgba(250,244,234,.15);
  margin-top: 50px;
  padding-top: 30px;
  position: relative;
  z-index: 2;
}
.funders h4 { text-transform: uppercase; font-size: .8rem; letter-spacing: .14em; opacity: .6; margin-bottom: 18px; }
.funders-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.funder {
  background: rgba(250,244,234,.08);
  border: 1px solid rgba(250,244,234,.2);
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: .82rem;
  opacity: .85;
}
.funder { display:flex; align-items:center; min-height:58px; }
.funder img { height: 34px; width: auto; filter: grayscale(1) brightness(10); }
.funder img.tall { height: 56px; }

/* ---------- Feastie-style arch photo treatment ---------- */
.arch { border-radius: 999px 999px var(--radius-lg) var(--radius-lg) !important; }
.arch-top { border-radius: 340px 340px var(--radius-lg) var(--radius-lg) !important; }

.cta-band.has-photo { grid-template-columns: 1fr; padding-right: 320px; }
.cta-photo {
  position: absolute;
  right: 36px;
  bottom: -34px;
  width: 250px;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
  transition: transform .5s var(--ease-bounce);
}
.cta-band.has-photo:hover .cta-photo { transform: rotate(0deg) translateY(-8px); }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 980px) {
  .cta-band.has-photo { padding-right: 34px; }
  .cta-photo { display: none; }
}

/* ---------- Photo cards (Feastie-style colour blocks) ---------- */
.pcard {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 34px 30px 230px;
  overflow: hidden;
  color: var(--cream);
  min-height: 420px;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-bounce), box-shadow .35s ease;
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.pcard h3 { margin-bottom: 10px; text-transform: uppercase; color: var(--cream); }
.pcard p { font-size: .95rem; opacity: .92; position: relative; z-index: 2; }
.pcard .tag {
  display: inline-block;
  background: rgba(250,244,234,.18);
  color: var(--cream);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.pcard .pcard-photo {
  background: rgba(250,244,234,.22);
  position: absolute;
  right: -14px;
  bottom: -30px;
  width: 62%;
  aspect-ratio: 3 / 3.6;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .5s var(--ease-bounce);
  z-index: 1;
}
.pcard:hover .pcard-photo { transform: rotate(0deg) translateY(-8px); }
.pcard .pcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-green { background: var(--green-deep); }
.pc-purple { background: var(--purple-deep); }
.pc-pink { background: var(--pink-deep); }
.pc-ink { background: var(--ink); }
@media (max-width: 700px) {
  .pcard { min-height: 0; padding: 28px 24px 0; }
  .pcard .pcard-photo {
    position: static;
    width: calc(100% - 20px);
    aspect-ratio: 4 / 3;
    margin: 22px -24px 0 auto;
    transform: none;
    border-radius: 999px 999px 0 0;
  }
  .pcard:hover .pcard-photo { transform: none; }
}

/* ---------- Nav dropdown ---------- */
.nav-item { position: relative; display: inline-flex; }
.nav-item > a::after { content: " \25BE"; font-size: .7em; opacity: .6; }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 8px; min-width: 175px;
  display: none; flex-direction: column; gap: 2px; z-index: 90;
}
/* Invisible bridge across the 6px gap above the menu. Without it the pointer
   leaves .nav-item on the way down and the menu closes before it can be used.
   10px covers the gap plus the 2px lift the parent link takes on hover. */
.sub-menu::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: -10px; height: 10px;
}
.sub-menu a { text-align: left; }
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu { display: flex; }
@media (max-width: 700px) {
  .nav-item { display: block; }
  .nav-item > a { display: block; }
  .sub-menu { position: static; display: flex; box-shadow: none; padding: 0 0 0 18px; background: transparent; }
}

/* ---------- Age filter ---------- */
.age-filter {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  position: sticky; top: 86px; z-index: 40;
}
.age-filter .q { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; margin-right: 6px; }
.age-btn {
  font-family: var(--font-body); font-weight: 700; font-size: .88rem;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 2.5px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .25s ease, color .25s ease, transform .3s var(--ease-bounce);
}
.age-btn:hover { transform: translateY(-2px); }
.age-btn[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.age-btn.reset[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
section[data-age].age-hidden { display: none; }
