/* ==========================================================================
   GWGW — Grown Women Good Weed
   Stylesheet (mobile-first) · v2.3.9
   1. Fonts & tokens      6. Buttons & links     11. Founders
   2. Base & reset        7. Header & menu       12. Events
   3. Layout              8. Media frames        13. Gallery & lightbox
   4. Typography          9. Lobby               14. Forms
   5. Decoration         10. Gate & inside       15. Footer, toast, 404
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */
@font-face { font-family: 'Lora'; src: url('../fonts/Lora-Variable.woff') format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('../fonts/Lora-Italic-Variable.woff') format('woff'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.woff') format('woff'); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --cream: #fff7f1;
  --cream-deep: #fbeee6;
  --blush: #fbe3ef;
  --pink: #ea8dc6;          /* GWGW logo pink — fills only */
  --pink-soft: #f6c6e1;
  --pink-ink: #9e2f6e;      /* pink that passes contrast for text */
  --plum: #3a1631;
  --plum-2: #55234a;
  --ink: #2a2327;           /* body copy */
  --muted: #6a5a62;
  --teal: #157a74;          /* text-safe turquoise */
  --teal-soft: #7fd3cc;
  --teal-wash: #e3f5f2;
  --white: #fff;
  --line: rgba(58, 22, 49, 0.14);
  --line-strong: rgba(58, 22, 49, 0.28);
  --danger: #a3223b;
  --success: #1d6b52;

  --font-display: 'Lora', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Poppins', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(58, 22, 49, 0.06), 0 8px 24px -12px rgba(58, 22, 49, 0.18);
  --shadow-lg: 0 2px 4px rgba(58, 22, 49, 0.06), 0 24px 48px -24px rgba(58, 22, 49, 0.32);

  --gutter: 20px;
  --max: 1200px;
  --header-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --section-space: clamp(56px, 12vw, 112px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (max-width: 359px) { :root { --gutter: 16px; } }
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; } }

/* 2. Base & reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 12px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  overflow-x: hidden; overflow-x: clip; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-scroll-locked { position: fixed; inset-inline: 0; top: var(--scroll-lock-top, 0); width: 100%; overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink-soft); color: var(--plum); }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--plum); color: var(--cream); padding: 12px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: calc(12px + var(--safe-top)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.is-locked body > * { visibility: hidden; }
section[tabindex="-1"]:focus { outline: none; }

/* 3. Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: calc(var(--gutter) + var(--safe-left)) calc(var(--gutter) + var(--safe-right)); }
.wrap-narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--section-space); position: relative; }
.section-tint { background: var(--blush); }
.section-cream-deep { background: var(--cream-deep); }
.section-plum { background: var(--plum); color: var(--cream); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 5vw, 48px); max-width: 720px; }
.section-head > * { margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.stack > * + * { margin-top: 16px; }
@media (min-width: 768px) { .grid { gap: 24px; } }

/* 4. Typography ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--plum); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
.section-plum h2, .section-plum h3 { color: var(--cream); }
h1 { font-size: clamp(2.35rem, 9.4vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 6.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 4.6vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
em.accent, .accent { font-style: italic; color: var(--pink-ink); font-weight: 500; }
.lede { font-size: clamp(1.05rem, 3.6vw, 1.22rem); line-height: 1.6; color: var(--ink); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink-ink);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 12px 0 0 var(--teal-soft); margin-right: 12px; flex: none; }
.section-plum .eyebrow { color: var(--pink-soft); }
.note {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.5; color: var(--muted);
  background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0;
}
.note::before { content: 'i'; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-wash); color: var(--teal); font-weight: 700; font-size: 0.75rem; margin-top: 1px; font-family: var(--font-display); font-style: italic; }

/* 5. Decoration ----------------------------------------------------------- */
/* Bead string: a row of small beads. Always sized by its container. */
.beads { display: block; width: 100%; max-width: 100%; height: 14px; margin: 0; border: 0;
  background:
    radial-gradient(circle at 7px 7px, var(--pink) 0 5px, transparent 5.5px) 0 0 / 56px 14px repeat-x,
    radial-gradient(circle at 7px 7px, var(--teal-soft) 0 4px, transparent 4.5px) 14px 0 / 56px 14px repeat-x,
    radial-gradient(circle at 7px 7px, var(--white) 0 4px, transparent 4.5px) 28px 0 / 56px 14px repeat-x,
    radial-gradient(circle at 7px 7px, var(--plum-2) 0 3px, transparent 3.5px) 42px 0 / 56px 14px repeat-x,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 6.5px / 100% 1px no-repeat;
}
.beads-short { max-width: 168px; }
.center > .beads-short { margin-inline: auto; }
.deco-layer { position: absolute; inset: 0; pointer-events: none; overflow: clip; z-index: 0; }
.deco-layer + * , .has-deco > :not(.deco-layer) { position: relative; z-index: 1; }
.cloud { position: absolute; width: 160px; height: 56px; border-radius: 56px; background: var(--white); opacity: 0.8; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 68px; height: 68px; left: 26px; top: -32px; }
.cloud::after { width: 52px; height: 52px; right: 28px; top: -22px; }
.bloom { position: absolute; width: 44px; height: 44px; color: var(--pink); opacity: 0.9; }
.bloom svg { width: 100%; height: 100%; }
.sparkle { position: absolute; color: var(--teal-soft); font-size: 18px; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: drift 14s var(--ease) infinite alternate; }
  @keyframes drift { to { transform: translateX(14px); } }
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* 6. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 14px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent; max-width: 100%;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--plum); color: var(--cream); box-shadow: 0 6px 18px -10px rgba(58,22,49,.7); }
.btn-primary:hover { background: var(--plum-2); }
.btn-pink { background: var(--pink); color: var(--plum); }
.btn-pink:hover { background: #e47cbc; }
.btn-outline { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: var(--cream); }
.btn-ghost { background: var(--white); color: var(--plum); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--plum); }
.section-plum .btn-outline { color: var(--cream); border-color: var(--cream); }
.section-plum .btn-outline:hover { background: var(--cream); color: var(--plum); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 0.92rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row > * { min-width: 0; }
@media (max-width: 479px) { .btn-row.stack-mobile > .btn { flex: 1 1 100%; } }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--pink-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { color: var(--plum); }
.ext::after { content: '↗'; font-size: 0.9em; margin-left: 2px; text-decoration: none; display: inline-block; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* 7. Header & menu -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--safe-top);
  background: rgba(255, 247, 241, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; margin-right: auto; min-width: 0; }
.brand img { height: 30px; width: auto; border-radius: 3px; }
.brand-text { display: none; font-family: var(--font-display); font-style: italic; color: var(--plum); font-size: 0.98rem; line-height: 1.1; white-space: nowrap; }
@media (min-width: 400px) { .brand-text { display: block; } }
@media (min-width: 768px) { .brand img { height: 34px; } }
.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-desktop a, .nav-desktop button.nav-exit {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink); background: none; border: 0;
}
.nav-desktop a:hover, .nav-desktop button.nav-exit:hover { background: var(--blush); color: var(--plum); }
.nav-desktop a[aria-current="true"] { color: var(--pink-ink); box-shadow: inset 0 -2px 0 var(--pink); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--plum); font-weight: 600; font-size: 0.92rem;
}
.menu-icon { width: 18px; height: 12px; position: relative; flex: none; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-icon::before { top: 1px; }
.menu-icon::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 5px; transform: rotate(-45deg); }
@media (max-width: 359px) { .menu-toggle [data-menu-label] { display: none; } .header-actions .btn-sm { padding-inline: 12px; } }

