:root {
  --canvas: #f7f6f2;
  --surface: #fff;
  --ink: #1d1d1b;
  --muted: #777772;
  --line: #deddd8;
  --soft-line: rgba(29,29,27,.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: var(--font);
  --sans: var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #e8e7e2; color: var(--ink); font-family: var(--font); overflow-x: hidden; }
button, a, input { font: inherit; }
button { cursor: pointer; }
.grain { display: none; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 68px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink); background: rgba(247,246,242,.91);
  border-bottom: 1px solid rgba(29,29,27,.08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.wordmark { border: 0; background: none; padding: 0; color: inherit; font-size: 14px; letter-spacing: -.02em; }
.wordmark b { font-weight: 600; }
.floor-indicator { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.floor-indicator b { color: var(--ink); font-weight: 500; }
.floor-indicator i { width: 18px; height: 1px; background: var(--line); }
.menu-button { width: 34px; height: 34px; padding: 9px 4px; border: 0; background: none; color: inherit; }
.menu-button span { display: block; height: 1px; margin: 5px 0; background: currentColor; }

.wayfinder {
  position: fixed; top: 76px; left: 10px; right: 10px; z-index: 54;
  height: 58px; padding: 5px;
  display: grid; grid-template-columns: 1fr 92px 1fr; gap: 4px;
  border: 1px solid rgba(29,29,27,.1); border-radius: 18px;
  background: rgba(255,255,255,.93); box-shadow: 0 8px 28px rgba(29,29,27,.1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.wayfinder button { min-width: 0; padding: 5px 9px; display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 13px; background: transparent; color: var(--ink); text-align: left; }
.wayfinder button:last-child { text-align: right; align-items: flex-end; }
.wayfinder button:hover, .wayfinder button:focus-visible { background: #f0efeb; }
.wayfinder b { font-size: 13px; font-weight: 500; letter-spacing: -.02em; }
.wayfinder small { width: 100%; overflow: hidden; color: var(--muted); font-size: 7px; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.wayfinder .wayfinder-down { align-items: center; text-align: center; background: var(--ink); color: #fff; }
.wayfinder .wayfinder-down:hover, .wayfinder .wayfinder-down:focus-visible { background: #353532; }
.wayfinder-down b { font-size: 19px; line-height: 1; }
.wayfinder-down small { color: rgba(255,255,255,.7); text-align: center; }

.view { display: none; }
.view.active { display: block; }
#galleryView { overflow: hidden; background: var(--canvas); }
.floor-track { display: flex; width: 300%; align-items: flex-start; transition: transform .55s cubic-bezier(.65,0,.25,1); }
.floor { width: 33.333%; padding: 138px 10px 100px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; align-content: start; background: var(--canvas); }
.floor-heading { grid-column: 1 / -1; height: 64px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; }
.floor-heading span { font-size: 20px; font-weight: 500; letter-spacing: -.035em; }
.floor-heading p { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .06em; }

.store-card {
  position: relative; isolation: isolate; display: flex; overflow: hidden;
  width: 100%; height: clamp(160px, 23svh, 210px); margin: 0; padding: 0;
  border: 0; border-radius: 16px; color: #fff; text-align: left;
  background: #ccc var(--banner) center/cover no-repeat;
}
.store-card.large { grid-column: span 2; height: clamp(220px,34svh,310px); }
.store-card::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--banner) center/cover no-repeat; transition: transform .8s ease; }
.store-card:hover::before, .store-card:focus-visible::before { transform: scale(1.018); }
.store-card::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); }
.placeholder-store { cursor: default; color: rgba(255,255,255,.82); }
.placeholder-store::before { filter: grayscale(.2) saturate(.55); transform: scale(1.01); }
.placeholder-store:hover::before { transform: scale(1.01); }
.placeholder-store::after { height: 1px; background: rgba(255,255,255,.32); }
.placeholder-store .store-shade { background: linear-gradient(180deg,rgba(0,0,0,.14),transparent 45%,rgba(0,0,0,.46)); }
.placeholder-store .store-enter { color: rgba(255,255,255,.7); }
.placeholder-mark { position: absolute; left: 50%; top: 50%; display: flex; gap: 5px; transform: translate(-50%,-50%); }
.placeholder-mark i { width: 5px; height: 5px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; }
.store-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 45%, rgba(0,0,0,.58)); }
.store-meta { position: absolute; top: 14px; left: 15px; right: 15px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .05em; }
.store-title { position: absolute; left: 15px; right: 15px; bottom: 46px; }
.store-title h2 { margin: 0; font-size: clamp(23px,7vw,36px); line-height: .96; font-weight: 500; letter-spacing: -.055em; }
.store-title p { margin: 5px 0 0; max-width: 250px; font-size: 11px; line-height: 1.35; }
.store-card:not(.large) .store-title p { display: none; }
.store-enter { position: absolute; left: 15px; right: 15px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.35); font-size: 9px; letter-spacing: .04em; }
.store-enter b { font-size: 17px; font-weight: 400; }
.store-card.large .store-meta { top: 18px; left: 18px; right: 18px; }
.store-card.large .store-title { left: 18px; right: 18px; bottom: 58px; }
.store-card.large .store-title h2 { font-size: clamp(44px, 13vw, 64px); }
.store-card.large .store-title p { margin-top: 9px; font-size: 14px; }
.store-card.large .store-enter { left: 18px; right: 18px; bottom: 16px; padding-top: 10px; }

.bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55;
  height: 68px; padding: 5px; display: grid; grid-template-columns: 68px 1fr 68px; gap: 5px;
  color: var(--ink); background: rgba(255,255,255,.96); border: 1px solid rgba(29,29,27,.1); border-radius: 22px;
  box-shadow: 0 14px 45px rgba(29,29,27,.16); backdrop-filter: blur(18px); transition: .3s;
}
.bottom-nav.hidden { transform: translateY(100px); }
.bottom-nav button { min-width: 0; border: 0; border-radius: 17px; color: inherit; display: flex; align-items: center; justify-content: center; background: transparent; }
.bottom-nav button:hover, .bottom-nav button:focus-visible { background: #f0efeb; }
.nav-side { flex-direction: column; gap: 4px; }
.nav-side b { font-size: 8px; line-height: 1; font-weight: 500; }
.nav-heart { font-size: 23px; line-height: 18px; font-weight: 400; }
.nav-search-icon { position: relative; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; }
.nav-search-icon::after { content: ''; position: absolute; width: 7px; height: 1.5px; right: -5px; bottom: -2px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.nav-map { padding: 0 16px; justify-content: space-between !important; background: var(--ink) !important; color: #fff !important; }
.nav-map > span { display: flex; align-items: baseline; gap: 4px; }
.nav-map strong { font-size: 23px; line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.nav-map small { color: rgba(255,255,255,.5); font-size: 9px; }
.nav-map > b { max-width: 55px; font-size: 9px; line-height: 1.15; font-weight: 500; text-align: right; }
.nav-map:hover, .nav-map:focus-visible { background: #393936 !important; }

.floating-back, .floating-close { position: fixed; top: 14px; z-index: 70; height: 40px; border: 1px solid rgba(29,29,27,.1); background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 4px 16px rgba(0,0,0,.08); backdrop-filter: blur(12px); }
.floating-back { left: 14px; padding: 0 14px; border-radius: 20px; font-size: 11px; }
.floating-close { right: 14px; width: 40px; padding: 0; border-radius: 50%; font-size: 23px; font-weight: 400; }

.brand-view { min-height: 100vh; background: var(--canvas); color: var(--ink); }
.brand-hero { position: relative; isolation: isolate; height: clamp(360px,56svh,500px); margin: 0; display: flex; align-items: flex-end; padding: 28px 20px; color: #fff; background: #ccc var(--hero) center/cover no-repeat; }
.brand-hero::after { content: ''; position: absolute; inset: 30% 0 0; z-index: -1; background: linear-gradient(transparent, rgba(0,0,0,.66)); }
.brand-hero::before { content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; background: var(--accent); }
.brand-hero-copy { width: 100%; padding-bottom: 40px; }
.brand-hero-copy span { font-size: 10px; letter-spacing: .06em; }
.brand-hero-copy h1 { margin: 14px 0 12px; font-size: clamp(42px,12vw,62px); line-height: .9; font-weight: 500; letter-spacing: -.07em; }
.brand-hero-copy p { margin: 0; font-size: 14px; line-height: 1.45; }
.down-cue { position: absolute; left: 20px; bottom: 16px; font-size: 10px; letter-spacing: .04em; }

.product-list { padding: 34px 14px 110px; background: var(--canvas); }
.product-list > header { display: flex; justify-content: space-between; padding: 0 6px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.product-card { width: 100%; padding: 20px 6px; display: grid; grid-template-columns: 52% 1fr; gap: 17px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; }
.product-card-image { aspect-ratio: 2/3; border-radius: 12px; background: #ddd center/cover no-repeat; overflow: hidden; }
.product-card-copy { display: flex; flex-direction: column; padding: 4px 0; }
.product-card-copy span { color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.product-card-copy h2 { margin: 13px 0 8px; font-size: 23px; line-height: 1; font-weight: 500; letter-spacing: -.045em; }
.product-card-copy p { margin: 0; font-size: 12px; }
.product-card-copy b { margin-top: auto; color: var(--ink); font-size: 10px; font-weight: 500; }
.product-card.placeholder .product-card-image { filter: grayscale(.7); opacity: .55; }

.product-view { position: fixed; inset: 0; z-index: 58; overflow-y: auto; background: var(--canvas); }
.product-details { padding: 38px 20px max(58px,env(safe-area-inset-bottom)); background: var(--canvas); }
.product-details > span { color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.product-details h1 { margin: 18px 0 32px; font-size: clamp(42px, 12vw, 60px); line-height: .94; font-weight: 500; letter-spacing: -.065em; }
.product-price { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); font-size: 13px; }
.product-price b { font-weight: 500; }.product-price small { color: var(--muted); font-size: 9px; }
.product-details > p { max-width: 410px; font-size: 14px; line-height: 1.7; color: #4f4f4b; }
.product-details dl { margin: 28px 0; }
.product-details dl div { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); }
.product-details dt, .product-details dd { margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .03em; }
.product-details dd { color: var(--ink); }
.product-details a { margin-top: 28px; padding: 18px; display: flex; justify-content: space-between; align-items: center; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-size: 11px; }
.product-details a b { color: var(--accent); font-size: 18px; font-weight: 400; }

.sheet { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 80; min-height: 60svh; max-height: calc(100svh - 16px); overflow-y: auto; padding: 58px 16px 24px; transform: translateY(110%); transition: .45s cubic-bezier(.65,0,.25,1); border: 1px solid var(--soft-line); border-radius: 26px; background: var(--surface); box-shadow: 0 -10px 60px rgba(0,0,0,.18); }
.sheet.open { transform: none; }
.sheet-close { position: absolute; right: 14px; top: 13px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f0ec; font-size: 21px; }
.sheet-kicker { margin-bottom: 13px; color: var(--muted); font-size: 9px; letter-spacing: .07em; }
.sheet h2 { max-width: 320px; margin: 0 0 28px; font-size: 34px; line-height: 1.02; font-weight: 500; letter-spacing: -.055em; }
.sheet p { color: var(--muted); line-height: 1.6; }
.sheet input { width: 100%; margin-bottom: 8px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); outline: none; background: none; font-size: 17px; }
.sheet-row { width: 100%; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.sheet-row span { font-size: 14px; font-weight: 500; }.sheet-row small { color: var(--muted); font-size: 9px; }
.floor-map { display: grid; gap: 8px; }
.floor-map-card { width: 100%; min-height: 88px; padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: #faf9f6; color: var(--ink); text-align: left; }
.floor-map-card:hover, .floor-map-card:focus-visible { border-color: #aaa9a3; background: #f4f3ef; }
.floor-map-card.current { border-color: var(--ink); background: var(--ink); color: #fff; }
.floor-map-number { font-size: 24px; line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.floor-map-copy { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.floor-map-copy b { font-size: 14px; font-weight: 500; }
.floor-map-copy small { overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.floor-map-card.current .floor-map-copy small { color: rgba(255,255,255,.55); }
.floor-map-arrow { font-size: 16px; }.floor-map-card.current .floor-map-arrow { color: rgba(255,255,255,.65); font-size: 7px; letter-spacing: .04em; }
.toast { position: fixed; top: 80px; left: 50%; z-index: 95; padding: 11px 14px; transform: translate(-50%,-10px); opacity: 0; white-space: nowrap; border-radius: 20px; background: var(--ink); color: #fff; font-size: 9px; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

/* Tablet: four fields become one 2x2 spatial composition. */
@media (min-width: 720px) {
  body { background: var(--canvas); }
  .topbar { padding-inline: 28px; }
  .wayfinder { left: 50%; right: auto; width: min(620px, calc(100vw - 220px)); transform: translateX(-50%); }
  .bottom-nav { left: 50%; right: auto; width: 420px; transform: translateX(-50%); }
  .bottom-nav.hidden { transform: translate(-50%,110px); }
  main { width: 100%; margin: 0; box-shadow: none; }

  .floor { min-height: 100svh; padding: 144px 18px 106px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
  .floor-heading { grid-column: 1 / -1; height: 56px; padding: 0 6px; }
  .store-card { height: clamp(190px,25vw,270px); min-height: 0; margin: 0; }
  .store-card.large { grid-column: span 2; height: clamp(190px,25vw,270px); }
  .store-card .store-title h2 { font-size: clamp(25px,3.4vw,42px); }
  .store-card.large .store-title h2 { font-size: clamp(32px,5vw,58px); }
  .store-card:not(.large) .store-title p { display: block; }

  .brand-hero { height: clamp(460px,54svh,620px); min-height: 0; padding-inline: 38px; background-position: center 38%; }
  .brand-hero::before { left: 38px; right: 38px; }
  .brand-hero-copy h1 { font-size: clamp(56px,8vw,88px); }
  .brand-hero-copy p { font-size: 18px; }.down-cue { left: 38px; }
  .product-list { padding: 40px 28px 120px; }
  .product-list > header { margin-bottom: 6px; }
  .product-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 16px; }
  .product-list > header { grid-column: 1 / -1; }
  .product-card { grid-template-columns: 1fr; gap: 14px; align-content: start; border-bottom: 0; }
  .product-card-copy { min-height: 142px; }.product-card-copy h2 { font-size: 24px; }

  .sheet { left: 50%; right: auto; width: min(620px, calc(100vw - 40px)); transform: translate(-50%,110%); }
  .sheet.open { transform: translate(-50%,0); }
  .product-view { width: 100%; left: 0; right: 0; }
  .floating-back { left: 20px; }.floating-close { right: 20px; }
}

/* Monitor: use the full canvas and turn the product into a two-column experience. */
@media (min-width: 1100px) {
  .topbar { padding-inline: 40px; }
  .wayfinder { width: 680px; }
  .floor { padding: 144px 32px 106px; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
  .floor-heading { height: 48px; }
  .store-card, .store-card.large { height: clamp(210px,20vw,300px); }
  .store-card { border-radius: 20px; }
  .store-title { left: 22px; right: 22px; }.store-enter { left: 22px; right: 22px; }
  .store-card.large .store-title { left: 28px; right: 28px; bottom: 66px; }
  .store-card.large .store-enter { left: 28px; right: 28px; bottom: 20px; }
  .store-card.large .store-title h2 { font-size: clamp(42px,5vw,68px); }
  .store-card.large .store-title p { font-size: 14px; }

  #brandContent { height: 100svh; min-height: 700px; display: grid; grid-template-columns: minmax(420px,.82fr) minmax(620px,1.18fr); overflow: hidden; }
  #brandContent .brand-hero { height: 100svh; min-height: 700px; padding: 34px 36px; background-position: center; }
  #brandContent .brand-hero::before { left: 36px; right: 36px; }
  #brandContent .brand-hero-copy { max-width: 560px; margin: 0; }
  #brandContent .brand-hero-copy h1 { font-size: clamp(64px,7vw,104px); }
  #brandContent .brand-hero-copy p { max-width: 360px; }
  #brandContent .down-cue { left: 36px; }
  #brandContent .product-list {
    width: 100%; max-width: none; height: 100svh; min-height: 700px; margin: 0; padding: 88px 26px 34px;
    overflow-y: auto; align-content: start; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 16px;
    border-left: 1px solid var(--line);
  }
  #brandContent .product-list > header { margin-bottom: 10px; }
  #brandContent .product-card { padding-top: 18px; }
  #brandContent .product-card-image { aspect-ratio: 2/3; }
  #brandContent .product-card-copy { min-height: 132px; }
  #brandContent .product-card-copy h2 { font-size: clamp(20px,1.8vw,28px); }

  #productContent { min-height: 100svh; display: grid; grid-template-columns: minmax(0,1.6fr) minmax(360px,.8fr); }
  .product-details { height: 100svh; padding: 92px 44px 50px; overflow-y: auto; border-left: 1px solid var(--line); }
  .product-details h1 { font-size: clamp(48px,4vw,76px); }
  .sheet { width: 680px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
