/* Café 20/02: a neighbourhood café, laid out like the Tokyo 101 proposal (a film behind a big title,
   a strip with today's hours, the menu on cards, the hours in a table next to the map) in the colours
   of its logo: the logo's black, cream paper and the orange of its coffee ring. Gloock for the names
   of things, a grotesk to read, a typewriter mono for the small print, as on a ticket. */
:root {
  --paper: #f4ecdd;
  --paper-2: #ebdfc9;
  --card: #fbf6ec;
  --ink: #262123;
  --ink-80: rgba(38, 33, 35, 0.8);
  --ink-62: rgba(38, 33, 35, 0.62);
  --line: rgba(38, 33, 35, 0.15);
  --night: #1e1a1c;
  --cream: #f4ecdd;
  --cream-70: rgba(244, 236, 221, 0.7);
  --cream-16: rgba(244, 236, 221, 0.16);
  /* the ring's orange, as drawn; darker for small type on the paper */
  --orange: #ee7e27;
  --orange-deep: #bf441d;
  --green: #6cbf78;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 44px);
  --hd-h: 76px;
  --radius: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hd-h); }
/* no visible scrollbar on the page (it still scrolls as usual), as in Tokyo 101 */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  /* a faint paper grain, drawn by the browser */
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.11 0 0 0 0 0.08 0 0 0 0.11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 240px 240px;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
main { overflow-x: hidden; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 100; top: 10px; left: 10px; padding: 0.6rem 1rem;
  background: var(--ink); color: var(--paper); font-weight: 500; border-radius: 8px; transform: translateY(-160%);
}
.skip:focus { transform: none; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 500 0.8rem/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-deep);
}
/* the logo's ring, small */
.eyebrow::before { content: ""; flex: none; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; }
.hero .eyebrow, .sec--ink .eyebrow { color: var(--orange); }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill, .ico--fill { fill: currentColor; stroke: none; }

/* ---- Buttons ------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 0.98rem/1 var(--sans); letter-spacing: 0.01em;
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .ico { width: 18px; height: 18px; stroke-width: 1.8; }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #f59a50; }
.btn--line { border-color: rgba(244, 236, 221, 0.45); color: var(--cream); }
.btn--line:hover { border-color: var(--cream); background: rgba(244, 236, 221, 0.08); }
.btn--line-ink { border-color: rgba(38, 33, 35, 0.35); color: var(--ink); }
.btn--line-ink:hover { border-color: var(--ink); background: rgba(38, 33, 35, 0.05); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #3b3437; }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.9rem; }
.btn:active { transform: translateY(1px); }
.btn > .ico:last-child:not(:first-child) { transition: transform 0.3s var(--ease); }
.btn:hover > .ico:last-child:not(:first-child) { transform: translateX(3px); }

/* ---- Header -------------------------------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: inherit; }
.brand__seal { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1px var(--cream-16); }
.brand__type { display: grid; gap: 5px; }
.brand__word { font: 400 1.45rem/0.9 var(--display); letter-spacing: -0.005em; }
.brand__sub { font: 500 0.6rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }

.hd {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hd-h);
  background: rgba(30, 26, 28, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--cream);
  border-bottom: 1px solid var(--cream-16);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.hd--over:not(.is-scrolled) { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hd__in { height: 100%; display: flex; align-items: center; gap: 2rem; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a {
  padding: 0.5rem 0.85rem; border-radius: 999px;
  font: 500 0.95rem/1 var(--sans); color: var(--cream-70);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--cream); background: rgba(244, 236, 221, 0.08); }
.hd__toggle { display: none; }

.sheet {
  position: fixed; inset: var(--hd-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--night); color: var(--cream);
  overflow-y: auto;
}
.sheet[hidden] { display: none; }
.sheet nav { display: grid; }
.sheet nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--cream-16); font: 400 1.9rem/1.1 var(--display); }
.sheet__foot { display: grid; gap: 0.9rem; padding-top: 2rem; color: var(--cream-70); }
.sheet__foot a { display: flex; align-items: center; gap: 0.7rem; }
.sheet__foot .ico { color: var(--orange); }

@media (max-width: 960px) {
  :root { --hd-h: 66px; }
  .nav, .hd__wa { display: none; }
  .hd__toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border: 1px solid var(--cream-16); border-radius: 50%;
    background: transparent; cursor: pointer;
  }
  .hd__toggle .ico { width: 22px; height: 22px; stroke-width: 1.8; }
  .hd__close, .hd__toggle[aria-expanded="true"] .hd__open { display: none; }
  .hd__toggle[aria-expanded="true"] .hd__close { display: inline; }
  .brand__seal { width: 40px; height: 40px; }
  .brand__word { font-size: 1.3rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .hd { background: var(--night); border-color: var(--cream-16); }
}

/* ---- Moving pictures: a still first, the film over it once it plays ------------------------- */