.menu-panel {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  top: calc(var(--header-h) + var(--safe-top));
  background: rgba(42, 20, 36, 0.35);
  overscroll-behavior: contain;
}
.menu-sheet {
  background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px calc(var(--gutter) + var(--safe-right)) calc(24px + var(--safe-bottom)) calc(var(--gutter) + var(--safe-left));
}
@media (prefers-reduced-motion: no-preference) { .menu-sheet { animation: sheet-in .28s var(--ease); } @keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } } }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-links > li { min-width: 0; }
.menu-links a, .menu-links button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 56px; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; text-align: left;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--plum);
}
.menu-links a:hover, .menu-links button:hover { border-color: var(--pink); background: var(--blush); }
.menu-links .wide { grid-column: 1 / -1; }
.menu-links .is-primary { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.menu-links .is-primary:hover { background: var(--plum-2); color: var(--cream); }
.menu-links .ext::after { color: var(--pink-ink); }
.menu-foot { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .menu-toggle, .menu-panel { display: none !important; }
  .join-cta { display: none; }
}

/* 8. Media frames --------------------------------------------------------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--blush); width: 100%; }
.frame > img { width: 100%; height: 100%; }
.frame-4x5 { aspect-ratio: 4 / 5; }
.frame-3x4 { aspect-ratio: 3 / 4; }
.frame-1x1 { aspect-ratio: 1 / 1; }
.img-cover { object-fit: cover; object-position: var(--focal, 50% 50%); }
.img-contain { object-fit: contain; object-position: var(--focal, 50% 50%); }
@media (min-width: 960px) { .img-cover, .img-contain { object-position: var(--focal-lg, var(--focal, 50% 50%)); } }
.photo-card { background: var(--white); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.photo-card .frame { background: var(--white); border-radius: calc(var(--radius-lg) - 8px); }
/* Placeholder art used when no approved photo is available. */
.placeholder-art {
  position: absolute; inset: 0; display: grid; align-content: space-between; padding: 16px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.75) 0 14%, transparent 14.5%),
    radial-gradient(circle at 84% 78%, rgba(127,211,204,.55) 0 18%, transparent 18.5%),
    radial-gradient(circle at 70% 24%, rgba(255,255,255,.45) 0 7%, transparent 7.5%),
    linear-gradient(160deg, var(--pink-soft), var(--blush) 60%, var(--cream));
  color: var(--plum); overflow: hidden;
}
.placeholder-art.alt { background:
    radial-gradient(circle at 80% 18%, rgba(255,255,255,.7) 0 13%, transparent 13.5%),
    radial-gradient(circle at 16% 82%, rgba(234,141,198,.5) 0 18%, transparent 18.5%),
    linear-gradient(200deg, var(--teal-wash), #f3eefa 55%, var(--cream)); }
.placeholder-art .ph-kicker { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--pink-ink); }
.placeholder-art .ph-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.05; }
.placeholder-art .ph-note { font-size: 0.78rem; color: var(--muted); }
.placeholder-art .beads { opacity: .9; }

