/* The Cuterus Corner — site styles */
:root {
  --ink: #2a0e25;          /* plum ink: text */
  --plum: #4a1640;         /* deep plum: dark sections */
  --red: #d42f4c;          /* the full stop */
  --red-dark: #a91f39;
  --blush: #f6d7dc;        /* soft section */
  --petal: #fcf3f4;        /* page base */
  --sage: #c9d6bb;         /* calm accent */
  --sage-dark: #5d7150;
  --line: rgba(42, 14, 37, .14);
  --muted: #6b4a63;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--petal);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
h4 { font-size: 1.15rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 62ch; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.bg-blush { background: var(--blush); }
.bg-plum { background: var(--plum); color: #fbe9ee; }
.bg-plum a:not(.btn) { color: #fff; }
.bg-plum .muted { color: #e2bfd2; }
.bg-sage { background: var(--sage); }
.bg-white { background: var(--white); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 243, 244, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--red); flex: none; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .98rem; }
.nav-links a:hover { background: var(--blush); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--petal); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 .95rem var(--body); color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--petal); flex-direction: column; align-items: stretch; padding: 12px 16px 24px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.1rem; }
  .nav-links .btn { margin-top: 8px; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ink { background: var(--ink); color: var(--petal); }
.btn-ink:hover { background: var(--plum); color: #fff; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--petal); border-color: var(--ink); }
.bg-plum .btn-line:hover { background: #fff; color: var(--plum); border-color: #fff; }
.nav-links .btn { padding: 10px 18px; }
.nav-links .btn-red { color: #fff; }
.nav-links .btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero h1 .stop { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--red); margin-left: .04em; vertical-align: baseline; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-art .big-dot { position: absolute; inset: 6%; border-radius: 50%; background: var(--red); }
.hero-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(42,14,37,.3); animation: spin 90s linear infinite; }
.hero-art .note { position: absolute; background: var(--white); border-radius: 18px; padding: 14px 18px; font-size: .95rem; line-height: 1.35; box-shadow: 0 10px 30px rgba(74,22,64,.14); max-width: 220px; }
.hero-art .note b { font-family: var(--display); display: block; font-size: 1.05rem; }
.hero-art .n1 { left: -6%; top: 14%; transform: rotate(-4deg); }
.hero-art .n2 { right: -4%; bottom: 12%; transform: rotate(3deg); }
.hero-art .dot-text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.05; padding: 22%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 340px; }
  .hero-art .n1 { left: -2%; }
  .hero-art .n2 { right: -2%; }
}

/* page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 18ch; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- stat band ---------- */
.stat-band { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 14vw, 11rem); line-height: .85; letter-spacing: -0.05em; color: var(--red); }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr; } }

/* ---------- grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* pillars: what we do */
.pillar { padding: 32px 0 0; border-top: 2px solid var(--ink); }
.pillar h3 { margin-bottom: .4em; }
.pillar .tag { display: inline-block; font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--blush); margin-bottom: 16px; }
.pillar a.more { font-weight: 600; }

