/*
Theme Name: Art Atlas Site
Theme URI: https://artatlas.app/
Author: Art Atlas
Author URI: https://artatlas.app/
Description: Premium WordPress theme for the official Art Atlas mobile app website, with App Store and Google Play landing sections, art history SEO content, legal pages, support, privacy, terms, and data deletion templates.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: art-atlas-site
Tags: app, education, portfolio, landing-page, custom-logo, custom-menu, responsive
*/

:root {
  --ink: #17110b;
  --ink-2: #0b1324;
  --panel: rgba(42, 29, 18, 0.78);
  --panel-solid: #2a1d12;
  --panel-soft: rgba(255, 240, 209, 0.07);
  --ivory: #fff0d1;
  --muted: #c5ad8d;
  --gold: #d9b56a;
  --gold-2: #ebbe70;
  --store-gold-a: #f4d58a;
  --store-gold-b: #d9b56a;
  --store-gold-c: #b77d3c;
  --bronze: #b77d3c;
  --wine: #6c3328;
  --navy: #0b1324;
  --jade: #67715f;
  --line: rgba(235, 190, 112, 0.2);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

/* Download gateway: deliberately scoped so the rest of the WordPress theme is unchanged. */
.atlas-download-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 74% 18%, rgba(49, 95, 234, 0.2), transparent 24rem),
    radial-gradient(circle at 24% 76%, rgba(109, 53, 213, 0.16), transparent 24rem),
    linear-gradient(145deg, #080d1d 0%, #0b1023 52%, #111a35 100%);
}

.atlas-download-page::before {
  opacity: 0.35;
}

.atlas-download-page .site-header {
  grid-template-columns: auto 1fr auto;
  margin-top: 10px;
  border-color: rgba(243, 189, 78, 0.18);
  background: rgba(8, 13, 29, 0.82);
  backdrop-filter: blur(12px);
}

.atlas-download-page .primary-nav,
.atlas-download-page .header-actions,
.atlas-download-page .menu-toggle,
.atlas-download-page .mobile-dock {
  display: none !important;
}

.atlas-download-page .language-switcher {
  grid-column: 3;
}

.atlas-download-page #content {
  min-height: calc(100svh - 84px);
}

.download-gateway {
  position: relative;
  display: grid;
  min-height: calc(100svh - 176px);
  place-items: center;
  width: min(calc(100% - 28px), 760px);
  margin: 0 auto;
  padding: 24px 0;
  isolation: isolate;
}

.download-atmosphere {
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  opacity: 0.34;
  pointer-events: none;
}

.download-atmosphere-blue {
  top: 4%;
  right: 2%;
  background: radial-gradient(circle, rgba(49, 95, 234, 0.5), transparent 68%);
}

.download-atmosphere-gold {
  bottom: 4%;
  left: 4%;
  background: radial-gradient(circle, rgba(184, 137, 45, 0.3), transparent 68%);
}

.download-panel {
  position: relative;
  width: min(100%, 560px);
  padding: 26px clamp(18px, 5vw, 44px) 22px;
  overflow: hidden;
  border: 1px solid rgba(243, 189, 78, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(11, 16, 35, 0.86);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.download-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 42px;
  left: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 153, 0.58), transparent);
}

.download-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 11px;
  border: 1px solid rgba(243, 189, 78, 0.24);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(49, 95, 234, 0.28);
}

.download-eyebrow {
  color: #f3bd4e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.45px;
  line-height: 1.2;
  text-transform: uppercase;
}

.download-panel h1 {
  margin: 8px auto 7px;
  color: #fff7e8;
  font-family: Marcellus, "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 6vw, 39px);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.06;
  text-wrap: balance;
}

.download-description {
  color: rgba(255, 247, 232, 0.7);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.download-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.download-store {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff7e8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.download-store:hover,
.download-store:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(243, 189, 78, 0.5);
  background: rgba(255, 255, 255, 0.11);
}

.download-store-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
}

.download-store-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.download-arrow {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.68;
  text-align: right;
}

