/* === Antiari shared shell ============================================ */

:root{
  --ink-rgb: 27 25 23;
  --paper-rgb: 250 247 239;
  --parchment-rgb: 234 226 211;
  --parchment-mute-rgb: 184 173 153;
  --hairline-rgb: 200 192 182;
  --accent-antiari: 156 31 58;
  --gold: #b5945a;
}

html[data-lang="es"] [data-lang="en"],
html[data-lang="en"] [data-lang="es"]{ display: none !important; }

/* === Top fixed nav ==================================================== */
.antiari-nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  background: rgb(var(--ink-rgb) / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgb(255 255 255 / 0.1);
}
.antiari-nav-inner{
  max-width: 1240px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Antiari · Lab mark — horizontal lockup: Antiari | Lab.
   "Antiari" matches antiari.ai exactly (Georgia serif 21px / 400 / upright / shimmer).
   "Lab" sits to its right behind a gold hairline divider, in Fraunces italic gold-soft pulse. */
.antiari-mark{
  display: flex; flex-direction: row; align-items: baseline; gap: 0;
  text-decoration: none; line-height: 1.05;
}
.antiari-mark .brand{
  font-family: Georgia, 'Playfair Display', 'Times New Roman', serif;
  font-style: normal; font-weight: 400;
  font-size: 21px; line-height: 1.05;
  letter-spacing: 0;
  padding-right: 14px; position: relative;
  background: linear-gradient(110deg,
    rgb(var(--parchment-rgb)) 0%, rgb(var(--parchment-rgb)) 35%,
    #fff 50%,
    rgb(var(--parchment-rgb)) 65%, rgb(var(--parchment-rgb)) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: antiari-shimmer 5s linear infinite;
}
.antiari-mark .brand::after{
  content: ""; position: absolute; right: 0; top: 8%;
  width: 1px; height: 84%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgb(214 184 120 / 0.50) 50%,
    transparent 100%);
}
.antiari-mark .sub{
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 17px; line-height: 1.05;
  letter-spacing: -0.008em; text-transform: none;
  margin-left: 14px;
  color: #d6b878;
  text-shadow: 0 0 14px rgb(214 184 120 / 0.12);
  animation: sub-pulse 4.5s ease-in-out infinite;
  /* Hard-override in case any other .sub rule ever sets these */
  max-height: none !important;
  overflow: visible !important;
  display: inline-block !important;
  white-space: nowrap;
}
@keyframes sub-pulse{
  0%, 100%{ color: #d6b878; text-shadow: 0 0 14px rgb(214 184 120 / 0.12); }
  50%     { color: #f0d99a; text-shadow: 0 0 18px rgb(240 217 154 / 0.28); }
}
@media (prefers-reduced-motion: reduce){
  .antiari-mark .sub{ animation: none; color: #d6b878; }
}
@keyframes antiari-shimmer{
  0%{background-position: 220% center}
  100%{background-position: -120% center}
}
@media (prefers-reduced-motion: reduce){
  .antiari-mark .brand{
    animation: none; background: none;
    -webkit-text-fill-color: rgb(var(--parchment-rgb)); color: rgb(var(--parchment-rgb));
  }
}

.antiari-links{
  display: flex; gap: 24px; align-items: center; flex: 1; justify-content: center;
}
.antiari-links a{
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgb(var(--parchment-mute-rgb)); text-decoration: none;
  font-weight: 500; transition: color 150ms ease; white-space: nowrap;
}
.antiari-links a:hover{ color: rgb(var(--parchment-rgb)); }
.antiari-links a.active{ color: rgb(var(--parchment-rgb)); }
.antiari-links a.active::after{
  content: ""; display: block; height: 1px; width: 100%;
  background: rgb(var(--parchment-rgb) / 0.45); margin-top: 2px;
}
/* Legacy standalone ES/EN pill — kept hidden by default since the language toggle
   now lives inside the avatar dropdown. Pages can still use it if they opt in. */
.antiari-lang{ display: none; }

/* === Right-side trio: avatar (with dropdown) · GET INVOLVED · theme === */
.antiari-right{
  display: flex; align-items: center; gap: 12px;
  position: relative;
}

.antiari-avatar-wrap{ position: relative; }
.antiari-avatar{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: rgb(var(--parchment-rgb));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background 150ms ease, border-color 150ms ease;
}
.antiari-avatar:hover{ background: rgb(255 255 255 / 0.14); border-color: rgb(214 184 120 / 0.5); }
.antiari-avatar svg{ width: 18px; height: 18px; }

.antiari-avatar-menu{
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 220px;
  background: rgb(var(--ink-rgb));
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.4);
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}
.antiari-avatar-menu[hidden]{ display: none; }
.antiari-avatar-menu .avi-item{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: rgb(var(--parchment-rgb));
  text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  cursor: pointer; width: 100%; background: transparent; border: 0;
}
.antiari-avatar-menu .avi-item:hover{ background: rgb(255 255 255 / 0.06); }
.antiari-avatar-menu .avi-item svg{ width: 14px; height: 14px; opacity: 0.7; }
.antiari-avatar-menu .avi-divider{ height: 1px; background: rgb(255 255 255 / 0.08); margin: 6px 4px; }
.antiari-avatar-menu .avi-section-label{
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgb(var(--parchment-mute-rgb)); font-weight: 500;
  padding: 8px 12px 4px;
}
.antiari-avatar-menu .avi-lang{
  display: flex; gap: 4px;
  padding: 4px 12px 10px;
}
.antiari-avatar-menu .avi-lang button{
  flex: 1; padding: 8px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(var(--parchment-mute-rgb));
  font: 600 11px/1 'Inter', sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 8px; cursor: pointer;
  transition: all 150ms ease;
}
.antiari-avatar-menu .avi-lang button:hover{ background: rgb(255 255 255 / 0.08); color: rgb(var(--parchment-rgb)); }
.antiari-avatar-menu .avi-lang button.active{
  background: rgb(214 184 120 / 0.18);
  border-color: rgb(214 184 120 / 0.4);
  color: #d6b878;
}

.antiari-cta{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid rgb(214 184 120 / 0.5);
  border-radius: 999px;
  color: rgb(var(--parchment-rgb));
  text-decoration: none;
  font: 600 10.5px/1 'Inter', sans-serif;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}
.antiari-cta:hover{
  background: rgb(214 184 120 / 0.16);
  border-color: rgb(214 184 120 / 0.8);
  color: #f0d99a;
}

.antiari-theme{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(var(--parchment-rgb));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  font-size: 15px; line-height: 1;
  transition: background 150ms ease, border-color 150ms ease;
}
.antiari-theme:hover{ background: rgb(255 255 255 / 0.08); border-color: rgb(214 184 120 / 0.5); }
.antiari-theme [data-theme-light="show"],
.antiari-theme [data-theme-dark="show"]{ display: inline; }
html[data-theme="dark"] .antiari-theme [data-theme-light="show"]{ display: none; }
html[data-theme="light"] .antiari-theme [data-theme-dark="show"]{ display: none; }

@media (max-width: 760px){
  .antiari-right{ gap: 8px; }
  .antiari-cta{ padding: 8px 14px; font-size: 9.5px; letter-spacing: 0.18em; }
  .antiari-theme{ display: none; }  /* theme available inside avatar dropdown on mobile */
}
@media (max-width: 460px){
  .antiari-cta .cta-label{ display: none; }
  .antiari-cta{ width: 36px; height: 36px; padding: 0; justify-content: center; }
}

/* Reserve space for both fixed nav bars */
body{ padding-top: 64px; padding-bottom: 60px; box-sizing: border-box; }

@media (max-width: 760px){
  .antiari-nav-inner{ gap: 8px; padding: 0 16px; height: 60px; }
  body{ padding-top: 60px; }
  .antiari-mark .brand{ font-size: 19px; padding-right: 12px; }
  .antiari-mark .sub{ font-size: 15px; margin-left: 12px; }
  .antiari-links{ gap: 16px; }
  .antiari-links a:nth-child(n+4){ display: none; }
}
@media (max-width: 460px){
  .antiari-links a:nth-child(n+3){ display: none; }
}

/* === Bottom fixed nav (mobile-app-style) ============================== */
.antiari-bottom-nav{
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000;
  background: rgb(var(--ink-rgb) / 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 0.5px solid rgb(255 255 255 / 0.1);
  display: grid; grid-template-columns: 1fr 1.4fr 1fr 1fr;
  align-items: center;
  font-family: 'Inter', sans-serif;
  height: 60px; padding: 0 4px;
}
.bn-btn{
  background: transparent; border: 0;
  color: rgb(var(--parchment-mute-rgb));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px; cursor: pointer; text-decoration: none;
  font: 500 9.5px/1 'Inter', sans-serif;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 150ms ease; height: 100%;
}
.bn-btn:hover{ color: rgb(var(--parchment-rgb)); }
.bn-btn .bn-icon{ font-size: 18px; line-height: 1; font-weight: 300; }
.bn-btn .bn-label{ line-height: 1; }
.bn-brand{ color: rgb(var(--parchment-rgb)); }
.bn-brand .bn-mark{
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  font-size: 19px; letter-spacing: -0.005em; text-transform: none;
  background: linear-gradient(110deg,
    rgb(var(--parchment-rgb)) 0%, rgb(var(--parchment-rgb)) 35%,
    #fff 50%,
    rgb(var(--parchment-rgb)) 65%, rgb(var(--parchment-rgb)) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: antiari-shimmer 5s linear infinite;
  font-weight: 500;
}
.bn-plus .bn-icon{
  font-size: 22px; font-weight: 300;
  background: rgb(var(--accent-antiari) / 0.18);
  color: rgb(var(--parchment-rgb));
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms ease;
}
.bn-plus:hover .bn-icon{ background: rgb(var(--accent-antiari) / 0.35); }
@media (max-width: 380px){
  .bn-btn{ font-size: 8.5px; letter-spacing: 0.18em; }
  .bn-brand .bn-mark{ font-size: 17px; }
}

/* === Bottom sheet (the +) ============================================ */
.antiari-sheet{
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: flex-end;
  pointer-events: none;
}
.antiari-sheet[hidden]{ display: none; }
.antiari-sheet-backdrop{
  position: absolute; inset: 0;
  background: rgb(0 0 0 / 0.55);
  opacity: 0; transition: opacity 250ms ease;
  pointer-events: auto;
}
.antiari-sheet.open .antiari-sheet-backdrop{ opacity: 1; }
.antiari-sheet-content{
  position: relative;
  background: rgb(var(--ink-rgb));
  color: rgb(var(--parchment-rgb));
  width: 100%;
  max-height: 78vh; overflow-y: auto;
  border-top-left-radius: 22px; border-top-right-radius: 22px;
  border-top: 0.5px solid rgb(255 255 255 / 0.12);
  padding: 16px 24px 100px;
  transform: translateY(100%);
  transition: transform 380ms cubic-bezier(.32,.72,0,1);
  pointer-events: auto;
  font-family: 'Inter', sans-serif;
}
.antiari-sheet.open .antiari-sheet-content{ transform: translateY(0); }
@media (min-width: 720px){
  .antiari-sheet-content{ max-width: 560px; margin: 0 auto; }
}
.antiari-sheet-grab{
  width: 36px; height: 4px;
  background: rgb(255 255 255 / 0.2);
  border-radius: 999px;
  margin: 4px auto 14px;
}
.antiari-sheet-close{
  position: absolute; top: 16px; right: 16px;
  background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(var(--parchment-rgb));
  font-size: 18px; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.antiari-sheet h3{
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  font-weight: 500; font-size: 24px; margin: 4px 0 22px;
  color: rgb(var(--parchment-rgb)); letter-spacing: -0.01em;
}
.antiari-sheet-menu{
  list-style: none; padding: 0; margin: 0;
}
.antiari-sheet-menu > li{
  border-top: 1px solid rgb(255 255 255 / 0.07);
}
.antiari-sheet-menu > li:last-child{ border-bottom: 1px solid rgb(255 255 255 / 0.07); }
.sheet-item{
  width: 100%; background: transparent; border: 0;
  color: rgb(var(--parchment-rgb));
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  font: 500 13px/1 'Inter', sans-serif;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; text-align: left;
}
.sheet-item .chev{
  transition: transform 280ms ease;
  color: rgb(var(--parchment-mute-rgb));
  font-size: 12px;
}
.sheet-item.open .chev{ transform: rotate(180deg); color: rgb(var(--gold)); }
.sheet-item.open{ color: rgb(var(--gold)); }
/* Scoped to .antiari-sheet — these collapse-rules previously leaked onto every .sub
   on the page (including the brand mark's <span class="sub">Lab</span>) and made
   Lab disappear because max-height:0 + overflow:hidden was inherited. */
.antiari-sheet .sub{
  list-style: none; padding: 0; margin: 0;
  max-height: 0; overflow: hidden;
  transition: max-height 320ms ease;
}
.antiari-sheet .sheet-item.open + .sub{
  max-height: 600px; padding-bottom: 10px;
}
.antiari-sheet .sub > li{ padding: 6px 4px 6px 0; }
.antiari-sheet .sub > li > a{
  display: block;
  color: rgb(var(--parchment-rgb));
  font-size: 13.5px; text-decoration: none;
  letter-spacing: 0.02em; padding: 6px 0;
  border-bottom: 1px dotted rgb(255 255 255 / 0.05);
}
.antiari-sheet .sub > li > a:hover{ color: rgb(var(--gold)); }
.antiari-sheet .sub-sub{
  list-style: none; padding: 4px 0 4px 16px; margin: 0;
}
.antiari-sheet .sub-sub li a{
  display: block; color: rgb(var(--parchment-mute-rgb));
  font-size: 12.5px; padding: 4px 0;
  text-decoration: none; letter-spacing: 0.02em;
}
.antiari-sheet .sub-sub li a:hover{ color: rgb(var(--parchment-rgb)); }

/* === Existing simple footer (explorer pages) ========================== */
.antiari-foot{
  margin-top: 60px; padding: 36px 20px 44px;
  background: rgb(var(--ink-rgb));
  color: rgb(var(--parchment-mute-rgb));
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.antiari-foot-inner{
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.antiari-foot .brand{
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  font-size: 16px; color: rgb(var(--parchment-rgb)); margin-bottom: 4px;
}
.antiari-foot .meta{
  font-size: 11.5px; letter-spacing: 0.04em; line-height: 1.55; max-width: 460px;
}
.antiari-foot .meta a{ color: rgb(var(--parchment-rgb)); text-decoration: underline; text-underline-offset: 2px; }
.antiari-foot nav{ display: flex; gap: 18px; flex-wrap: wrap; }
.antiari-foot nav a{
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgb(var(--parchment-mute-rgb)); text-decoration: none; font-weight: 500;
}
.antiari-foot nav a:hover{ color: rgb(var(--parchment-rgb)); }

/* === Big footer (landing) ============================================ */
.antiari-foot-big{
  background: rgb(var(--ink-rgb));
  color: rgb(var(--parchment-mute-rgb));
  padding: 64px 24px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.antiari-foot-big-inner{ max-width: 1240px; margin: 0 auto; }
.antiari-foot-cols{
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px; padding-bottom: 48px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
@media (max-width: 900px){ .antiari-foot-cols{ grid-template-columns: 1fr; gap: 36px; } }
.antiari-foot-big .saphi-mark{
  display: inline-block; margin: 0 0 22px;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 200ms ease;
}
.antiari-foot-big .saphi-mark:hover{ opacity: 1; }
.antiari-foot-big .saphi-mark img{
  height: 34px; width: auto; display: block;
}
.antiari-foot-big p{
  font-size: 14px; line-height: 1.65; color: rgb(var(--parchment-mute-rgb));
  margin: 0 0 14px; max-width: 46ch;
}
.antiari-foot-big p a{
  color: rgb(var(--parchment-rgb)); text-decoration: underline; text-underline-offset: 2px;
}
.antiari-foot-big .col-title{
  font-size: 10.5px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.22em; color: rgb(var(--parchment-mute-rgb));
  margin-bottom: 16px;
}
.locations-list, .intake-list{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.locations-list li{
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: rgb(var(--parchment-rgb));
}
.locations-list .city{ display: flex; align-items: center; gap: 9px; }
.locations-list .ico{
  width: 13px; height: 13px;
  border: 1px solid rgb(var(--parchment-mute-rgb));
  border-radius: 50%; position: relative; display: inline-block;
}
.locations-list .ico::before,
.locations-list .ico::after{
  content: ""; position: absolute; left: 50%; top: 50%;
  background: rgb(var(--parchment-mute-rgb));
  transform-origin: 0 0;
}
.locations-list .ico::before{ width: 3.5px; height: 1px; transform: rotate(-90deg); }
.locations-list .ico::after { width: 5px;   height: 1px; transform: rotate(-20deg); }
.locations-list time{
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 13px; color: rgb(var(--parchment-mute-rgb));
  letter-spacing: 0.03em;
}
.intake-list li{
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; gap: 12px;
}
.intake-list .audience{ color: rgb(var(--parchment-rgb)); }
.intake-list a{
  color: rgb(var(--parchment-rgb)); text-decoration: underline; text-underline-offset: 3px;
  font-size: 13px; white-space: nowrap;
}
.intake-list a:hover{ color: #fff; }
.antiari-foot-section{
  padding: 28px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.antiari-foot-section h4{
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  font-weight: 500; font-size: 18px; margin: 0 0 14px;
  color: rgb(var(--parchment-rgb)); letter-spacing: -0.005em;
}
.antiari-foot-sources{
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: 13.5px; color: rgb(var(--parchment-mute-rgb));
}
.antiari-foot-disclaimer{
  font-size: 13px; line-height: 1.65; color: rgb(var(--parchment-mute-rgb));
  max-width: 84ch;
}
.antiari-foot-disclaimer b{ color: rgb(var(--parchment-rgb)); font-weight: 500; }
.antiari-foot-bottom{
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 30px; gap: 24px; flex-wrap: wrap;
}
.theme-btn{
  background: transparent; border: 1px solid rgb(255 255 255 / 0.16);
  color: rgb(var(--parchment-rgb));
  padding: 9px 16px; border-radius: 999px;
  font: 500 10.5px/1 'Inter', sans-serif;
  text-transform: uppercase; letter-spacing: 0.2em;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background 150ms ease;
}
.theme-btn:hover{ background: rgb(255 255 255 / 0.06); }
.foot-social{ display: flex; gap: 22px; }
.foot-social a{
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgb(var(--parchment-mute-rgb)); text-decoration: none; font-weight: 500;
}
.foot-social a:hover{ color: rgb(var(--parchment-rgb)); }
.foot-copyright{
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgb(var(--parchment-mute-rgb)); font-weight: 500;
}
@media (max-width: 760px){
  .antiari-foot-bottom{ flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 24px; }
}

/* === Landing dark/light theme ======================================== */
html[data-theme="dark"] body.landing-page{
  --ink:#e8dec9; --mut:#8c8175; --line:#2d251e; --bg:#181410; --card:#1f1a14;
}
html[data-theme="dark"] body.landing-page .card{ background: #221c16; border-color: #2d251e; color: var(--ink); }
html[data-theme="dark"] body.landing-page .card p{ color: rgb(232 222 201 / 0.86); }
[data-theme-light="show"], [data-theme-dark="show"]{ display: inline-flex; align-items: center; gap: 8px; }
html[data-theme="dark"] [data-theme-light="show"]{ display: none; }
html[data-theme="light"] [data-theme-dark="show"]{ display: none; }

/* === Saphi splash ====================================================
   Warm-ink backdrop (not stark #000) and a frosted-glass Skip pill that
   stays legible while the bright Saphi animation plays underneath. */
#saphi-splash{ position: fixed; inset: 0;
  background: #0e0a07;
  z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 350ms ease;
}
#saphi-splash[hidden]{ display: none; }
#saphi-splash.fade-out{ opacity: 0; pointer-events: none; }
#saphi-video{ max-width: 100%; max-height: 100%; height: auto; width: auto; object-fit: contain; }
@media (min-width: 768px){ #saphi-video{ max-height: 94vh; } }

.splash-skip{
  position: absolute; top: 22px; right: 24px;
  background: rgb(0 0 0 / 0.55);
  color: rgb(244 231 211 / 0.95);
  border: 1px solid rgb(255 255 255 / 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 18px; border-radius: 999px;
  font: 600 11.5px/1 'Inter', -apple-system, sans-serif;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 16px rgb(0 0 0 / 0.35);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.splash-skip:hover{
  background: rgb(0 0 0 / 0.75); color: #fff;
  border-color: rgb(255 255 255 / 0.32);
}

/* === Map full-viewport layout adjustment ============================== */
/* When the page sets body.map-page, the existing #wrap height must subtract
   the bottom nav as well. Page-specific CSS sets the value. */
body.map-page{ overflow: hidden; }
