/* ============================================================
   MoniArt — museum gallery design system
   ============================================================ */

:root {
  --obsidian: #0a0a0b;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1d1d20;
  --cream: #f4f1ea;
  --cream-dim: #d8d3c7;
  --brass: #c8a97e;
  --brass-deep: #9c825e;
  --ink: #14110c;
  --text: #ece9e1;
  --muted: #a6a29a;
  --muted-2: #8b877e;
  --hair: rgba(244, 241, 234, 0.12);
  --hair-soft: rgba(244, 241, 234, 0.07);
  --spotlight: rgba(245, 224, 185, 0.08);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 2px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 260ms;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Warm overhead gallery light + subtle vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% -6%, var(--spotlight), transparent 62%),
    radial-gradient(38% 30% at 78% 8%, rgba(245, 224, 185, 0.045), transparent 70%),
    radial-gradient(42% 38% at 16% 22%, rgba(245, 224, 185, 0.03), transparent 75%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

main, .nav, .footer { position: relative; z-index: 1; }

::selection { background: rgba(200, 169, 126, 0.28); color: var(--cream); }

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

a { color: inherit; }

.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;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.85rem;
  border-radius: var(--radius);
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-y); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--cream);
  margin: 0;
  text-wrap: balance;
}

h2.display { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
}

.section-head { max-width: 44rem; margin-bottom: 3.2rem; }
.section-head-wide { max-width: 52rem; }
.section-sub {
  margin: 1.15rem 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}
.btn-primary:hover { background: #d8bd98; border-color: #d8bd98; }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 241, 234, 0.26);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.btn-small { padding: 0.55rem 1rem; font-size: 0.78rem; }
.btn-block { width: 100%; margin-top: auto; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hair-soft);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  position: relative;
  width: 30px; height: 30px;
  display: inline-grid;
  place-items: center;
}
.brand-mark svg { width: 30px; height: 30px; display: block; }
.brand-mark img {
  position: absolute;
  inset: 0;
  width: 30px; height: 30px;
  object-fit: contain;
  border-radius: 5px;
}
.brand-word {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cream);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 0.6rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--cream); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-wrap { position: relative; }
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  color: var(--cream-dim);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.7rem 0.5rem 0.7rem;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
                    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color var(--dur) var(--ease);
}
.lang-select:hover { border-color: var(--brass-deep); }
.lang-select option { background: var(--surface-2); color: var(--text); }

.nav-cta { padding: 0.6rem 1.1rem; font-size: 0.8rem; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 50%; width: 16px; height: 1.4px;
  background: var(--cream);
  transform: translateX(-50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -3px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--hair-soft);
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.6rem var(--pad) 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mobile-menu a {
  padding: 0.85rem 0.2rem;
  font-size: 0.95rem;
  color: var(--cream-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--hair-soft);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 6vw, 5.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy .display {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  margin-bottom: 1.4rem;
}
.hero-sub {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  margin: 0 0 1.9rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--hair);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  white-space: nowrap;
}
.pill-brass {
  border-color: rgba(200, 169, 126, 0.42);
  color: var(--brass);
  background: rgba(200, 169, 126, 0.06);
}
.pill-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.16);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Simulator ---------- */
.hero-stage { min-width: 0; }

.sim { width: 100%; }