html[data-download-platform="ios"] .download-store-apple,
html[data-download-platform="android"] .download-store-google {
  border-color: rgba(255, 222, 145, 0.55);
  background: linear-gradient(135deg, #f3bd4e, #b8892d);
  box-shadow: 0 12px 28px rgba(184, 137, 45, 0.24);
  color: #111522;
}

.download-status {
  display: none;
  margin-top: 10px;
  color: rgba(255, 247, 232, 0.58);
  font-size: 11px;
  font-weight: 700;
}

html[data-download-platform="ios"] .download-status,
html[data-download-platform="android"] .download-status {
  display: block;
}

.download-languages {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
}

.download-languages a {
  display: grid;
  min-width: 36px;
  min-height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 247, 232, 0.58);
  font-size: 10px;
  font-weight: 800;
}

.download-languages a.is-active {
  border-color: rgba(243, 189, 78, 0.28);
  background: rgba(243, 189, 78, 0.1);
  color: #f3bd4e;
}

.download-tagline {
  margin-top: 9px;
  color: rgba(255, 247, 232, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
}

.atlas-download-page .site-footer {
  margin-top: 0;
  border-color: rgba(243, 189, 78, 0.12);
  background: rgba(8, 13, 29, 0.42);
}

.atlas-download-page .footer-inner {
  display: block;
  width: min(calc(100% - 28px), 720px);
  padding: 12px 0 16px;
}

.atlas-download-page .footer-inner > div,
.atlas-download-page .fine-print {
  display: none;
}

.atlas-download-page .footer-links {
  display: flex;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.atlas-download-page .footer-links a {
  color: rgba(255, 247, 232, 0.5);
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .atlas-download-page .site-header {
    width: calc(100% - 20px);
    margin-top: 8px;
    padding: 7px 8px;
    border-radius: 20px;
  }

  .atlas-download-page .brand-mark {
    width: 36px;
    height: 36px;
  }

  .atlas-download-page .brand-text small {
    display: none;
  }

  .atlas-download-page .language-switcher a {
    min-width: 27px;
    min-height: 28px;
    padding: 0 5px;
  }

  .download-gateway {
    min-height: calc(100svh - 150px);
    padding: 14px 0;
  }

  .download-panel {
    padding: 18px 15px 15px;
    border-radius: 22px;
  }

  .download-logo {
    width: 62px;
    height: 62px;
    margin-bottom: 8px;
  }

  .download-panel h1 {
    margin-top: 7px;
    font-size: clamp(25px, 8vw, 32px);
  }

  .download-actions {
    margin-top: 15px;
  }

  .download-store {
    min-height: 54px;
    font-size: 13px;
  }

  .download-languages {
    margin-top: 12px;
  }

  .atlas-download-page .footer-inner {
    padding: 9px 0 12px;
  }
}

@media (max-height: 700px) and (max-width: 560px) {
  .download-gateway {
    min-height: auto;
    padding: 10px 0;
  }

  .download-panel {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .download-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
  }

  .download-description {
    font-size: 12px;
  }

  .download-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .download-store {
    min-height: 48px;
  }

  .download-languages {
    margin-top: 8px;
  }

  .download-tagline {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-store {
    transition: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 16% 10%, rgba(108, 51, 40, 0.3), transparent 31rem),
    radial-gradient(circle at 82% 7%, rgba(11, 19, 36, 0.62), transparent 35rem),
    radial-gradient(circle at 50% 92%, rgba(217, 181, 106, 0.13), transparent 28rem),
    linear-gradient(145deg, #17110b 0%, #21160f 44%, #0b1324 100%);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(235, 190, 112, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 125, 60, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(calc(100% - 28px), var(--max));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(235, 190, 112, 0.2);
  border-radius: 999px;
  background: rgba(23, 17, 11, 0.68);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.28);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(23, 17, 11, 0.9);
  border-color: rgba(235, 190, 112, 0.34);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #17110b;
  border: 1px solid rgba(235, 190, 112, 0.38);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong,
.footer-brand span {
  font-family: Marcellus, "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list li {
  position: relative;
}

.nav-list .menu-item-has-children > a,
.nav-list .page_item_has_children > a {
  gap: 7px;
  padding-right: 12px;
}

.nav-list .menu-item-has-children > a::after,
.nav-list .page_item_has_children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.82;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-list .menu-item-has-children:hover > a::after,
.nav-list .menu-item-has-children:focus-within > a::after,
.nav-list .page_item_has_children:hover > a::after,
.nav-list .page_item_has_children:focus-within > a::after {
  opacity: 1;
  transform: translateY(1px) rotate(225deg);
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 246, 223, 0.82);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  transition: background 160ms ease, color 160ms ease;
}

.nav-list a:hover {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.08);
}

.nav-list .sub-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 80;
  display: grid;
  min-width: 190px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid rgba(235, 190, 112, 0.24);
  border-radius: 16px;
  background: rgba(23, 17, 11, 0.95);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-list .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 8px);
}

