/* Maker & shop family: shared layout. Variant files set the palette and type. Defaults have zero specificity. */
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:where(.tpl.maker-a, .tpl.maker-b, .tpl.maker-c) { --mk-bg: #efece6; --mk-sweep: #ece8e0; --mk-ink: #1c1b19; --mk-soft: #5c5850; --mk-accent: #c2410c; --mk-on-accent: #fff; --mk-card: #fffdf8; --mk-line: rgba(28,27,25,.14);
  --mk-display: system-ui, sans-serif; --mk-display-weight: 800; --mk-body: system-ui, sans-serif;
  background: var(--mk-bg); color: var(--mk-ink); font-family: var(--mk-body); }
:where(.tpl.maker-a, .tpl.maker-b, .tpl.maker-c) ::selection { background: var(--mk-accent); color: var(--mk-on-accent); }
:where(.tpl.maker-a, .tpl.maker-b, .tpl.maker-c) :focus-visible { outline: 3px solid var(--mk-accent); outline-offset: 3px; border-radius: 6px; }
.tpl:is(.maker-a, .maker-b, .maker-c) .num { font-variant-numeric: tabular-nums; }
.mk-wrap { width: min(1160px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }
.mk-top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px clamp(16px, 4vw, 48px); }
.has-ribbon .mk-top { top: var(--ribbon-h, 0px); }
.mk-name { font: var(--mk-display-weight) 1.2rem/1 var(--mk-display); text-decoration: none; color: var(--mk-ink); }
.mk-top nav { display: flex; gap: 18px; font-weight: 700; font-size: .95rem; }
.mk-top nav a { text-decoration: none; color: var(--mk-ink); border-bottom: 2px solid transparent; padding: 6px 0; }
.mk-top nav a:hover { border-color: var(--mk-accent); }
#shop, #visit { scroll-margin-top: calc(var(--ribbon-h, 0px) + 12px); }

/* the stage: a tall scroll track with a pinned 3D view on a seamless sweep */
.mk-stage { position: relative; height: 420vh; background: var(--mk-sweep); }
.mk-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.mk-canvas, .mk-leaders { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mk-sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 55%, transparent 55%, rgba(40,30,20,.10) 100%); }
.mk-intro { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--ribbon-h, 0px) + clamp(64px, 9vh, 104px)); text-align: center; padding: 0 16px;
  opacity: clamp(0, calc(1 - var(--p, 0) * 6), 1); transform: translateY(calc(var(--p, 0) * -140px)); }
.apart .mk-intro { pointer-events: none; }
.mk-intro h1 { margin: 8px auto 0; font: var(--mk-display-weight) clamp(2.6rem, 7.4vw, 5.6rem)/.95 var(--mk-display); max-width: 14ch; text-wrap: balance; }
.mk-tag { margin: 12px auto 0; max-width: 40ch; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--mk-soft); text-wrap: pretty; }
.mk-offer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: 20px; }
.mk-offer p { margin: 0; display: inline-flex; align-items: baseline; gap: 10px; font-weight: 700; }
.mk-offer b { font: var(--mk-display-weight) 1.6rem/1 var(--mk-display); color: var(--mk-accent); }
.mk-open { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: .92rem; color: var(--mk-soft); }
.mk-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9a958c; }
.mk-open.is-open { color: var(--mk-ink); }
.mk-open.is-open::before { background: #2f9e5b; box-shadow: 0 0 0 4px rgba(47,158,91,.18); }
.mk-cue { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mk-soft); transition: opacity .4s ease; }
.mk-cue::after { content: ""; display: block; width: 1px; height: 22px; margin: 8px auto 0; background: currentColor; transform-origin: top; animation: mk-cue 1.8s ease-in-out infinite; }
@keyframes mk-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.shot .mk-cue, .apart .mk-cue { opacity: 0; }

/* leaders: ink hairline from card to part, an accent dot on the part */
.mk-leaders { pointer-events: none; overflow: visible; }
.mk-leaders g { opacity: 0; transition: opacity .35s ease; }
.mk-leaders g.on { opacity: 1; }
.mk-leaders line { stroke: var(--mk-ink); stroke-width: 1.25; stroke-opacity: .7; }
.mk-leaders circle { fill: var(--mk-accent); stroke: var(--mk-card); stroke-width: 3; paint-order: stroke; }
.mk-leaders text { display: none; font: 700 10px/1 var(--mk-body); fill: var(--mk-on-accent); text-anchor: middle; }
.mk-leaders.numbered circle { r: 10px; }
.mk-leaders.numbered text { display: block; }

