:root {
  --museum-bg: #f7f4ee;
  --museum-paper: #fffdf8;
  --museum-ink: #161616;
  --museum-soft: #77716a;
  --museum-line: #ded7cb;
  --museum-gold: #b08a45;
  --museum-maroon: #5b1414;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--museum-bg);
  color: var(--museum-ink);
  font-family: 'Inter', Arial, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.museum-shell {
  width: min(1240px, calc(100% - 36px));
  margin: auto;
}

/* NAVBAR */

.museum-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--museum-line);
}

.museum-navbar .museum-shell {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.museum-brand-link {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: var(--museum-ink);
  flex-shrink: 0;
}

.museum-logo-box {
  width: 150px;
  height: 112px;
  border: none;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-shadow: none;
}

.museum-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  display: block;
}

.brand-block {
  line-height: 1.05;
}

.brand-block .small-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--museum-gold);
  margin-bottom: 7px;
  font-weight: 600;
}

.brand-block .main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
}

.nav-links a {
  color: #222;
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--museum-maroon);
  transition: 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.museum-menu-btn {
  display: none;
  border: 1px solid var(--museum-line);
  background: var(--museum-paper);
  font-size: 25px;
  padding: 4px 12px;
  color: var(--museum-ink);
  cursor: pointer;
}

/* NEWS TICKER */

.ticker-wrap {
  border-bottom: 1px solid var(--museum-line);
  background: #fffaf1;
  overflow: hidden;
}

.ticker-inner {
  width: min(1240px, calc(100% - 36px));
  margin: auto;
  white-space: nowrap;
  overflow: hidden;
  padding: 10px 0;
  font-size: 13px;
  color: #4b4034;
  letter-spacing: 0.4px;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: museumTicker 3000s linear infinite !important;
}

.ticker-track span {
  margin-right: 60px;
}


/* Pause ticker when mouse is placed over it */
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes museumTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* HERO */

.museum-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--museum-line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 54px;
  align-items: center;
  padding: 80px 0;
}

.eyebrow {
  color: var(--museum-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  margin-bottom: 22px;
  font-weight: 600;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(48px, 7vw, 98px);
  line-height: 0.94;
  letter-spacing: -2px;
  margin: 0 0 28px;
}

.hero-text {
  font-size: 17px;
  line-height: 1.9;
  color: #4b4741;
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.museum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #1d1d1d;
  color: #1d1d1d;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
  transition: 0.35s ease;
  background: transparent;
}

.museum-btn:hover {
  background: #1d1d1d;
  color: #fff;
}

.museum-btn.gold {
  border-color: var(--museum-gold);
  color: #fff;
  background: var(--museum-gold);
}

.museum-btn.gold:hover {
  background: #141414;
  border-color: #141414;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.gallery-frame {
  position: absolute;
  background: var(--museum-paper);
  padding: 14px;
  border: 1px solid var(--museum-line);
  box-shadow: 0 28px 70px rgba(30, 25, 18, 0.12);
  animation: floatFrame 7s ease-in-out infinite;
}

.gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(16%) contrast(98%);
}

.frame-large {
  width: 62%;
  height: 420px;
  right: 8%;
  top: 32px;
}

.frame-small {
  width: 43%;
  height: 260px;
  left: 4%;
  bottom: 10px;
  animation-delay: -2s;
}

.frame-label {
  position: absolute;
  right: 0;
  bottom: -54px;
  width: 220px;
  padding: 14px 16px;
  background: #fffdf8;
  border: 1px solid var(--museum-line);
  font-size: 12px;
  color: #4d463d;
  line-height: 1.5;
}

@keyframes floatFrame {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-13px);
  }
}

/* GENERAL SECTIONS */

.museum-section {
  padding: 94px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 4vw, 58px);
  margin: 0;
  letter-spacing: -1px;
}

.section-head p {
  color: #5f5a54;
  line-height: 1.85;
  margin: 0;
  font-size: 15px;
}

.museum-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.museum-card {
  background: var(--museum-paper);
  border: 1px solid var(--museum-line);
  min-height: 390px;
  display: flex;
  flex-direction: column;
  transition: 0.45s ease;
  position: relative;
  overflow: hidden;
}

.museum-card-link,
.archive-tile {
  text-decoration: none;
  color: inherit;
}

.museum-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(25, 20, 15, 0.10);
}

.museum-card .image-box {
  height: 230px;
  overflow: hidden;
  background: #e6dfd3;
}

.museum-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1s ease;
}

.museum-card:hover img {
  transform: scale(1.08);
}

.museum-card .content {
  padding: 24px;
}

.museum-card .tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--museum-gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.museum-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  margin: 0 0 12px;
}

.museum-card p {
  color: #625c54;
  line-height: 1.75;
  margin: 0;
  font-size: 14px;
}

/* ARCHIVE WALL */

.archive-wall {
  background: #ece7dc;
  border-top: 1px solid var(--museum-line);
  border-bottom: 1px solid var(--museum-line);
}