.nav-list .sub-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 12px;
  white-space: normal;
}

.header-actions,
.header-action-list {
  display: flex;
  gap: 8px;
}

.header-action-list {
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-action-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 226, 139, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.42), rgba(255, 248, 220, 0.02) 44%),
    linear-gradient(135deg, var(--store-gold-a), var(--store-gold-b) 52%, var(--store-gold-c));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 30px rgba(121, 86, 24, 0.22);
  color: #130b05;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.store-pill,
.store-card {
  border: 1px solid rgba(255, 226, 139, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.42), rgba(255, 248, 220, 0.02) 44%),
    linear-gradient(135deg, var(--store-gold-a), var(--store-gold-b) 52%, var(--store-gold-c));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 30px rgba(121, 86, 24, 0.22);
}

.store-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: #130b05;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.store-pill-google,
.store-pill-apple,
.header-action-list .store-pill-apple a,
.header-action-list .store-pill-google a,
.header-action-list li a {
  color: #130b05;
}

.store-pill-google,
.header-action-list .store-pill-google a,
.header-action-list li:nth-child(2) a {
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.36), rgba(255, 248, 220, 0.02) 44%),
    linear-gradient(135deg, #efd37a, #cca44c 54%, #8f6828);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 246, 223, 0.08);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold);
}

.hero {
  position: relative;
  min-height: min(860px, calc(100vh - 24px));
  display: grid;
  align-items: center;
  width: min(calc(100% - 28px), 1360px);
  margin: -68px auto 0;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 72% 28%, rgba(11, 19, 36, 0.42), transparent 34rem),
    radial-gradient(circle at 44% 72%, rgba(183, 125, 60, 0.16), transparent 26rem),
    linear-gradient(90deg, rgba(23, 17, 11, 0.95) 0%, rgba(23, 17, 11, 0.72) 38%, rgba(11, 19, 36, 0.32) 100%),
    linear-gradient(to bottom, rgba(23, 17, 11, 0.6), rgba(23, 17, 11, 0.25), rgba(11, 19, 36, 0.88));
}

.hero-art img {
  position: absolute;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  opacity: 0.68;
  border: 1px solid rgba(255, 246, 223, 0.1);
  box-shadow: var(--shadow);
  animation: artFloat 12s ease-in-out infinite;
}

.hero-art img:nth-child(1) {
  right: 7%;
  top: 16%;
  width: min(38vw, 520px);
  aspect-ratio: 0.78;
  transform: rotate(3deg);
}

.hero-art img:nth-child(2) {
  right: 28%;
  bottom: 12%;
  width: min(27vw, 360px);
  aspect-ratio: 0.78;
  transform: rotate(-5deg);
  animation-delay: -4s;
}

.hero-art img:nth-child(3) {
  right: -3%;
  bottom: 10%;
  width: min(31vw, 430px);
  aspect-ratio: 0.78;
  transform: rotate(8deg);
  animation-delay: -8s;
}

