/* Homepage-only visual layer. Original brand fonts and legal footer stay untouched. */
body { min-width: 0; }
.home-atmosphere {
  inset: 0;
  background: radial-gradient(ellipse at 17% 64%, #f5ffd2 0, transparent 60%), linear-gradient(112deg, #d6ff81 0%, #d5eab2 56%, #92b888 100%);
  mask-image: none;
  -webkit-mask-image: none;
}
.home-atmosphere::after, .home-atmosphere-glow { display: none; }
.home-header { height: 86px; border-bottom: 0; }
.home-mark { flex-shrink: 0; }
.home-header-brand { min-width: 0; }
.home-utilities { display: flex; align-items: center; justify-content: center; gap: 28px; margin-left: auto; }
.home-utilities a, .home-utilities button {
  padding: 10px 0; border: 0; background: transparent; color: var(--home-ink);
  font: 400 13px/1.5 "Noto Sans SC", sans-serif; text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: color 150ms ease;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.home-utilities a:hover, .home-utilities button:hover { color: #4c754d; }
.home-utilities :focus-visible, .home-actions :focus-visible, .contact-close:focus-visible {
  outline: 1px solid #466d48; outline-offset: 4px;
}
.home-main { min-height: calc(100svh - 86px); }
.home-centerpiece { padding: 36px 0 32px; width: min(100%, 1000px); }
.home-centerpiece > .home-eyebrow { margin-bottom: 28px; font-size: 10px; }
.home-logo { width: 215px; height: 213px; max-height: none; object-fit: contain; filter: none; animation: home-refined-in 240ms ease-out both; }
.home-centerpiece h1 { margin: 32px 0 0; font: 500 22px/1.65 "Noto Sans SC", sans-serif; letter-spacing: 0; white-space: normal; overflow: visible; }
.home-slogan { margin: 12px 0 0; font: 500 11px/1.65 Outfit, sans-serif; letter-spacing: 0; }
.home-slogan-break { display: inline; }
.home-actions {
  width: min(100%, 520px); margin: 34px auto 0; gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #52734a66; border-bottom: 1px solid #52734a44;
}
.home-actions > .home-upload-entry { grid-column: 2; grid-row: 1; border-left: 1px solid #52734a44; }
.home-actions > .home-store-entry { grid-column: 1; grid-row: 1; }
.home-actions .home-action {
  display: grid; place-items: center; align-content: center; justify-content: center; gap: 7px;
  min-width: 0; min-height: 84px; width: 100%; padding: 20px 16px;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  color: var(--home-ink); font: 400 16px/1.5 "Noto Sans SC", sans-serif;
  text-align: center; transform: none; transition: color 150ms ease, background-color 150ms ease;
}
.home-actions .home-action:hover, .home-actions .home-action:focus-visible { color: #466d48; background: #f6ffe514; box-shadow: none; transform: none; }
.home-path-title { display: flex; align-items: center; justify-content: center; gap: 8px; }
.nav-icon { display: block; width: 16px; height: 16px; flex-shrink: 0; }
.home-actions .home-action > small { color: #4e714f; font: 500 9px/1.4 Outfit, sans-serif; letter-spacing: .8px; white-space: nowrap; }
.home-upload-popover {
  left: 0; right: 0; bottom: calc(100% + 8px); margin-inline: auto;
  width: calc(100% - 24px); max-width: 216px; min-width: 0; padding: 2px 13px; gap: 0;
  border: 1px solid #ffffff8c; border-radius: 9px; background: rgba(245,251,231,.64);
  -webkit-backdrop-filter: blur(22px) saturate(115%); backdrop-filter: blur(22px) saturate(115%);
  box-shadow: 0 5px 16px rgba(35,57,34,.08); transform-origin: bottom center;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}
.home-upload-entry:hover .home-upload-popover, .home-upload-entry:focus-within .home-upload-popover,
.home-upload-popover { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(4px); }
.home-upload-entry.is-open .home-upload-popover { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.home-upload-popover::before { top: 100%; bottom: auto; left: 0; right: 0; height: 12px; }
.home-upload-popover::after { display: none; }
.home-upload-popover a {
  display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 9px; align-items: center;
  min-height: 54px; padding: 10px 0; border-radius: 0; text-align: left;
}
.home-upload-popover a + a { border-top: 1px solid #56744930; }
.home-upload-popover .nav-icon { width: 14px; height: 14px; }
.home-upload-popover .upload-option-copy { display: grid; gap: 3px; min-width: 0; }
.home-upload-popover span { font-size: 13px; font-weight: 400; line-height: 1.5; }
.home-upload-popover small { font: 400 10px/1.5 "Noto Sans SC", sans-serif; color: #547354; }
.home-upload-popover a.is-selected, .home-upload-popover a:hover, .home-upload-popover a:focus-visible {
  background: transparent; color: var(--home-ink); transform: none; box-shadow: none;
}
.home-upload-popover a.is-selected .upload-option-copy > span { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #56744966; }
.home-upload-popover a.is-selected small, .home-upload-popover a:hover small, .home-upload-popover a:focus-visible small { color: #547354; }
.audio-lab-reveal { width: min(100%,520px); }
.audio-lab-reveal-grid { grid-template-columns: 1fr; }
.audio-lab-entry { grid-column: 1; font-size: 13px; min-height: 48px; }
.contact-dialog {
  width: min(400px,calc(100% - 32px)); max-height: calc(100svh - 32px);
  border: 1px solid #ffffffa6; border-radius: 16px; color: var(--home-ink);
  background: rgba(245,251,231,.72); box-shadow: 0 12px 40px #2339221c;
  -webkit-backdrop-filter: blur(24px) saturate(115%); backdrop-filter: blur(24px) saturate(115%);
}
.contact-dialog::backdrop { background: #17362221; backdrop-filter: blur(3px); }
.contact-card { padding: 30px 26px; }
.contact-card h2 { font-size: 24px; font-weight: 500; }
.contact-intro { font-size: 13px; }
/* Keep the close control above animated content, with a 44px hit target.
   Offsets preserve the original icon center; no dialog JS changes are needed. */
.contact-dialog .contact-card > .contact-close {
  position: absolute; z-index: 2; top: 11px; right: 12px;
  display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; -webkit-appearance: none; appearance: none;
  line-height: 1;
  touch-action: manipulation;
}
.contact-dialog .contact-card > .contact-close:is(:hover, :active, :focus) {
  border: 0; background: transparent; box-shadow: none;
}
.contact-dialog .contact-card > .contact-close:focus-visible {
  outline: 0;
  background: transparent;
  color: #2f6b48;
}
.contact-dialog .contact-close .nav-icon { width: 16px; height: 16px; pointer-events: none; }
.contact-dialog .contact-card > .home-eyebrow,
.contact-dialog .contact-card > h2 { padding-right: 34px; }
.contact-items { gap: 0; }
.contact-items > div { padding: 14px 0; border: 0; border-bottom: 1px solid #56744930; border-radius: 0; background: transparent; }
.contact-items strong { font-weight: 500; min-width: 0; }
.contact-dialog[open] { animation: home-refined-in 180ms ease-out both; }
.contact-dialog[open] .contact-card, .contact-card > * { animation: none; }
.contact-dialog[data-closing] { animation: home-refined-out 160ms ease both; }
.contact-dialog[data-closing] .contact-card { animation: none; }
@keyframes home-refined-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes home-refined-out { to { opacity: 0; transform: translateY(3px); } }
@media(max-width: 980px) {
  .home-utilities { gap: 18px; }
}
@media(max-width: 760px) {
  .home-header { display: grid; grid-template-columns: 37px minmax(0,1fr); height: auto; padding-top: 20px; gap: 14px 12px; }
  .home-utilities { grid-column: 1 / -1; width: 100%; margin: 0; padding-top: 6px; border-top: 1px solid #52734a33; justify-content: center; gap: 26px; }
  .home-utilities a, .home-utilities button { font-size: 12px; }
  .home-main { min-height: calc(100svh - 120px); }
  .home-centerpiece { display: block; min-height: 0; padding: 36px 0 28px; }
  .home-centerpiece > .home-eyebrow { font-size: 9px; margin-bottom: 20px; }
  .home-logo { width: 195px; height: 200px; max-height: none; }
  .home-centerpiece h1 { font-size: 20px; margin-top: 24px; }
  .home-slogan { font-size: 11px; margin-top: 12px; line-height: 1.65; }
  .home-actions { margin-top: 34px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-actions .home-action { font-size: 15px; min-height: 80px; padding: 18px 8px; }
  .home-actions .home-action > small { font-size: 8px; letter-spacing: .5px; }
  .home-upload-popover { width: calc(100% - 12px); padding: 2px 10px; }
  .home-upload-popover a { min-height: 44px; }
  .home-upload-popover span { font-size: 12px; }
  .home-upload-popover small { display: none; }
}
@media(max-width: 360px) {
  .home-actions .home-action { font-size: 14px; }
  .home-actions .home-action > small { display: none; }
  .home-centerpiece h1 { font-size: 18px; }
}
@media(prefers-reduced-motion: reduce) {
  .home-logo, .contact-dialog[open], .contact-dialog[data-closing], .contact-dialog::backdrop { animation: none; }
  .home-actions *, .home-utilities *, .home-return-toast { transition: none; }
}