/* 9. Password door (index.html) and shared content blocks -------------- */
.page-door { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--blush); }
.door {
  flex: 1 0 auto; position: relative; display: grid; place-items: center;
  padding: calc(16px + var(--safe-top)) calc(var(--gutter) + var(--safe-right)) 20px calc(var(--gutter) + var(--safe-left));
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 78%);
}
.door .cloud.c1 { top: 6%; left: -80px; }
.door .cloud.c2 { bottom: 8%; right: -90px; transform: scale(1.1); }
.door-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 16px 20px 22px; text-align: center;
}
.door-card > * { min-width: 0; }
.door-media { margin: 0 auto 12px; }
.door-media img {
  display: block; margin-inline: auto; height: auto; aspect-ratio: 1458 / 1399;
  /* 300px max on phones; shrinks on short screens so the password stays in view. */
  width: min(300px, 100%, calc(34svh * 1.042));
  object-fit: contain; object-position: 50% 50%;
}
.door-view h1 { font-size: clamp(1.55rem, 6.4vw, 2.05rem); margin: 6px 0 14px; }
.door-body .form, .door-body .field, .door-body .access-panel { text-align: left; }
.door-form { gap: 12px; }
.door-form .hint { margin-top: 2px; }
.door-request { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; }
.door-request-q { margin: 0; color: var(--muted); font-size: 0.95rem; }
.access-panel { margin-top: 14px; padding: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 16px; }
.access-title { font-size: 1.35rem; margin: 0 0 2px; }
.access-title:focus { outline: none; }
.access-panel .form { gap: 14px; margin-top: 12px; }
.access-panel .check { background: var(--white); }
.access-panel .form-status { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 14px; }
.access-panel .form-status .ico { width: 28px; height: 28px; font-size: 0.85rem; }
.access-panel .email-text { display: block; font-size: 0.92rem; overflow-wrap: anywhere; }
@media (max-width: 359px) { .access-panel { padding: 14px 12px; } .access-panel .form-status { grid-template-columns: minmax(0, 1fr); gap: 6px; } .access-panel .email-text { font-size: 0.88rem; } }
.access-panel .form-status h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.door-view .state-icon { margin-top: 4px; }
.door-view[data-door-view="success"]:focus { outline: none; }
.door-foot { text-align: center; padding: 12px calc(var(--gutter) + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(var(--gutter) + var(--safe-left)); font-size: 0.85rem; color: var(--muted); background: var(--cream); }
.door-foot p { margin: 0; }
.door-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--pink-ink); font-weight: 600; }
.door-noscript { position: relative; z-index: 2; margin: 16px auto 0; text-align: center; font-weight: 600; color: var(--plum); }
/* Before gate.js runs, CSS picks the right state so nothing flashes. */
html:not(.door-ready).has-access .door-view-enter { display: none; }
html:not(.door-ready):not(.has-access) .door-view-returning { display: none; }
@media (max-height: 700px) {
  .door { padding-top: calc(10px + var(--safe-top)); }
  .door-media img { width: min(300px, 100%, calc(30svh * 1.042)); }
  .door-request { margin-top: 14px; padding-top: 10px; }
}
@media (max-width: 359px) {
  .door-card { padding: 14px 16px 18px; }
  .door-view h1 { font-size: 1.45rem; margin-bottom: 10px; }
  .door-form .hint { font-size: 0.8rem; }
  .door-foot { padding-top: 8px; }
}
@media (min-width: 900px) {
  .door-card { max-width: 880px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 44px; align-items: center; padding: 36px 44px; text-align: left; }
  .door-media { margin: 0; }
  .door-media img { width: 340px; }
  .door-request { justify-content: flex-start; }
  .door-view .state-icon { margin-left: 0; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .door-card { max-width: 760px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; text-align: left; }
  .door-media img { width: 200px; }
}

.pillars { grid-template-columns: 1fr; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--muted); }
.pillar .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blush); color: var(--pink-ink); font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.pillar:nth-child(2) .num { background: var(--teal-wash); color: var(--teal); }
.about-grid { display: grid; gap: 28px; }
.about-grid > * { min-width: 0; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; } }
.rules { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rules li { padding: 8px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-weight: 500; font-size: 0.9rem; color: var(--plum); }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(20px, 5vw, 36px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; }
.form-card h3 { margin-bottom: 4px; }

.social-cards { grid-template-columns: 1fr; }
@media (min-width: 600px) { .social-cards { grid-template-columns: 1fr 1fr; } }
.social-card { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 88px; transition: border-color .2s, transform .2s var(--ease); }
.social-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.social-card .icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blush); color: var(--plum); }
.social-card:nth-child(2) .icon { background: var(--teal-wash); color: var(--teal); }
.social-card .icon svg { width: 26px; height: 26px; }
.social-card strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--plum); }
.social-card span { color: var(--muted); font-size: 0.92rem; }
.social-card > div { min-width: 0; }

