/* ============================================================
   Pour Your Party · party.css
   ============================================================ */
.py-hero { padding: clamp(116px, 14vw, 180px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--mh-rule); position: relative; overflow: hidden; }
.py-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .py-hero__grid { grid-template-columns: 1fr; } }
.py-hero .h-hero { font-size: clamp(56px, 9.5vw, 150px); }
.py-hero__script { display: block; font-family: var(--mh-script); font-size: clamp(32px, 4.2vw, 58px); line-height: 1.4; color: var(--mh-teal); padding-top: 26px; }
.py-hero__side { display: grid; gap: 26px; align-content: end; }
.py-hero__video { margin: 0 auto; justify-self: center; width: 100%; max-width: 500px; position: relative; }
.py-hero__video video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1.5px solid var(--mh-black); box-shadow: 12px 12px 0 var(--mh-mint); background: var(--mh-black); }
.py-hero__video figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; background: var(--mh-cream); border: 1.5px solid var(--mh-black); border-radius: 999px; font-family: var(--mh-display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
@media (max-width: 860px) { .py-hero__video { justify-self: stretch; max-width: none; } .py-hero__video video { aspect-ratio: 4 / 5; max-height: 70vh; } }
.py-hero__facts { display: grid; gap: 0; border-top: 2px solid var(--mh-black); }
.py-hero__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--mh-rule); font-style: italic; }
.py-hero__facts b { font-family: var(--mh-display); font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }

/* ---------- Builder layout ---------- */
.py { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 110px); background: var(--mh-cream-warm); }
.py__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 980px) { .py__grid { grid-template-columns: 1fr; } }

/* progress rail */
.py-rail { display: flex; gap: 6px; margin-bottom: 26px; }
.py-rail button { flex: 1; height: 8px; border-radius: 999px; background: var(--mh-rule); position: relative; transition: background 240ms ease; }
.py-rail button.is-done { background: var(--mh-mint-deep); cursor: pointer; }
.py-rail button.is-current { background: var(--mh-black); }
.py-rail button:disabled { cursor: default; }
.py-count { font-family: var(--mh-display); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--mh-ink-mute); margin-bottom: 10px; display: flex; justify-content: space-between; }

/* steps */
.py-step { display: none; background: var(--mh-cream); border: 1.5px solid var(--mh-black); padding: clamp(22px, 3.4vw, 44px); }
.py-step.is-active { display: block; animation: pyIn 420ms cubic-bezier(.2,.7,.2,1); }
@keyframes pyIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.py-step__eyebrow { font-family: var(--mh-display); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--mh-teal); }
.py-step__q { font-family: var(--mh-display); font-weight: 900; text-transform: uppercase; line-height: .95; font-size: clamp(32px, 4.2vw, 56px); margin: 10px 0 8px; color: var(--mh-black); }
.py-step__sub { font-style: italic; color: var(--mh-ink-mute); font-size: 17px; margin-bottom: 26px; }
.py-label { display: block; font-family: var(--mh-display); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; margin: 26px 0 12px; }
.py-label small { font-family: var(--mh-body); font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; color: var(--mh-ink-mute); margin-left: 6px; }

.py-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.py-chip {
  padding: 12px 18px; border: 1.5px solid var(--mh-black); border-radius: 999px; background: transparent;
  font-family: var(--mh-display); font-weight: 800; letter-spacing: .06em; font-size: 13px; text-transform: none;
  transition: background 160ms ease, transform 160ms ease;
}
.py-chip:hover { background: var(--mh-cream-warm); transform: translateY(-1px); }
.py-chip[aria-pressed="true"] { background: var(--mh-mint); box-shadow: inset 0 0 0 1.5px var(--mh-black); }
.py-chip[aria-pressed="true"]::before { content: "✓ "; }

.py-input, .py-select, .py-textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--mh-black); background: #fff; font: inherit; font-size: 17px; outline: none; border-radius: 0;
}
.py-input:focus, .py-select:focus, .py-textarea:focus { box-shadow: 0 0 0 4px var(--mh-mint); }
.py-textarea { min-height: 130px; resize: vertical; font-style: italic; }
.py-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .py-row { grid-template-columns: 1fr; } }