@keyframes artFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(680px, 100%);
  padding-left: clamp(0px, 4vw, 54px);
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 8px 0 18px;
  font-family: "Cormorant Garamond", Marcellus, Georgia, serif;
  font-weight: 600;
  font-size: clamp(68px, 12vw, 158px);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--ivory);
  text-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.hero-lede {
  width: min(580px, 100%);
  color: rgba(255, 246, 223, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-card {
  display: grid;
  gap: 1px;
  min-width: 178px;
  min-height: 64px;
  justify-content: start;
  padding: 11px 18px 12px;
  border-radius: var(--radius);
  color: #130b05;
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.store-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 236, 166, 0.82);
  filter: brightness(1.04) saturate(1.04);
}

.store-card small {
  color: rgba(19, 11, 5, 0.68);
  font-size: 11px;
  font-weight: 700;
}

.store-card strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.store-card.google {
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.36), rgba(255, 248, 220, 0.02) 44%),
    linear-gradient(135deg, #efd37a, #cca44c 54%, #8f6828);
  color: #130b05;
}

.store-card.google small {
  color: rgba(19, 11, 5, 0.68);
}

.store-card.apple {
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.42), rgba(255, 248, 220, 0.02) 44%),
    linear-gradient(135deg, var(--store-gold-a), var(--store-gold-b) 52%, var(--store-gold-c));
  color: #130b05;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(235, 190, 112, 0.24);
  border-radius: 999px;
  color: rgba(255, 246, 223, 0.8);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.section {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  width: min(780px, 100%);
  margin-bottom: 30px;
}

.section-heading.compact {
  width: min(900px, 100%);
}

.section-heading h2,
.museum-copy h2,
.final-cta h2,
.page-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Marcellus, Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p,
.museum-copy p,
.keyword-columns p,
.feature-card p,
.policy-card p,
.site-footer p,
.legal-page p,
.page-hero p {
  color: rgba(255, 246, 223, 0.74);
}

.feature-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.policy-card,
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(103, 113, 95, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(255, 240, 209, 0.085), rgba(255, 240, 209, 0.032));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.feature-card,
.policy-card {
  min-height: 230px;
  padding: 22px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease, transform 450ms ease, border-color 160ms ease;
}

.feature-card.is-visible,
.policy-card.is-visible,
.museum-copy.is-visible,
.art-stack.is-visible,
.seo-section.is-visible {
  opacity: 1;
  transform: none;
}