.sim-wall {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: clamp(260px, 34vw, 450px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim-wall::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  background: radial-gradient(60% 55% at 50% 35%, rgba(245, 224, 185, 0.09), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.sim-monitor {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  transition: max-width 420ms var(--ease);
}
.sim-monitor[data-orient="portrait"] {
  max-width: 340px;
}

.sim-bezel {
  background: linear-gradient(180deg, #17171a, #0b0b0c);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: clamp(6px, 0.9vw, 10px);
  box-shadow:
    0 34px 72px -22px rgba(0, 0, 0, 0.92),
    0 2px 0 rgba(255, 255, 255, 0.05) inset;
  transition: box-shadow 400ms var(--ease), padding 400ms var(--ease);
}

.sim-screen {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  transition: aspect-ratio 420ms var(--ease);
}
.sim-monitor[data-orient="portrait"] .sim-screen {
  aspect-ratio: 10 / 13.5;
}

.sim-mat {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(16px, 4.8%, 36px);
  background: var(--mat);
  transition: padding 420ms var(--ease), background-color 420ms var(--ease);
}
.sim-monitor[data-mat="cream"] { --mat: #f4f1ea; }
.sim-monitor[data-mat="obsidian"] { --mat: #141416; }
.sim-monitor[data-mat="walnut"] { --mat: #3a2a1d; }

/* display layout: museum passepartout vs edge-to-edge */
.sim-monitor[data-layout="passe"] .sim-mat {
  padding: clamp(16px, 4.8%, 36px);
  background: var(--mat);
}
.sim-monitor[data-layout="edge"] .sim-mat {
  padding: 0;
  background: transparent;
}

/* frame effect: orthogonal overlay beneath physical bezel (works in BOTH edge and passe) */
.sim-monitor[data-frame="monitor"] .sim-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow:
    inset 0 22px 38px -4px rgba(0, 0, 0, 0.88),
    inset 0 -12px 24px -6px rgba(0, 0, 0, 0.62),
    inset 16px 0 30px -8px rgba(0, 0, 0, 0.72),
    inset -16px 0 30px -8px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(0, 0, 0, 0.9);
}
.sim-monitor[data-frame="monitor"] .sim-bezel {
  box-shadow:
    0 36px 76px -20px rgba(0, 0, 0, 0.94),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.sim-monitor[data-frame="gallery"] .sim-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 8px #1b1815,
    inset 0 0 0 9px rgba(200, 169, 126, 0.42),
    inset 0 14px 26px 4px rgba(0, 0, 0, 0.36);
}

.sim-monitor[data-frame="none"] .sim-screen::after {
  content: none;
}

.sim-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px -10px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}
.sim-monitor[data-layout="edge"] .sim-art {
  width: 100%;
  height: 100%;
  box-shadow: none;
}

.sim-art img {
  position: relative;
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 400ms var(--ease);
  z-index: 2;
}
.sim-monitor[data-layout="edge"] .sim-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.sim-art img.is-missing { opacity: 0; }
.sim-art:has(img.is-missing) { width: 100%; height: 100%; }

.sim-art-fallback,
.art-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #23262b;
  display: none;
}
.sim-art:has(img.is-missing) .sim-art-fallback,
.art-figure:has(img.is-missing) .art-fallback {
  display: block;
}

/* painterly fallbacks */
[data-art="1"] .sim-art-fallback,
[data-art="1"] .art-fallback {
  background:
    radial-gradient(60% 70% at 30% 75%, #2c3a2a 0%, transparent 60%),
    radial-gradient(50% 60% at 72% 30%, #3a4e63 0%, transparent 62%),
    linear-gradient(160deg, #1f2a35 0%, #2a3524 55%, #161d16 100%);
}
[data-art="2"] .sim-art-fallback,
[data-art="2"] .art-fallback {
  background:
    radial-gradient(55% 60% at 50% 38%, #c98a4e 0%, transparent 60%),
    radial-gradient(70% 70% at 20% 90%, #6a4526 0%, transparent 62%),
    linear-gradient(160deg, #4a3520 0%, #7c5a34 58%, #2a1d12 100%);
}
[data-art="3"] .sim-art-fallback,
[data-art="3"] .art-fallback {
  background:
    radial-gradient(45% 50% at 30% 30%, #e0b85c 0%, transparent 58%),
    radial-gradient(55% 60% at 75% 70%, #5f7c8a 0%, transparent 62%),
    linear-gradient(160deg, #8a9a6a 0%, #c8a24a 52%, #3b4a5a 100%);
}

.sim-plaque {
  margin: 1rem auto 0;
  max-width: 360px;
  text-align: center;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.plaque-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--cream);
}
.plaque-meta {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Simulator controls */
.sim-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hair-soft);
}
.control-group { display: flex; flex-direction: column; gap: 0.7rem; }
.control-group-wide { grid-column: 1 / -1; }
.control-group.is-muted .segmented {
  opacity: 0.52;
  transition: opacity var(--dur) var(--ease);
}
.control-group.is-muted .segmented:hover { opacity: 1; }
.control-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.segmented { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seg {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.seg:hover { color: var(--cream); border-color: rgba(200, 169, 126, 0.4); }
.seg.is-active {
  color: var(--ink);
  background: var(--brass);
  border-color: var(--brass);
}
.segmented-art .seg { flex: 1 1 auto; }
.art-seg span { display: block; }

/* ---------- Showcase (Real desk & display formats) ---------- */
.showcase { border-top: 1px solid var(--hair-soft); }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.showcase-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hair);
}
.showcase-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d0f;
}
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.showcase-card:hover .showcase-media img { transform: scale(1.03); }

.showcase-copy {
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}
.showcase-pills .art-tag { margin-top: 0; }
.showcase-copy h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0;
  line-height: 1.2;
}
.showcase-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.showcase-care {
  margin-top: clamp(1.4rem, 2.8vw, 2rem);
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--hair);
  background: rgba(200, 169, 126, 0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
}
.care-badge {
  align-self: flex-start;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(200, 169, 126, 0.36);
  border-radius: 100px;
  padding: 0.28rem 0.72rem;
  white-space: nowrap;
}
.showcase-care p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.88rem;
  color: var(--cream-dim);
  line-height: 1.55;
}

/* ---------- Feature grid ---------- */
.features { border-top: 1px solid var(--hair-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--hair-soft);
  border: 1px solid var(--hair-soft);
}

.feat {
  grid-column: span 2;
  background: var(--surface);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 210px;
}
.feat-lg { grid-column: span 3; }

.feat h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.15;
  color: var(--cream);
  margin: 0;
}
.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}
.feat-body { display: flex; flex-direction: column; gap: 0.55rem; margin-top: auto; }

.feat-figure {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 0.9;
  color: var(--brass);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.feat-demo {
  position: relative;
  height: 92px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--hair-soft);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(245, 224, 185, 0.07), transparent 70%),
    #0d0d0f;
  overflow: hidden;
}
.demo-bezel {
  position: absolute;
  inset: 16% 18%;
  border-radius: 3px;
  background: #000;
  border: 3px solid #191919;
  box-shadow:
    inset 0 10px 18px -6px rgba(0, 0, 0, 0.95),
    inset 0 -8px 14px -8px rgba(0, 0, 0, 0.8),
    0 8px 16px -8px rgba(0, 0, 0, 0.8);
}

.demo-orient { display: flex; align-items: center; justify-content: center; gap: 14px; }
.orient-land {
  width: 44px; height: 28px;
  border: 1px solid var(--brass);
  background: linear-gradient(160deg, #2b3a45, #3c4a33);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}
.orient-port {
  width: 24px; height: 36px;
  border: 1px solid var(--brass);
  background: linear-gradient(160deg, #4a3524, #7c5a34);
}

.demo-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 14px;
}
.demo-tiles span {
  border: 1px solid var(--hair);
  background: linear-gradient(150deg, #2a323a, #1a1f22);
}
.demo-tiles span:nth-child(2) { background: linear-gradient(150deg, #4a3524, #2c1f13); }
.demo-tiles span:nth-child(3) { background: linear-gradient(150deg, #3c4a33, #1e2a1c); }
.demo-tiles span:nth-child(4) { background: linear-gradient(150deg, #5a4a6a, #2a2333); }

.demo-mat {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.mat-outer {
  width: 78px;
  height: 54px;
  padding: 8px;
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.75);
  display: flex;
}
.mat-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #2b3a45 0%, #3c4a33 58%, #1e2420 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

/* ---------- Collection ---------- */
.collection { border-top: 1px solid var(--hair-soft); }

.collection-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.3rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.art-card { display: flex; flex-direction: column; }
.art-card:has(.art-portrait) .art-frame,
.art-card:has(.art-portrait) .art-caption {
  width: 100%;
  max-width: 245px;
  margin-inline: auto;
}

.art-frame {
  padding: 10px;
  background: #141416;
  border: 1px solid var(--hair);
  box-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.9);
}
.art-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #23262b;
}
.art-figure.art-portrait { aspect-ratio: 3 / 4; }
.art-figure.art-square { aspect-ratio: 1 / 1; }
.art-figure[data-art="1"] { aspect-ratio: 3786 / 2975; }
.art-figure[data-art="2"] { aspect-ratio: 3200 / 2577; }
.art-figure[data-art="3"] { aspect-ratio: 1476 / 1861; }
.art-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  z-index: 2;
  transition: transform 700ms var(--ease);
}
.art-figure img.is-missing { opacity: 0; }
.art-card:hover .art-figure img { transform: scale(1.06); }

.art-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 0.1rem 0;
}
.art-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.2;
}
.art-meta {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.art-tag {
  margin-top: 0.5rem;
  align-self: flex-start;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(200, 169, 126, 0.3);
  border-radius: 100px;
  padding: 0.22rem 0.6rem;
}

.vault {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--hair);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(245, 224, 185, 0.05), transparent 60%),
    var(--surface);
}
.vault-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.vault-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.vault-sub {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--cream);
  line-height: 1.3;
}
.vault-artists {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.vault-artists span {
  font-size: 0.8rem;
  color: var(--cream-dim);
  border: 1px solid var(--hair);
  border-radius: 100px;
  padding: 0.42rem 0.9rem;
}

/* ---------- Pricing ---------- */
.pricing { border-top: 1px solid var(--hair-soft); }

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.7rem, 3vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--hair);
  min-height: 100%;
}
.price-pro {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(245, 224, 185, 0.07), transparent 58%),
    var(--surface);
  border-color: rgba(200, 169, 126, 0.42);
  position: relative;
}
.price-badge {
  align-self: flex-start;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(200, 169, 126, 0.36);
  border-radius: 100px;
  padding: 0.28rem 0.7rem;
}
.price-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--cream);
  margin: 0;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--cream);
}
.price-amount small {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.price-devices {
  margin: -0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--brass);
  letter-spacing: 0.03em;
}
.price-list {
  list-style: none;
  margin: 0.4rem 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.price-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.5;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 7px; height: 7px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}
.price-note {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Downloads ---------- */
.downloads { border-top: 1px solid var(--hair-soft); }

.dl-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 0.5rem;
}
.dl-tab {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  margin-bottom: -1px;
}
.dl-tab:hover { color: var(--cream); }
.dl-tab.is-active {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hair-soft);
}
.dl-row:last-child { border-bottom: 0; }
.dl-file { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.dl-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.dl-file code {
  font-family: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--cream);
  overflow-wrap: anywhere;
}
.dl-size {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(200, 169, 126, 0.3);
  border-radius: 100px;
  padding: 0.18rem 0.55rem;
  white-space: nowrap;
}
.dl-note { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.dl-actions { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }

.dl-specs {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hair-soft);
  border: 1px solid var(--hair-soft);
}
.dl-spec {
  background: var(--surface);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dl-spec-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.dl-spec p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hair-soft); }
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-head { position: sticky; top: 6rem; margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2.4rem 1.3rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--cream);
  line-height: 1.3;
  transition: color var(--dur) var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.4rem; top: 1.7rem;
  width: 9px; height: 9px;
  border-right: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list summary:hover { color: var(--brass); }