/* house picker */
.py-houses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .py-houses { grid-template-columns: repeat(2, 1fr); } }
.py-house {
  text-align: left; padding: 16px; border: 1.5px solid var(--mh-black); background: #fff; min-height: 86px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px; transition: background 160ms ease, transform 160ms ease;
}
.py-house:hover { transform: translateY(-2px); }
.py-house b { font-family: var(--mh-display); font-weight: 900; text-transform: uppercase; font-size: 16px; line-height: 1; }
.py-house small { font-style: italic; color: var(--mh-ink-mute); font-size: 13px; line-height: 1.3; }
.py-house[aria-pressed="true"] { background: var(--mh-mint); }
.py-spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
@media (max-width: 640px) { .py-spaces { grid-template-columns: 1fr; } }
.py-space { position: relative; overflow: hidden; border: 1.5px solid var(--mh-black); min-height: 150px; color: #fff; text-align: left; display: flex; align-items: flex-end; padding: 14px; background: #222; }
.py-space img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 500ms ease, opacity 300ms ease; }
.py-space::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.75)); }
.py-space span { position: relative; z-index: 1; }
.py-space b { display: block; font-family: var(--mh-display); font-weight: 900; text-transform: uppercase; font-size: 18px; line-height: 1; }
.py-space small { font-style: italic; font-size: 13px; opacity: .9; }
.py-space:hover img { transform: scale(1.05); opacity: .9; }
.py-space[aria-pressed="true"] { outline: 5px solid var(--mh-mint); outline-offset: -5px; }
.py-space[aria-pressed="true"] b::after { content: " ✓"; color: var(--mh-mint); }

/* guests */
.py-guests { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.py-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--mh-black); background: #fff; }
.py-stepper button { width: 54px; height: 64px; font-size: 26px; font-family: var(--mh-display); font-weight: 800; }
.py-stepper button:hover { background: var(--mh-mint); }
.py-stepper output { min-width: 96px; text-align: center; font-family: var(--mh-display); font-weight: 900; font-size: 40px; line-height: 1; border-left: 1.5px solid var(--mh-black); border-right: 1.5px solid var(--mh-black); padding: 10px 6px; }
.py-hint { font-style: italic; color: var(--mh-teal); font-size: 15px; margin-top: 10px; min-height: 1.4em; }

/* toggles */
.py-toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; cursor: pointer; font-style: italic; }
.py-toggle input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--mh-rule); position: relative; border: 1.5px solid var(--mh-black); cursor: pointer; transition: background 160ms ease; }
.py-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--mh-black); transition: transform 180ms ease; }
.py-toggle input:checked { background: var(--mh-mint); }
.py-toggle input:checked::after { transform: translateX(20px); }

/* sliders */
.py-range { width: 100%; accent-color: var(--mh-teal); height: 30px; }
.py-range-labels { display: flex; justify-content: space-between; font-style: italic; font-size: 13px; color: var(--mh-ink-mute); }
.py-vibe-now { font-family: var(--mh-script); font-size: 34px; line-height: 1.3; padding-top: 6px; color: var(--mh-black); }
.py-budget { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.py-budget__per { font-family: var(--mh-display); font-weight: 900; font-size: 44px; line-height: 1; }
.py-budget__total { font-style: italic; color: var(--mh-ink-mute); }

/* nav buttons */
.py-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--mh-rule); }
.py-back { font-family: var(--mh-display); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--mh-ink-mute); }
.py-back:hover { color: var(--mh-black); }
.py-back[hidden] { visibility: hidden; display: inline !important; }
.py-err { color: #9b2c2c; font-style: italic; font-size: 15px; margin-top: 14px; min-height: 1.4em; }

/* ---------- Sidebar: glass + card ---------- */
.py-side { position: sticky; top: calc(var(--mh-nav-h) + 20px); display: grid; gap: 18px; }
@media (max-width: 980px) { .py-side { position: static; grid-template-columns: 140px 1fr; align-items: start; } }
@media (max-width: 560px) { .py-side { grid-template-columns: 1fr; } .py-glass-wrap { display: none; } }
.py-glass-wrap { display: grid; justify-items: center; }
.py-glass { width: 100%; max-width: 220px; height: auto; overflow: visible; }
.py-glass .py-layer { transition: y 700ms cubic-bezier(.2,.7,.2,1), height 700ms cubic-bezier(.2,.7,.2,1); }
.py-glass .py-bubble { opacity: 0; }
.py-glass.is-pouring .py-bubble { animation: pyBubble 3.2s ease-in infinite; }
@keyframes pyBubble { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-120px); } }
.py-glass-cap { font-family: var(--mh-display); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; color: var(--mh-ink-mute); margin-top: 8px; text-align: center; }
.py-glass-cap b { color: var(--mh-black); }