.archive-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.archive-tile {
  position: relative;
  height: 310px;
  background: #fffdf8;
  border: 1px solid #d7cdbf;
  padding: 12px;
  overflow: hidden;
  transition: 0.4s ease;
  cursor: pointer;
}

.archive-tile:nth-child(2),
.archive-tile:nth-child(5) {
  transform: translateY(35px);
}

.archive-tile:hover {
  transform: translateY(-8px) scale(1.01);
  z-index: 3;
  box-shadow: 0 24px 60px rgba(30, 25, 18, 0.16);
}

.archive-tile:nth-child(2):hover,
.archive-tile:nth-child(5):hover {
  transform: translateY(25px) scale(1.01);
}

.archive-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(9%) grayscale(8%);
}

.archive-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  background: rgba(255, 253, 248, 0.93);
  border: 1px solid rgba(176, 138, 69, 0.35);
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #40392f;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.35s ease;
}

.archive-tile:hover .archive-caption {
  opacity: 1;
  transform: translateY(0);
}

/* LEGACY BAND */

.legacy-band {
  background: #111;
  color: #f8f4eb;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.legacy-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 32%, rgba(176, 138, 69, 0.18), transparent 32%),
    radial-gradient(circle at 82% 55%, rgba(91, 20, 20, 0.35), transparent 34%);
  pointer-events: none;
}

.legacy-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.legacy-inner h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.98;
  margin: 0;
}

.legacy-inner p {
  color: #d5cec1;
  line-height: 1.95;
  font-size: 16px;
  margin: 0 0 22px;
}

.legacy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.stat-box {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.stat-box strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  color: #fff;
}

.stat-box span {
  color: #cfc5b4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* INNER PAGES */

.inner-hero {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--museum-line);
}

.inner-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  margin: 0 0 20px;
}

.inner-hero p {
  max-width: 760px;
  color: #5f5a54;
  line-height: 1.9;
  font-size: 17px;
}

/* FOOTER */

.museum-footer {
  background: #f1ece2;
  border-top: 1px solid var(--museum-line);
  padding: 56px 0 26px;
  color: #5e574f;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.footer-column h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
  color: var(--museum-ink);
  margin: 0 0 16px;
}

.footer-column h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  color: var(--museum-ink);
  margin: 0 0 14px;
}

.footer-column p {
  margin: 0;
  line-height: 1.8;
  color: #5e574f;
}

.footer-brand p {
  max-width: 320px;
}

.footer-subscribe-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-subscribe-form input {
  width: 100%;
  border: 1px solid var(--museum-line);
  background: #fffdf8;
  padding: 11px 12px;
  font-size: 13px;
  outline: none;
  color: var(--museum-ink);
}

.footer-subscribe-form input:focus {
  border-color: var(--museum-gold);
}

.footer-subscribe-form button {
  width: 100%;
  border: 1px solid var(--museum-gold);
  background: var(--museum-gold);
  color: #fff;
  padding: 11px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: 0.3s ease;
}

.footer-subscribe-form button:hover {
  background: #141414;
  border-color: #141414;
}

.footer-bottom {
  border-top: 1px solid var(--museum-line);
  margin-top: 42px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #6d665e;
}
/* RESPONSIVE */