.feature-card span,
.policy-card span {
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.feature-card h3,
.policy-card h3,
.post-card h2 {
  margin: 42px 0 10px;
  color: var(--ivory);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.08;
}

.feature-card:hover,
.policy-card:hover {
  border-color: rgba(235, 190, 112, 0.62);
}

.museum-band {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.museum-copy,
.art-stack,
.seo-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.museum-copy {
  display: grid;
  gap: 16px;
}

.art-stack {
  position: relative;
  min-height: 520px;
}

.art-stack::before {
  content: "";
  position: absolute;
  inset: 10% 8% 2% 20%;
  border: 1px solid rgba(235, 190, 112, 0.28);
  background: rgba(255, 240, 209, 0.04);
  transform: rotate(-4deg);
}

.art-stack img {
  position: absolute;
  width: 58%;
  border: 1px solid rgba(235, 190, 112, 0.28);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.art-stack img:first-child {
  left: 0;
  top: 5%;
  aspect-ratio: 0.78;
}

.art-stack img:last-child {
  right: 0;
  bottom: 0;
  aspect-ratio: 0.82;
}

.seo-section {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(108, 51, 40, 0.28), rgba(11, 19, 36, 0.12)),
    rgba(255, 240, 209, 0.055);
}

.keyword-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.keyword-columns strong {
  color: var(--gold);
}

.policy-grid {
  padding-top: 40px;
}

.policy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.policy-card h3 {
  margin-top: auto;
}

.final-cta,
.page-hero {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
  padding: 82px clamp(20px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(23, 17, 11, 0.68), rgba(11, 19, 36, 0.72)),
    url("assets/images/artwork-3.jpg") center / cover;
  box-shadow: var(--shadow);
}

.final-cta {
  margin-bottom: 80px;
}

.page-hero {
  margin-top: 42px;
}

.page-hero h1 {
  margin-top: 8px;
}

.legal-page,
.post-list {
  width: min(calc(100% - 28px), 860px);
  margin: 0 auto;
  padding: 56px 0 88px;
}

.legal-page {
  color: rgba(255, 246, 223, 0.84);
  font-size: 18px;
}

.legal-page p + p {
  margin-top: 20px;
}

.legal-page a,
.text-link {
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1px solid rgba(235, 190, 112, 0.42);
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  padding: 24px;
}

.post-card h2 {
  margin: 0 0 8px;
}

.site-footer {
  border-top: 1px solid rgba(235, 190, 112, 0.18);
  background: rgba(11, 19, 36, 0.68);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.fine-print {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid rgba(235, 190, 112, 0.14);
  font-size: 12px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .nav-list .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .nav-list .sub-menu::before {
    display: none;
  }

  .nav-list li:hover > .sub-menu,
  .nav-list li:focus-within > .sub-menu {
    transform: none;
  }

  .nav-list a {
    justify-content: center;
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 136px;
  }

  .hero-art img:nth-child(1) {
    right: -6%;
    top: 18%;
    width: 58vw;
  }

  .hero-art img:nth-child(2),
  .hero-art img:nth-child(3) {
    display: none;
  }

  .feature-grid,
  .policy-grid,
  .museum-band,
  .keyword-columns,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .art-stack {
    min-height: 430px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    width: calc(100% - 20px);
    margin-top: 14px;
    padding-bottom: 52px;
  }

  .hero-content {
    padding-left: 0;
  }

  .hero h1 {
    font-size: clamp(58px, 22vw, 92px);
  }

  .store-card {
    width: 100%;
  }

  .trust-strip span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }

  .section {
    width: calc(100% - 20px);
    padding: 58px 0;
  }

  .feature-grid,
  .policy-grid {
    gap: 10px;
  }

  .feature-card,
  .policy-card {
    min-height: 190px;
    padding: 18px;
  }

  .art-stack {
    min-height: 330px;
  }

  .seo-section,
  .final-cta,
  .page-hero {
    width: calc(100% - 20px);
    padding: 28px 18px;
  }

  .legal-page,
  .post-list {
    width: calc(100% - 20px);
  }
}

/* Art Atlas 1.1 mobile, multilingual, and Customizer extensions */
.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(235, 190, 112, 0.22);
  border-radius: 999px;
  background: rgba(255, 240, 209, 0.06);
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.language-switcher a.is-active {
  color: var(--ink);
  background: var(--gold);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-showcase {
  border-top: 1px solid rgba(235, 190, 112, 0.16);
  border-bottom: 1px solid rgba(235, 190, 112, 0.16);
}

.phone-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
}

.phone-frame {
  width: min(100%, 360px);
  min-height: 640px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(235, 190, 112, 0.32);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(11, 19, 36, 0.34), transparent 54%),
    linear-gradient(180deg, rgba(255, 240, 209, 0.1), rgba(255, 240, 209, 0.025));
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.phone-frame.is-visible,
.mobile-points article.is-visible {
  opacity: 1;
  transform: none;
}

.phone-bar {
  width: 88px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(255, 246, 223, 0.24);
}

.phone-screen {
  position: relative;
  min-height: 590px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  border-radius: 24px;
  border: 1px solid rgba(235, 190, 112, 0.22);
  background:
    linear-gradient(rgba(23, 17, 11, 0.72), rgba(11, 19, 36, 0.88)),
    url("assets/images/artwork-1.jpg") center / cover;
}

.phone-screen img {
  width: 86px;
  height: 86px;
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.phone-screen strong {
  font-family: Marcellus, "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 32px;
}

.phone-screen span {
  color: var(--muted);
  font-weight: 700;
}

.phone-tabs {
  position: absolute;
  bottom: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(260px, 70%);
}

.phone-tabs i {
  height: 4px;
  border-radius: 999px;
  background: rgba(235, 190, 112, 0.62);
}

.mobile-points {
  display: grid;
  gap: 14px;
}

.mobile-points article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 240, 209, 0.055);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.mobile-points strong {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.mobile-points span {
  color: rgba(255, 240, 209, 0.78);
  font-weight: 600;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.legal-index {
  padding-top: 56px;
}

.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 80;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: min(calc(100% - 18px), 460px);
  min-height: 66px;
  padding: 7px;
  border: 1px solid rgba(235, 190, 112, 0.28);
  border-radius: 999px;
  background: rgba(23, 17, 11, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
}

.mobile-dock a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  border-radius: 999px;
  color: rgba(255, 240, 209, 0.7);
  font-size: 9px;
  font-weight: 700;
}

.mobile-dock a.is-active,
.mobile-dock a:focus-visible {
  color: var(--ink);
  background: var(--gold);
}

.dock-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.dock-home::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 12px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
}

.dock-home::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.dock-history::before,
.dock-store::before,
.dock-privacy::before,
.dock-support::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.dock-history::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dock-store::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 10px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.dock-privacy::before {
  border-radius: 50%;
}

.dock-privacy::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 2px;
  height: 7px;
  background: currentColor;
  box-shadow: 0 -4px 0 currentColor;
}

.dock-support::before {
  border-radius: 50%;
}

.dock-support::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(35deg);
}