/* 10. Gate & inside ------------------------------------------------------- */
.gate { min-height: calc(100dvh - var(--header-h) - var(--safe-top)); display: grid; align-items: center; padding-block: 32px 56px; position: relative; background: linear-gradient(180deg, var(--blush), var(--cream) 70%); }
.gate .cloud.c1 { top: 8%; left: -70px; }
.gate .cloud.c2 { bottom: 10%; right: -80px; transform: scale(1.1); }
.gate-card { width: 100%; max-width: 460px; margin-inline: auto; background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 6vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); text-align: center; }
.gate-card .logo { width: 176px; margin: 0 auto 18px; }
.gate-card h1 { font-size: clamp(2rem, 8vw, 2.6rem); margin-bottom: 8px; }
.gate-card form, .gate-card .field { text-align: left; }
.gate-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.gate-foot p { margin: 0 0 4px; }
.state-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-wash); color: var(--teal); }
.state-icon svg { width: 28px; height: 28px; }

.welcome-hero { padding-block: clamp(28px, 7vw, 72px) clamp(40px, 8vw, 80px); background: linear-gradient(180deg, var(--blush), var(--cream)); position: relative; }
.welcome-grid { display: grid; gap: 28px; align-items: center; }
.welcome-grid > * { min-width: 0; }
@media (min-width: 900px) { .welcome-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; } }
.banner { position: relative; }
.banner .frame { aspect-ratio: 1458 / 701; max-height: 440px; }
.banner .frame > img { position: absolute; inset: 0; transition: opacity .8s var(--ease); }
.banner .frame > img:not(.is-active) { opacity: 0; }
.banner-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.banner-dots button { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; padding: 0; }
.banner-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.banner-dots button[aria-current="true"]::before { background: var(--pink-ink); }