@media (max-width: 992px) {
  .museum-navbar .museum-shell {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .museum-menu-btn {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 14px;
  }

  .nav-links.show {
    display: flex;
  }

  .hero-grid,
  .section-head,
  .legacy-inner {
    grid-template-columns: 1fr;
  }

  .museum-hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  .museum-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .archive-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .museum-shell,
  .ticker-inner {
    width: min(100% - 24px, 1240px);
  }

  .museum-logo-box {
    width: 90px;
    height: 70px;
  }

  .museum-brand-link {
    gap: 12px;
  }

  .museum-card-grid,
  .archive-layout,
  .legacy-stats {
    grid-template-columns: 1fr;
  }

  .archive-tile:nth-child(2),
  .archive-tile:nth-child(5) {
    transform: none;
  }

  .frame-large {
    width: 78%;
    right: 0;
  }

  .frame-small {
    width: 58%;
    left: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-block .main-title {
    font-size: 21px;
  }
}

/* ================================
   FINAL MOBILE PROPORTION FIX
   Add this at the very bottom
   ================================ */

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .museum-shell,
  .ticker-inner {
    width: calc(100% - 24px);
  }

  /* NAVBAR MOBILE FIX */

  .museum-navbar .museum-shell {
    min-height: auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .museum-brand-link {
    gap: 10px;
    max-width: calc(100% - 54px);
  }

  .museum-logo-box {
    width: 76px;
    height: 62px;
    flex: 0 0 76px;
  }

  .museum-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .brand-block {
    max-width: 300px;
  }

  .brand-block .small-title {
    font-size: 8px;
    letter-spacing: 1.4px;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .brand-block .main-title {
    font-size: 17px;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .museum-menu-btn {
    display: block;
    font-size: 22px;
    padding: 3px 10px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--museum-line);
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    font-size: 12px;
    letter-spacing: 1.2px;
    padding: 8px 0;
  }

  /* NEWS TICKER MOBILE FIX */

  .ticker-inner {
    font-size: 12px;
    padding: 8px 0;
  }

  .ticker-track {
    animation-duration: 3000s !important;
  }

  /* HERO MOBILE FIX */

  .museum-hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 56px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 2.2px;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .hero-title {
    font-size: 46px;
    line-height: 0.98;
    letter-spacing: -1px;
    margin-bottom: 22px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .museum-btn {
    width: 100%;
    min-height: 46px;
    font-size: 11px;
  }

  /* HERO IMAGE MOBILE FIX */

  .hero-visual {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-frame {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    animation: none;
  }

  .frame-large {
    width: 100%;
    height: 310px;
  }

  .frame-small {
    width: 78%;
    height: 210px;
    margin-left: auto;
  }

  .frame-label {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }

  /* SECTIONS MOBILE FIX */

  .museum-section {
    padding: 58px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .section-head p {
    font-size: 14px;
    line-height: 1.75;
  }

  .museum-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .museum-card {
    min-height: auto;
  }

  .museum-card .image-box {
    height: 220px;
  }

  .museum-card .content {
    padding: 20px;
  }

  .museum-card h3 {
    font-size: 24px;
  }

  .museum-card p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* ARCHIVE WALL MOBILE FIX */

  .archive-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .archive-tile {
    height: 280px;
    transform: none !important;
  }

  .archive-tile:hover {
    transform: none !important;
  }

  .archive-caption {
    opacity: 1;
    transform: none;
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  /* LEGACY BAND MOBILE FIX */

  .legacy-band {
    padding: 62px 0;
  }

  .legacy-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legacy-inner h2 {
    font-size: 38px;
    line-height: 1.02;
  }

  .legacy-inner p {
    font-size: 15px;
    line-height: 1.8;
  }

  .legacy-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* FOOTER MOBILE FIX */

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-column h3 {
    font-size: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .footer-subscribe-form {
    flex-direction: column;
  }

  .footer-subscribe-form input,
  .footer-subscribe-form button {
    width: 100%;
  }
}

/* RELICMONGERS HIERARCHY DESIGN */

.relic-parent-box {
  margin: 60px 0 35px;
  padding: 42px;
  background: linear-gradient(135deg, #15100c, #2a1a10);
  color: #f5ead7;
  border-left: 8px solid #d9b365;
  box-shadow: 0 28px 70px rgba(0,0,0,0.22);
}

.relic-parent-box h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  color: #f8df9b;
  margin-bottom: 15px;
}

.relic-parent-box p {
  color: #e4d8c6;
  line-height: 1.85;
  margin-bottom: 0;
}

.relic-child-box {
  margin: 42px 0 26px;
  padding: 34px 38px;
  background: #fffdf8;
  border-left: 7px solid #a87928;
  box-shadow: 0 20px 55px rgba(0,0,0,0.12);
}

.relic-child-box h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #21160f;
  margin-bottom: 12px;
}

.relic-child-box p {
  color: #5c5148;
  line-height: 1.8;
  margin-bottom: 0;
}

.relic-section-box {
  margin: 30px 0 22px;
  padding: 26px 30px;
  background: #17110d;
  color: #efe3cf;
  border-left: 6px solid #d9b365;
}

.relic-section-box h4 {
  font-family: 'Cinzel', serif;
  color: #f8df9b;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.relic-section-box p {
  color: #d8ccbb;
  line-height: 1.75;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .relic-parent-box,
  .relic-child-box,
  .relic-section-box {
    padding: 26px 22px;
  }
}

/* ART ENVELOP SUB-PROJECT LINK FIX */

.project-mini-list a {
  color: #514840;
  text-decoration: none;
}

.project-mini-list a:visited {
  color: #514840;
}

.project-mini-list a:hover {
  color: #8a5a18;
  text-decoration: none;
}

/* =========================================================
   HARD FIX: NEWS TICKER VERY SLOW SPEED
   Use this file as the active museum.css file.
   If speed still does not change, the page is not loading
   this CSS file or the browser/server cache is serving old CSS.
   ========================================================= */

.ticker-track,
.ticker-inner .ticker-track,
.ticker-wrap .ticker-track,
.news-ticker-track,
.news-ticker-content,
.marquee-track,
.marquee-content {
  animation-name: museumTicker !important;
  animation-duration: 3000s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  animation-delay: 0s !important;
}

/* Mobile/tablet override also forced */
@media (max-width: 992px) {
  .ticker-track,
  .ticker-inner .ticker-track,
  .ticker-wrap .ticker-track,
  .news-ticker-track,
  .news-ticker-content,
  .marquee-track,
  .marquee-content {
    animation-duration: 3000s !important;
  }
}

/* Pause ticker when mouse is placed over it */
.ticker-wrap:hover .ticker-track,
.ticker-inner:hover .ticker-track {
  animation-play-state: paused !important;
}

/* Visual test mark:
   After uploading, if you see this slightly darker ticker background,
   it confirms this new CSS file is loading. */
.ticker-wrap {
  background: #fff3d9 !important;
}

