/* ============ Tokens ============ */
:root {
  --paper: #FFFFFF;
  --limestone: #F4F0EA;
  --travertine: #D8CDBE;
  --ink: #2F2A25;
  --dust: #746A61;            /* passes WCAG AA (IS 5568) on white and limestone */
  --rose: #7A3A42;
  --room: #26211D;            /* the dark screening-room panel */

  --display: "Bellefair", "Frank Ruhl Libre", "David", Georgia, serif;
  --body: "IBM Plex Sans Hebrew", "Assistant", "Arial Hebrew", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --line: #E6DDD2;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-xs: 0 1px 2px rgba(47, 42, 37, .06);
  --shadow-sm: 0 1px 2px rgba(47, 42, 37, .05), 0 10px 28px rgba(47, 42, 37, .06);
  --shadow-lg: 0 24px 70px rgba(38, 33, 29, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.a11y-still { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
p, li, dd { text-wrap: pretty; }
/* Lazy images fade in once loaded (only when JS is running, so images never stay hidden) */
html.js img[loading="lazy"] { opacity: 0; transition: opacity .7s var(--ease); }
html.js img[loading="lazy"].is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.js img[loading="lazy"] { opacity: 1; } }
::selection { background: var(--travertine); color: var(--ink); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; border-radius: 2px; }
[hidden] { display: none !important; }
/* While saved content loads (usually a fraction of a second), hide the bits it may change */
html.content-pending [data-text], html.content-pending img[data-image], html.content-pending #products { visibility: hidden; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  color: var(--dust); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .6; }
.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.12;
  margin: 0; text-wrap: balance;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 500; font-size: 16px; line-height: 1.2;
  box-shadow: var(--shadow-xs);
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { background: var(--rose); box-shadow: 0 8px 22px rgba(122, 58, 66, .22); }
.btn:active:not(:disabled), .cart-btn:active, .reel__btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; background: var(--ink); box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--block { width: 100%; }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { background: var(--limestone); color: var(--ink); border-color: var(--travertine); box-shadow: var(--shadow-xs); }
.link {
  background: none; border: 0; padding: 0 0 3px; cursor: pointer;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .22s var(--ease);
}
.link:hover { color: var(--rose); }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid, .nav--solid {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: rgba(47,42,37,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { font-family: var(--display); font-size: 26px; text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--dust); }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 400; position: relative; padding-block: 6px; }
.nav__links a::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta {
  font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 9px 18px; border: 1px solid var(--ink); border-radius: 999px;
  background: rgba(255,255,255,.82); box-shadow: var(--shadow-xs);
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cart-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ink); background: rgba(255,255,255,.82); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-xs);
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-btn__count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--rose); color: #fff; font-size: 11px; font-weight: 500; line-height: 20px; text-align: center;
}
.cart-btn__count:empty { display: none; }
.cart-btn__count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
/* Phone menu button: two lines */
.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ink);
  background: rgba(255,255,255,.82); cursor: pointer; place-items: center; align-content: center; gap: 5px;
  box-shadow: var(--shadow-xs);
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; }
.menu-btn:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .menu-btn { display: grid; }
}