.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.values li { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-weight: 600; color: var(--plum); line-height: 1.25; }
.values .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); }
.values li:nth-child(2) .dot { background: var(--teal-soft); }
.values li:nth-child(3) .dot { background: var(--plum-2); }
.values li:nth-child(4) .dot { background: var(--pink-soft); box-shadow: inset 0 0 0 2px var(--pink); }
@media (max-width: 339px) { .values { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .values { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.story-grid { display: grid; gap: 16px; }
.story-grid > * { min-width: 0; }
@media (min-width: 900px) { .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .story-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 899px) { .story-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tagline { font-family: var(--font-display); font-size: clamp(1.2rem, 4.4vw, 1.5rem); color: var(--plum); font-weight: 500; margin: -4px 0 14px; }
.values-title { font-size: 1.15rem; margin: 40px 0 12px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 5vw, 28px); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-plum { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.card-plum h3 { color: var(--cream); }
.card-plum .eyebrow { color: var(--pink-soft); }
.card .big-number { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--pink-ink); margin: 8px 0; font-weight: 600; }
.coming-soon { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-style: italic; color: var(--muted); }
.coming-soon::before { content: ''; width: 18px; height: 1.5px; background: currentColor; }
.cover-card { position: relative; overflow: hidden; }
.cover-card .cover-mock { aspect-ratio: 16 / 9; border-radius: 12px; margin-bottom: 16px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--pink), var(--pink-soft)); display: grid; place-items: center; }
.cover-card .cover-mock img { width: 56%; }

/* 11. Founders ------------------------------------------------------------ */
.founders { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.founders > * { min-width: 0; }
@media (max-width: 359px) { .founders { gap: 10px; } }
@media (min-width: 720px) { .founders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1140px) { .founders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.founder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); align-content: start; }
@media (max-width: 359px) { .founder { gap: 8px; padding: 10px; } }
@media (min-width: 720px) { .founder { padding: 14px; } }
.founder .frame { aspect-ratio: 1; border-radius: 14px; }
.portrait-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; padding: 8px; }
.portrait-ph .initial { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 12vw, 4.6rem); line-height: 1; color: var(--plum); }
.portrait-ph .ph-note { font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.founder:nth-child(3n+1) .portrait-ph { background: linear-gradient(160deg, var(--pink-soft), var(--blush)); }
.founder:nth-child(3n+2) .portrait-ph { background: linear-gradient(160deg, var(--teal-wash), #f4eef8); }
.founder:nth-child(3n) .portrait-ph { background: linear-gradient(160deg, var(--cream-deep), var(--blush)); }
.founder h3 { margin: 0; text-align: center; font-size: clamp(1.15rem, 4.5vw, 1.5rem); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { max-width: 100%; padding: 4px 10px; border-radius: 8px; background: var(--cream-deep); color: var(--plum); font-size: 0.8rem; font-weight: 500; line-height: 1.4; }

/* Dialogs */
dialog.modal { width: min(640px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom)); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; overscroll-behavior: contain; }
dialog.modal::backdrop { background: rgba(42, 20, 36, 0.55); }
@media (prefers-reduced-motion: no-preference) { dialog[open] { animation: pop .25s var(--ease); } @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } } }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 10px; pointer-events: none; }
.close-btn { pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); color: var(--plum); display: grid; place-items: center; box-shadow: var(--shadow); }
.close-btn svg { width: 20px; height: 20px; }
.close-btn:hover { background: var(--plum); color: var(--cream); }
.modal-body { padding: 0 clamp(20px, 5vw, 36px) clamp(24px, 5vw, 36px); margin-top: -40px; }
.story-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 20px; padding-right: 48px; }
.story-top .frame { aspect-ratio: 1; border-radius: 12px; }
.story-top h2 { margin: 4px 0 2px; font-size: 2rem; }
.story-text p { font-size: 1.02rem; }