.py-card {
  background: var(--mh-cream); border: 1.5px solid var(--mh-black); padding: 26px 26px 22px; position: relative;
  box-shadow: 10px 10px 0 var(--mh-mint);
}
.py-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--mh-rule); pointer-events: none; }
.py-card__eyebrow { font-family: var(--mh-display); font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: 10px; color: var(--mh-teal); text-align: center; display: block; }
.py-card__title { font-family: var(--mh-script); font-weight: 400; font-size: clamp(34px, 3.2vw, 44px); line-height: 1.25; text-align: center; padding: 30px 0 4px; color: var(--mh-black); word-break: break-word; }
.py-card__sub { text-align: center; font-style: italic; color: var(--mh-ink-mute); font-size: 15px; margin: 0 0 14px; min-height: 1.3em; }
.py-card__rule { height: 1px; background: var(--mh-black); margin: 10px 30%; }
.py-card dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 15px; }
.py-card dt { font-family: var(--mh-display); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; padding-top: 3px; }
.py-card dd { margin: 0; font-style: italic; }
.py-card dd.is-empty { color: #b7b2a0; }
.py-card__est { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--mh-rule); font-size: 13px; font-style: italic; color: var(--mh-ink-mute); text-align: center; }

/* review */
.py-review dl { display: grid; grid-template-columns: 170px 1fr; gap: 0; border-top: 2px solid var(--mh-black); margin: 0; }
@media (max-width: 560px) { .py-review dl { grid-template-columns: 1fr; } }
.py-review dt, .py-review dd { padding: 12px 0; border-bottom: 1px solid var(--mh-rule); margin: 0; }
.py-review dt { font-family: var(--mh-display); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.py-review dd { font-style: italic; }
@media (max-width: 560px) { .py-review dt { border-bottom: 0; padding-bottom: 0; } }
.py-review .py-edit { font-family: var(--mh-display); font-style: normal; font-weight: 800; letter-spacing: .12em; font-size: 10px; text-transform: uppercase; color: var(--mh-teal); margin-left: 8px; border-bottom: 1px solid currentColor; }

/* done */
.py-done { text-align: center; padding: clamp(28px, 5vw, 60px) clamp(16px, 3vw, 40px); }
.py-done .py-step__q { font-size: clamp(40px, 6vw, 80px); }
.py-done__script { font-family: var(--mh-script); font-size: clamp(38px, 5vw, 60px); line-height: 1.4; color: var(--mh-teal); display: block; padding: 22px 0 18px; }
.py-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.py-confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: pyFall linear forwards; }
@keyframes pyFall { to { transform: translateY(110vh) rotate(720deg); } }

/* other ways */
.py-ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .py-ways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .py-ways { grid-template-columns: 1fr; } }
.py-way { border: 1.5px solid var(--mh-black); background: var(--mh-cream); display: block; transition: transform 200ms ease; }
.py-way:hover { transform: translateY(-3px); }
.py-way__img { aspect-ratio: 4/3; overflow: hidden; background: var(--mh-mint); }
.py-way__img img { width: 100%; height: 100%; object-fit: cover; }
.py-way__body { padding: 16px 18px 18px; }
.py-way__body b { display: block; font-family: var(--mh-display); font-weight: 900; text-transform: uppercase; font-size: 19px; line-height: 1; margin-bottom: 6px; }
.py-way__body span { font-style: italic; color: var(--mh-ink-mute); font-size: 15px; }