.vbg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); pointer-events: none; }
.vbg img, .vbg video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: translate3d(0, var(--py, 0%), 0) scale(var(--vs, 1));
}
.vbg video { opacity: 0; transition: opacity 1.2s ease; }
.vbg.is-playing video { opacity: 1; }
.vbg::after { content: ""; position: absolute; inset: 0; }

.vtoggle {
  position: absolute; z-index: 2; right: max(var(--gutter), (100% - 1240px) / 2); bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px;
  background: rgba(24, 20, 22, 0.35); color: var(--cream-70);
  border: 1px solid var(--cream-16); border-radius: 999px; cursor: pointer;
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.25s, border-color 0.25s;
}
.vtoggle:hover { color: var(--cream); border-color: var(--cream-70); }
.vtoggle[hidden] { display: none; }
.vtoggle .ico { width: 15px; height: 15px; }
.vtoggle__play { fill: currentColor; stroke: none; display: none; }
.vtoggle.is-paused .vtoggle__pause { display: none; }
.vtoggle.is-paused .vtoggle__play { display: inline; }

/* ---- Hero: a big title over an espresso being pulled, the logo where Tokyo has its seal ------ */

.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; align-items: flex-end;
  padding: calc(var(--hd-h) + 4rem) 0 clamp(3rem, 8vh, 6rem);
  background: var(--night); color: var(--cream);
  overflow: hidden;
}
.vbg--hero { --vs: calc(1.02 + var(--hp, 0) * 0.08); animation: hero-in 1.6s var(--ease) both; }
.vbg--hero::after {
  background:
    linear-gradient(90deg, rgba(30, 26, 28, 0.9) 0%, rgba(30, 26, 28, 0.62) 40%, rgba(30, 26, 28, 0.08) 78%),
    linear-gradient(0deg, rgba(30, 26, 28, 0.78) 0%, rgba(30, 26, 28, 0) 45%),
    linear-gradient(180deg, rgba(30, 26, 28, 0.6) 0%, rgba(30, 26, 28, 0) 22%);
}
@keyframes hero-in { from { opacity: 0; } }
.hero__in { position: relative; display: grid; gap: 1.6rem; justify-items: start; }
.hero__title {
  font: 400 clamp(3.3rem, 10vw, 8.6rem)/0.92 var(--display);
  letter-spacing: -0.025em;
}
.hero__title span { color: var(--orange); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero__in > * { animation: rise 1s var(--ease) both; }
.hero__in > :nth-child(2) { animation-delay: 0.1s; }
.hero__in > :nth-child(3) { animation-delay: 0.2s; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

.hero__logo {
  position: absolute; z-index: 1;
  right: max(var(--gutter), (100% - 1240px) / 2); bottom: calc(clamp(3rem, 8vh, 6rem) + 2.6rem);
  line-height: 0;
  animation: rise 1.2s var(--ease) 0.35s both;
}
.hero__mark { display: block; height: clamp(170px, 30vh, 290px); width: auto; aspect-ratio: 1254 / 1770; overflow: visible; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35)); }
.hero__mark-text { fill: #fff; }
/* the ring lands like a cup set down, then turns a little with the scroll */
.hero__mark-ring {
  transform-box: fill-box; transform-origin: 46% 52%;
  rotate: calc(var(--spin, 0deg) * 0.12);
  animation: stamp 1.1s var(--ease) 0.75s both;
}
@keyframes stamp { from { opacity: 0; scale: 1.3; } }

@media (max-width: 700px) {
  .hero { min-height: 92svh; }
  .vbg--hero::after { background: linear-gradient(0deg, rgba(30, 26, 28, 0.95) 0%, rgba(30, 26, 28, 0.72) 48%, rgba(30, 26, 28, 0.25) 100%); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__logo { top: calc(var(--hd-h) + 1.2rem); bottom: auto; }
  .hero__mark { height: 128px; }
  .vtoggle { top: calc(var(--hd-h) + 1.2rem); bottom: auto; right: auto; left: var(--gutter); }
}
/* on short phones the title reaches the top: no room for the logo */
@media (max-width: 700px) and (max-height: 700px) { .hero__logo { display: none; } }

/* ---- Today strip ---------------------------------------------------------------------------- */

.strip { background: var(--ink); color: var(--cream); border-top: 1px solid var(--cream-16); }
.strip__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip__item { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.5rem 1.5rem 0; }
.strip__item + .strip__item { padding-left: 1.5rem; border-left: 1px solid var(--cream-16); }
.strip__item > .ico { width: 26px; height: 26px; color: var(--orange); stroke-width: 1.6; }
.strip__k { font: 500 0.7rem/1.3 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-70); }
.strip__v { font-weight: 500; }
.strip__item:hover .strip__v { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); }
@media (max-width: 860px) {
  .strip__in { grid-template-columns: 1fr; }
  .strip__item, .strip__item + .strip__item { padding: 1.1rem 0; border-left: 0; }
  .strip__item + .strip__item { border-top: 1px solid var(--cream-16); }
}