/* 12. Events -------------------------------------------------------------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--teal-wash); color: var(--teal); white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-soldout { background: #fde7ea; color: var(--danger); }
.status-past { background: var(--cream-deep); color: var(--muted); }
.event-card { display: grid; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.event-card > * { min-width: 0; }
.event-card .frame { border-radius: 0; aspect-ratio: 4 / 5; max-height: 460px; }
.event-card.is-soldout .frame > img { filter: grayscale(.4); }
.event-body { padding: clamp(18px, 5vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.event-body h3 { margin: 0; font-size: clamp(1.6rem, 6vw, 2.3rem); }
.event-body p { margin: 0; }
.event-meta { margin: 0; display: grid; gap: 10px; }
.event-meta div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.event-meta dt { font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 2px; }
.event-meta dd { margin: 0; font-weight: 500; color: var(--plum); }
.sponsors { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sponsors img { height: 32px; width: auto; }
.featured-event .frame { aspect-ratio: 4 / 5; }
@media (max-width: 599px) {
  .featured-event .frame { max-height: 420px; }
  .event-card .frame:has(.placeholder-art) { max-height: 280px; }
}
@media (min-width: 760px) {
  .featured-event { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
  .featured-event .frame { max-height: none; height: 100%; min-height: 380px; }
  .event-card .frame:has(.placeholder-art) { min-height: 300px; }
}
.event-list { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) {
  .event-list { gap: 24px; margin-top: 24px; }
  .event-list .event-card { grid-template-columns: 240px minmax(0, 1fr); }
  .event-list .event-card .frame { max-height: none; height: 100%; min-height: 300px; }
}
.event-list .event-card .frame { aspect-ratio: 4 / 5; max-height: 340px; }
.event-list .event-body h3 { font-size: 1.45rem; }
.empty-state { text-align: center; padding: clamp(28px, 7vw, 56px) 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--white); }
.empty-state h3 { margin-bottom: 6px; }
.archive { margin-top: clamp(40px, 8vw, 72px); }
.archive-year { border-top: 1px solid var(--line-strong); }
.archive-year:last-child { border-bottom: 1px solid var(--line-strong); }
.archive-year summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 4px; cursor: pointer; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--plum); }
.archive-year summary::-webkit-details-marker { display: none; }
.archive-year summary .count { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-left: auto; }
.archive-year summary .chev { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .2s var(--ease); }
.archive-year[open] summary .chev { transform: rotate(180deg); }
.archive-list { list-style: none; margin: 0; padding: 0 0 16px; display: grid; gap: 8px; }
@media (min-width: 760px) { .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.archive-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; background: var(--white); border-radius: 14px; border: 1px solid var(--line); }
.date-tile { display: grid; place-items: center; align-content: center; width: 64px; height: 72px; border-radius: 12px; background: var(--blush); color: var(--plum); line-height: 1.05; text-align: center; }
.date-tile .m { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--pink-ink); }
.date-tile .d { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.archive-item:nth-child(even) .date-tile { background: var(--teal-wash); }
.archive-item h4 { margin: 0 0 2px; font-size: 1.08rem; }
.archive-item p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.archive-item .text-link { min-height: 44px; font-size: 0.9rem; }
.archive-item .text-link { position: relative; }
.archive-item .text-link::before { content: ''; position: absolute; inset: -4px -6px; }

/* 13. Gallery & lightbox -------------------------------------------------- */
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.thumbs > li { min-width: 0; }
.thumb img.img-contain { padding: 6px; }
.thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--white); border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.thumb img { width: 100%; height: 100%; transition: transform .4s var(--ease); }
.thumb:hover img { transform: scale(1.03); }
.thumb .zoom { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--plum); display: grid; place-items: center; }
.thumb .zoom svg { width: 18px; height: 18px; }
.thumb-more { display: grid; place-content: center; gap: 6px; text-align: center; padding: 12px; aspect-ratio: 4 / 3; border-radius: 14px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: 0.85rem; background: var(--white); text-decoration: none; }
.thumb-more strong { font-family: var(--font-display); color: var(--plum); font-size: 1.1rem; }
.albums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .albums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .albums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.albums > li { min-width: 0; }
.album { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.album .frame { aspect-ratio: 4 / 3; border-radius: 0; }
.album .placeholder-art { padding: 10px; }
.album .placeholder-art .ph-title { font-size: 1.6rem; }
.album-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.album-body h4 { margin: 0; font-size: 1rem; line-height: 1.25; }
.album-body p { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.album-body .text-link { margin-top: auto; min-height: 44px; font-size: 0.9rem; }
.album-body .text-link::before { content: ''; position: absolute; inset: 0; }
.album-body .soon { margin-top: auto; padding-top: 8px; font-size: 0.8rem; font-style: italic; color: var(--muted); font-family: var(--font-display); }

dialog.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(28, 12, 24, 0.96); color: var(--cream); overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(28, 12, 24, 0.96); }
.lb-inner { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(8px + var(--safe-top)) calc(8px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(8px + var(--safe-left)); }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 8px 12px; }
.lb-count { font-size: 0.9rem; color: var(--pink-soft); font-weight: 600; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: var(--white); user-select: none; -webkit-user-drag: none; }
.lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.lb-caption { margin: 0; min-width: 0; text-align: center; flex: 1; font-size: 0.95rem; line-height: 1.4; }
.lb-caption small { display: block; color: var(--pink-soft); font-size: 0.8rem; }
.lb-nav { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: var(--cream); display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav[disabled] { opacity: .35; }
dialog.lightbox .close-btn { background: rgba(255,255,255,.1); color: var(--cream); border-color: rgba(255,255,255,.35); box-shadow: none; }
dialog.lightbox .close-btn:hover { background: var(--cream); color: var(--plum); }

/* 14. Forms --------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form > * { min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label, fieldset.field > legend { font-weight: 600; color: var(--plum); font-size: 0.98rem; line-height: 1.35; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 8px; }
.req { color: var(--pink-ink); font-weight: 700; margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 4px; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.45; }
.input, textarea.input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: var(--white); color: var(--ink); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 140px; resize: vertical; }
input[type="date"].input { display: block; min-width: 0; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
.input::placeholder { color: #8f8088; }
.input:hover { border-color: var(--plum-2); }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(21, 122, 116, 0.18); }
.field.has-error .input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163, 34, 59, 0.12); }
.error-msg { display: none; align-items: flex-start; gap: 6px; font-size: 0.86rem; color: var(--danger); font-weight: 500; margin: 0; line-height: 1.4; }
.error-msg::before { content: '!'; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: var(--white); font-size: 0.72rem; font-weight: 700; margin-top: 1px; }
.field.has-error .error-msg { display: flex; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 88px; }
.pw-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 72px; padding: 6px 12px; border-radius: 10px; border: 0; background: var(--blush); color: var(--plum); font-weight: 600; font-size: 0.88rem; }
.pw-toggle:hover { background: var(--pink-soft); }
.check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); cursor: pointer; min-height: 52px; line-height: 1.45; font-size: 0.95rem; }
.check input { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; border: 2px solid var(--plum); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ''; width: 12px; height: 7px; border: 3px solid var(--white); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--plum); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.check:has(input:checked) { border-color: var(--plum); background: var(--blush); }
.field.has-error .check { border-color: var(--danger); }
.field > label.check { font-weight: 400; color: var(--ink); font-size: 0.95rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.choice-grid .check { align-items: center; }
.form-status { border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.form-status:empty { display: none; }
.form-status .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.form-status h4 { margin: 2px 0 4px; font-size: 1.15rem; }
.form-status p { margin: 0 0 8px; font-size: 0.95rem; }
.form-status p:last-child { margin-bottom: 0; }
.form-status .btn-row { margin-top: 10px; }
.status-success { background: #e4f4ec; border: 1px solid #b5dcc8; }
.status-success .ico { background: var(--success); color: var(--white); }
.status-error { background: #fde9ec; border: 1px solid #f0bcc6; }
.status-error .ico { background: var(--danger); color: var(--white); }
.status-demo { background: var(--teal-wash); border: 1px solid #b8e2dd; }
.status-demo .ico { background: var(--teal); color: var(--white); font-family: var(--font-display); font-style: italic; }
.status-info { background: var(--blush); border: 1px solid var(--pink-soft); }
.status-info .ico { background: var(--pink-ink); color: var(--white); }
.form-foot { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* Multi-step application */
.apply-shell { max-width: 760px; margin-inline: auto; }
.progress { margin-bottom: 22px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.progress-top strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--plum); }
.progress-top span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.progress-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.progress-steps li { height: 6px; border-radius: 6px; background: var(--line); }
.progress-steps li.is-done { background: var(--pink); }
.progress-steps li.is-current { background: var(--plum); }
.step { display: grid; gap: 18px; }
.step[hidden] { display: none; }
.step-title { margin: 0; font-size: clamp(1.5rem, 5.4vw, 2rem); }
.step-title:focus, [data-apply-result]:focus { outline: none; }
.step-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; }
.step-actions .btn { flex: 1 1 140px; }
.step-actions .btn-primary { flex-grow: 2; }
.review { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review > div { display: grid; gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--white); }
.review > div:last-child { border-bottom: 0; }
.review dt { font-size: 0.78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.review dd { margin: 0; color: var(--ink); white-space: pre-wrap; }
.review .edit { justify-self: start; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; color: var(--pink-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 0.88rem; }
@media (min-width: 600px) { .review > div { grid-template-columns: 180px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; } }

/* 15. Footer, toast, 404 -------------------------------------------------- */
.site-footer { background: var(--plum); color: var(--cream); padding-block: 48px calc(32px + var(--safe-bottom)); }
.footer-grid { display: grid; gap: 28px; justify-items: center; text-align: center; }
.footer-grid > * { min-width: 0; max-width: 100%; }
.footer-brand img { width: 180px; margin-inline: auto; }
.footer-brand p { text-wrap: balance; margin: 12px 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--pink-soft); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; color: var(--cream); text-decoration: none; border-radius: 8px; background: none; border: 0; font-size: 0.95rem; }
.footer-links a:hover, .footer-links button:hover { background: rgba(255,255,255,.1); }
.footer-contact { display: grid; gap: 4px; justify-items: center; }
.footer-contact a { color: var(--cream); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; word-break: break-word; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; font-size: 0.82rem; color: #dcc9d5; width: 100%; }
.footer-legal p { margin: 0 0 4px; }
.footer-signoff { display: grid; justify-items: center; text-align: center; }
.site-footer :focus-visible { outline-color: var(--teal-soft); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: auto minmax(0, 1fr) auto; text-align: left; justify-items: stretch; align-items: center; }
  .footer-brand img { margin-inline: 0; }
  .footer-links { justify-content: center; }
  .footer-contact { justify-items: end; text-align: right; }
  .footer-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: start; gap: 8px 24px; }
  .footer-signoff { justify-items: end; text-align: right; }
}

/* Website credit — one quiet, client-secondary line. */
.site-credit { margin: 2px 0 0; font-size: 0.8rem; line-height: 1.4; }
.site-credit a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-credit a:hover { color: var(--plum); }
.site-footer .site-credit a { color: #d3bdcb; }
.site-footer .site-credit a:hover { color: var(--cream); }
.door-foot .site-credit { margin-top: 0; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(16px + var(--safe-bottom)); transform: translate(-50%, 20px); width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--plum); color: var(--cream); box-shadow: var(--shadow-lg); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; position: relative; }
.notfound .code { font-family: var(--font-display); font-size: clamp(4.5rem, 22vw, 8rem); line-height: 1; color: var(--pink); font-weight: 600; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media print { .site-header, .menu-panel, .site-footer, .toast { display: none !important; } }

/* Protected pages without JavaScript: show a notice, never the content. */
.noscript-gate { visibility: visible; position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--cream); color: var(--plum); font-weight: 600; }