/* Phone menu: a full-screen sheet */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
}
.menu[open] { display: flex; flex-direction: column; animation: menu-sheet .42s var(--ease); }
.menu.is-closing { animation: fade-out .28s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes menu-sheet { from { opacity: 0; transform: translateY(10px); } }
.menu::backdrop { background: transparent; backdrop-filter: none; }
.menu__head { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.menu nav { flex: 1; display: flex; align-items: center; }
.menu__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu__links a {
  font-family: var(--display); font-size: clamp(36px, 10vw, 48px); line-height: 1.25; text-decoration: none;
  display: inline-block;
}
.menu[open] .menu__links li { animation: menu-in .55s var(--ease) both; }
.menu[open] .menu__links li:nth-child(2) { animation-delay: .04s; }
.menu[open] .menu__links li:nth-child(3) { animation-delay: .08s; }
.menu[open] .menu__links li:nth-child(4) { animation-delay: .12s; }
.menu[open] .menu__links li:nth-child(5) { animation-delay: .16s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(12px); } }
.menu__foot p { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--dust); }
.menu__foot a:not(.btn) { color: inherit; }
@media (max-width: 520px) {
  .nav__cta--hide-sm { display: none; }
}

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--travertine); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 6px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand svg { width: 26px; height: 26px; flex: none; }
.footer__tag { margin: 0 0 14px; color: var(--dust); }
.footer h3 { font-size: 14px; font-weight: 500; color: var(--dust); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__biz { color: var(--dust); margin: 0; line-height: 1.9; }
.footer__cancel { font-weight: 500; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--limestone);
  color: var(--dust); font-size: 13px;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============ Dialogs ============ */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgba(38,33,29,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog[open]::backdrop { animation: fade-in .4s var(--ease); }
dialog.is-closing::backdrop { animation: fade-out .28s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.dlg-close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; cursor: pointer;
  background: var(--limestone); display: grid; place-items: center; flex: none;
  box-shadow: var(--shadow-xs);
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.dlg-close:hover { background: var(--paper); border-color: var(--line); }
.dlg-close:active { transform: scale(.96); }
.dlg-close svg { width: 16px; height: 16px; }

/* Cart sheet: slides in from the left (the end side in RTL) */
.sheet {
  position: fixed; inset: 0 auto 0 0; margin: 0;
  width: min(440px, 100%); height: 100%; max-height: 100%; max-width: 100%;
  box-shadow: var(--shadow-lg);
  border-inline-end: 1px solid var(--line);
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .5s var(--ease); }
@keyframes sheet-in { from { transform: translateX(-100%); } to { transform: none; } }
.sheet.is-closing { animation: sheet-out .32s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes sheet-out { to { transform: translateX(-100%); } }
.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px 20px; border-bottom: 1px solid var(--line);
}
.sheet__head h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0; }
.sheet__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.sheet__foot { padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: rgba(255,255,255,.92); }
.sheet__empty { text-align: center; padding: 72px 0; }
.sheet__empty p { color: var(--dust); margin: 0 0 24px; }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 76px; height: 92px; object-fit: cover; border-radius: 38px 38px 4px 4px; background: var(--limestone); }
.line__name { font-family: var(--display); font-size: 20px; line-height: 1.25; margin: 0 0 2px; }
.line__price { margin: 0 0 10px; color: var(--dust); font-size: 14px; }
.line__remove { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; color: var(--dust); text-decoration: underline; text-underline-offset: 3px; }
.line__remove:hover { color: var(--rose); }
.line__total { font-weight: 400; font-size: 15px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-xs); }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; border-radius: 50%; transition: background .2s var(--ease), color .2s var(--ease); }
.qty button:hover:not(:disabled) { background: var(--limestone); }
.qty button:disabled { color: var(--travertine); cursor: default; }
.qty output { min-width: 26px; text-align: center; font-size: 15px; }
.qty--lg button { width: 44px; height: 44px; }

.sum-row { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 6px; }
.sum-row--total { font-size: 19px; font-weight: 400; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--limestone); }
.sum-note { color: var(--dust); font-size: 13px; margin: 0 0 16px; }
.free-ship { font-size: 13px; margin: 0 0 14px; color: var(--dust); }
.free-ship__bar { display: block; height: 3px; background: var(--limestone); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.free-ship__bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .4s var(--ease); }