/* open, closing soon or closed, worked out from the hours */
[data-status], [data-status-long] { display: inline-flex; align-items: center; gap: 0.6rem; }
[data-status-long] { align-items: flex-start; }
[data-status-long]::before { margin-top: 0.55em; }
.is-open::before, .is-soon::before, .is-closed::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(108, 191, 120, 0.2);
}
.is-soon::before { background: #e0a43a; box-shadow: 0 0 0 4px rgba(224, 164, 58, 0.2); }
.is-closed::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(238, 126, 39, 0.2); }
.visit .is-open::before { background: #3f8d4c; }

/* ---- Sections ------------------------------------------------------------------------------- */

.sec { padding: clamp(4.5rem, 11vw, 8.5rem) 0; }
.sec--ink { background: var(--night); color: var(--cream); }
.sec__hd { display: grid; gap: 0.9rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.sec__title { font: 400 clamp(2.5rem, 5.6vw, 4.4rem)/1.02 var(--display); letter-spacing: -0.02em; }
.sec__more { display: grid; justify-items: center; gap: 1.1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; color: var(--ink-80); }

/* the menu, on cards: the two big ones with their films, the other two on paper */
.carta { position: relative; isolation: isolate; }
.carta__stain {
  position: absolute; z-index: -1; top: clamp(24px, 4vw, 56px); right: -4%;
  width: min(44vw, 540px); height: auto; opacity: 0.1; rotate: 16deg; pointer-events: none;
}
.cards-big, .cards-small { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.cards-small { margin-top: clamp(1rem, 2vw, 1.5rem); }
.card {
  position: relative; border-radius: var(--radius); scroll-margin-top: calc(var(--hd-h) + 16px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(38, 33, 35, 0.45); }
.card__hd { display: grid; gap: 0.5rem; }
.card__n { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.2em; color: var(--orange-deep); }
.card__title { font: 400 clamp(1.9rem, 3.4vw, 2.7rem)/1.05 var(--display); letter-spacing: -0.015em; }

.card--film { overflow: hidden; background: var(--night); color: var(--cream); }
.card__media { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(260px, 24vw, 330px); overflow: hidden; }
.card__media .vbg img, .card__media .vbg video { transition: transform 1.2s var(--ease); }
.card--film:hover .card__media .vbg img, .card--film:hover .card__media .vbg video { --vs: 1.04; }
.card__media .vbg::after { background: linear-gradient(0deg, rgba(30, 26, 28, 1) 0%, rgba(30, 26, 28, 0.55) 38%, rgba(30, 26, 28, 0) 72%); }
.card--film .card__hd { padding: 0 clamp(1.4rem, 3vw, 2.2rem) 0.4rem; }
.card--film .card__n { color: var(--orange); }

.items { display: grid; }
.item { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item__name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.65rem; font: 400 1.25rem/1.25 var(--display); }
.item__desc { margin-top: 0.25rem; color: var(--ink-62); font-size: 0.95rem; line-height: 1.5; max-width: 36em; }
.card--film .items { padding: 0.2rem clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.4rem); }
.card--film .item { border-color: var(--cream-16); }
.card--film .item__desc { color: var(--cream-70); }
.tag {
  padding: 4px 9px 3px; border: 1px solid currentColor; border-radius: 999px;
  font: 500 0.66rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-deep);
}
.card--film .tag { color: var(--orange); }

.card--text { padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--card); border: 1px solid var(--line); }
.card--text .card__hd { padding-bottom: 1rem; margin-bottom: 0.3rem; border-bottom: 2px solid var(--ink); }
.card--text .card__title { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }

@media (max-width: 760px) {
  .cards-big, .cards-small { grid-template-columns: 1fr; }
  .card__media { min-height: 230px; }
  .carta__stain { width: 74vw; right: -22%; top: 12px; }
}

/* the house, on the dark: the beans in a tall frame, the words and Instagram beside them */
.casa__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.casa__film { position: relative; isolation: isolate; aspect-ratio: 4 / 5; max-width: 460px; border-radius: var(--radius); overflow: hidden; }
.casa__film .vbg { --vs: 1.12; }
.casa__film .vbg::after { background: rgba(30, 26, 28, 0.12); }
.casa__text header { display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.casa__lede { max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--cream-70); }
.ig {
  display: grid; gap: 0.7rem; margin-top: clamp(2rem, 4vw, 2.8rem); padding: 1.5rem 0;
  border-top: 1px solid var(--cream-16); border-bottom: 1px solid var(--cream-16);
}
.ig__k { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-70); }
.ig__v { display: flex; align-items: center; gap: 0.7rem; font: 400 clamp(1.7rem, 2.8vw, 2.3rem)/1.1 var(--display); color: var(--orange); }
.ig__v .ico { width: 26px; height: 26px; }
.ig__v .ico:last-child { margin-left: auto; transition: transform 0.3s var(--ease); }
.ig:hover .ig__v .ico:last-child { transform: translateX(4px); }
@media (max-width: 860px) {
  .casa__in { grid-template-columns: 1fr; }
  .casa__film { max-width: none; aspect-ratio: 16 / 11; }
}