.reduce-theme-motion *,
.reduce-theme-motion *::before,
.reduce-theme-motion *::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
  }

  .primary-nav {
    order: 10;
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    display: none;
  }
}

@media (max-width: 980px) {
  .feature-grid,
  .policy-grid,
  .phone-grid {
    grid-template-columns: 1fr;
  }

  .mobile-dock {
    display: grid;
  }

  .has-mobile-dock {
    padding-bottom: 84px;
  }

  .phone-frame {
    min-height: 540px;
  }

  .phone-screen {
    min-height: 490px;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .language-switcher {
    justify-self: end;
  }

  .language-switcher a {
    min-width: 27px;
    min-height: 30px;
    font-size: 10px;
  }

  .hero {
    padding-top: 128px;
    padding-bottom: 44px;
  }

  .hero-art::before {
    background:
      radial-gradient(circle at 72% 30%, rgba(11, 19, 36, 0.44), transparent 18rem),
      linear-gradient(90deg, rgba(23, 17, 11, 0.94) 0%, rgba(23, 17, 11, 0.78) 55%, rgba(11, 19, 36, 0.42) 100%),
      linear-gradient(to bottom, rgba(23, 17, 11, 0.55), rgba(23, 17, 11, 0.4), rgba(11, 19, 36, 0.9));
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(48px, 18vw, 76px);
    line-height: 0.92;
  }

  .hero-lede {
    font-size: 18px;
  }

  .phone-frame {
    min-height: 480px;
    border-radius: 28px;
  }

  .phone-screen {
    min-height: 430px;
  }

  .mobile-points article {
    grid-template-columns: 42px 1fr;
    min-height: 92px;
  }

  .mobile-dock strong {
    display: none;
  }

  .mobile-dock {
    min-height: 58px;
  }
}

/* Premium mobile framing pass */
@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 18% -8%, rgba(108, 51, 40, 0.26), transparent 18rem),
      radial-gradient(circle at 86% 2%, rgba(11, 19, 36, 0.48), transparent 20rem),
      linear-gradient(180deg, #17110b 0%, #21160f 46%, #0b1324 100%);
  }

  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 8px;
    border-radius: 20px;
    border-color: rgba(235, 190, 112, 0.34);
    background: rgba(23, 17, 11, 0.9);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
  }

  .brand {
    min-width: 0;
    overflow: hidden;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-switcher {
    max-width: 132px;
    flex-shrink: 0;
  }

  .language-switcher a {
    min-width: 28px;
    min-height: 30px;
    padding: 0 6px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 14px;
  }

  .primary-nav {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(235, 190, 112, 0.18);
    border-radius: 16px;
    background: rgba(255, 240, 209, 0.045);
  }

  .nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
  }

  .nav-list a {
    min-height: 42px;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(235, 190, 112, 0.15);
    border-radius: 12px;
    background: rgba(23, 17, 11, 0.38);
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-list .sub-menu {
    grid-column: 1 / -1;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255, 246, 223, 0.04);
  }

  .nav-list .sub-menu a {
    min-height: 38px;
    justify-content: center;
    font-size: 11px;
  }

  .hero {
    width: calc(100% - 28px);
    min-height: auto;
    margin: 16px auto 0;
    padding: 34px 14px 22px;
    border: 1px solid rgba(235, 190, 112, 0.32);
    border-radius: 24px;
    background: rgba(23, 17, 11, 0.74);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  }

  .hero::after {
    height: 70px;
    border-radius: 0 0 24px 24px;
  }

  .hero-art {
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
  }

  .hero-art img:nth-child(1) {
    right: -22%;
    top: 4%;
    width: 86vw;
    max-width: none;
    opacity: 0.52;
  }

  .hero-content {
    width: 100%;
    padding: 4px 2px 0;
  }

  .eyebrow {
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(42px, 16.4vw, 66px);
    line-height: 0.96;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .hero-lede {
    max-width: 95%;
    font-size: 16px;
    line-height: 1.48;
    font-weight: 600;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .store-card {
    min-height: 60px;
    padding: 11px 16px;
    border-radius: 14px;
  }

  .store-card small {
    font-size: 10px;
  }

  .store-card strong {
    font-size: 20px;
  }

  .trust-strip {
    gap: 8px;
    margin-top: 18px;
  }

  .trust-strip span {
    min-height: 36px;
    flex: 1 1 calc(50% - 8px);
    padding: 0 8px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.1;
  }

  .section {
    width: calc(100% - 28px);
    margin: 18px auto 0;
    padding: 24px 16px;
    border: 1px solid rgba(235, 190, 112, 0.22);
    border-radius: 24px;
    background:
      linear-gradient(145deg, rgba(11, 19, 36, 0.16), transparent 48%),
      linear-gradient(180deg, rgba(255, 240, 209, 0.07), rgba(255, 240, 209, 0.025));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-heading h2,
  .museum-copy h2,
  .final-cta h2,
  .page-hero h1 {
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1.04;
    text-wrap: balance;
  }

  .section-heading p,
  .museum-copy p,
  .keyword-columns p,
  .feature-card p,
  .policy-card p,
  .legal-page p {
    font-size: 14px;
    line-height: 1.55;
  }

  .feature-grid,
  .policy-grid {
    gap: 12px;
  }

  .feature-card,
  .policy-card {
    min-height: 0;
    padding: 18px;
    border-radius: 18px;
  }

  .feature-card h3,
  .policy-card h3 {
    margin-top: 28px;
    font-size: 20px;
  }

  .museum-band {
    gap: 22px;
  }

  .art-stack {
    min-height: 300px;
    margin: 4px 4px 0;
  }

  .seo-section {
    width: calc(100% - 28px);
    padding: 24px 16px;
    border-radius: 24px;
  }

  .keyword-columns {
    gap: 14px;
  }

  .phone-grid {
    gap: 20px;
  }

  .phone-frame {
    width: min(100%, 310px);
    min-height: 430px;
    padding: 12px;
    border-radius: 28px;
  }

  .phone-screen {
    min-height: 384px;
    border-radius: 22px;
  }

  .mobile-points article {
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .final-cta,
  .page-hero {
    width: calc(100% - 28px);
    margin-top: 18px;
    padding: 30px 18px;
    border-radius: 24px;
  }

  .legal-page,
  .post-list {
    width: calc(100% - 28px);
    padding: 28px 0 70px;
  }

  .site-footer {
    margin-top: 20px;
    border-top: 1px solid rgba(235, 190, 112, 0.22);
  }

  .footer-inner {
    width: calc(100% - 28px);
    padding: 26px 0 88px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid rgba(235, 190, 112, 0.18);
    border-radius: 14px;
    background: rgba(255, 240, 209, 0.045);
    text-align: center;
  }

  .mobile-dock {
    width: min(calc(100% - 30px), 420px);
    min-height: 62px;
    padding: 8px;
    border-radius: 24px;
  }
}
