/* ==========================================================================
   MILE END BAGELS - "TEN YEARS OF WOOD & FIRE (2016-2026)"
   10TH ANNIVERSARY EDITORIAL ARCHITECTURE (v12.0 - design-taste-frontend)
   - Dials: DESIGN_VARIANCE: 7 | MOTION_INTENSITY: 4 | VISUAL_DENSITY: 3
   - Pure Light Canvas (#FFFFFF) + Off-Black Ink (#111110), ZERO box outlines
   - Neo-Grotesque Display & Editorial Typography (ABC Walter Neue / Plus Jakarta Sans)
   - Full Web Interface Guidelines & Reduced-Motion Compliance
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F5F0;
  --text: #111110;
  --text-muted: #6E6E6A;
  --text-soft: #9E9E98;
  --accent-green: #00E676;
  --radius-lg: 8px;
  --header-h: 72px;
  --header-gap: 16px;
  --pad-x: clamp(24px, 5.5vw, 88px);
  --section-gap: clamp(72px, 8.5vw, 128px);
  --font-sans: 'ABC Walter Neue Normal', 'Plus Jakarta Sans', 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html {
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.38;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: calc(var(--header-h) + var(--header-gap));
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--pad-x);
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 500;
}

.skip-link:focus-visible {
  top: 10px;
}

a, button {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.15s ease;
}

button {
  font: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
}

button:active,
.me-outlet-card:active {
  transform: scale(0.99);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 3px;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

section[id],
.me-menu-row[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ==========================================================================
   1. LIVE MILE-END.COM.AU BASELINE HEADER (Single Line, <= 64px)
   ========================================================================== */
.me-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: var(--header-h);
  background: var(--bg);
  padding: 18px var(--pad-x) 16px;
  display: flex;
  align-items: center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.me-header.is-footer-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.me-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
  line-height: 1;
}

