/* Emuna Barber Lounge — styles
   Palette pulled from the shop: black chairs and cape collars (charcoal),
   white walls and capes (ivory), leather aprons (brass), brushed-steel logo. */
:root {
  --ink: #1d1b19;
  --ink-raised: #262320;
  --ink-deep: #151311;
  --line: #3a3530;
  --ivory: #f1eadf;
  --ivory-dim: #b9af9f;
  --brass: #b8925f;
  --brass-hi: #d2ae7a;
  --steel: #c9c7c3;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--ivory);
  font: 300 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h2 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
}
h3 { font-family: var(--display); font-size: 1.6rem; line-height: 1.15; font-variation-settings: "opsz" 48; }

.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 38rem; }
.section-head p { color: var(--ivory-dim); font-size: 1.125rem; max-width: 34rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 24px; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, auto); } }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ivory); --bd: var(--line);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 48px; padding: 12px 22px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--radius);
  font: 500 0.98rem/1.2 var(--sans); letter-spacing: 0.01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
}
.btn small { font-weight: 300; font-size: 0.78rem; opacity: .8; letter-spacing: 0; }
.btn--brass { --bg: var(--brass); --fg: #1a1714; --bd: var(--brass); }
.btn--brass:hover { --bg: var(--brass-hi); --bd: var(--brass-hi); }
.btn--ghost { --bd: rgba(241, 234, 223, .35); }
.btn--ghost:hover { --bd: var(--ivory); background: rgba(241, 234, 223, .06); }
.btn--lg { min-height: 60px; padding: 14px 30px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--ivory); text-decoration: none; font-weight: 400;
  border-bottom: 1px solid rgba(241, 234, 223, .45); padding: 0 2px; min-height: auto; padding-block: 4px;
  transition: border-color .25s;
}
.textlink:hover { border-color: var(--brass-hi); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(29, 27, 25, .9); border-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__brand { margin-right: auto; display: block; }
.nav__brand img { width: 132px; transition: opacity .35s; }
.nav:not(.is-solid) .nav__brand img { opacity: 0; pointer-events: none; }
.nav__links { display: none; gap: 30px; }
.nav__links a { text-decoration: none; font-weight: 400; font-size: .98rem; color: var(--ivory); opacity: .85; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav__links a:hover { opacity: 1; border-color: var(--brass); }
.nav__book { display: none; min-height: 42px; padding: 9px 18px; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; font-weight: 400;
}
.nav__toggle-bars, .nav__toggle-bars::before { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s; }
.nav__toggle-bars::before { content: ""; position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__book { display: inline-flex; }
  .nav__toggle { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 35; background: var(--ink-deep);
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 28px) var(--gutter) 40px;
  display: grid; align-content: start; gap: 32px; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { font-family: var(--display); font-size: 2.4rem; line-height: 1.25; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu__address { color: var(--ivory-dim); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 42%; }
@media (max-width: 700px) { .hero__media img { object-position: 60% 50%; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(21,19,17,.55) 0%, rgba(21,19,17,0) 22%),
    linear-gradient(0deg, rgba(21,19,17,.96) 0%, rgba(21,19,17,.78) 30%, rgba(21,19,17,.15) 62%, rgba(21,19,17,0) 75%),
    linear-gradient(90deg, rgba(21,19,17,.7) 0%, rgba(21,19,17,0) 55%);
}
.hero__content {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--gutter) clamp(40px, 8vh, 96px);
  display: grid; gap: 18px; justify-items: start;
}
.hero__title { width: min(640px, 88vw); margin-left: -0.6%; }
.hero__title img { width: 100%; filter: drop-shadow(0 2px 18px rgba(0,0,0,.45)); }
.hero__place { font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--ivory); margin-top: -4px; }
.hero__lede { max-width: 30rem; color: rgba(241,234,223,.82); font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-settle 14s var(--ease) both; }
  .hero__content > * { animation: rise 1.1s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: .15s; }
  .hero__content > :nth-child(3) { animation-delay: .3s; }
  .hero__content > :nth-child(4) { animation-delay: .45s; }
}
@keyframes hero-settle { from { transform: scale(1.09); } to { transform: scale(1.0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Photo buttons ---------- */
.photo { display: block; width: 100%; padding: 0; border: 0; background: var(--ink-raised); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.photo picture { display: block; width: 100%; height: 100%; }
.photo img { width: 100%; height: 100%; }
.photo img { object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.03); }
@media (max-width: 899px) { .photo img { object-position: var(--pos-m, var(--pos, 50% 50%)); } }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: .92rem; color: var(--ivory-dim); }

/* Reveal: a slow curtain lift, used only on the feature spread and storefront */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
  .js .reveal .photo img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
  .js .reveal.is-in .photo { clip-path: inset(0 0 0 0); }
  .js .reveal.is-in .photo img { transform: scale(1); }
  .js .reveal.is-in .photo:hover img { transform: scale(1.03); transition-duration: 1.2s; }
  .js .reveal figcaption { opacity: 0; transition: opacity .8s .5s; }
  .js .reveal.is-in figcaption { opacity: 1; }
}

/* ---------- Featured work ---------- */
.work { padding-block: var(--section); }
.spread { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spread > * { min-width: 0; }
.spread__main { grid-column: 1 / -1; }
.spread__main .photo { aspect-ratio: 4 / 5; }
.spread__a .photo, .spread__b .photo { aspect-ratio: 3 / 4; }
.spread__c { grid-column: 1 / -1; }
.spread__c .photo { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .spread { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .spread__main { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .spread__main .photo { aspect-ratio: 5 / 6; }
  .spread__a { grid-column: 8 / span 2; margin-top: 18%; }
  .spread__b { grid-column: 10 / span 3; }
  .spread__c { grid-column: 8 / span 5; align-self: end; }
  .spread__c .photo { aspect-ratio: 4 / 3; }
}

/* ---------- Gallery ---------- */
.gallery { padding-bottom: var(--section); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .filters { flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; } }
.chip {
  flex: none; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--ivory-dim);
  font-size: .92rem; font-weight: 400; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { color: var(--ivory); border-color: var(--ivory-dim); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.chip span { opacity: .6; margin-left: 4px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; grid-auto-flow: dense; gap: 10px; }
.grid li { min-width: 0; }
.grid li.tall { grid-row: span 2; }
.grid li.wide { grid-column: span 2; }
.grid li[hidden] { display: none; }
.grid .photo { position: relative; height: 100%; }
.grid .photo::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  font-size: .85rem; text-align: left; color: var(--ivory);
  background: linear-gradient(0deg, rgba(21,19,17,.85), rgba(21,19,17,0));
  opacity: 0; transition: opacity .3s;
}
.grid .photo:hover::after, .grid .photo:focus-visible::after { opacity: 1; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 27vw; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 236px; gap: 14px; } }
@media (prefers-reduced-motion: no-preference) {
  .grid li { animation: fade .5s var(--ease) both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ivory-dim); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ivory); font-size: .95rem; font-weight: 400;
  transition: border-color .2s;
}
.social-links a:hover { border-color: var(--brass); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.social-links--stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.social-links--stack a { border: 0; padding-inline: 0; min-height: 40px; }
.social-links--stack a:hover { color: var(--brass-hi); }
.social-links .handle { color: var(--ivory-dim); font-weight: 300; }

/* ---------- Services ---------- */
.services { padding-block: var(--section); background: var(--ink-deep); border-block: 1px solid var(--line); }
.services__layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.services__panel { display: none; }
@media (min-width: 960px) {
  .services__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .services__panel { display: block; position: sticky; top: calc(var(--nav-h) + 32px); }
}
.services__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ink-raised); }
.services__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); opacity: 0; transition: opacity .7s var(--ease), transform 1.6s var(--ease); transform: scale(1.04); }
.services__frame img.is-on { opacity: 1; transform: scale(1); }