.faq-list details p {
  margin: -0.2rem 0 1.4rem;
  padding-right: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 60ch;
}

/* ---------- Notify & Feedback ---------- */
.notify { border-top: 1px solid var(--hair-soft); }

.notify-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}
.notify-card,
.feedback-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.notify-card .display { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.notify-card .section-sub { margin-top: 0; font-size: 0.94rem; }

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.notify-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.78rem 0.95rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--cream);
  background: var(--obsidian);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
.notify-form input::placeholder { color: var(--muted-2); }
.notify-form input:focus { border-color: var(--brass); outline: none; }

.notify-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--muted);
}
.notify-status.is-ok { color: var(--brass); }
.notify-status.is-error { color: #e28478; }

.notify-fine {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted-2);
}

.feedback-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0.15rem 0 0;
  line-height: 1.2;
}
.feedback-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.feedback-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Legal pages ---------- */
.legal-wrap { max-width: 48rem; }
.legal-updated {
  margin: 0.8rem 0 2.4rem;
  font-size: 0.8rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.legal-body h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--cream);
  margin: 2.2rem 0 0.7rem;
}
.legal-body p,
.legal-body li {
  color: var(--cream-dim);
  font-size: 0.94rem;
  line-height: 1.72;
}
.legal-body ul,
.legal-body ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.legal-body a { color: var(--brass); }
.legal-body code {
  font-family: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--brass);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hair);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: #080809;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand { max-width: 22rem; }
