@font-face {
      font-family: 'Spectral';
      font-style: normal;
      font-weight: 400;
      font-display: swap;
      src: url('/assets/fonts/spectral-normal-400.woff2') format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: 'Spectral';
      font-style: normal;
      font-weight: 600;
      font-display: swap;
      src: url('/assets/fonts/spectral-normal-600.woff2') format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: 'Spectral';
      font-style: italic;
      font-weight: 400;
      font-display: swap;
      src: url('/assets/fonts/spectral-italic-400.woff2') format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: 'Spectral';
      font-style: italic;
      font-weight: 600;
      font-display: swap;
      src: url('/assets/fonts/spectral-italic-600.woff2') format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: 'Work Sans';
      font-style: normal;
      font-weight: 400 600;
      font-display: swap;
      src: url('/assets/fonts/worksans-variable.woff2') format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }

    :root {
      /* MJ Magic Rugs brand tokens — dark-primary surface (established on print collateral) */
      --mjr-espresso:     #211812;
      --mjr-cream:        #F0E7D6;
      --mjr-cream-muted:  #BCAB91;
      --mjr-brass:        #C69A46;
      --mjr-brass-light:  #E9CB8B;
      --mjr-brass-shade:  #9A7231;
      --mjr-oxblood:      #964230;
      --mjr-panel:        #F0E9DB;
      --mjr-panel-ink:    #231912;

      --border:     rgba(198,154,70,0.24);
      --shadow-sm:  0 2px 6px rgba(20,12,8,0.38), 0 16px 38px rgba(20,12,8,0.42);
      --shadow-lg:  0 5px 12px rgba(20,12,8,0.5), 0 28px 58px rgba(20,12,8,0.58);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    /* Deliberately 'auto', not 'smooth'. A global smooth scroll-behavior also
       governs the BROWSER's own ambient scroll adjustments (e.g. clamping
       window.scrollY after a filter shrinks the page), and that native
       animation can race and conflict with an explicit JS scrollIntoView()/
       scrollTo() call fired in the same tick — occasionally leaving the page
       scrolled to neither the old nor the new correct position. Every
       intentional scroll in this codebase already passes its own `behavior`
       option, so nothing here relies on this being 'smooth'. */
    html { scroll-behavior: auto; }
    body {
      font-family: 'Work Sans', system-ui, sans-serif;
      background: var(--mjr-espresso);
      color: var(--mjr-cream);
      min-height: 100vh;
      overflow-x: hidden;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }
    a { color: var(--mjr-brass); text-decoration: none; }
    ::selection { background: var(--mjr-oxblood); color: var(--mjr-cream); }

    /* textile ground (D1) — whisper-subtle warp/weft weave */
    .mjr-textile-ground {
      background-color: var(--mjr-espresso);
      background-image:
        repeating-linear-gradient(90deg, rgba(240,231,214,0.022) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(0deg, rgba(240,231,214,0.016) 0 1px, transparent 1px 5px);
    }

    @keyframes mjrSettle { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
    @keyframes mjrReveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
    @keyframes mjrRise   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
    @keyframes mjrFrieze { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }
    /* Progressive enhancement: every D3 entrance element is fully visible by
       default. The hidden-then-reveal states below apply ONLY once JS has
       confirmed IntersectionObserver support and no reduced-motion preference,
       and stamped html.mjr-anim — see the inline script in <head>. This means
       JS disabled, script errors, old browsers, and reduced-motion all land
       on plain visible content with zero animation, never a stuck-invisible state. */
    html.mjr-anim .mjr-anim-settle { animation: mjrSettle 0.7s ease both; }
    html.mjr-anim .mjr-anim-reveal { animation: mjrReveal 0.8s ease both; }
    html.mjr-anim .mjr-rise { opacity: 0; transform: translateY(30px); }
    html.mjr-anim .mjr-rise.mjr-in-view { animation: mjrRise 0.7s ease both; }
    html.mjr-anim .mjr-frieze-draw { animation: mjrFrieze 0.9s ease both; }

    /* HEADER */
    .site-header {
      background: var(--mjr-espresso);
      color: var(--mjr-cream);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 200;
    }
    .header-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }
    .mjr-wordmark {
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      font-family: 'Spectral', serif;
      font-size: 21px;
      font-weight: 600;
      color: var(--mjr-cream);
      white-space: nowrap;
    }
    .mjr-wordmark em { font-style: italic; font-weight: 600; color: var(--mjr-oxblood); }
    .header-eyebrow {
      font-family: 'Work Sans', sans-serif;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      font-size: 11px;
      font-weight: 600;
      color: var(--mjr-cream-muted);
    }

    /* HERO */
    .mjr-hero { position: relative; overflow: hidden; }
    .mjr-hero-lattice {
      position: absolute; inset: 0; width: 100%; height: 100%;
      opacity: 0.06; pointer-events: none;
      -webkit-mask-image: radial-gradient(115% 85% at 50% 42%, transparent 0%, transparent 32%, #000 76%);
      mask-image: radial-gradient(115% 85% at 50% 42%, transparent 0%, transparent 32%, #000 76%);
    }
    .mjr-hero-inner {
      position: relative; z-index: 1;
      max-width: 1200px; margin: 0 auto;
      padding: 84px 32px 30px;
      text-align: center;
    }
    .mjr-hero-eyebrow {
      font-family: 'Work Sans', sans-serif;
      text-transform: uppercase; letter-spacing: 0.34em;
      font-size: 12px; font-weight: 600; color: var(--mjr-brass);
    }
    .mjr-hero-title {
      margin: 24px 0 0;
      font-family: 'Spectral', serif; font-weight: 600;
      line-height: 1.02; font-size: clamp(46px, 7.5vw, 88px);
      color: var(--mjr-cream);
    }
    .mjr-hero-title em { font-style: italic; font-weight: 600; color: var(--mjr-oxblood); }
    .mjr-hero-suffix {
      margin: 10px 0 0;
      font-family: 'Work Sans', sans-serif;
      text-transform: uppercase; letter-spacing: 0.32em;
      font-size: 13px; font-weight: 600; color: var(--mjr-brass);
    }
    .mjr-hero-sub {
      margin-top: 20px;
      font-family: 'Work Sans', sans-serif;
      text-transform: uppercase; letter-spacing: 0.24em;
      font-size: 12.5px; font-weight: 500; color: var(--mjr-cream-muted);
    }
    .mjr-hero-tagline {
      margin: 26px auto 0; max-width: 560px;
      font-family: 'Spectral', serif; font-style: italic;
      font-size: clamp(19px, 2.4vw, 24px); line-height: 1.45;
      color: var(--mjr-cream);
    }

    /* GUARD-BORDER FRIEZE DIVIDER */
    .mjr-frieze { display: block; width: 100%; height: 14px; }
    .mjr-frieze-wrap { margin: 0 auto 30px; }
    .mjr-frieze-wrap.centered { max-width: 380px; }

    /* CORNER TICKS */
    .mjr-ticked { position: relative; padding: 20px; }
    .mjr-tick { position: absolute; width: 42px; height: 42px; pointer-events: none; }
    .mjr-tick-tl { top: 0; left: 0; border-top: 1.5px solid; border-left: 1.5px solid; border-image: linear-gradient(135deg, var(--mjr-brass-light), var(--mjr-brass), var(--mjr-brass-shade)) 1; }
    .mjr-tick-tr { top: 0; right: 0; border-top: 1.5px solid; border-right: 1.5px solid; border-image: linear-gradient(225deg, var(--mjr-brass-light), var(--mjr-brass), var(--mjr-brass-shade)) 1; }
    .mjr-tick-bl { bottom: 0; left: 0; border-bottom: 1.5px solid; border-left: 1.5px solid; border-image: linear-gradient(45deg, var(--mjr-brass-light), var(--mjr-brass), var(--mjr-brass-shade)) 1; }
    .mjr-tick-br { bottom: 0; right: 0; border-bottom: 1.5px solid; border-right: 1.5px solid; border-image: linear-gradient(315deg, var(--mjr-brass-light), var(--mjr-brass), var(--mjr-brass-shade)) 1; }

    /* FEATURED PIECE (M1) */
    .mjr-featured { max-width: 1200px; margin: 0 auto; padding: 34px 32px 20px; }
    .mjr-featured-eyebrow { text-align: center; margin-bottom: 30px; font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.3em; font-size: 12px; font-weight: 600; color: var(--mjr-brass); }
    .mjr-featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 52px; align-items: center; }
    .mjr-featured-photo-btn { background: none; border: none; cursor: pointer; display: block; width: 100%; text-decoration: none; }
    .mjr-featured-photo {
      position: relative; background: var(--mjr-panel); border: 1px solid var(--mjr-brass);
      aspect-ratio: 16 / 11; overflow: hidden; box-shadow: var(--shadow-sm);
      transition: box-shadow 0.25s ease;
    }
    .mjr-featured-photo-btn:hover .mjr-featured-photo { box-shadow: var(--shadow-lg); }
    .mjr-featured-photo-inner { position: absolute; inset: 0; transition: transform 0.5s ease; }
    .mjr-featured-photo-btn:hover .mjr-featured-photo-inner { transform: scale(1.045); }
    .mjr-featured-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .mjr-featured-cat { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.24em; font-size: 11.5px; font-weight: 600; color: var(--mjr-cream-muted); }
    .mjr-featured-name { margin: 14px 0 0; font-family: 'Spectral', serif; font-weight: 600; line-height: 1.05; font-size: clamp(34px, 4.4vw, 50px); color: var(--mjr-cream); }
    .mjr-featured-meta { margin-top: 14px; font-family: 'Work Sans', sans-serif; font-size: 15px; color: var(--mjr-cream-muted); }
    .mjr-featured-rule { margin: 22px 0 0; height: 1px; background: linear-gradient(90deg, var(--mjr-brass-light), var(--mjr-brass), var(--mjr-brass-shade), transparent); }
    .mjr-featured-price { margin-top: 22px; font-family: 'Spectral', serif; font-weight: 600; font-size: 30px; color: var(--mjr-brass); }
    .mjr-featured-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
    .mjr-btn-solid, .mjr-btn-outline {
      font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 600;
      padding: 14px 30px; cursor: pointer; text-decoration: none; display: inline-block; border-radius: 0;
    }
    .mjr-btn-solid { background: var(--mjr-brass); color: var(--mjr-espresso); border: 1px solid var(--mjr-brass); transition: background 0.15s ease, color 0.15s ease; }
    .mjr-btn-solid:hover { background: transparent; color: var(--mjr-brass); }
    .mjr-btn-outline { background: transparent; color: var(--mjr-cream); border: 1px solid var(--border); transition: border-color 0.15s ease; }
    .mjr-btn-outline:hover { border-color: var(--mjr-brass); }

    /* SIZE FILTER CHIPS + SEARCH (restyled, functionality unchanged) */
    .site-nav {
      background: var(--mjr-espresso);
      border-bottom: 1px solid var(--border);
      display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
      padding: 14px 24px;
      position: sticky; top: 61px; z-index: 190;
      backdrop-filter: blur(2px);
    }
    .nav-btn {
      font-family: 'Work Sans', sans-serif; font-size: 11px; font-weight: 600;
      letter-spacing: 0.16em; text-transform: uppercase; color: var(--mjr-cream-muted);
      background: transparent; border: 1px solid var(--border); border-radius: 999px;
      padding: 9px 18px; cursor: pointer; transition: all 0.18s; text-decoration: none;
    }
    .nav-btn:hover { border-color: var(--mjr-brass); color: var(--mjr-brass); }
    .nav-btn.active { background: var(--mjr-brass); border-color: var(--mjr-brass); color: var(--mjr-espresso); }
    .nav-btn.nav-signature { border-color: rgba(198,154,70,0.55); color: var(--mjr-brass); }
    .nav-btn.nav-signature.active { background: var(--mjr-brass); color: var(--mjr-espresso); }

    .filter-bar {
      background: var(--mjr-espresso);
      border-bottom: 1px solid var(--border);
      padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
    }
    .hidden { display: none !important; }
    .filter-label {
      font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.2em;
      font-size: 11px; font-weight: 600; color: var(--mjr-cream-muted); margin-right: 6px; white-space: nowrap;
    }
    .pill {
      background: transparent; border: 1px solid rgba(198,154,70,0.45); color: var(--mjr-brass);
      font-family: 'Work Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
      padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all 0.15s; white-space: nowrap;
    }
    .pill:hover { border-color: var(--mjr-brass); color: var(--mjr-cream); }
    .pill.active { background: var(--mjr-brass); border-color: var(--mjr-brass); color: var(--mjr-espresso); font-weight: 600; }

    .search-bar { background: var(--mjr-espresso); border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; justify-content: center; }
    .search-wrap { position: relative; }
    .search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: 0.5; pointer-events: none; color: var(--mjr-cream-muted); }
    .search-wrap input {
      font-family: 'Work Sans', sans-serif; font-size: 13px; padding: 9px 16px 9px 38px;
      border: 1px solid var(--border); border-radius: 999px; background: rgba(240,231,214,0.05);
      color: var(--mjr-cream); width: 260px; outline: none; transition: border-color 0.2s, width 0.3s;
    }
    .search-wrap input::placeholder { color: var(--mjr-cream-muted); }
    .search-wrap input:focus { border-color: var(--mjr-brass); width: 300px; }

    /* MERCHANDISED GRID SECTIONS */
    .gallery-section { max-width: 1200px; margin: 0 auto; padding: 60px 32px 40px; }
    .mjr-section { margin-bottom: 68px; }
    .mjr-section:last-child { margin-bottom: 0; }
    .mjr-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
    .mjr-section-title { margin: 0; font-family: 'Spectral', serif; font-weight: 600; font-size: 26px; color: var(--mjr-cream); white-space: nowrap; }
    .mjr-section-kicker { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.18em; font-size: 10.5px; font-weight: 600; color: var(--mjr-cream-muted); }

    /* legacy flat-grid head (used for filtered/searched views) */
    .gallery-head { display: flex; align-items: baseline; margin-bottom: 30px; flex-wrap: wrap; gap: 8px; }
    .gallery-head h2 { font-family: 'Spectral', serif; font-size: 26px; font-weight: 600; color: var(--mjr-cream); }

    /* F2 — active-filter strip: quiet, informative, not decorative */
    .mjr-filter-strip {
      display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
      font-family: 'Work Sans', sans-serif; font-size: 13px; font-weight: 500;
      color: var(--mjr-cream-muted); margin-bottom: 14px;
    }
    .mjr-filter-clear {
      background: none; border: none; padding: 0; margin: 0; cursor: pointer;
      font-family: 'Work Sans', sans-serif; font-size: 13px; font-weight: 600;
      color: var(--mjr-brass); text-decoration: underline; text-underline-offset: 2px;
      transition: color 0.15s ease;
    }
    .mjr-filter-clear:hover { color: var(--mjr-cream); }

    .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 38px 30px; }

    /* CARD */
    .rug-card {
      display: block; text-align: left; background: none; border: none; padding: 0; margin: 0;
      font: inherit; color: inherit; cursor: pointer; text-decoration: none;
    }
    .card-img-frame {
      position: relative; background: var(--mjr-panel); border: 1px solid var(--mjr-brass);
      aspect-ratio: 4 / 3; overflow: hidden; box-shadow: var(--shadow-sm);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .rug-card:hover .card-img-frame { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
    .card-img-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; transition: transform 0.4s ease; }
    .rug-card:hover .card-img-inner { transform: scale(1.035); }
    .card-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
    .card-body { padding-top: 16px; }
    .card-id {
      font-family: 'Work Sans', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em;
      text-transform: uppercase; color: var(--mjr-brass); margin-bottom: 5px;
    }
    .card-name { font-family: 'Spectral', serif; font-weight: 600; font-size: 19px; color: var(--mjr-cream); line-height: 1.2; }
    .card-sub { margin-top: 3px; font-family: 'Work Sans', sans-serif; font-size: 13.5px; color: var(--mjr-cream-muted); }
    .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
    .card-price { font-family: 'Spectral', serif; font-weight: 600; font-size: 16px; color: var(--mjr-brass); }
    .card-price-contact { font-family: 'Work Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mjr-cream-muted); font-style: italic; }
    .btn-inquire {
      font-family: 'Work Sans', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
      text-transform: uppercase; padding: 8px 14px; background: transparent; color: var(--mjr-brass);
      border: 1px solid rgba(198,154,70,0.45); border-radius: 999px; cursor: pointer; transition: all 0.15s; white-space: nowrap;
    }
    .btn-inquire:hover { background: var(--mjr-brass); color: var(--mjr-espresso); border-color: var(--mjr-brass); }

    /* PLACEHOLDER CARD (photo-pending) */
    .card-placeholder {
      position: relative; background: var(--mjr-panel); border: 1px solid var(--mjr-brass);
      aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden;
      box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .rug-card:hover .card-placeholder { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
    .card-placeholder-inset { position: absolute; inset: 12px; border: 1px dashed rgba(150,66,48,0.35); }
    .card-placeholder-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 12px; }
    .card-placeholder-label { font-family: 'Spectral', serif; font-style: italic; font-size: 19px; color: var(--mjr-panel-ink); }
    .card-placeholder-cta { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.22em; font-size: 10.5px; font-weight: 600; color: var(--mjr-oxblood); }

    /* BREADCRUMB — quiet, informative, brass separators */
    .mjr-breadcrumb {
      font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 500;
      color: var(--mjr-cream-muted); display: flex; flex-wrap: wrap; align-items: center;
      gap: 6px; margin: 0 0 22px;
    }
    .mjr-breadcrumb a { color: var(--mjr-cream-muted); text-decoration: none; transition: color 0.15s ease; }
    .mjr-breadcrumb a:hover { color: var(--mjr-brass); }
    .mjr-breadcrumb-sep { color: var(--mjr-brass); }
    .mjr-breadcrumb [aria-current="page"] { color: var(--mjr-cream); }

    /* LANDING PAGES (Task G) */
    .mjr-landing-section { max-width: 1200px; margin: 0 auto; padding: 32px 32px 20px; }
    .mjr-landing-intro { font-family: 'Spectral', serif; font-size: 17px; line-height: 1.6; color: var(--mjr-cream-muted); max-width: 720px; margin: 0 0 8px; }
    .mjr-landing-lowstock { font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--mjr-oxblood); margin: 10px 0 0; }
    .mjr-shopby { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0; }
    .mjr-shopby-label { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; font-weight: 600; color: var(--mjr-cream-muted); margin-right: 4px; }
    .mjr-shopby a.pill { display: inline-block; }

    /* FOOTER — browse-the-collection block */
    .mjr-footer-browse { max-width: 640px; margin: 0 auto 32px; padding-top: 32px; border-top: 1px solid var(--border); }
    .mjr-footer-browse-label { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; font-weight: 600; color: var(--mjr-brass); margin-bottom: 14px; }
    .mjr-footer-browse-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
    .mjr-footer-browse-links a { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--mjr-cream-muted); text-decoration: none; transition: color 0.15s ease; }
    .mjr-footer-browse-links a:hover { color: var(--mjr-brass); }

    /* PRODUCT DETAIL VITRINE */
    .mjr-detail-section { max-width: 1200px; margin: 0 auto; padding: 40px 32px 40px; }
    .mjr-back-link {
      background: none; border: none; padding: 0; margin: 0 0 40px; cursor: pointer; text-decoration: none;
      font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11.5px;
      font-weight: 600; color: var(--mjr-brass); display: inline-block; transition: color 0.15s ease;
    }
    .mjr-back-link:hover { color: var(--mjr-cream); }
    .mjr-detail-grid-outer { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: start; }
    .mjr-vitrine { position: relative; padding: 22px; }
    .mjr-vitrine-photo { position: relative; background: var(--mjr-panel); border: 1px solid var(--mjr-brass); aspect-ratio: 1 / 1; overflow: hidden; box-shadow: 0 4px 10px rgba(20,12,8,0.42), 0 30px 60px rgba(20,12,8,0.5); }
    .mjr-vitrine-photo-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 34px; transition: transform 0.5s ease; }
    .mjr-vitrine-photo:hover .mjr-vitrine-photo-inner { transform: scale(1.045); }
    .mjr-vitrine-photo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
    .mjr-vitrine-placeholder {
      position: relative; background: var(--mjr-panel); border: 1px solid var(--mjr-brass); aspect-ratio: 1 / 1;
      display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 4px 10px rgba(20,12,8,0.42), 0 30px 60px rgba(20,12,8,0.5);
    }
    .mjr-vitrine-placeholder-inset { position: absolute; inset: 18px; border: 1px dashed rgba(150,66,48,0.35); }
    .mjr-vitrine-placeholder-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
    .mjr-vitrine-placeholder-label { font-family: 'Spectral', serif; font-style: italic; font-size: 24px; color: var(--mjr-panel-ink); }
    .mjr-vitrine-placeholder-cta { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; font-weight: 600; color: var(--mjr-oxblood); }

    /* D5 weave close-up strip */
    .mjr-weave-strip-wrap { padding: 0 22px; }
    .mjr-weave-label { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.22em; font-size: 10.5px; font-weight: 600; color: var(--mjr-cream-muted); margin: 6px 0 14px; }
    .mjr-weave-strip { display: flex; gap: 14px; }
    .mjr-weave-crop { flex: 1; aspect-ratio: 1 / 1; background: var(--mjr-panel); border: 1px solid var(--mjr-brass); overflow: hidden; }
    .mjr-weave-crop img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.4); }

    /* PRODUCT INFO PANEL */
    .mjr-info-panel { padding-top: 6px; }
    .mjr-info-cat { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px; font-weight: 600; color: var(--mjr-brass); }
    .mjr-info-name { margin: 16px 0 0; font-family: 'Spectral', serif; font-weight: 600; line-height: 1.05; font-size: clamp(38px, 5vw, 56px); color: var(--mjr-cream); }
    .mjr-info-details { margin: 34px 0 32px; }
    .mjr-info-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--border); }
    .mjr-info-row:last-of-type { border-bottom: 1px solid var(--border); }
    .mjr-info-row-label { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; font-weight: 600; color: var(--mjr-cream-muted); }
    .mjr-info-row-value { font-family: 'Work Sans', sans-serif; font-size: 15px; font-weight: 500; color: var(--mjr-cream); }
    .mjr-info-price { font-family: 'Spectral', serif; font-weight: 600; font-size: 34px; color: var(--mjr-brass); }
    .mjr-info-note { margin: 34px 0 0; font-family: 'Spectral', serif; font-style: italic; font-size: 18px; line-height: 1.5; color: var(--mjr-cream-muted); max-width: 420px; }

    /* RELATED */
    .mjr-related-section { max-width: 1200px; margin: 0 auto; padding: 56px 32px 96px; }
    .mjr-related-title { margin: 0 0 32px; text-align: center; font-family: 'Spectral', serif; font-weight: 600; font-size: 26px; color: var(--mjr-cream); }
    .mjr-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px; }

    /* VISIT THE BOOTH (M2) */
    .mjr-booth-section { max-width: 1200px; margin: 0 auto; padding: 40px 32px 20px; }
    .mjr-booth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; }
    .mjr-booth-kicker { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px; font-weight: 600; color: var(--mjr-brass); }
    .mjr-booth-title { margin: 14px 0 26px; font-family: 'Spectral', serif; font-weight: 600; font-size: clamp(30px, 4vw, 42px); color: var(--mjr-cream); }
    .mjr-booth-fact-label { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 600; color: var(--mjr-cream-muted); margin-bottom: 7px; }
    .mjr-booth-fact-value { display: inline-block; font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 600; color: var(--mjr-cream); }
    .mjr-booth-steps-kicker { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 600; color: var(--mjr-cream-muted); margin-bottom: 22px; }
    .mjr-booth-step { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--border); }
    .mjr-booth-step:last-child { border-bottom: 1px solid var(--border); }
    .mjr-booth-step-num { flex: none; font-family: 'Spectral', serif; font-weight: 600; font-size: 26px; color: var(--mjr-brass); line-height: 1; }
    .mjr-booth-step-title { font-family: 'Spectral', serif; font-weight: 600; font-size: 19px; color: var(--mjr-cream); }
    .mjr-booth-step-body { margin-top: 4px; font-family: 'Work Sans', sans-serif; font-size: 14px; color: var(--mjr-cream-muted); }

    /* MEET MARIO (M4) */
    .mjr-mario-section { max-width: 1200px; margin: 0 auto; padding: 70px 32px 96px; }
    .mjr-mario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 52px; align-items: center; }
    .mjr-mario-quote { margin: 0; font-family: 'Spectral', serif; font-style: italic; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.5; color: var(--mjr-cream-muted); }
    .mjr-mario-rule { margin-top: 22px; height: 1px; width: 120px; background: linear-gradient(90deg, var(--mjr-brass-light), var(--mjr-brass), var(--mjr-brass-shade), transparent); }
    .mjr-mario-byline { margin-top: 16px; font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; font-weight: 600; color: var(--mjr-cream-muted); }

    /* STATES */
    .state-box { grid-column: 1/-1; text-align: center; padding: 5rem 2rem; }
    .spinner { width: 32px; height: 32px; border: 2px solid var(--border); border-top-color: var(--mjr-brass); border-radius: 50%; animation: spin 0.75s linear infinite; margin: 0 auto 1.25rem; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .state-box h3 { font-family: 'Spectral', serif; font-size: 1.35rem; font-weight: 400; color: var(--mjr-cream); margin-bottom: 0.4rem; }
    .state-box p { font-size: 0.8rem; color: var(--mjr-cream-muted); }

    /* MODAL (homepage quick-inquire) */
    .overlay {
      display: none; position: fixed; inset: 0; background: rgba(20,12,8,0.6); z-index: 500;
      align-items: center; justify-content: center; padding: 1.5rem; backdrop-filter: blur(3px);
    }
    .overlay.open { display: flex; }
    .modal {
      background: var(--mjr-panel); color: var(--mjr-panel-ink); border: 1px solid var(--mjr-brass);
      max-width: 540px; width: 100%; max-height: 92vh; overflow-y: auto; position: relative;
    }
    .modal-close {
      position: absolute; top: 0.9rem; right: 1rem; background: none; border: none; font-size: 1.5rem;
      line-height: 1; color: var(--mjr-cream); cursor: pointer; opacity: 0.7; transition: opacity 0.15s; z-index: 10;
    }
    .modal-close:hover { opacity: 1; }
    .modal-top { background: var(--mjr-espresso); color: var(--mjr-cream); padding: 1.75rem 2rem 1.5rem; }
    .modal-eyebrow { font-family: 'Work Sans', sans-serif; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mjr-brass); margin-bottom: 0.4rem; }
    .modal-top h2 { font-family: 'Spectral', serif; font-size: 1.7rem; font-weight: 600; line-height: 1.15; }
    .modal-body { padding: 1.75rem 2rem 2rem; }
    .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; background: rgba(150,66,48,0.06); border: 1px solid rgba(198,154,70,0.3); padding: 1.1rem 1.25rem; margin-bottom: 1.75rem; }
    .detail-item label { display: block; font-family: 'Work Sans', sans-serif; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mjr-oxblood); margin-bottom: 0.18rem; }
    .detail-item span { font-family: 'Spectral', serif; font-size: 1rem; color: var(--mjr-panel-ink); }
    .detail-price { grid-column: 1/-1; border-top: 1px solid rgba(198,154,70,0.3); padding-top: 0.75rem; margin-top: 0.1rem; }
    .detail-price span { font-size: 1.5rem; font-weight: 600; color: var(--mjr-oxblood); }
    .form-section-title { font-family: 'Spectral', serif; font-size: 1.15rem; font-weight: 600; color: var(--mjr-panel-ink); margin-bottom: 1rem; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
    .form-group { margin-bottom: 0.85rem; }
    .form-group label { display: block; font-family: 'Work Sans', sans-serif; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(35,25,18,0.6); margin-bottom: 0.35rem; }
    .form-group input, .form-group textarea {
      width: 100%; font-family: 'Work Sans', sans-serif; font-size: 0.82rem; padding: 0.65rem 0.85rem;
      border: 1px solid rgba(35,25,18,0.18); background: #fff; color: var(--mjr-panel-ink); outline: none; transition: border-color 0.18s;
    }
    .form-group input:focus, .form-group textarea:focus { border-color: var(--mjr-oxblood); }
    .form-group textarea { resize: vertical; min-height: 80px; }
    .btn-submit {
      width: 100%; font-family: 'Work Sans', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
      text-transform: uppercase; padding: 0.95rem; background: var(--mjr-espresso); color: var(--mjr-cream);
      border: none; cursor: pointer; margin-top: 0.4rem; transition: background 0.18s;
    }
    .btn-submit:hover { background: var(--mjr-oxblood); }
    .btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }
    .success-box { text-align: center; padding: 2rem 1rem; display: none; }
    .success-box .icon { font-size: 2.25rem; margin-bottom: 0.85rem; color: var(--mjr-oxblood); }
    .success-box h3 { font-family: 'Spectral', serif; font-size: 1.5rem; font-weight: 600; color: var(--mjr-panel-ink); margin-bottom: 0.4rem; }
    .success-box p { font-size: 0.82rem; color: rgba(35,25,18,0.6); }

    /* FOOTER */
    .site-footer { background: #1b120d; color: var(--mjr-cream); text-align: center; padding: 56px 32px; border-top: 1px solid var(--border); }
    .footer-brand { font-family: 'Spectral', serif; font-size: 26px; font-weight: 600; margin-bottom: 16px; }
    .footer-brand em { font-style: italic; font-weight: 600; color: var(--mjr-oxblood); }
    .footer-tagline { font-family: 'Spectral', serif; font-style: italic; font-size: 17px; color: var(--mjr-cream-muted); margin-bottom: 22px; }
    .site-footer p.footer-since { font-family: 'Work Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; font-weight: 600; color: var(--mjr-brass); }
    .site-footer p.footer-copy { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--mjr-cream-muted); margin-top: 12px; }
    .site-footer p.footer-attribution { font-size: 0.7rem; opacity: 0.7; margin-top: 4px; }

    /* RESPONSIVE */
    @media (max-width: 640px) {
      .header-inner { padding: 14px 20px; }
      .site-nav { padding: 10px 16px; gap: 6px; top: 57px; }
      .nav-btn { padding: 7px 14px; font-size: 10px; }
      .filter-bar { padding: 10px 16px; gap: 6px; }
      .search-bar { padding: 10px 16px; }
      .search-wrap { width: 100%; }
      .search-wrap input { width: 100%; }
      .gallery-section { padding: 40px 20px 32px; }
      .gallery-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
      .mjr-featured-grid { gap: 30px; }
      .mjr-booth-grid, .mjr-mario-grid { gap: 36px; }
      .form-row { grid-template-columns: 1fr; }
      .detail-grid { grid-template-columns: 1fr; }
      .modal-body { padding: 1.25rem; }
      .mjr-weave-strip { gap: 8px; }
    }
    @media (max-width: 400px) {
      .gallery-grid { grid-template-columns: 1fr; }
    }