.menu-list { border-top: 1px solid var(--line); }
.menu-item a {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 18px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background-color .3s;
}
.menu-item .thumb { grid-row: span 3; width: 76px; aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; background: var(--ink-raised); }
.menu-item .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.menu-item .name { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; font-variation-settings: "opsz" 60; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.menu-item .price { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--brass-hi); white-space: nowrap; }
.menu-item .note { color: var(--ivory-dim); font-size: 1rem; }
.menu-item .meta { display: flex; gap: 18px; font-size: .88rem; color: var(--ivory-dim); }
.menu-item .book { color: var(--brass-hi); font-weight: 400; }
.menu-item a:hover .book, .menu-item a:focus-visible .book { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 960px) {
  .menu-item a { grid-template-columns: minmax(0, 1fr) auto; padding: 26px 0; }
  .menu-item .thumb { display: none; }
  .menu-item .meta { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
  .menu-item a:hover, .menu-item.is-active a { background: linear-gradient(90deg, rgba(184,146,95,.07), rgba(184,146,95,0)); }
  .menu-item.is-active .name { color: var(--ivory); }
}
.menu-list--compact .menu-item a { padding: 16px 0; }
.menu-list--compact .menu-item .name { font-size: 1.35rem; }
.menu-list--compact .menu-item .thumb { width: 56px; }
.menu-list--compact .menu-item a { grid-template-columns: 56px minmax(0, 1fr); }
@media (min-width: 960px) { .menu-list--compact .menu-item a { grid-template-columns: minmax(0, 1fr) auto; } }
.menu-item.no-thumb .thumb { display: none; }
@media (max-width: 959px) { .menu-item.no-thumb a { grid-template-columns: minmax(0, 1fr); } }

.services__more { margin: 56px 0 18px; font-size: 1.6rem; }
.services__cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Reviews ---------- */
.reviews { padding-block: var(--section); }
.reviews__layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.reviews__photo .photo { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .reviews__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); }
  .reviews__photo .photo { aspect-ratio: 4 / 5; }
}
.reviews .section-head { margin-bottom: 32px; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.review-cards { grid-column: 1 / -1; }
.review-cards { display: grid; gap: 18px; }
@media (min-width: 800px) { .review-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.review { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-raised); display: grid; gap: 14px; align-content: start; }
.review .stars { color: var(--brass-hi); letter-spacing: 2px; }
.review blockquote { margin: 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.45; font-variation-settings: "opsz" 24; }
.review .who { color: var(--ivory-dim); font-size: .92rem; }
.rating { display: inline-flex; align-items: baseline; gap: 12px; }
.rating strong { font-family: var(--display); font-size: 2.4rem; font-weight: 500; }

/* ---------- Visit ---------- */
.visit { padding-bottom: var(--section); }
.visit__layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.visit__photo .photo { aspect-ratio: 1 / 1; }
@media (max-width: 899px) { .visit__info { order: -1; } }
@media (min-width: 900px) {
  .visit__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
  .visit__photo .photo { aspect-ratio: 4 / 5; }
}
.visit__address { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; font-variation-settings: "opsz" 60; margin-top: -24px; }
.visit__details { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 24px 0 0; color: var(--ivory-dim); }
.visit__details dt { color: var(--ivory); font-weight: 400; }
.visit__details dd { margin: 0; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background:
  repeating-linear-gradient(0deg, transparent 0 46px, rgba(241,234,223,.04) 46px 47px),
  repeating-linear-gradient(90deg, transparent 0 46px, rgba(241,234,223,.04) 46px 47px), var(--ink-raised); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.map__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.map__pin { width: 30px; fill: var(--brass); filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.map__note { color: var(--ivory-dim); font-size: .9rem; max-width: 28rem; }
.map.has-embed .map__fallback { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-deep); padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .footer__layout { grid-template-columns: 1.4fr 1fr 1fr auto; } }
.footer__brand img { width: 190px; margin-bottom: 20px; }
.footer__brand address { color: var(--ivory-dim); }
.footer__phone { display: block; margin-top: 6px; }
.footer__phone a { text-decoration: none; }
.footer__nav { display: grid; align-content: start; gap: 4px; }
.footer__nav a { text-decoration: none; color: var(--ivory-dim); padding: 8px 0; }
.footer__nav a:hover { color: var(--ivory); }
.footer__social p { color: var(--ivory); margin-bottom: 4px; }
.footer__legal { margin-top: 56px; color: #857c70; font-size: .85rem; }

/* ---------- Quick bar (phones) ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(21,19,17,.92); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.quickbar.is-shown { transform: none; }
.quickbar .btn { min-height: 48px; padding: 10px 12px; }
@media (min-width: 960px) { .quickbar { display: none; } }
@media (max-width: 959px) { .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: #0d0c0b; display: grid; grid-template-rows: 1fr auto; }
.viewer[hidden] { display: none; }
.viewer__stage { position: relative; display: grid; place-items: center; padding: calc(16px + env(safe-area-inset-top)) 16px 0; min-height: 0; touch-action: pan-y; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .viewer__stage img { animation: fade .35s var(--ease); }
}
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); }
.viewer__caption { color: var(--ivory); font-size: .98rem; }
.viewer__count { color: var(--ivory-dim); margin-left: 8px; font-variant-numeric: tabular-nums; }
.viewer__controls { display: flex; gap: 8px; flex: none; }
.iconbtn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.iconbtn:hover { border-color: var(--ivory-dim); }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn--close { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.note { color: var(--ivory-dim); }

/* ---------- Language switch ---------- */
.lang { display: inline-flex; flex: none; padding: 3px; border: 1px solid rgba(241, 234, 223, .3); border-radius: 999px; background: rgba(21, 19, 17, .35); }
.lang button {
  min-width: 42px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ivory-dim); font-size: .84rem; font-weight: 500; letter-spacing: .06em;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.lang button:hover { color: var(--ivory); }
.lang button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
@media (max-width: 959px) { .nav { gap: 14px; } }
.footer__book { display: grid; justify-items: start; align-content: start; gap: 18px; }
.lang--footer { order: 2; background: transparent; }
