/* mobile-a.css: phone fixes (header, hero, story, founder, rooms, collection, prices) */

@media (max-width: 600px) {

  /* ---------- tokens: one gutter, six text sizes tuned for phones ---------- */
  :root {
    --gutter: 24px;           /* every section's content edge */
    --panel-m: 8px;           /* panel distance from the screen edge */
    --t-display: 2.75rem;     /* 44px */
    --t-heading: 2rem;        /* 32px */
    --t-title: 1.25rem;       /* 20px */
    --t-lead: 1.125rem;       /* 18px */
    --t-body: 1rem;           /* 16px */
    --t-label: .75rem;        /* 12px */
  }

  /* ---------- panels: identical frame everywhere, content lands on the gutter ---------- */
  .section.panelize { padding: 6px 0 !important; }
  .section.panelize > .wrap {
    margin: 0 var(--panel-m) !important; width: auto !important; max-width: none !important;
    border-radius: 14px;
    padding: 40px calc(var(--gutter) - var(--panel-m) - 1px) 40px !important;
  }
  .section.panelize > .wrap::before { top: 10px; left: 10px; }
  .section.panelize > .wrap::after { bottom: 10px; right: 10px; }
  .section.panelize .section-head { margin-bottom: 24px !important; }

  /* buttons: comfortable, consistent */
  .btn { min-height: 50px; height: auto !important; }

  /* ---------- header ---------- */
  .header, .header.scrolled { padding: 12px 0; }
  .header .wrap { gap: 12px; }
  .brand { gap: 10px; min-width: 0; }
  .brand svg { width: 32px; height: 32px; }
  .header-cta { gap: 8px; }
  .header-phone { width: 44px !important; height: 44px !important; }
  .menu-toggle { margin-right: -10px; }  /* lines sit on the gutter, tap area stays 44px */

  /* ---------- hero ---------- */
  .hero { min-height: 100svh; margin-top: 0; overflow: hidden; }   /* full-bleed under the transparent header */
  .hero-media img { animation: none; transform: none; }
  .hero-content { padding-top: 104px !important; padding-bottom: 88px !important; } /* clears the floating Sound / WhatsApp buttons */
  .hero .eyebrow { display: block; line-height: 1.7; letter-spacing: .22em; }
  .hero .eyebrow::before { display: none; }
  .hero h1 { margin: 14px 0 16px; line-height: 1.04; }
  .hero .lead { max-width: none; line-height: 1.55; margin: 0; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; padding: 0 16px !important; letter-spacing: .16em !important; white-space: nowrap; }
  .hero-foot { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; margin-top: 24px !important; padding-top: 18px !important; }
  .hero-foot > div { min-width: 0; }
  .hero-foot .stat-num { white-space: nowrap; line-height: 1; }
  .hero-foot .stat-num sup { display: block; margin: 8px 0 0; vertical-align: baseline; line-height: 1; letter-spacing: .2em; text-transform: uppercase; }
  .hero-foot .stat-label { margin-top: 6px; line-height: 1.45; letter-spacing: .14em; }

  /* ---------- story ---------- */
  .story-grid { gap: 32px; }
  #story .story-quote { margin: 16px 0 20px; }
  .story-sign { gap: 24px; margin-top: 24px; padding-top: 22px; }
  .story-sign > div { flex: 1 1 0; min-width: 0; }
  .story-sign .stat-label { margin-top: 8px; line-height: 1.45; }
  .story-figure { width: 100%; margin: 0; }
  .story-figure .mask-img { aspect-ratio: 4 / 5; }
  .story-figure figcaption { position: static; background: none; padding: 12px 0 0; }

  /* ---------- founder ---------- */
  .founder-grid { gap: 32px; }
  .founder-portrait { width: 100%; }
  .founder-copy { display: grid; justify-items: start; }
  #founder h2 { margin: 14px 0 6px; }
  .founder-role { margin-bottom: 16px; }
  .founder-facts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; width: 100%; }
  .founder-facts li { min-width: 0; }
  .founder-facts .stat-label { letter-spacing: .14em !important; line-height: 1.45; }
  .founder-sign { margin-top: 20px; }

  /* ---------- rooms (mobile strip) ---------- */
  .rooms { margin: 6px 0 !important; }
  .rooms-mobile-head { padding-top: 48px; padding-bottom: 24px; gap: 14px; }
  .rooms-mobile-head h2 { margin: 0; line-height: 1.08; }
  .rooms-mobile { gap: 12px; padding: 0 var(--gutter) 30px; scroll-padding-inline: var(--gutter); }
  .room-card { flex: 0 0 84%; scroll-snap-align: start; }
  .room-card .img { aspect-ratio: 4 / 5.2; border-radius: 14px; border: 1px solid rgba(214, 186, 140, .2); }
  .room-card .img::after { background: linear-gradient(0deg, rgba(22,17,13,.97) 0%, rgba(22,17,13,.86) 34%, rgba(22,17,13,.45) 60%, transparent 82%); }
  .room-card .num { top: 18px; left: 20px; letter-spacing: .3em; }
  .room-card .over { left: 20px; right: 20px; bottom: 20px; }
  .rooms-mobile .room-card h3 { font-size: var(--t-heading) !important; margin: 0 0 6px; line-height: 1.05; }
  .room-card p { line-height: 1.5; color: var(--ivory); }
  .room-card .room-stones { gap: 6px; margin-top: 14px; }
  .room-card .room-stones span { padding: 6px 9px; letter-spacing: .16em; background: rgba(22,17,13,.45); }

  /* eyebrows: balanced line breaks, no lonely last word */
  .eyebrow { text-wrap: balance; }

  /* ---------- collection ---------- */
  .tabs { display: grid !important; grid-template-columns: auto auto auto; justify-content: space-between !important; gap: 0 12px !important; margin-bottom: 18px !important; }
  #collection .tab { font-size: var(--t-lead) !important; min-height: 48px; padding: 0 2px 10px !important; text-align: center; line-height: 1.2; white-space: nowrap; }
  .tab-note { text-align: left !important; margin: 0 0 22px !important; max-width: none; }
  .stone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px 12px !important; }
  .stone { min-width: 0; }
  .stone-swatch { border-radius: 6px; }
  .stone-swatch .sheen { display: none; }   /* hover sweep, no use on touch */
  .stone-meta { padding-top: 10px !important; margin-top: 10px !important; }
  .stone-use { margin-top: 4px; line-height: 1.45; }
  .stone-grid > .stone-cta, .stone-cta.span-2 { grid-column: 1 / -1 !important; }
  .stone-grid > .stone-cta .stone-swatch, .stone-grid > .stone-cta.span-2 .stone-swatch { aspect-ratio: 4 / 3.4 !important; position: relative !important; height: auto !important; }
  .cta-over { padding: 20px !important; gap: 8px !important; background: linear-gradient(0deg, rgba(22,17,13,.95) 0%, rgba(22,17,13,.8) 45%, rgba(22,17,13,.2) 85%) !important; }
  .collection-foot { display: grid !important; justify-items: stretch; gap: 16px !important; text-align: left !important; margin-top: 28px !important; }
  .collection-foot .btn { width: 100%; justify-content: center; }

  /* ---------- prices ---------- */
  .price-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .price-card { padding: 28px 20px !important; }
  .thickness { grid-template-columns: 1fr !important; gap: 18px !important; padding: 22px 18px !important; margin-top: 12px !important; }
  .mm-list { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px !important; }
  .mm-list li { min-width: 0 !important; padding: 10px 0 !important; letter-spacing: .12em !important; }
  .price-fine { margin-top: 20px; }
}