/* the hours and the way there */
.visit__in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: stretch; }
.visit__text header { display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.visit__status { font-weight: 500; margin-bottom: 1.4rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 1rem 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours th { font: 400 1.3rem/1.3 var(--display); }
.hours td { text-align: right; font: 400 0.95rem/1.75 var(--mono); color: var(--ink-80); }
.hours tr.is-today td { color: var(--ink); font-weight: 500; }
.hours tr.is-today th::after {
  content: "Hoy"; margin-left: 0.7rem; padding: 0.25rem 0.55rem 0.2rem; border-radius: 999px;
  background: var(--orange); color: var(--ink); font: 500 0.64rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; vertical-align: 0.3em;
}
.visit__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.visit__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: sepia(0.25) saturate(0.85); }
@media (max-width: 860px) {
  .visit__in { grid-template-columns: 1fr; }
  .visit__map, .visit__map iframe { min-height: 340px; }
  .visit__cta .btn { flex: 1 1 100%; }
}

/* sections arrive once, as they come into view (only once the script runs) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .card.rv.is-in { transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }

/* ---- Photos: every square or framed one with rounded corners -------------------------------- */

.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.sec--ink .ph { background: var(--ink); }
.ph figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 11px 5px; border-radius: 999px;
  background: rgba(30, 26, 28, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--cream); font: 500 0.66rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}

/* the gallery, as in Tokyo 101: a grid of rounded photos that open large */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 19vw, 270px); grid-auto-flow: dense; gap: clamp(0.6rem, 1.4vw, 1rem); }
.g { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.sec--ink .g { background: var(--ink); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1s var(--ease); }
.g button:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; } }

.lb { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(20, 17, 18, 0.92); }
.lb[open] { display: grid; place-items: center; }
.lb img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); }
.lb__close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  background: rgba(30, 26, 28, 0.6); color: #fff; cursor: pointer;
}
.lb__close .ico { width: 22px; height: 22px; }

/* ---- Google reviews: the rating, the count and the latest reviews ---------------------------- */

.gr { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.gr__card, .rev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.gr__card { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); }
.gr__brand { display: flex; align-items: center; gap: 0.6rem; font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-62); }
.gr__brand svg { width: 22px; height: 22px; flex: none; }
.gr__name { font: 400 1.5rem/1.1 var(--display); }
.gr__score { display: flex; align-items: center; gap: 0.9rem; }
.gr__num { font: 400 clamp(3.4rem, 6vw, 4.6rem)/0.85 var(--display); letter-spacing: -0.03em; }
.gr__count { color: var(--ink-62); font-size: 0.95rem; }
.gr__count a { color: inherit; text-decoration: none; }
.gr__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
/* with no reviews to show yet, the summary stands alone, across */
.gr:not(:has(.rev)) { grid-template-columns: 1fr; }
.gr:not(:has(.rev)) .gr__list { display: none; }
@media (min-width: 861px) {
  .gr:not(:has(.rev)) .gr__card { grid-template-columns: auto auto 1fr; align-items: center; column-gap: clamp(2rem, 5vw, 4rem); }
  .gr:not(:has(.rev)) .gr__brand, .gr:not(:has(.rev)) .gr__name { grid-column: 1 / -1; }
  .gr:not(:has(.rev)) .gr__cta { justify-content: flex-end; }
}