.footer-brand .brand-word { font-size: 1.3rem; }
.footer-brand p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--brass); }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}
.footer-meta p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.footer-meta p:first-child { color: var(--brass); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-copy { max-width: 40rem; }
  .hero-stage { max-width: 700px; width: 100%; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feat { grid-column: span 2; }
  .feat-lg { grid-column: span 2; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}

@media (max-width: 768px) {
  .nav-cta { display: none; }
  .showcase-grid { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .collection-grid .art-card:last-child { grid-column: 1 / -1; }
  .collection-grid .art-card:has(.art-portrait) .art-frame,
  .collection-grid .art-card:has(.art-portrait) .art-caption { max-width: 260px; }
  .price-grid, .dl-specs, .notify-grid { grid-template-columns: 1fr; }
  .sim-controls { grid-template-columns: 1fr; }
  .control-group-wide { grid-column: auto; }
  .footer-meta { text-align: left; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feat, .feat-lg { grid-column: auto; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-grid .art-card:last-child { grid-column: auto; }
  .dl-row { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .dl-actions { width: 100%; justify-content: space-between; }
  .cta-row .btn { flex: 1 1 auto; }
  .brand-word { font-size: 1.06rem; }
  .hero-copy .display { font-size: clamp(2.2rem, 9vw, 3rem); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Reveal on scroll (progressive enhancement via .js) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