/* Product details */
.pd {
  width: min(1000px, calc(100% - 32px)); max-height: calc(100% - 32px);
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: var(--shadow-lg);
}
.pd[open] { animation: pd-in .42s var(--ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.pd.is-closing, .lightbox.is-closing { animation: pd-out .28s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes pd-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.pd__grid { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100vh - 32px); }
.pd__gallery { background: var(--limestone); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pd__main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 6px 6px; }
.pd__thumbs { display: flex; gap: 10px; }
.pd__thumbs button { width: 64px; height: 64px; padding: 0; border: 1px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--paper); box-shadow: var(--shadow-xs); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.pd__thumbs button:hover { transform: translateY(-1px); }
.pd__thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { padding: 28px 36px 36px; overflow-y: auto; display: flex; flex-direction: column; }
.pd__top { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.pd__info h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.2vw, 42px); line-height: 1.1; margin: 0 0 10px; }
.pd__price { font-size: 22px; font-weight: 400; margin: 0; }
.pd__vat { font-size: 13px; color: var(--dust); margin: 0 0 22px; }
.pd__desc { margin: 0 0 24px; white-space: pre-line; }
.specs { margin: 0 0 22px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--dust); }
.specs dd { margin: 0; text-align: left; }
.pd__note { font-size: 14px; color: var(--dust); margin: 0 0 26px; }
.pd__buy { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.pd__buy .btn { flex: 1; }
.pd__legal { font-size: 13px; color: var(--dust); margin: 16px 0 0; }
.pd__legal a { color: var(--ink); }
@media (max-width: 760px) {
  .pd { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
  .pd__grid { grid-template-columns: 1fr; max-height: none; height: 100%; overflow-y: auto; }
  .pd__gallery { padding: 20px 20px 16px; }
  .pd__main { aspect-ratio: 1; border-radius: 999px 999px 6px 6px; }
  .pd__info { overflow: visible; padding: 20px 20px 32px; }
  .pd__top { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; margin: 0; z-index: 2; }
  .pd__top .dlg-close { background: rgba(255,255,255,.9); }
}

/* ============ Forms ============ */
.field { display: grid; gap: 6px; }
.field label, .legend { font-size: 14px; font-weight: 500; }
.field .opt { color: var(--dust); font-weight: 300; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--travertine); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(47,42,37,.1); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(122,58,66,.12); }
.field__error { color: var(--rose); font-size: 13px; margin: 0; }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--ink); }
.check a { font-weight: 500; }

/* ============ Legal / document pages ============ */
.doc-page { padding-block: calc(72px + 72px) 120px; }
.doc { max-width: 760px; margin-inline: auto; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1.1; margin: 0 0 12px; }
.doc__meta { color: var(--dust); font-size: 14px; margin: 0 0 48px; }
.doc__lead { font-size: 19px; margin: 0 0 40px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.25; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--limestone); }
.doc h3 { font-size: 16px; font-weight: 500; margin: 24px 0 8px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-inline-start: 22px; margin: 0 0 16px; }
.doc .box { background: var(--limestone); border-radius: 14px; padding: 22px 24px; margin: 24px 0; }
.doc .box p:last-child { margin: 0; }
.doc nav ol { columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .doc nav ol { columns: 1; } }

/* ============ Accessibility menu ============ */
.a11y-btn {
  position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 18px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(38,33,29,.18);
  transition: background .3s, transform .3s var(--ease);
}
.a11y-btn:hover { background: var(--rose); transform: scale(1.05); }
.a11y-btn svg { width: 26px; height: 26px; }
.a11y-panel {
  position: fixed; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 18px; z-index: 60;
  width: min(300px, calc(100% - 36px)); background: var(--paper); border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 18px;
  animation: pd-in .36s var(--ease);
}
.a11y-panel h2 { font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.a11y-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button.opt-btn {
  border: 1px solid var(--line); background: var(--paper); border-radius: 10px;
  padding: 10px 8px; font-size: 14px; cursor: pointer; text-align: center; line-height: 1.3;
  box-shadow: var(--shadow-xs);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.a11y-panel button.opt-btn:hover { border-color: var(--travertine); background: var(--limestone); }
.a11y-panel button.opt-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.a11y-panel__foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.a11y-panel__foot button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-size: 13px; }

html.a11y-contrast { --dust: #4A423B; --travertine: #7D7268; --ink: #14110F; }
html.a11y-contrast body { color: var(--ink); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }
html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }

/* ============ Notices ============ */
.site-notice {
  position: fixed; z-index: 55; top: calc(84px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 12px 12px 18px;
  box-shadow: var(--shadow-lg); font-size: 15px;
  animation: toast-in .45s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.98); } }
.site-notice p { margin: 0; }
.site-notice .dlg-close { width: 32px; height: 32px; background: rgba(255,255,255,.12); color: var(--paper); }
.offline-pill {
  position: fixed; z-index: 70; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  margin: 0; width: max-content; max-width: calc(100% - 140px);
  background: var(--rose); color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; text-align: center;
  box-shadow: 0 10px 30px rgba(38,33,29,.25);
}

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