.stars { position: relative; display: inline-flex; width: max-content; justify-self: start; color: rgba(38, 33, 35, 0.18); }
.stars svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.stars__on { position: absolute; inset: 0 auto 0 0; display: inline-flex; width: calc(var(--r, 5) / 5 * 100%); overflow: hidden; color: var(--orange); }
.stars--sm svg { width: 15px; height: 15px; }

.gr__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.rev { display: grid; gap: 0.7rem; align-content: start; padding: 1.4rem 1.5rem; }
.rev__hd { display: flex; align-items: center; gap: 0.75rem; }
.rev__av { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; background: var(--orange); color: var(--ink); font-weight: 600; }
.rev__av img { width: 100%; height: 100%; object-fit: cover; }
.rev__name { font-weight: 600; line-height: 1.25; }
.rev__when { font-size: 0.84rem; color: var(--ink-62); }
.rev__text { color: var(--ink-80); font-size: 0.98rem; line-height: 1.55; }

.gr__note { margin-top: 1.2rem; font: 400 0.8rem/1.4 var(--mono); color: var(--ink-62); }
.sec--ink .gr__note { color: var(--cream-70); }
.sec--ink .gr__card, .sec--ink .rev { background: rgba(244, 236, 221, 0.05); border-color: var(--cream-16); }
.sec--ink .gr__brand, .sec--ink .gr__count, .sec--ink .rev__when { color: var(--cream-70); }
.sec--ink .rev__text { color: var(--cream-70); }
.sec--ink .stars { color: rgba(244, 236, 221, 0.2); }
@media (max-width: 860px) { .gr { grid-template-columns: 1fr; } }

/* the hours and the map on the dark, as in Tokyo 101 */
.sec--ink .hours th, .sec--ink .hours td { border-color: var(--cream-16); }
.sec--ink .hours td { color: var(--cream-70); }
.sec--ink .hours tr.is-today td { color: var(--cream); }
.sec--ink .visit__map { background: var(--ink); border-color: var(--cream-16); }
.sec--ink .visit__map iframe { filter: grayscale(1) invert(0.9) contrast(0.88) brightness(1.05); }
.sec--ink .visit .is-open::before, .sec--ink.visit .is-open::before { background: var(--green); }

/* ---- Footer --------------------------------------------------------------------------------- */

.ft { background: var(--night); color: var(--cream-70); padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; font-size: 0.95rem; }
.ft__in { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 2.5rem; }
.ft__logo { height: 130px; width: auto; }
.ft__h { margin-bottom: 0.9rem; font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.ft__links { display: grid; gap: 0.35rem; justify-items: start; }
.ft a:hover { color: var(--cream); }
.ft__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--cream-16);
  font: 400 0.82rem/1.4 var(--mono);
}
.ft__base a { color: var(--cream); }
.ft__base a:hover { color: var(--orange); }
@media (max-width: 960px) { .ft__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft__in { grid-template-columns: 1fr; } .ft__logo { height: 110px; } }

/* ---- Quick actions under the thumb, on a phone ----------------------------------------------- */

.bar { display: none; }
@media (max-width: 700px) {
  :root { --bar-h: 60px; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .bar {
    position: fixed; inset: auto 0 0; z-index: 45;
    display: grid; grid-template-columns: repeat(3, 1fr);
    height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(30, 26, 28, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--cream-16);
  }
  .bar a {
    display: grid; justify-items: center; align-content: center; gap: 0.25rem;
    color: var(--cream); font: 600 0.72rem/1 var(--sans); letter-spacing: 0.06em;
  }
  .bar a + a { border-left: 1px solid var(--cream-16); }
  .bar .ico { width: 22px; height: 22px; color: var(--orange); stroke-width: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vbg--hero, .hero__in > *, .hero__logo, .hero__mark-ring { animation: none; }
  .hero__mark-ring { rotate: none; }
  .vbg img, .vbg video { transform: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}