/* conditions doors */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }
.door { display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; padding: 30px; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px; text-decoration: none; transition: transform .2s; }
.door:hover { transform: translateY(-4px); color: inherit; }
.door h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.door p { margin: 0; }
.door .go { font-weight: 600; margin-top: 20px; text-decoration: underline; text-underline-offset: 4px; }
.door-pmos { background: var(--red); color: #fff; }
.door-pmos:hover { color: #fff; }
.door-endo { background: var(--plum); color: #fbe9ee; }
.door-endo:hover { color: #fff; }
.door-care { background: var(--sage); color: var(--ink); }

/* founders */
.founder { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }
.portrait { width: 160px; aspect-ratio: 4/5; border-radius: 80px 80px 18px 18px; overflow: hidden; background: var(--red); position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.portrait .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 3.4rem; color: #fff; }
.portrait.alt { background: var(--plum); }
.founder .role { font-weight: 600; color: var(--red-dark); margin-bottom: .6em; }
.bg-plum .founder .role { color: #ffb3c1; }

/* funnel card */
.practice { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); }
.practice .who { font-size: .92rem; color: var(--muted); font-weight: 600; }
.practice h3 { margin: 4px 0 8px; }
.practice ul { margin: 0 0 18px; padding-left: 1.1em; }
.practice .btn { align-self: flex-start; margin-top: auto; }
.disclosure { font-size: .88rem; color: var(--muted); margin-top: 20px; max-width: 70ch; }

/* events */
.event-feature { background: var(--plum); color: #fbe9ee; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.event-feature h2, .event-feature h3 { color: #fff; }
.event-feature dl { margin: 0; display: grid; gap: 14px; align-content: start; }
.event-feature dt { font-size: .85rem; color: #e2bfd2; }
.event-feature dd { margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: #fff; }
@media (max-width: 800px) { .event-feature { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); }
.timeline .when { font-weight: 600; color: var(--red-dark); font-size: .95rem; }
.timeline h3 { margin: 4px 0 6px; }

/* resource hub */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; align-items: center; }
.chip { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 8px 16px; font: 500 .95rem var(--body); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--petal); }
.search { flex: 1 1 240px; max-width: 360px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: 1rem var(--body); color: var(--ink); }
.res-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .res-list { grid-template-columns: 1fr; } }
.res { display: block; background: var(--white); border-radius: 18px; padding: 24px; text-decoration: none; border: 1px solid var(--line); transition: border-color .15s; }
.res:hover { border-color: var(--ink); color: inherit; }
.res .kind { font-size: .85rem; font-weight: 600; color: var(--muted); }
.res h3 { margin: 6px 0 8px; font-size: 1.35rem; }
.res p { margin: 0; color: var(--muted); }
.res.soon { opacity: .75; }
.res .badge { display: inline-block; font-size: .78rem; font-weight: 600; background: var(--sage); border-radius: 999px; padding: 2px 10px; margin-left: 8px; color: var(--ink); }
.empty { padding: 32px; background: var(--white); border-radius: 18px; display: none; }

/* article */
.article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
@media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.toc { position: sticky; top: 96px; align-self: start; font-size: .95rem; }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.8em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.callout { border-radius: 18px; padding: 22px 26px; margin: 28px 0; }
.callout h3, .callout h4 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-red { background: #fde4e8; border-left: 6px solid var(--red); }
.callout-sage { background: #e6eedd; border-left: 6px solid var(--sage-dark); }
.callout-plum { background: var(--plum); color: #fbe9ee; }
.callout-plum h3, .callout-plum h4 { color: #fff; }
.callout-plum a { color: #fff; }
.review-note { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }

.drivers { display: grid; gap: 12px; margin: 20px 0; }
.driver { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; background: var(--white); border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.driver .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--red); }
.driver h4 { margin: 4px 0 4px; }
.driver p { margin: 0; }

table.map { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .98rem; }
table.map th, table.map td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.map th { font-family: var(--display); font-size: 1rem; }

details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--red); }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding-top: 10px; max-width: 68ch; }

/* toolkit checklist */
.checklist { list-style: none; padding: 0; margin: 16px 0; }
.checklist li { margin: 0; }
.checklist label { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); cursor: pointer; align-items: flex-start; }
.checklist input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.tracker { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; background: var(--white); }
.tracker th, .tracker td { border: 1px solid var(--line); padding: 8px; height: 38px; text-align: left; }
.tracker th { background: var(--blush); font-family: var(--display); }

/* forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: 1rem var(--body); padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.form-status { font-weight: 600; min-height: 1.5em; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checks input { width: 18px; height: 18px; accent-color: var(--red); }

/* ways list (professionals / get involved) */
.ways { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.way { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.way h3 { margin: 0; }
.way p { margin: 0; }
@media (max-width: 700px) { .way { grid-template-columns: 1fr; gap: 8px; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; padding-top: 20px; border-top: 2px solid currentColor; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--red); display: block; line-height: 1; margin-bottom: 10px; }
.bg-plum .steps li::before { color: #ff9fb1; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* newsletter */
.newsletter { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* quote */
.pull { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; }

/* footer */
.site-footer { background: var(--ink); color: #f0d6df; padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #c9a8b9; font-size: .88rem; }
.foot-legal p { margin: 0; }

@media print {
  .site-header, .site-footer, .toc, .no-print, .btn-row { display: none !important; }
  body { background: #fff; }
  .section { padding: 16px 0; }
}

/* logo */
.brand img { display: block; height: 48px; width: auto; }
@media (max-width: 560px) { .brand img { height: 42px; } }

/* founder photos: keep faces in frame */
.portrait img.ph-naba { object-position: 50% 22%; }
.portrait img.ph-mimi { object-position: 50% 20%; }

/* partner / affiliate card */
.res.partner { max-width: 640px; border-color: var(--red); }
.res .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--ink); background: var(--blush); padding: 1px 8px; border-radius: 6px; letter-spacing: .02em; }

/* donate */
.nav-links .nav-donate { color: var(--red-dark); border-color: var(--red); }
.nav-links .nav-donate:hover { background: var(--red); color: #fff; border-color: var(--red); }
.nav-links a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: .92rem; }
  .nav-links .btn { padding: 8px 14px; margin-left: 4px; }
}

/* ---------- past-event recap ---------- */
.event-status { color: #ffb3c1; font-weight: 600; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.past-tag { display: inline-block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 1.5px solid #ffb3c1; color: #ffd6de; }
.event-feature .btn-line:hover { background: #fff; color: var(--plum); border-color: #fff; }

/* ---------- photo / video frames ---------- */
.eyebrow { font-weight: 600; color: var(--red-dark); font-size: .95rem; margin-bottom: 10px; }
.gallery-section { overflow: hidden; }
.gallery-head { max-width: 46ch; margin-bottom: clamp(32px, 5vw, 56px); }
.gallery-head h2 { margin-bottom: .3em; }

.frame {
  position: relative; margin: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 22% 18%, rgba(255,255,255,.75) 0, rgba(255,255,255,0) 55%),
    linear-gradient(155deg, #f9e3e7 0%, var(--blush) 55%, #eec4cc 100%);
  box-shadow: 0 30px 60px -34px rgba(74,22,64,.45), 0 2px 6px rgba(74,22,64,.06);
}
/* soft, feathered inner edge that sits over photos too */
.frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 0 48px 6px rgba(42,14,37,.16);
}
/* empty-frame label (covered once a photo is added) */
.frame::before {
  content: attr(data-slot); position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center; text-align: center;
  font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(107,74,99,.55);
}
.frame > img, .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.frame:hover > img, .frame:hover > video { transform: scale(1.035); }

/* shapes */
.frame--arch   { border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.frame--circle { border-radius: 50%; aspect-ratio: 1; }
.frame--pill   { border-radius: 999px; }
.frame--soft   { border-radius: 56px 18px 56px 18px; }
.frame--petal  { border-radius: 64% 36% 58% 42% / 48% 56% 44% 52%; }

/* video slot: play mark shows only while empty */
.frame--video::before { content: ""; }
.frame--video:not(:has(video))::before {
  content: ""; inset: 50% auto auto 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255,255,255,.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23d42f4c'/%3E%3C/svg%3E") center/26px no-repeat;
  box-shadow: 0 8px 24px -8px rgba(74,22,64,.4);
}

/* caption: a small note pinned to the frame */
.frame figcaption {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  background: var(--white); color: var(--ink); border-radius: 999px; padding: 7px 14px;
  font: 600 .85rem/1.2 var(--body); box-shadow: 0 8px 20px -8px rgba(74,22,64,.35);
}
.frame--circle figcaption { left: 50%; bottom: 10%; transform: translateX(-50%); white-space: nowrap; }
.frame--pill figcaption { left: 50%; bottom: 28px; transform: translateX(-50%); white-space: nowrap; }
.frame--petal figcaption { left: 22%; bottom: 14%; }

/* collage layout */
.collage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(44px, 5.4vw, 66px); gap: clamp(12px, 1.6vw, 20px); }
.collage .frame, .collage-badge { position: relative; z-index: 1; }
.c-a { grid-column: 1 / 6;  grid-row: 1 / 9; }
.c-b { grid-column: 6 / 13; grid-row: 1 / 6; }
.c-c { grid-column: 6 / 9;  grid-row: 6 / 10; width: 100%; align-self: center; transform: rotate(-3deg); }
.c-d { grid-column: 9 / 13; grid-row: 6 / 12; }
.c-e { grid-column: 2 / 6;  grid-row: 9 / 13; }
.c-f { grid-column: 6 / 9;  grid-row: 10 / 13; justify-self: center; align-self: center; }
.collage-badge {
  height: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-content: center; text-align: center; font-size: .85rem; line-height: 1.3; transform: rotate(6deg);
}
.collage-badge span { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
.collage-ring { position: absolute; z-index: 0; width: 46%; aspect-ratio: 1; left: -9%; top: -7%; border-radius: 50%; border: 2px dashed rgba(42,14,37,.22); animation: spin 120s linear infinite; }
.collage-blob { position: absolute; z-index: 0; width: 32%; aspect-ratio: 1; right: -8%; bottom: -10%; border-radius: 58% 42% 50% 50% / 46% 54% 46% 54%; background: var(--sage); opacity: .55; }

@media (max-width: 760px) {
  .collage { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .collage > * { grid-column: auto; grid-row: auto; }
  .c-a { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .c-b { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .c-c { width: 100%; height: auto; transform: rotate(-3deg); }
  .c-f { width: 86%; height: auto; }
  .c-d, .c-e { aspect-ratio: 3 / 4; }
  .collage-ring { width: 90%; left: -30%; top: -4%; }
  .collage-blob { width: 80%; right: -30%; bottom: -6%; }
  .frame figcaption { font-size: .78rem; left: 12px; bottom: 12px; }
  .frame--circle figcaption, .frame--pill figcaption, .frame--petal figcaption { left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .frame--petal figcaption { bottom: 16%; }
}

/* row of event photo frames under the Events page intro */
.hero-frames { display: grid; grid-template-columns: 1.1fr .9fr 1.25fr 1.1fr .9fr 1.25fr; gap: 12px; align-items: center; margin-top: clamp(24px, 3.5vw, 40px); max-width: 940px; }
.hero-frames .frame { aspect-ratio: 4 / 5; box-shadow: 0 18px 36px -24px rgba(74,22,64,.45); }
.hero-frames .frame--circle { aspect-ratio: 1; }
.hero-frames .frame--soft { aspect-ratio: 5 / 4; border-radius: 34px 12px 34px 12px; }
.hero-frames .frame::before { font-size: .66rem; letter-spacing: .12em; }
.hero-frames .frame::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 0 26px 3px rgba(42,14,37,.14); }
.hero-frames .frame:nth-child(3n+2) { transform: translateY(-6px) rotate(-2deg); }
.hero-frames .frame:nth-child(3) { transform: rotate(3deg); }
@media (max-width: 760px) {
  .hero-frames { gap: 6px; }
  .hero-frames .frame::before { font-size: .5rem; letter-spacing: .08em; }
  .hero-frames .frame--soft { border-radius: 18px 6px 18px 6px; }
}

/* Cookie consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 640px; margin-inline: auto; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(42,14,37,.18); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.consent p { margin: 0; flex: 1 1 280px; font-size: .95rem; line-height: 1.45; }
.consent-btns { display: flex; gap: 10px; }
.consent .btn { padding: 10px 18px; font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