.me-nav-left {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.me-brand {
  font-size: clamp(1.6rem, 2.2vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.me-brand-decade {
  font-size: 0.88rem;
  font-weight: 450;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.me-brand:hover {
  opacity: 0.7;
}

.me-nav-links {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.me-nav-link {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 450;
  letter-spacing: -0.015em;
  color: var(--text);
  padding: 2px 0;
  white-space: nowrap;
}

.me-nav-link:hover,
.me-nav-link.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.me-nav-right {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.me-order-trigger {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: nowrap;
}

.me-order-trigger:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

/* ==========================================================================
   2. FULL-VIEWPORT HERO - "Wood Fired Daily" (Clean Stack Discipline: 2 Text Elements)
   ========================================================================== */
.me-main {
  width: 100%;
  padding: 0 var(--pad-x);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.me-hero {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - var(--header-h) - var(--header-gap) - 24px);
  max-height: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #171513;
  display: flex;
  align-items: center;
  justify-content: center;
}

.me-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.me-hero-overlay {
  position: relative;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: rgba(17, 17, 16, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.me-hero-eyebrow {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 450;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.me-hero-title {
  color: #FFFFFF;
  font-size: clamp(3.4rem, 7.6vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

/* ==========================================================================
   3. EDITORIAL SECTIONS & MAIN OF THE MONTH SPREAD (Asymmetric 2-Col Split)
   ========================================================================== */
.me-section {
  padding: 0;
}

.me-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.me-kicker {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 450;
  margin-bottom: 6px;
}

.me-h1 {
  font-size: clamp(3.2rem, 6.8vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-bottom: 24px;
}

.me-h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.me-link-more {
  font-size: 1.12rem;
  color: var(--text);
  font-weight: 450;
  white-space: nowrap;
}

.me-link-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.me-monthly-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.me-media-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}

.me-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.me-media-frame:hover img {
  transform: scale(1.02);
}

.me-monthly-photo {
  aspect-ratio: 4 / 3;
  max-height: 620px;
}

.me-monthly-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-top: 4px;
}

.me-monthly-meta {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.me-monthly-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 16px;
}

.me-monthly-title {
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.me-monthly-price {
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.me-monthly-desc {
  font-size: clamp(1.06rem, 1.3vw, 1.2rem);
  line-height: 1.48;
  color: var(--text);
  max-width: 54ch;
  margin-bottom: 20px;
}

.me-monthly-pairing {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.me-sweet-companion {
  margin-top: auto;
  padding-top: 28px;
}

.me-sweet-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.me-sweet-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 1.22rem;
  font-weight: 500;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.me-sweet-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.44;
  max-width: 52ch;
}

/* ==========================================================================
   4. 10-YEAR ANNIVERSARY MONOGRAPH & FOUR-HEARTH CHRONICLE (2016-2026)
   ========================================================================== */
.me-decade-section {
  padding: 0;
}

.me-decade-stack {
  max-width: 68ch;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.me-decade-years {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}

.me-decade-manifesto {
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.32;
  color: var(--text);
}

.me-decade-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  padding-top: 8px;
}

.me-stat-num {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.me-stat-label {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.me-stat-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.me-chronicle-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
  margin-top: clamp(36px, 4.5vw, 56px);
}

.me-chronicle-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.me-chronicle-item {
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.22s ease;
  text-align: left;
  width: 100%;
}

.me-chronicle-item:hover,
.me-chronicle-item:focus-visible,
.me-chronicle-item.is-active {
  opacity: 1;
}

.me-chronicle-year-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}

.me-chronicle-year {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}

.me-chronicle-place {
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.me-chronicle-story {
  padding-left: 68px;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 48ch;
}

.me-chronicle-item.is-active .me-chronicle-story {
  color: var(--text);
}

.me-chronicle-stage {
  position: sticky;
  top: 96px;
}

.me-chronicle-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}

.me-chronicle-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.6s var(--ease);
}

.me-chronicle-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. DECADE COUNTER ICONS - UNBOXED 4-COLUMN PHOTO LOOKBOOK
   ========================================================================== */
.me-lookbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.me-lookbook-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.me-lookbook-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}

.me-lookbook-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.me-lookbook-item:hover .me-lookbook-thumb img {
  transform: scale(1.035);
}

.me-lookbook-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.25;
}

.me-lookbook-price {
  color: var(--text);
  font-weight: 450;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.me-lookbook-ingredients {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   6. FIVE WOOD-FIRED MONTREAL DOUGHS (5-Tile Soft Surface Grid)
   ========================================================================== */
.me-dough-header-stack {
  max-width: 62ch;
  margin-bottom: 32px;
}

.me-dough-sub {
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 12px;
}

.me-dough-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.me-dough-tile {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
}

.me-dough-name {
  font-size: 1.22rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.me-dough-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   7. LIVE MILE-END.COM.AU MENU PAGE ARCHITECTURE
   ========================================================================== */
.me-location-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 12px;
  margin-bottom: 24px;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}

.me-location-tab {
  color: var(--text-muted);
  font-weight: 450;
  transition: color 0.15s ease;
}

.me-location-tab:hover,
.me-location-tab.is-active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.me-menu-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.me-menu-list {
  display: flex;
  flex-direction: column;
}

.me-menu-category-label {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  color: var(--text);
  margin: 48px 0 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.me-menu-category-label:first-child {
  margin-top: 0;
}

.me-menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 10px 0;
  font-size: clamp(1.06rem, 1.25vw, 1.2rem);
  line-height: 1.4;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.me-menu-row:hover,
.me-menu-row:focus-visible,
.me-menu-row.is-active {
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .me-menu-list:hover .me-menu-row:not(:hover) {
    opacity: 0.42;
  }
}

.me-menu-row-title {
  flex: 1;
  min-width: 0;
}

.me-menu-row-num {
  color: var(--text-muted);
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}

.me-menu-row-price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}

.me-menu-preview-stage {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.me-menu-preview-figure {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  margin-left: auto;
}

.me-menu-preview-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.45s var(--ease);
}

.me-menu-preview-caption {
  max-width: 460px;
  margin-left: auto;
  width: 100%;
}

.me-menu-preview-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.me-menu-preview-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.42;
}

.me-allergy-notice {
  margin-top: 40px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 68ch;
}

/* ==========================================================================
   8. LIVE MILE-END.COM.AU 2-COLUMN FOOTER + GIANT WORDMARK
   ========================================================================== */
.me-footer {
  width: 100%;
  padding: var(--section-gap) var(--pad-x) 44px;
  margin-top: auto;
}

.me-footer-wordmark-wrap {
  width: 100%;
  margin: clamp(36px, 5vw, 64px) 0 4px;
  overflow: hidden;
}

.me-footer-wordmark {
  display: block;
  width: 100%;
  font-size: clamp(3.1rem, 10.6vw, 11.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
}

.me-footer-legal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text);
}

.me-footer-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.me-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.me-footer-locations {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.me-store-block {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.42;
}

.me-store-block p {
  margin: 0;
}

.me-store-name {
  font-weight: 500;
}

.me-store-block a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.me-footer-photo-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.me-footer-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}

.me-footer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-footer-ig {
  font-size: 1.05rem;
}

.me-footer-ig a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.me-footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 12px;
  font-size: 1rem;
  line-height: 1.42;
  align-items: end;
}

.me-footer-ack {
  color: var(--text);
  max-width: 54ch;
}

/* ==========================================================================
   8B. FAQs & PRIVACY POLICY EDITORIAL LAYOUT
   ========================================================================== */
.me-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.me-faq-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.me-faq-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.me-faq-q {
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.me-faq-a {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.48;
  max-width: 58ch;
}

/* ==========================================================================
   9. "ORDER NOW" MODAL - PICK UP / DELIVERY + 4 MELBOURNE OUTLETS
   ========================================================================== */
.me-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 16, 0.36);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.me-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.me-modal {
  background: var(--bg);
  width: 100%;
  max-width: 820px;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 64px rgba(17, 17, 16, 0.14);
}

.me-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.me-modal-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.me-modal-close {
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 4px 8px;
}

.me-modal-close:hover {
  color: var(--text);
  text-decoration: underline;
}

.me-mode-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.me-mode-tab {
  color: var(--text-muted);
  font-weight: 450;
  padding-bottom: 4px;
}

.me-mode-tab.is-active {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.me-outlet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.me-outlet-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  padding: 24px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.me-outlet-card:hover {
  background: var(--accent-green);
}

.me-outlet-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.me-outlet-name {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.me-outlet-badge {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.me-outlet-card:hover .me-outlet-badge,
.me-outlet-card:hover .me-outlet-meta {
  color: var(--text);
}

.me-outlet-meta {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 16px;
}

.me-outlet-action {
  margin-top: 16px;
  font-size: 1.02rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   9B. COMPACT BOTTOM EDITION SWITCHER (Editorial Classic vs 10th Anniversary Pop)
   ========================================================================== */
.me-edition-switcher {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: rgba(17, 17, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 12px 36px rgba(17, 17, 16, 0.18);
  white-space: nowrap;
}

.me-edition-pill {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.me-edition-pill:hover {
  color: #FFFFFF;
}

.me-edition-pill.is-active {
  background: var(--accent-green);
  color: #111110;
  font-weight: 600;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS (TABLET & MOBILE) & REDUCED MOTION
   ========================================================================== */
@media (max-width: 960px) {
  :root {
    --header-h: 56px;
    --header-gap: 8px;
    --pad-x: clamp(20px, 4.5vw, 44px);
    --section-gap: clamp(56px, 7vw, 88px);
    --mobile-nav-h: 64px;
  }

  body {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  /* Top Mobile/Tablet Header: Centered "Mile End Bagels" logotype only */
  .me-header {
    padding: 12px var(--pad-x);
    height: var(--header-h);
    align-items: center;
    justify-content: center;
  }

  .me-nav {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .me-nav-left {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .me-brand {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    gap: 0;
    margin: 0 auto;
  }

  .me-brand-decade {
    display: none;
  }

  /* Bottom Application Bar for "Menu" & "Order now" (moved outside .me-header transform context) */
  .me-nav-right {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 88;
    height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -8px 28px rgba(17, 17, 16, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
  }

  .me-nav-right .me-nav-link,
  .me-nav-right .me-order-trigger {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
  }

  .me-nav-right .me-nav-link {
    background: var(--bg-soft);
    color: var(--text);
  }

  .me-nav-right .me-nav-link.is-active {
    background: var(--text);
    color: #FFFFFF;
    text-decoration: none;
  }

  .me-nav-right .me-order-trigger {
    background: var(--accent-green);
    color: #111110;
  }

  .me-header.is-footer-hidden {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
  }

  .me-header.is-footer-hidden .me-nav-left {
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  }

  .me-edition-switcher {
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  }

  .me-chronicle-grid,
  .me-monthly-grid,
  .me-menu-layout,
  .me-faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .me-decade-stats,
  .me-lookbook-grid,
  .me-dough-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .me-menu-preview-stage,
  .me-chronicle-stage {
    position: static;
    order: -1;
  }

  .me-menu-preview-figure,
  .me-menu-preview-caption {
    margin-left: 0;
    max-width: 100%;
  }

  .me-menu-preview-figure {
    aspect-ratio: 16 / 10;
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
    --header-gap: 8px;
    --pad-x: 18px;
    --section-gap: 56px;
    --mobile-nav-h: 64px;
  }

  /* Hero on Mobile */
  .me-hero {
    min-height: 60dvh;
    max-height: 520px;
  }

  .me-hero-overlay {
    padding: 20px 16px;
  }

  .me-hero-eyebrow {
    font-size: 0.88rem;
    line-height: 1.35;
    max-width: 28ch;
    margin-bottom: 10px;
  }

  .me-hero-title {
    font-size: clamp(2.35rem, 10.5vw, 3.25rem);
    line-height: 0.98;
  }

  /* Headings & Section Headers on Mobile */
  .me-section-head {
    margin-bottom: 20px;
    gap: 8px 16px;
  }

  .me-h1 {
    font-size: clamp(2.35rem, 9.5vw, 3.1rem);
    margin-bottom: 16px;
  }

  .me-h2 {
    font-size: clamp(1.65rem, 6.8vw, 2.15rem);
  }

  .me-link-more {
    font-size: 1rem;
  }

  /* Main of the Month on Mobile */
  .me-monthly-title-row {
    gap: 12px;
    margin-bottom: 12px;
  }

  .me-monthly-title {
    font-size: 1.5rem;
  }

  .me-monthly-price {
    font-size: 1.35rem;
  }

  .me-monthly-desc {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .me-monthly-pairing {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .me-sweet-companion {
    padding-top: 20px;
  }

  .me-sweet-row {
    font-size: 1.1rem;
  }

  /* 10-Year Monograph & 2x2 Stats Grid on Mobile */
  .me-decade-stack {
    margin-bottom: 28px;
  }

  .me-decade-years {
    font-size: 2.35rem;
    margin-bottom: 12px;
  }

  .me-decade-manifesto {
    font-size: 1.18rem;
    line-height: 1.38;
  }

  .me-decade-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .me-stat-num {
    font-size: 2.15rem;
    margin-bottom: 6px;
  }

  .me-stat-label {
    font-size: 0.98rem;
  }

  .me-stat-sub {
    font-size: 0.88rem;
  }

  /* Four-Hearth Chronicle on Mobile */
  .me-chronicle-grid {
    margin-top: 32px;
    gap: 20px;
  }

  .me-chronicle-list {
    gap: 20px;
  }

  .me-chronicle-year-row {
    gap: 10px;
    margin-bottom: 4px;
  }

  .me-chronicle-year {
    font-size: 0.95rem;
    min-width: 42px;
  }

  .me-chronicle-place {
    font-size: 1.35rem;
  }

  .me-chronicle-story {
    padding-left: 0;
    font-size: 0.96rem;
  }

  .me-chronicle-caption {
    flex-direction: column;
    gap: 2px;
    font-size: 0.88rem;
  }

  /* Lookbook & Doughs on Mobile */
  .me-lookbook-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }

  .me-lookbook-header {
    font-size: 1rem;
    flex-direction: column;
    gap: 2px;
  }

  .me-lookbook-ingredients {
    font-size: 0.88rem;
  }

  .me-dough-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .me-dough-tile {
    min-height: auto;
    padding: 18px;
  }

  /* Menu Page on Mobile */
  .me-menu-preview-figure {
    aspect-ratio: 16 / 10;
    max-height: 220px;
  }

  .me-menu-preview-title {
    font-size: 1.12rem;
  }

  .me-menu-preview-sub {
    font-size: 0.94rem;
  }

  .me-menu-category-label {
    font-size: 1.35rem;
    margin: 32px 0 12px;
  }

  .me-menu-row {
    font-size: 1rem;
    gap: 12px;
    padding: 9px 0;
  }

  .me-menu-row-num {
    margin-right: 8px;
  }

  /* Footer on Mobile */
  .me-footer {
    padding: var(--section-gap) var(--pad-x) 28px;
  }

  .me-footer-grid,
  .me-footer-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .me-footer-bottom {
    padding-top: 12px;
    gap: 16px;
  }

  /* Two-Row Monumental Footer Wordmark on Mobile: MILE END / BAGELS */
  .me-footer-wordmark {
    white-space: normal;
    font-size: clamp(3.6rem, 18.8vw, 6.4rem);
    line-height: 0.9;
    letter-spacing: -0.045em;
  }

  .me-footer-wordmark span {
    display: block;
  }

  /* Order Modal as Clean Mobile Bottom Sheet */
  .me-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .me-modal {
    border-radius: 16px 16px 0 0;
    padding: 22px 18px 28px;
    max-height: 88dvh;
  }

  .me-modal-header {
    margin-bottom: 16px;
  }

  .me-modal-title {
    font-size: 1.85rem;
  }

  .me-mode-tabs {
    font-size: 1.05rem;
    gap: 20px;
    margin-bottom: 16px;
  }

  .me-outlet-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .me-outlet-card {
    min-height: auto;
    padding: 18px;
  }

  .me-outlet-name {
    font-size: 1.3rem;
  }

  .me-outlet-meta {
    margin-top: 8px;
    font-size: 0.92rem;
  }

  .me-outlet-action {
    margin-top: 12px;
    font-size: 0.96rem;
  }
}

@media (max-width: 390px) {
  .me-brand-decade {
    display: none;
  }

  .me-lookbook-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
