/* Homepage only. Desktop rules and shared styles remain untouched. */
.home-mobile-only { display: none; }
@media (max-width: 767px) {
  body { background: #fcfaf9; }
  .home-mobile-only { display: block; }
  .home-desktop-copy, [data-home-desktop-section] { display: none !important; }
  #main-navbar { padding: 10px 18px; background: #fcfaf9; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #main-navbar > div > a > span { font-size: 20px; }
  #mobile-menu-button { min-width: 44px; min-height: 44px; }
  #mobile-menu-panel { max-height: calc(100dvh - 85px); overflow-y: auto; overscroll-behavior: contain; }
  #mobile-menu-panel a { min-height: 44px; }
  #mobile-menu-panel:not(.hidden) { animation: mobile-enter 180ms ease-out; }
  .hero-gradient { padding: 16px 18px 22px; background: #fcfaf9; }
  .hero-content { min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  .hero-content::before, .hero-art-wrap, .stats-grid { display: none; }
  .hero-copy { padding: 0; text-align: left; max-width: none; }
  .hero-kicker { padding: 0; margin: 0 0 12px !important; background: none; border: 0; box-shadow: none; font-size: 9px; letter-spacing: .1em; color: #9f2944; }
  .hero-kicker > span:first-child { display: none; }
  .hero-title { font-size: clamp(32px, 8.7vw, 48px); line-height: 1.1; letter-spacing: -.035em; text-shadow: none; margin: 0 0 12px !important; text-wrap: initial; }
  .hero-title em { color: #e34668; font-weight: 500; }
  .hero-lede { max-width: 420px; margin: 0 0 18px !important; font-size: 14px; line-height: 1.55; color: #586170; font-weight: 400; }
  .hero-actions { display: flex; flex-direction: row; justify-content: flex-start; gap: 12px; }
  .hero-actions .hero-button { width: auto; min-height: 44px; padding: 12px 16px !important; font-size: 13px; box-shadow: none; border-radius: 12px; }
  .hero-actions .hero-button:first-child { background: #db345a; }
  .hero-actions .hero-button:last-child { padding: 12px 0 !important; border: 0; background: none; font-size: 12px; }
  #gallery { padding: 0 18px 28px; scroll-margin-top: 82px; }
  #gallery-container { padding: 0 !important; border: 0; border-radius: 0; box-shadow: none; background: none; scroll-margin-top: 82px; }
  #gallery-container > div:first-child { gap: 12px; margin-bottom: 16px; }
  #gallery-container h2 { margin: 0; font-size: 25px; font-style: normal; line-height: 1.25; }
  #gallery-container > div:first-child > div > p { display: none; }
  #category-filters { display: flex; flex-wrap: nowrap; gap: 8px; padding: 3px 0 9px; overflow-x: auto; width: 100%; scrollbar-width: thin; scrollbar-color: #e4bdc7 transparent; }
  #category-filters a { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 10px 15px; min-height: 44px; font-size: 13px; border: 1px solid #ece5e4; box-shadow: none; transform: none; white-space: nowrap; }
  #category-filters a.bg-rose-500 { background: #db345a; border-color: #db345a; }
  #gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #gallery-grid > div { min-width: 0; border: 1px solid #eee4e3; border-radius: 16px; box-shadow: none; animation: mobile-enter 200ms ease-out; transition: transform 160ms ease; }
  #gallery-grid > div > div:first-child { height: auto; aspect-ratio: 1.24; }
  #gallery-grid img { transition: none; transform: none; }
  #gallery-grid > div > div:first-child > div { font-size: 8px; padding: 3px 5px; box-shadow: none; }
  #gallery-grid > div > div:last-child { padding: 12px 10px 10px; }
  #gallery-grid h3 { font-size: 14px; line-height: 1.3; margin-bottom: 6px; }
  #gallery-grid p { font-size: 11px; line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  #gallery-grid > div > div:last-child > a { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-top: auto; font-size: 10px; letter-spacing: .03em; padding: 8px 2px; border: 1px solid #efb8c4; color: #b72b4b; background: #fff6f7; border-radius: 9px; }
  #pagination-controls { flex-wrap: wrap; gap: 6px; margin-top: 20px; }
  #pagination-controls button { min-width: 44px; min-height: 44px; margin: 0; border-radius: 10px; font-size: 13px; }
  .mobile-section { padding: 28px 18px; border-top: 1px solid #eee4e3; }
  .mobile-section h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 18px; }
  .mobile-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .12em; color: #9f2944; margin-bottom: 9px; }
  .mobile-reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mobile-reading-card { display: flex; flex-direction: column; padding: 18px 14px; border-radius: 16px; background: #f6ede4; }
  .mobile-reading-card:nth-child(2) { background: #fae9ed; }
  .mobile-reading-card > span:first-child { font-size: 25px; margin-bottom: 16px; }
  .mobile-reading-card h3 { font-weight: 700; font-size: 16px; margin-bottom: 5px; }
  .mobile-reading-card p { color: #59606b; font-size: 12px; line-height: 1.5; margin-bottom: 18px; }
  .mobile-link { font-size: 12px; font-weight: 700; color: #9f2944; margin-top: auto; }
  .mobile-inline-link { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-top: 8px; font-size: 13px; }
  .mobile-how { background: white; scroll-margin-top: 80px; }
  .mobile-steps { display: grid; gap: 18px; }
  .mobile-steps li { display: flex; align-items: flex-start; gap: 12px; }
  .mobile-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #fff0f3; color: #b72b4b; font-size: 13px; font-weight: 700; }
  .mobile-steps strong { font-size: 14px; }
  .mobile-steps p { font-size: 13px; color: #59606b; line-height: 1.5; margin-top: 2px; }
  .mobile-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 16px; margin-top: 22px; border-radius: 12px; background: #f7f5f4; font-size: 12px; }
  .mobile-help span { font-weight: 700; color: #9f2944; }
  .mobile-projects { background: #f4f1f7; scroll-margin-top: 80px; }
  .mobile-projects > p:not(.mobile-eyebrow) { font-size: 13px; line-height: 1.5; color: #626071; margin: -7px 0 18px; }
  .mobile-project { display: flex; align-items: center; gap: 12px; padding: 16px 12px; border-radius: 14px; background: #fff; margin-top: 10px; }
  .mobile-project > span:first-child { font-size: 22px; }
  .mobile-project > span:last-child { margin-left: auto; color: #766285; }
  .mobile-project h3 { font-size: 14px; font-weight: 700; }
  .mobile-project p { font-size: 12px; color: #626071; line-height: 1.5; margin-top: 3px; }
  .mobile-project small { display: block; color: #72647b; font-size: 10px; margin-top: 7px; overflow-wrap: anywhere; }
  .mobile-guide-details { padding: 0 18px; background: white; border-top: 1px solid #eee4e3; }
  .mobile-guide-details > summary { cursor: pointer; padding: 22px 0; font-size: 14px; font-weight: 700; }
  #home-guide { padding: 8px 0 24px; }
  #home-guide > div { padding: 0; }
  #home-guide h2 { font-size: 23px; margin: 24px 0 16px; }
  #home-guide h3 { font-size: 18px; }
  #home-guide p { font-size: 14px; }
  body > footer { padding: 28px 18px; }
  body > footer > div { padding: 0; }
  body > footer > div > div:first-child { gap: 24px; margin-bottom: 24px; }
  body > footer a { display: inline-flex; align-items: center; min-height: 44px; }
  a, button { -webkit-tap-highlight-color: transparent; }
  .hero-button, .mobile-reading-card, .mobile-project, #category-filters a { transition: transform 160ms ease, background-color 160ms ease; }
  .hero-button:active, .mobile-reading-card:active, .mobile-project:active, #gallery-grid > div:active { transform: scale(.98); }
  a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #9f2944; outline-offset: 3px; }
  @keyframes mobile-enter { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
