/* Mase brand (from mase-coffee.html): white paper, warm near-black ink, stone gray, oat surface.
   --accent follows the drink selected in the 3D viewer. Single light theme by request. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f3ef;
  --surface-3: #ecebe5;
  --ink: #1a1a17;
  --ink-soft: #6c685d;
  --line: rgba(26, 26, 23, .12);
  --line-strong: rgba(26, 26, 23, .3);
  --accent: #8a5634; /* default; the home page viewer and the remembered drink override it */
  --open: #2f6b3a;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light only;  /* Samsung Internet / Chrome auto-dark: keep the white site white */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 78rem; margin: 0 auto; padding-inline: var(--pad); }
.label, .kicker, dt, .card-meta, .tag { font: 600 .68rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.kicker { display: flex; align-items: center; gap: .75rem; color: var(--accent); transition: color .5s; }
.kicker::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
a.link { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
a.link:hover, a.link:focus-visible { border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding-inline: 1.5rem;
  font: 600 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: background-color .25s, color .25s, border-color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover, .btn.solid:focus-visible { background: var(--accent); border-color: var(--accent); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 2rem; height: 64px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark { border: 1px solid var(--ink); padding: .18rem .5rem .12rem; font: 1.05rem/1 var(--serif); letter-spacing: .08em; }
.logo-word { font: italic 1.15rem/1 var(--serif); color: var(--ink-soft); }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { text-decoration: none; font: 600 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; padding-block: 6px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 var(--accent); }
.head-status { display: inline-flex; align-items: center; gap: .5rem; font: 600 .66rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.head-status.open { color: var(--ink); }
.nav-cta { margin-left: auto; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; margin-right: -10px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero-grid > *, .controls > *, .stage-specs > *, .hero-stats > * { min-width: 0; }
.hero-copy { padding-top: clamp(0rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1.6rem; }
.hero h1 { font-size: clamp(3.4rem, 7.4vw, 7rem); line-height: .9; letter-spacing: -.02em; }
.hero h1 em { color: var(--accent); transition: color .5s; }
.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 40ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 1.25rem; gap: 1rem; }
.hero-stats .val { font: 1.6rem/1.1 var(--serif); margin-top: .35rem; }
.hero-stats .sub { font-size: .8rem; color: var(--ink-soft); }
.status { display: inline-flex; align-items: center; gap: .5rem; }
.pulse { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink-soft); flex: none; }
.status.open .pulse { background: var(--open); }
.status.open .pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--open); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: .7; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- 360 stage: a turntable of studio renders (renders/turn/<slug>-<deg>.jpg) ---------- */
.stage-wrap { background: var(--surface-2); padding: clamp(.75rem, 1.5vw, 1rem); }
.stage {
  position: relative; height: clamp(380px, 46vw, 560px); overflow: hidden;
  background: #F4F3EF; /* the renders' backdrop, so the frame edges disappear */
}
.stage::before, .stage::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--accent); pointer-events: none; transition: border-color .5s; z-index: 2; }
.stage::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.stage::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.turn { position: absolute; inset: 0; transition: opacity .35s var(--ease); }
.turn.swapping { opacity: 0; }
.turn img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; /* renders keep the cup centered with room to crop */
  opacity: 0; pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.turn img.on { opacity: 1; }
.turn video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 2; }
.turn video.on { opacity: 1; }
.stage-top { position: absolute; top: 1.1rem; left: 1.4rem; right: 1.4rem; display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; z-index: 2; pointer-events: none; }
.stage-top .tag:not(.live) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tag { color: var(--ink-soft); }
.tag.live { background: var(--accent); color: #fff; padding: .35rem .6rem; transition: background-color .5s; }
.stage-caption { position: absolute; right: 1.4rem; bottom: 1.2rem; text-align: right; z-index: 2; pointer-events: none; }
.stage-caption .nm { font: italic clamp(1.5rem, 2.6vw, 2.1rem)/1.05 var(--serif); }
.stage-caption .pr { font: 600 .8rem var(--sans); letter-spacing: .08em; color: var(--ink-soft); margin-top: .25rem; font-variant-numeric: tabular-nums; }
.layers { position: absolute; left: 1.4rem; bottom: 1.2rem; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; z-index: 2; pointer-events: none; }
.layers li { display: flex; align-items: center; gap: .5rem; font: 500 .72rem var(--sans); letter-spacing: .04em; animation: fadeUp .4s var(--ease) both; }
.layers .dot { width: .7rem; height: .7rem; border: 1px solid rgba(26, 26, 23, .2); flex: none; }
.drag-hint { position: absolute; left: 50%; bottom: 1.2rem; translate: -50% 0; font: 500 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: .4rem; align-items: center; transition: opacity .6s; z-index: 2; pointer-events: none; }
.stage.touched .drag-hint { opacity: 0; }
.controls { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem 1.5rem; padding: 1rem .25rem .35rem; }
.controls .label { margin-bottom: .55rem; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.chip, .toggle {
  display: flex; align-items: center; gap: .55rem; min-height: 40px; padding: .35rem .6rem; background: #fff; cursor: pointer; text-align: left;
  border: 1px solid var(--line); font: 500 .74rem/1.2 var(--sans); letter-spacing: .02em; transition: border-color .2s, background-color .2s;
}
.chip:hover, .toggle:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip .sw { width: .9rem; height: 1.3rem; flex: none; border: 1px solid rgba(26, 26, 23, .15); }
.chip .thumb { width: 1.9rem; height: 2.375rem; flex: none; object-fit: cover; background: #F4F3EF; margin-block: -.2rem; }
.toggles { display: grid; gap: .4rem; }
.toggle { justify-content: space-between; }
.toggle .box { width: .85rem; height: .85rem; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; margin-right: .5rem; }
.toggle[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.toggle[aria-pressed="true"] .box::after { content: ""; width: .35rem; height: .35rem; background: #fff; }
.toggle .l { display: flex; align-items: center; flex: 1; }
.toggle .p { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.stage-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--line); margin-top: .9rem; padding: .9rem .25rem .15rem; }
.stage-specs dd, .specs dd { margin: .25rem 0 0; font-size: .92rem; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--surface-2); overflow: hidden; padding-block: .95rem; }
.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee span { font: 600 .7rem var(--sans); letter-spacing: .18em; text-transform: uppercase; padding-inline: 1.6rem; white-space: nowrap; display: flex; align-items: center; gap: 3.2rem; }
.marquee span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transition: background-color .5s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* ---------- Inner page header ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-head .wrap > div { display: flex; flex-direction: column; gap: 1rem; }
.page-head h1 { font-size: clamp(3.2rem, 7vw, 6rem); line-height: .92; letter-spacing: -.02em; }
.page-head h1 em { color: var(--accent); transition: color .5s; }
.page-head p.sub { color: var(--ink-soft); max-width: 44ch; }
.crumbs { font: 600 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Home: page tiles + teaser ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.1rem); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 17rem; padding: 1.1rem; overflow: hidden; text-decoration: none; color: #fff; background: var(--ink); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15, 13, 10, .72), rgba(15, 13, 10, .05) 60%); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile .n { font: 600 .64rem var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.tile .t { font: italic 2rem/1 var(--serif); margin-top: .3rem; display: flex; justify-content: space-between; align-items: baseline; }
.tile .t span { font: 1rem var(--sans); transition: transform .25s var(--ease); }
.tile:hover .t span { transform: translateX(4px); }
.teaser-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: clamp(1.75rem, 4vw, 2.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.visit-strip { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 1.5rem 2.5rem; align-items: end; }
.visit-strip .addr-big { margin-top: .6rem; }
section.tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.section-head > div { display: flex; flex-direction: column; gap: .9rem; }
.section-head h2 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); letter-spacing: -.01em; }
.section-head h2 em { color: var(--accent); transition: color .5s; }
.section-head p.sub { color: var(--ink-soft); max-width: 44ch; }

/* ---------- Filter bar (lineup) ---------- */
.filterbar { border-block: 1px solid var(--line); margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.filterbar .wrap { display: flex; align-items: center; gap: .5rem; min-height: 64px; overflow-x: auto; scrollbar-width: none; }
.filterbar .wrap::-webkit-scrollbar { display: none; }
.filterbar .label { margin-right: .75rem; flex: none; }
.fbtn, .pill { flex: none; min-height: 36px; padding-inline: 1rem; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font: 600 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s; }
.fbtn:hover, .pill:hover { border-color: var(--ink); }
.fbtn[aria-pressed="true"], .pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filterbar .count { margin-left: auto; flex: none; padding-left: 1rem; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.4vw, 1.75rem); }
.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #ffffff 0%, #f8f7f4 60%, var(--surface-2) 100%);
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-media .studio { object-fit: contain; padding: 6% 8%; transition: transform .8s var(--ease), opacity .5s; }
.card-media .real { object-fit: cover; opacity: 0; transition: opacity .5s var(--ease), transform .9s var(--ease); transform: scale(1.04); }
.card-media:hover .studio, .card-media:focus-visible .studio { transform: scale(1.05) rotate(-2deg); }
/* Kie studio renders already include the backdrop: show them edge to edge and zoom without tilting */
.card-media .studio.render { padding: 0; object-fit: cover; }
.card-media:hover .studio.render, .card-media:focus-visible .studio.render { transform: scale(1.04); }
.card-media:hover .real, .card-media:focus-visible .real, .card.lit .real { opacity: 1; transform: none; }
.card-hint {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 1; background: #fff; padding: .35rem .6rem; font: 600 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.card-media:hover .card-hint, .card-media:focus-visible .card-hint { opacity: 1; transform: none; }
.card-meta { display: flex; justify-content: space-between; margin-top: 1rem; font-size: .62rem; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .35rem; }
.card-title h3 { font-size: clamp(1.6rem, 2.3vw, 1.95rem); }
.card-title .price { font: 600 .82rem var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tagline { color: var(--ink-soft); font-size: .92rem; margin-top: .2rem; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); }
.specs dt { font-size: .6rem; }
.specs dd { font-size: .84rem; line-height: 1.3; }
.soon-tag { position: absolute; top: .75rem; left: .75rem; background: var(--ink); color: #fff; padding: .35rem .6rem; font: 600 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.card.soon .card-media { cursor: default; }
.countdown { color: var(--ink); }

/* ---------- Menu ---------- */
.menu-pills { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); padding: 2px; }
.menu-pills::-webkit-scrollbar { display: none; }
.menu-grid { column-count: 2; column-gap: clamp(2.25rem, 5vw, 4.5rem); }
.menu-grid.single { column-count: 1; max-width: 38rem; }
.menu-category { break-inside: avoid; margin-bottom: clamp(2rem, 4vw, 2.75rem); animation: fadeUp .45s var(--ease) both; }
.menu-category > .label { margin-bottom: .5rem; color: var(--ink); }
.menu-item { padding: .8rem .5rem; margin-inline: -.5rem; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: #fff; }
.item-row { display: flex; align-items: baseline; gap: .6rem; }
.item-row .name { font: 1.3rem/1.2 var(--serif); }
.leader { flex: 1; min-width: 1rem; border-bottom: 1px dotted var(--line-strong); transform: translateY(-.3em); }
.item-row .price { font: 600 .85rem var(--sans); font-variant-numeric: tabular-nums; }
.desc { display: block; margin-top: .2rem; font-size: .9rem; color: var(--ink-soft); }
.try3d { border: 1px solid var(--line-strong); background: transparent; font: 600 .56rem var(--sans); letter-spacing: .12em; padding: .15rem .35rem; cursor: pointer; align-self: center; transition: all .2s; }
.try3d:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.addons { padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; gap: .75rem 2rem; flex-wrap: wrap; font-size: .9rem; }
.addons .row { display: flex; gap: .5rem; }
.addons .price { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 12rem; gap: .6rem; }
.gallery-item { position: relative; margin: 0; overflow: hidden; background: var(--surface-3); cursor: zoom-in; }
.gallery-item.feature { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.8rem .8rem .6rem; font: italic 1.05rem/1.2 var(--serif); color: #fff; background: linear-gradient(to top, rgba(15, 13, 10, .6), rgba(15, 13, 10, 0)); }
.gallery-badge { position: absolute; top: .75rem; left: .75rem; z-index: 1; background: #fff; padding: .35rem .6rem; font: 600 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Reviews ---------- */
.rating-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: #fff; padding: 1.4rem clamp(1.4rem, 4vw, 2.25rem); margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.rating-unit { display: flex; align-items: center; gap: .9rem; }
.rating-num { font: 3.2rem/1 var(--serif); }
.stars { letter-spacing: .1em; font-size: .95rem; color: var(--accent); transition: color .5s; }
.stars .off { color: var(--line-strong); }
.rating-strip .links { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .9rem; }
.reviews-grid { column-count: 3; column-gap: clamp(1rem, 2vw, 1.25rem); }
.review-card { break-inside: avoid; margin: 0 0 clamp(1rem, 2vw, 1.25rem); background: #fff; border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 1.8rem); display: flex; flex-direction: column; }
.review-top { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none; background: var(--surface-2); display: grid; place-items: center; font: 1.25rem var(--serif); }
.review-who .name { font-weight: 600; font-size: .95rem; }
.review-who .meta { font-size: .78rem; color: var(--ink-soft); }
.review-card .stars { margin-bottom: .75rem; }
.review-body { margin-bottom: 1rem; }
.review-card p { font: 1.12rem/1.45 var(--serif); }
.review-card p + p { margin-top: .6rem; }
.review-date { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--ink-soft); }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.addr-big { font: clamp(2rem, 4vw, 3rem)/1.05 var(--serif); margin-top: 1rem; }
.visit-grid .note { color: var(--ink-soft); margin-top: .75rem; }
.visit-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.25rem; font-size: .92rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table td { padding: .7rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table tr.today td { font-weight: 600; color: var(--ink); }
.hours-table tr.today td:first-child::after { content: "Today"; margin-left: .6rem; font: 600 .58rem var(--sans); letter-spacing: .14em; text-transform: uppercase; background: var(--accent); color: #fff; padding: .2rem .45rem; vertical-align: 2px; }
footer.site { border-top: 1px solid var(--line); padding: 1.5rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(17, 14, 10, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: calc(3.5rem + env(safe-area-inset-top, 0px)) 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.lightbox img { max-width: min(92vw, 58rem); max-height: 74vh; object-fit: contain; animation: zoomIn .35s var(--ease); }
.lb-caption { color: #f7f5ef; font: italic 1.3rem var(--serif); text-align: center; }
.lb-count { color: rgba(247, 245, 239, .6); font: 600 .68rem var(--sans); letter-spacing: .16em; }
.lb-btn { position: absolute; background: none; border: none; color: #f7f5ef; font: 2.4rem/1 var(--serif); cursor: pointer; width: 52px; height: 52px; opacity: .8; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: calc(.6rem + env(safe-area-inset-top, 0px)); right: .6rem; }
.lb-prev { left: .25rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .25rem; top: 50%; translate: 0 -50%; }

/* ---------- Motion ---------- */
.reveal.in { animation: fadeUp .8s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsive: desktop → tablet → Samsung (~412) → iPhone (~390) ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-status { display: none; }
  .nav-links { gap: 1rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid { column-count: 2; }
}
@media (max-width: 900px) {
  .burger { display: block; order: 3; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top, 0px)); flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1.5rem;
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; font: italic 2rem var(--serif); letter-spacing: 0; text-transform: none; padding-block: .55rem; border-bottom: 1px solid var(--line); }
  .logo { margin-right: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 0; }
  .visit-grid, .visit-strip { grid-template-columns: 1fr; }
  .menu-grid { column-count: 1; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 10rem; }
}
@media (max-width: 600px) {
  .controls { grid-template-columns: minmax(0, 1fr); }
  .chips { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -.25rem; padding: 2px .25rem; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .toggles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toggle { flex-direction: column; align-items: flex-start; gap: .2rem; font-size: .68rem; }
  .cards { gap: 2.25rem .75rem; }
  .card-title h3 { font-size: 1.3rem; }
  .card-title { flex-direction: column; gap: .15rem; }
  .specs { grid-template-columns: 1fr; gap: .45rem; }
  .specs > div { display: flex; justify-content: space-between; gap: .75rem; }
  .specs dd { margin: 0; text-align: right; }
  .reviews-grid { column-count: 1; }
  .layers { display: none; }
  .hero-stats .val { font-size: 1.3rem; }
  .lb-prev, .lb-next { display: none; }
}
@media (max-width: 400px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 12rem; }
  .cards { grid-template-columns: 1fr; }
  .card-title { flex-direction: row; }
}

/* ---------- Platform & input adjustments (classes set in <head> by layout.html) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* iOS/Android: no font inflation in landscape */
.touch a, .touch button, .touch [role="button"] { -webkit-tap-highlight-color: transparent; }
.touch .btn:active, .touch .chip:active, .touch .toggle:active, .touch .fbtn:active, .touch .pill:active { transform: scale(.97); }
.touch .card-hint { opacity: 1; transform: none; }                  /* no hover on phones: always show what a tap does */
.touch .card-media:hover .studio { transform: none; }               /* avoid sticky hover zoom after a tap */
.touch .chips, .touch .filterbar .wrap, .touch .menu-pills { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.touch .chip { scroll-snap-align: start; }
.touch .chip, .touch .toggle, .touch .fbtn, .touch .pill { min-height: 44px; }  /* Apple/Google minimum tap target */
html.menu-open, html.menu-open body { overflow: hidden; }          /* stop the page scrolling under the open mobile menu */
.os-ios .nav-links { max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px)); overflow-y: auto; }
.os-android body { font-synthesis: none; }                           /* Android: no faux-bold serif */
.os-windows .item-row .name, .os-windows .card-title h3 { -webkit-font-smoothing: auto; }
.os-windows .chips, .os-windows .filterbar .wrap, .os-windows .menu-pills, .os-windows .marquee { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.browser-samsung .stage { background: #F4F3EF !important; } /* survive "dark mode for websites" */
.empty-state { grid-column: 1 / -1; border: 1px solid var(--line); background: var(--surface-2); padding: clamp(2rem, 6vw, 4rem); display: flex; flex-direction: column; gap: .9rem; }
.empty-state .note { color: var(--ink-soft); }
.stage-specs .wide { grid-column: span 2; }

/* ---------- Home: the still life ----------
   One drink, alone, turning slowly in an oat-colored band. Around it only a numbered index (left) and the
   drink's details on a card modeled on the real cup sticker (right): white paper, italic serif name,
   the address along the bottom edge. */
.still { background: var(--surface-2); padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
.still-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 19rem); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.still-grid > * { min-width: 0; }
.still .stage { height: clamp(440px, 70vh, 760px); background: transparent; cursor: default; }
.still .stage::before, .still .stage::after { display: none; }
/* Feather the render into the band, so the drink floats instead of sitting in a box. An overlay, not a CSS mask:
   iOS Safari can fail to draw a <video> inside a masked element. */
.stage-fade { position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(244, 243, 239, 0) 70%, var(--surface-2) 99%); }
.browser-samsung .still .stage { background: transparent !important; }

.still-index .label { margin-bottom: .9rem; }
.index { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.index .chip {
  display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto; align-items: baseline; gap: .5rem; width: 100%;
  min-height: 0; padding: .72rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none;
  font: 500 .86rem/1.25 var(--sans); letter-spacing: .01em; color: var(--ink-soft); text-align: left; cursor: pointer; transition: color .2s;
}
.index .chip:hover { color: var(--ink); border-color: var(--line); }
.index .chip .no, .index .chip .pr { font: 600 .66rem var(--sans); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.index .chip[aria-pressed="true"] { color: var(--ink); box-shadow: none; border-color: var(--line); }
.index .chip[aria-pressed="true"] .no { color: var(--accent); }
.index .chip[aria-pressed="true"] .nm { font: italic 1.3rem/1.1 var(--serif); letter-spacing: 0; }

.tag-card {
  background: #fff; padding: 1.4rem 1.4rem 1rem; display: flex; flex-direction: column; gap: .9rem;
  box-shadow: 0 1px 1px rgba(26, 26, 23, .05), 0 18px 40px -24px rgba(26, 26, 23, .35);
}
.tc-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tc-head .tag.live { padding: .28rem .5rem; }
.tc-name { font: italic clamp(2rem, 2.8vw, 2.6rem)/1 var(--serif); letter-spacing: -.01em; }
.tc-desc { color: var(--ink-soft); font-size: .92rem; }
.tc-rows { margin: 0; display: grid; gap: .85rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.tc-rows dd { margin: .4rem 0 0; }
.tc-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.tc-layers li { display: flex; align-items: center; gap: .5rem; font: 500 .8rem var(--sans); animation: fadeUp .4s var(--ease) both; }
.tc-layers .dot { width: .65rem; height: .65rem; border: 1px solid rgba(26, 26, 23, .2); flex: none; }
.tag-card .toggles { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
.tag-card .toggle { flex-direction: row; align-items: center; font-size: .78rem; }
.tc-price dd { font: 1.5rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.tc-addons { font: 500 .78rem var(--sans); color: var(--ink-soft); margin-left: .4rem; }
.tc-addr { border-top: 1px solid var(--line); padding-top: .7rem; font: 600 .56rem/1.3 var(--sans); letter-spacing: .14em; color: var(--ink-soft); text-align: center; }

.still-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: 1.1rem 1.3rem; border-top: 1px solid var(--line); margin-top: clamp(1rem, 3vw, 2rem); }
.still-foot .status { font: 500 .8rem var(--sans); gap: .55rem; }
.still-foot .soft { color: var(--ink-soft); }
.still-foot .soft::before { content: "·"; margin-right: .55rem; }

.quiet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.quiet-title { font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: .95; letter-spacing: -.02em; margin-bottom: 1rem; }
.quiet-title em { color: var(--accent); transition: color .5s; }
.quiet-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: q; }
.quiet-links a { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto 1.2rem; align-items: baseline; gap: .5rem; padding: .95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s; }
.quiet-links a::before { counter-increment: q; content: "0" counter(q); font: 600 .66rem var(--sans); letter-spacing: .12em; color: var(--ink-soft); }
.quiet-links .nm { font: 1.5rem/1 var(--serif); }
.quiet-links .n { font: 600 .66rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.quiet-links .arr { transition: transform .25s var(--ease); }
.quiet-links a:hover .nm, .quiet-links a:focus-visible .nm { font-style: italic; color: var(--accent); }
.quiet-links a:hover .arr { transform: translateX(4px); }

@media (max-width: 1080px) {
  .still-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); }
  .still-index { grid-column: 1 / -1; order: 3; }
  .index { flex-direction: row; flex-wrap: wrap; border-top: 0; gap: 0 1.25rem; }
  .index .chip { width: auto; grid-template-columns: auto auto; border-bottom: 1px solid transparent; white-space: nowrap; }  /* one line in the sideways row */
  .index .chip .pr { display: none; }
  .index .chip[aria-pressed="true"] { border-bottom-color: var(--accent); }
}
@media (max-width: 720px) {
  .still-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .still .stage { height: min(112vw, 520px); order: 1; }
  .still-index { order: 2; }
  .index { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .index::-webkit-scrollbar { display: none; }
  .index .chip { flex: none; }
  .tag-card { order: 3; }
  .quiet-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Opening mark (home page) ----------
   The MASE box draws itself, the letters rise, "Coffee" is written in, the sticker's address line settles,
   then the mark lifts away. The pieces wait in their start state until the script adds .play (page visible,
   fonts ready). .calm (Reduce Motion) shows the finished mark with no movement. -webkit- prefixes: older iOS. */
.intro {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  padding-inline: 16px; background: var(--surface-2); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.intro.out { opacity: 0; transform: translateY(-1.5%); pointer-events: none; }
.intro-mark { display: flex; align-items: center; gap: .45em; font-size: clamp(2.4rem, 11vw, 5.5rem); }
.im-box { position: relative; display: inline-flex; align-items: center; line-height: 1; padding: .17em .46em .11em; }  /* same proportions as the header logo box */
/* The box draws as two strokes: top then right, and bottom then left. (A scaled SVG outline with pathLength
   stopped short in Chrome, so these are plain borders revealed by clip-path.) */
.im-box::before, .im-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.im-box::before { border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); -webkit-clip-path: inset(0 100% 100% 0); clip-path: inset(0 100% 100% 0); }
.im-box::after { border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); -webkit-clip-path: inset(100% 0 0 100%); clip-path: inset(100% 0 0 100%); }
.im-top { display: inline-flex; font: 1em/1 var(--serif); letter-spacing: .08em; overflow: hidden; }
.im-top span { display: inline-block; transform: translateY(105%); }
.im-word { font: italic 1.1em/1 var(--serif); color: var(--ink-soft); padding-right: .08em; -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
.intro-addr { font: 600 clamp(.5rem, 2.2vw, .66rem)/1.4 var(--sans); letter-spacing: .5em; color: var(--ink-soft); opacity: 0; text-align: center; }

.intro.play .im-box::before { animation: drawTR .5s linear .1s forwards; }
.intro.play .im-box::after { animation: drawBL .5s linear .55s forwards; }
.intro.play .im-top span { animation: rise .6s var(--ease) forwards; }
.intro.play .im-top span:nth-child(1) { animation-delay: .35s; }
.intro.play .im-top span:nth-child(2) { animation-delay: .43s; }
.intro.play .im-top span:nth-child(3) { animation-delay: .51s; }
.intro.play .im-top span:nth-child(4) { animation-delay: .59s; }
.intro.play .im-word { animation: write .7s var(--ease) .85s forwards; }
.intro.play .intro-addr { animation: settle .8s var(--ease) 1.15s forwards; }
@keyframes drawTR { 50% { -webkit-clip-path: inset(0 0 calc(100% - 1px) 0); clip-path: inset(0 0 calc(100% - 1px) 0); } to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
@keyframes drawBL { 50% { -webkit-clip-path: inset(calc(100% - 1px) 0 0 0); clip-path: inset(calc(100% - 1px) 0 0 0); } to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
@keyframes rise { to { transform: none; } }
@keyframes write { to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
@keyframes settle { to { opacity: 1; letter-spacing: .18em; } }
/* Reduce Motion: the finished mark, no movement (the global reduce rule switches the animations off). */
.intro.calm .im-box::before, .intro.calm .im-box::after, .intro.calm .im-word { -webkit-clip-path: none; clip-path: none; }
.intro.calm .im-top span { transform: none; }
.intro.calm .intro-addr { opacity: 1; letter-spacing: .18em; }
