/* Ten Keys — Victorian Gothic, warm and hopeful.
   Black & charcoal, chrome / silver, antique gold. Keys and homes lead;
   Platinum Badger is the quiet host. Every decoration is aria-hidden,
   pointer-events: none, and stops under prefers-reduced-motion. */

:root {
  --bg: #0b0a09;
  --bg-2: #13110e;
  --panel: #1a1712;
  --panel-2: #221d16;
  --line: rgba(217, 180, 90, 0.38);
  --line-soft: rgba(217, 180, 90, 0.18);
  --gold: #d9b45a;
  --gold-hi: #f3d68a;
  --gold-deep: #9a6d22;
  --silver: #c9ccd1;
  --ivory: #f4ecdc;
  --text: #ece3d0;
  --muted: #b9ad95;
  --parchment: #eadcbc;
  --parchment-2: #d9c69c;
  --ink: #2a2015;
  --season-glow: #ffb547;
  --radius: 12px;
  --wrap: 1200px;
  --display: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --heading: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;
  color-scheme: dark;
}

body.season-gothic { --season-glow: #c9ccd1; }
body.season-halloween { --season-glow: #ff7a1a; }
body.season-stpatricks { --season-glow: #49c474; }
body.season-easter { --season-glow: #e2b8ff; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(255, 181, 71, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1.08rem, 0.4vw + 1rem, 1.22rem);
  line-height: 1.6;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.15; color: var(--ivory); letter-spacing: 0.02em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1a1208; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.icon-inline { width: 0.95em; height: 0.95em; vertical-align: -0.12em; }
.flourish { width: 120px; height: 16px; color: var(--gold); opacity: 0.9; }

.preview-bar {
  position: sticky; top: 0; z-index: 60;
  background: repeating-linear-gradient(45deg, #5a1c1c, #5a1c1c 14px, #4a1515 14px, #4a1515 28px);
  color: #fff; text-align: center; padding: 8px 16px; font-family: system-ui, sans-serif; font-size: 0.95rem;
}
.preview-bar a { color: #ffe39a; font-weight: 700; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.6em 1.4em; min-height: 44px;
  border-radius: 10px; font-family: var(--heading); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.03em; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  color: #241706;
  background: linear-gradient(180deg, #f8e2a2 0%, #e2bd66 45%, #c4953c 100%);
  border-color: #f6dc97;
  box-shadow: 0 2px 0 #7a531a, 0 6px 22px rgba(226, 189, 102, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-gold:hover { color: #1a1004; box-shadow: 0 2px 0 #7a531a, 0 8px 30px rgba(226, 189, 102, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-outline { color: var(--ivory); background: rgba(0, 0, 0, 0.55); border-color: var(--gold); }
.btn-outline:hover { color: #fff; background: rgba(40, 30, 14, 0.8); }
.btn-sm { font-size: 0.9rem; min-height: 40px; padding: 0.45em 1em; }
.btn-lg { font-size: 1.15rem; padding: 0.75em 1.8em; }
.inline-link { color: var(--gold-hi); font-weight: 600; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: relative; z-index: 40;
  background: linear-gradient(180deg, #0a0908, #100e0b);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand donate" "nav nav";
  align-items: center; gap: 10px 16px; padding: 12px 0 10px;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); min-width: 0; }
.brand-key { width: 22px; height: 54px; fill: url(#g-gold); filter: drop-shadow(0 0 6px rgba(243, 214, 138, 0.35)); flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-family: var(--display); font-weight: 900; font-size: 1.45rem; letter-spacing: 0.06em; line-height: 1; color: var(--ivory); }
.brand-tag { font-family: var(--heading); font-size: clamp(0.62rem, 2.4vw, 0.72rem); letter-spacing: clamp(0.02em, 0.6vw, 0.12em); text-transform: uppercase; color: var(--gold); margin-top: 4px; line-height: 1.25; }
.btn-donate { grid-area: donate; padding-inline: 1.1em; }
.main-nav { grid-area: nav; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 4px; border-top: 1px solid var(--line-soft); padding-top: 6px; }
.main-nav a {
  font-family: var(--heading); font-weight: 600; color: var(--text); text-decoration: none;
  padding: 8px 2px; font-size: clamp(0.8rem, 3.3vw, 0.92rem); letter-spacing: 0.01em; border-bottom: 2px solid transparent; text-align: center; white-space: nowrap;
}
.main-nav a:hover { color: var(--gold-hi); }
.main-nav a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: var(--gold); }

@media (min-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav donate"; padding: 14px 0; }
  .main-nav { justify-content: center; gap: 8px; border-top: 0; padding-top: 0; }
  .main-nav a { font-size: 1.02rem; padding: 10px 14px; }
  .brand-title { font-size: 1.7rem; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(80% 90% at 70% 40%, #2a1d10 0%, #0d0b09 70%); }
.hero-art { position: relative; }
.hero-art img, .hero-art picture { width: 100%; height: 100%; object-fit: cover; }
.hero-art img { aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 92%); }
.hero-inner { position: relative; z-index: 2; padding: 0 0 44px; margin-top: -9%; }
.hero-copy { text-align: center; max-width: 640px; margin-inline: auto; }
.presents { font-family: var(--heading); font-size: 0.85rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--silver); margin: 0 0 6px; text-shadow: 0 2px 8px #000; }
.logotype {
  display: flex; align-items: center; justify-content: center; gap: 0.12em; margin: 0;
  font-family: var(--display); font-weight: 900; font-size: clamp(2.7rem, 11.5vw, 5.6rem); line-height: 1; letter-spacing: 0.02em; white-space: nowrap;
}
.logotype span {
  background: linear-gradient(180deg, #ffffff 0%, #e9ebee 30%, #8d929a 52%, #f4f5f7 70%, #a9adb4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #2b2b2b) drop-shadow(0 0 18px rgba(243, 214, 138, 0.25));
}
.logo-key { width: 0.42em; height: 1.05em; fill: url(#g-gold); filter: drop-shadow(0 0 10px rgba(243, 214, 138, 0.55)); flex: none; }
.tagline { font-family: var(--heading); font-weight: 700; color: var(--gold-hi); font-size: clamp(1.1rem, 3.6vw, 1.9rem); letter-spacing: 0.06em; text-transform: uppercase; margin: 8px 0 4px; text-shadow: 0 2px 10px #000; }
.hero .flourish { display: block; margin: 6px auto 10px; }
.headline { font-family: var(--heading); font-size: clamp(1.4rem, 4.4vw, 2.3rem); font-weight: 700; color: var(--ivory); margin: 0 0 8px; text-shadow: 0 2px 12px #000; }
.supporting { font-style: italic; font-size: 1.15em; color: var(--ivory); margin: 0 0 8px; }
.intro { color: var(--muted); margin: 0 auto 20px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (min-width: 900px) {
  .hero { min-height: 560px; display: grid; }
  .hero-art { position: absolute; inset: 0 0 0 38%; }
  .hero-art img { aspect-ratio: auto; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 80%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 80%, transparent 100%); }
  .hero-inner { margin-top: 0; padding: 56px 0 64px; display: flex; align-items: center; }
  .hero-copy { text-align: left; margin: 0; max-width: 680px; }
  .logotype, .actions { justify-content: flex-start; }
  .hero .flourish { margin-left: 0; }
  .intro { margin-left: 0; }
}

/* ------------------------------------------------------------------ pillars */
.pillars { background: linear-gradient(180deg, #14110d, #0e0c0a); border-block: 1px solid var(--line); }
.pillar-list { list-style: none; margin-block: 0; padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.pillar-list li { display: flex; gap: 12px; align-items: flex-start; }
.pillar-icon { width: 40px; height: 40px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(217, 180, 90, 0.3)); }
.pillar-list h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 2px 0 2px; }
.pillar-list p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.35; }
@media (min-width: 960px) { .pillar-list { grid-template-columns: repeat(4, 1fr); } .pillar-list li + li { border-left: 1px solid var(--line-soft); padding-left: 18px; } }

/* ------------------------------------------------------------------ keys panel */
.keys-panel { position: relative; padding: 36px 0 40px; background: #0c0b09; }
.panel-inner {
  position: relative; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(60% 60% at 10% 90%, rgba(120, 84, 36, 0.18), transparent 70%),
    radial-gradient(60% 60% at 90% 90%, rgba(120, 84, 36, 0.18), transparent 70%),
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: var(--ink);
  border-radius: 14px;
  padding: 26px clamp(12px, 3vw, 40px) 24px;
  border: 2px solid #b98a37;
  box-shadow: 0 0 0 5px #1b150d, 0 0 0 6px #8a6424, 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(120, 84, 36, 0.35);
}
.panel-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.panel-head .flourish { color: #8a6424; flex: 1 1 60px; max-width: 120px; }
@media (max-width: 560px) { .panel-head .flourish { display: none; } }
.panel-head .flourish:last-child { transform: scaleX(-1); }
.keys-panel h2 { color: #1d150b; text-align: center; margin: 0; font-size: clamp(1.5rem, 5vw, 2.6rem); letter-spacing: 0.1em; text-transform: uppercase; }
.panel-sub { text-align: center; margin: 4px 0 20px; font-weight: 600; color: #3a2c1a; }

.key-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 14px); }
@media (min-width: 1080px) { .key-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); } }

.key-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  width: 100%; height: 100%; min-height: 128px; padding: 12px 4px 10px;
  border-radius: 10px; border: 2px solid #9a7430;
  background: radial-gradient(90% 60% at 50% 30%, #2c2620 0%, #121010 75%);
  box-shadow: 0 0 0 2px #120e08, inset 0 0 18px rgba(0, 0, 0, 0.8), 0 6px 14px rgba(0, 0, 0, 0.35);
  color: var(--ivory); font: inherit; text-decoration: none; cursor: pointer; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.key-card:hover { transform: translateY(-3px); }
.key-svg { width: 36%; max-width: 34px; height: auto; aspect-ratio: 60 / 150; margin-bottom: 6px; transition: transform 0.6s cubic-bezier(.2,.9,.3,1.3), filter 0.4s ease; }
.key-num { font-family: var(--heading); font-weight: 700; font-size: clamp(1rem, 2.8vw, 1.6rem); line-height: 1; letter-spacing: 0.04em; }
.key-state { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--heading); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.key-title { display: none; margin-top: 6px; font-size: 0.82rem; line-height: 1.2; text-align: center; color: var(--gold-hi); padding-inline: 4px; }
@media (max-width: 560px) { .key-state span { display: none; } .key-card { min-height: 108px; } }
@media (min-width: 720px) { .key-title { display: block; } }

.key-card.is-locked .key-svg { fill: url(#g-silver); opacity: 0.82; filter: drop-shadow(0 1px 0 #000); }
.key-card.is-locked .key-num { color: #d7d9dd; }
.key-card.is-locked .key-state { color: #a7a9ad; }
.key-card.is-locked.nudge .key-svg { animation: jiggle 0.5s ease; }

.key-card.is-unlocked {
  border-color: #f0cf7a;
  background: radial-gradient(90% 70% at 50% 30%, rgba(255, 200, 90, 0.35) 0%, #2a1e0e 55%, #120d07 100%);
  box-shadow: 0 0 0 2px #120e08, 0 0 22px rgba(255, 196, 80, 0.55), inset 0 0 20px rgba(255, 196, 80, 0.25);
}
.key-card.is-unlocked .key-svg { fill: url(#g-gold); filter: drop-shadow(0 0 8px rgba(255, 210, 110, 0.85)); animation: glow 3.2s ease-in-out infinite alternate; }
.key-card.is-unlocked .key-num { color: #fff4d2; text-shadow: 0 0 10px rgba(255, 200, 90, 0.7); }
.key-card.is-unlocked .key-state { color: var(--gold-hi); }
.key-card.is-unlocked::after {
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 245, 210, 0.35) 50%, transparent 60%);
  transform: translateX(-60%); animation: sweep 5s ease-in-out infinite;
}
.key-card.is-unlocked:hover { box-shadow: 0 0 0 2px #120e08, 0 0 34px rgba(255, 196, 80, 0.8), inset 0 0 20px rgba(255, 196, 80, 0.3); }
/* First time an unlocked key scrolls into view it turns in the lock. */
.js .key-card.is-unlocked:not(.turned) .key-svg { transform: rotate(-35deg) scale(0.9); }

.key-message { text-align: center; min-height: 1.6em; margin: 14px 0 6px; color: #3a2c1a; font-style: italic; }

/* progress meters */
.progress { display: grid; gap: 10px; margin-top: 14px; }
.meter { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label value" "bar bar"; gap: 4px 12px; align-items: center; }
.meter-label { grid-area: label; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-weight: 600; color: #22190e; }
.meter-label small { font-weight: 400; color: #5a4630; font-size: 0.85em; }
.meter-value { grid-area: value; font-family: var(--heading); font-weight: 700; color: #22190e; }
.meter-bar { grid-area: bar; height: 14px; border-radius: 999px; background: #6f6a62; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45); overflow: hidden; }
.meter-bar .fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a87a2a, #f3d68a, #c99b45); box-shadow: 0 0 10px rgba(243, 214, 138, 0.8); }
.m-homes .meter-bar .fill { background: linear-gradient(90deg, #7c8a5a, #d8e6a8, #93a565); }
.w0 { width: 0; } .w1 { width: 10%; } .w2 { width: 20%; } .w3 { width: 30%; } .w4 { width: 40%; } .w5 { width: 50%; }
.w6 { width: 60%; } .w7 { width: 70%; } .w8 { width: 80%; } .w9 { width: 90%; } .w10 { width: 100%; }
@media (min-width: 760px) { .meter { grid-template-columns: 300px 1fr auto; grid-template-areas: "label bar value"; } }

/* ------------------------------------------------------------------ trio */
.trio { display: grid; gap: 16px; padding: 36px 0 8px; }
@media (min-width: 960px) { .trio { grid-template-columns: 1.15fr 1fr 1fr; } }
.card {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.card img { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.card-icon { width: 52px; height: 52px; color: var(--gold); flex: none; }
.card-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-hi); margin: 0 0 6px; }
.card p { margin: 0 0 10px; }
.signature { font-family: var(--script); font-size: 1.9rem; line-height: 1.1; color: var(--ivory); margin: 2px 0 8px !important; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.events li:last-child { border-bottom: 0; }
.events span { color: var(--muted); }

/* ------------------------------------------------------------------ explore doors */
.explore { display: grid; gap: 16px; padding: 24px 0 36px; }
@media (min-width: 720px) { .explore { grid-template-columns: 1fr 1fr; } }
.door {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; overflow: hidden;
  border-radius: 120px 120px var(--radius) var(--radius) / 60px 60px var(--radius) var(--radius);
  border: 1px solid var(--gold); text-decoration: none; text-align: center; color: var(--text);
  background: radial-gradient(100% 80% at 50% 0%, rgba(255, 190, 90, 0.16), transparent 70%), linear-gradient(180deg, #1d1912, #121008);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.door:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(243, 214, 138, 0.25); color: var(--text); }
.door-kicker { font-size: 0.95rem; color: var(--muted); font-style: italic; }
.door-title { font-family: var(--heading); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); color: var(--ivory); letter-spacing: 0.05em; }
.door-go { font-family: var(--heading); font-size: 0.9rem; color: var(--gold-hi); }

/* ------------------------------------------------------------------ CTA */
.cta { background: radial-gradient(70% 140% at 50% 0%, rgba(217, 180, 90, 0.22), transparent 70%), linear-gradient(180deg, #17130d, #0c0a08); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; padding: 40px 0 46px; }
.cta h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 4.5vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-hi); }
.cta-text { font-family: var(--heading); color: var(--ivory); margin: 0 0 18px; letter-spacing: 0.04em; }
.donate-pending { max-width: 34em; margin: 0 auto; padding: 14px 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.donate-note, .cta-contact { color: var(--muted); margin-top: 14px; }

/* ------------------------------------------------------------------ inner pages */
.page-head { text-align: center; padding: 40px 0 10px; }
.page-head .flourish { display: block; margin: 0 auto 10px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 6vw, 3.2rem); letter-spacing: 0.06em; }
.lead { font-size: 1.12em; color: var(--muted); max-width: 40em; margin: 0 auto 12px; }
.notice { max-width: 46em; margin: 14px auto 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(217, 180, 90, 0.07); font-size: 0.98rem; }
.back { display: inline-block; margin: 0 0 14px; font-family: var(--heading); font-size: 0.9rem; text-decoration: none; }
.directory { padding: 18px 0 48px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; border: 1px dashed var(--line); border-radius: var(--radius); max-width: 40em; margin: 0 auto; }

.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.entry {
  display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 18px;
  border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.entry:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(243, 214, 138, 0.2); color: var(--text); }
.entry-logo { display: flex; align-items: center; justify-content: center; height: 96px; border-radius: 8px; background: #f4efe4; padding: 10px; }
.entry-logo img { max-height: 76px; width: auto; object-fit: contain; }
.monogram { font-family: var(--display); font-weight: 900; font-size: 2.6rem; color: #6d5020; }
.entry-body { display: flex; flex-direction: column; gap: 6px; }
.entry-name { font-family: var(--heading); font-weight: 700; font-size: 1.2rem; color: var(--ivory); margin: 0; }
.entry-desc { color: var(--muted); margin: 0; }
.promo { align-self: flex-start; font-size: 0.85rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-hi); }
.entry-go { font-family: var(--heading); font-size: 0.9rem; color: var(--gold-hi); text-decoration: none; }
.partner-group + .partner-group { margin-top: 30px; }
.partner-group h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-hi); border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.partner-photo { width: calc(100% + 36px); max-width: none; margin: -18px -18px 0; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.partner-top { display: flex; gap: 12px; align-items: center; }
.partner .entry-logo { width: 72px; height: 72px; flex: none; }
.partner .entry-logo img { max-height: 56px; }
.partner .monogram { font-size: 1.8rem; }

/* ------------------------------------------------------------------ key detail */
.key-detail { padding: 34px 0 48px; }
.key-head, .key-detail.is-locked { text-align: center; }
.key-hero { display: flex; justify-content: center; margin: 4px 0 6px; }
.key-hero-svg { width: 56px; height: 140px; fill: url(#g-silver); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.is-unlocked .key-hero-svg { fill: url(#g-gold); filter: drop-shadow(0 0 16px rgba(255, 205, 100, 0.75)); animation: glow 3.2s ease-in-out infinite alternate; }
.eyebrow { font-family: var(--heading); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; font-size: 0.85rem; }
.key-detail h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 6vw, 2.8rem); }
.key-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; align-items: center; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-hi); font-family: var(--heading); font-size: 0.85rem; }
.badge-home { border-color: #b7c98a; color: #dfeab9; }
.block { margin-top: 30px; }
.block h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-hi); border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; margin: 0 0 12px; }
.milestone { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(217, 180, 90, 0.06); }
.milestone h2 { border: 0; padding: 0; }
.recipient { font-style: italic; color: var(--ivory); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; margin-bottom: 10px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-soft); }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.key-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.key-strip a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-family: var(--heading); text-decoration: none; border: 1px solid #555; color: #aaa; }
.key-strip a.is-unlocked { border-color: var(--gold); color: var(--gold-hi); }
.key-strip a[aria-current="page"] { background: var(--gold); color: #1a1208; }
.results { padding-bottom: 40px; }
.not-found { padding-bottom: 60px; }

/* lightbox (site.js) */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; top: 12px; right: 12px; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); background: #080706; padding: 30px 0 20px; font-size: 0.98rem; }
.footer-inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1fr auto auto; } }
.footer-title { font-family: var(--display); font-weight: 900; font-size: 1.4rem; margin: 0; color: var(--ivory); }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--text); text-decoration: none; font-family: var(--heading); font-size: 0.92rem; padding: 6px 0; }
.footer-nav a:hover { color: var(--gold-hi); }
.host { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-size: 0.88rem; line-height: 1.3; }
.host strong { color: var(--silver); font-family: var(--heading); letter-spacing: 0.05em; }
.host img { width: 48px; height: 48px; opacity: 0.9; }
.footer-fine { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: #8f8572; font-size: 0.86rem; }
.footer-fine p { margin: 4px 0; }

/* ------------------------------------------------------------------ seasonal decorations */
.decor { pointer-events: none; }
.decor-top { position: absolute; left: 0; right: 0; bottom: -16px; height: 28px; z-index: 5; }
.garland { width: 100%; height: 100%; }
.garland .swag { stroke: #1f4a2b; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.garland .lights circle, .bough .lights circle { fill: #ffd27a; filter: drop-shadow(0 0 4px #ffb547); animation: twinkle 2.6s ease-in-out infinite; }
.garland .lights circle:nth-child(4n + 2) { fill: #ff6b5e; filter: drop-shadow(0 0 4px #ff4a3a); animation-delay: -0.6s; }
.garland .lights circle:nth-child(4n + 3) { fill: #fff4d6; animation-delay: -1.3s; }
.garland .lights circle:nth-child(4n) { fill: #8fe39a; filter: drop-shadow(0 0 4px #4fd36a); animation-delay: -1.9s; }

.snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.snow i {
  position: absolute; inset: -100% 0 0; display: block;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(2px 2px at 140px 80px, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(3px 3px at 260px 150px, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 90px 210px, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 200px 260px, rgba(255, 255, 255, 0.7) 50%, transparent 51%);
  background-size: 300px 300px; opacity: 0.55; animation: snow 22s linear infinite;
}
.snow i:nth-child(2) { background-size: 420px 420px; opacity: 0.35; animation-duration: 34s; }
.snow i:nth-child(3) { background-size: 230px 230px; opacity: 0.25; animation-duration: 16s; filter: blur(1px); }

.decor-frame { position: absolute; inset: 0; z-index: 2; }
.bough, .corner-art { position: absolute; top: 4px; width: clamp(110px, 20vw, 230px); height: auto; }
.bough-l, .corner-l { left: max(0px, calc(50% - var(--wrap) / 2 - 30px)); transform: rotate(-8deg); }
.bough-r, .corner-r { right: max(0px, calc(50% - var(--wrap) / 2 - 30px)); transform: scaleX(-1) rotate(-8deg); }
.bough .needles path { stroke: #2b5d39; stroke-width: 3.2; stroke-linecap: round; }
.bough .branch { stroke: #4a3220; stroke-width: 4; }
.bough .berries circle { fill: #b3122e; }
.corner-art { width: clamp(80px, 14vw, 150px); top: 0; }
.web g { stroke: rgba(235, 235, 235, 0.55); }
.clover g { fill: #2f9e55; stroke: #2f9e55; }
.lily g { fill: #fbf7ff; stroke: #6aa36f; }
.lily ellipse { fill: #e2b8ff; }
.season-halloween .keys-panel .panel-inner, .season-stpatricks .keys-panel .panel-inner, .season-easter .keys-panel .panel-inner {
  box-shadow: 0 0 0 5px #1b150d, 0 0 0 6px var(--season-glow), 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(120, 84, 36, 0.35);
}

/* ------------------------------------------------------------------ motion */
@keyframes glow { from { filter: drop-shadow(0 0 5px rgba(255, 210, 110, 0.6)); } to { filter: drop-shadow(0 0 14px rgba(255, 220, 130, 1)); } }
@keyframes sweep { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes snow { from { transform: translateY(0); } to { transform: translateY(50%); } }
@keyframes jiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .key-card.is-unlocked:not(.turned) .key-svg { transform: none; }
  .snow { display: none; }
}

@media (forced-colors: active) {
  .logotype span { color: CanvasText; background: none; }
  .key-svg, .brand-key, .logo-key, .key-hero-svg { fill: CanvasText; }
}