/* part cards in the gutters (desktop) */
.mk-parts { list-style: none; margin: 0; padding: 0; }
.live .mk-parts li { position: absolute; z-index: 3; left: 0; top: 0; transform: translate(var(--x, -999px), var(--y, -999px)) translate(0, -50%); display: grid; gap: 2px; max-width: min(260px, 22vw); padding: 10px 14px 11px; border-radius: 10px;
  background: color-mix(in srgb, var(--mk-card) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--mk-line), 0 12px 26px -16px rgba(0,0,0,.45);
  opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.live .mk-parts li.l { transform: translate(var(--x, -999px), var(--y, -999px)) translate(-100%, -50%); text-align: right; }
.live .mk-parts li.on { opacity: 1; }
.mk-stage:not(.live):not(.noscene) .mk-parts { visibility: hidden; }
.still .mk-parts li, .still .mk-leaders g, .still .mk-parts, .calm .mk-parts li, .calm .mk-leaders g, .calm .mk-parts { transition: none; }
.mk-parts b { font-size: .95rem; line-height: 1.25; }
.mk-parts span { font-size: .82rem; line-height: 1.35; color: var(--mk-soft); }
/* phones: a numbered key docked under the product */
@media (max-width: 700px) {
  .live .mk-parts { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px 14px; border-radius: 14px;
    background: color-mix(in srgb, var(--mk-card) 94%, transparent); box-shadow: 0 1px 0 var(--mk-line), 0 14px 30px -18px rgba(0,0,0,.5); opacity: 0; transition: opacity .4s ease; }
  .live.apart .mk-parts { opacity: 1; }
  .live .mk-parts li, .live .mk-parts li.l { position: static; transform: none; max-width: none; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; text-align: left; opacity: .38; display: flex; gap: 7px; align-items: baseline; }
  .live .mk-parts li.on { opacity: 1; }
  .live .mk-parts li::before { content: attr(data-n); flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--mk-accent); color: var(--mk-on-accent); font: 700 10px/1 var(--mk-body); transform: translateY(-1px); }
  .live .mk-parts span { display: none; }
  .mk-parts b { font-size: .84rem; }
}
/* without the 3D view: a plain list */
.noscene.mk-stage { height: auto; }
.noscene .mk-sticky { position: static; height: auto; padding: 140px 0 60px; }
.noscene .mk-canvas, .noscene .mk-cue, .noscene .mk-leaders { display: none; }
.noscene .mk-intro { position: static; opacity: 1; transform: none; }
.noscene .mk-parts { width: min(560px, 100% - 32px); margin: 32px auto 0; display: grid; gap: 10px; }
.noscene .mk-parts li { display: grid; padding: 12px 14px; border-radius: 10px; background: var(--mk-card); }
.mk-noscene { text-align: center; color: var(--mk-soft); padding: 0 16px; }

/* shop + visit */
.mk-shop { padding: clamp(56px, 9vw, 120px) 0; background: var(--mk-card); }
.mk-shop-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (max-width: 820px) { .mk-shop-grid { grid-template-columns: 1fr; } }
.mk-shop h2, .mk-visit h2 { margin: 0; font: var(--mk-display-weight) clamp(2rem, 4.6vw, 3.6rem)/1 var(--mk-display); text-wrap: balance; }
.mk-blurb { margin: 16px 0 0; font-size: 1.12rem; color: var(--mk-soft); max-width: 46ch; text-wrap: pretty; }
.mk-price { margin: 22px 0 0; font: var(--mk-display-weight) clamp(2.4rem, 5vw, 3.4rem)/1 var(--mk-display); color: var(--mk-accent); }
.mk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 420px) { .mk-actions { flex-direction: column; } .mk-actions .mk-btn { width: 100%; } }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--mk-accent); color: var(--mk-on-accent); font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.mk-btn.big { min-height: 54px; padding: 0 28px; font-size: 1.05rem; box-shadow: 0 14px 26px -16px rgba(0,0,0,.55); }
.mk-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -12px rgba(0,0,0,.5); }
.mk-btn.ghost { background: transparent; color: var(--mk-ink); box-shadow: inset 0 0 0 2px var(--mk-line); }
.mk-specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--mk-line); }
.mk-specs div { display: grid; gap: 4px; align-content: start; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--mk-line); }
.mk-specs dt { margin: 0; font-size: .82rem; color: var(--mk-soft); }
.mk-specs dd { margin: 0; font-size: 1.25rem; font-weight: 700; }
.mk-visit { padding: clamp(56px, 9vw, 120px) 0; }
.mk-visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .mk-visit-grid { grid-template-columns: 1fr; } }
.mk-addr { margin: 16px 0; font-size: 1.25rem; font-weight: 700; }
.mk-visit p { max-width: 46ch; color: var(--mk-soft); }
.mk-visit .mk-addr { color: var(--mk-ink); }
.mk-hours { width: 100%; border-collapse: collapse; }
.mk-hours caption { text-align: left; font-weight: 700; font-size: 1.1rem; color: var(--mk-ink); padding-bottom: 8px; }
.mk-hours th, .mk-hours td { padding: 11px 0; border-bottom: 1px solid var(--mk-line); text-align: left; font-weight: 400; }
.mk-hours td { text-align: right; }
.mk-hours tr.closed { color: var(--mk-soft); }
.mk-foot { padding: 28px 0 40px; font-size: .9rem; color: var(--mk-soft); border-top: 1px solid var(--mk-line); }
.mk-foot a { color: inherit; }

/* shop backdrops: a soft wash keeps the intro type readable over the photographed room */
.has-backdrop .mk-intro { isolation: isolate; }
.has-backdrop .mk-intro::before { content: ""; position: absolute; inset: -28px -60px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236,232,224,.92), rgba(236,232,224,.75) 55%, rgba(236,232,224,0)); }
@media (max-width: 700px) { .has-backdrop .mk-intro::before { inset: -20px -16px; } }
.has-backdrop .mk-cue { left: 50%; right: auto; transform: translateX(-50%); width: max-content; padding: 8px 14px 6px; border-radius: 999px; background: rgba(236,232,224,.9); color: var(--mk-ink, #2a241c); }
.has-backdrop .mk-cue::after { position: absolute; left: 50%; top: 100%; margin: 6px 0 0; background: rgba(236,232,224,.95); }
/* over a photographed room the top bar gets a soft wash so the name and links keep their contrast */
body:has(.has-backdrop) .mk-top { background: linear-gradient(rgba(236,232,224,.94), rgba(236,232,224,.82)); backdrop-filter: blur(6px); }
