:root {
  --green: #28463c;
  --green-2: #18352d;
  --brown: #6a3907;
  --sand: #d2ba96;
  --paper: #f4f2eb;
  --ink: #17352e;
  --muted: #626b65;
  --line: rgba(40, 70, 60, 0.18);
  --radius: 14px;
  --shadow: 0 24px 70px rgba(40, 70, 60, 0.14);
}

@font-face {
  font-family: "MuseDisplay";
  src: url("../fonts/MuseDisplay.ttc") format("truetype-collection");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

.musedoors-site .site-nav a { position: relative; }
.musedoors-site .site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--brown); transition: right .35s cubic-bezier(.16, 1, .3, 1); }
.musedoors-site .site-nav a:hover::after,
.musedoors-site .site-nav a.active::after { right: 0; }
.musedoors-site .button { border: 0; border-radius: 10px; padding: .82rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font: inherit; font-weight: 650; cursor: pointer; transition: transform .25s, background .25s, color .25s, box-shadow .25s; }
.musedoors-site .button:active { transform: translateY(1px) scale(.985); }
.musedoors-site .button-primary { background: var(--green); color: #fff; box-shadow: 0 12px 28px rgba(40, 70, 60, .18); }
.musedoors-site .button-primary:hover { background: var(--green-2); transform: translateY(-2px); }

.inner-page { padding-top: 76px; overflow: hidden; }
.inner-hero { min-height: 72dvh; display: grid; grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4.5rem); position: relative; overflow: hidden; }
.inner-hero::after { content: ""; position: absolute; inset: 0 0 0 38%; background: url(../images/hero-atlas.png) center/cover no-repeat; opacity: .3; z-index: -1; mask-image: linear-gradient(90deg, transparent, #111 22%, #111); }
.inner-hero-copy { max-width: 680px; position: relative; z-index: 1; }
.inner-hero h1 { font-family: "MuseDisplay", "Hiragino Sans GB", "PingFang SC", sans-serif; font-size: clamp(3.2rem, 6.2vw, 6rem); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 1.5rem; color: var(--green-2); }
.inner-hero p { font-size: clamp(1.05rem, 1.55vw, 1.35rem); max-width: 34em; margin: 0; color: #465b53; }
.hero-map-panel { min-height: 440px; position: relative; background: url(../images/atlas-layers.png) center/contain no-repeat; }
.hero-map-panel::before,
.hero-map-panel::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(106, 57, 7, .35); }
.hero-map-panel::before { width: 46%; aspect-ratio: 1; right: 14%; top: 16%; }
.hero-map-panel::after { width: 22%; aspect-ratio: 1; right: 26%; top: 29%; box-shadow: 0 0 0 34px rgba(210, 186, 150, .09); }
.page-shell { width: min(1320px, calc(100% - clamp(2.5rem, 8vw, 9rem))); margin: 0 auto; }
.page-section { padding: clamp(5rem, 9vw, 9rem) 0; }
.page-section h2 { font-family: "MuseDisplay", "Hiragino Sans GB", "PingFang SC", sans-serif; font-size: clamp(2.25rem, 4.5vw, 4.8rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 1.5rem; }
.map-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--brown), transparent); opacity: .45; }
.inner-page .reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1); }
.inner-page .reveal.is-visible { opacity: 1; transform: none; }

.about-manifesto { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 9vw, 10rem); align-items: start; }
.about-manifesto h2 { position: sticky; top: 130px; }
.about-copy { font-size: clamp(1.12rem, 1.55vw, 1.38rem); line-height: 1.95; color: #385048; }
.about-copy p { margin: 0 0 2rem; }
.connection-field { position: relative; min-height: 610px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: clamp(1rem, 3vw, 3.5rem); padding: 3rem 0; }
.connection-field::before { content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: 3px; background: linear-gradient(90deg, var(--green), var(--brown), var(--sand)); border-radius: 50%; transform: rotate(-4deg); opacity: .72; }
.connection-node { position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem 1.6rem; background: rgba(255, 255, 255, .48); border-radius: var(--radius); box-shadow: 0 22px 58px rgba(40, 70, 60, .09); }
.connection-node:nth-child(2) { transform: translateY(-48px); }
.connection-node:nth-child(3) { transform: translateY(36px); }
.connection-node::before { content: ""; position: absolute; top: 2rem; left: 2rem; width: 30px; height: 30px; border-radius: 50%; border: 8px solid var(--green); box-shadow: 0 0 0 10px rgba(40, 70, 60, .1); }
.connection-node:nth-child(2)::before { border-color: var(--brown); }
.connection-node:nth-child(3)::before { border-color: #a87536; }
.connection-node strong { font-family: "MuseDisplay", "PingFang SC", sans-serif; font-size: clamp(1.6rem, 3vw, 2.6rem); margin-bottom: .7rem; }
.connection-node p { margin: 0; color: #53635d; }

.business-index { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.business-index a { color: var(--green); text-decoration: none; padding: .65rem 1rem; border: 1px solid rgba(40, 70, 60, .28); border-radius: 10px; background: rgba(244, 242, 235, .7); }
.business-index a:hover { background: #fff; transform: translateY(-2px); }
.business-chapter { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; padding: clamp(5rem, 8vw, 8rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.business-chapter:nth-child(even) .chapter-copy { order: 2; }
.business-chapter:nth-child(even) > :last-child { order: 1; }
.chapter-copy { min-width: 0; }
.chapter-copy h2 { font-family: "MuseDisplay", "Hiragino Sans GB", "PingFang SC", sans-serif; font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: 1.08; margin: 0 0 1.5rem; }
.chapter-copy p { color: #465b53; font-size: 1.04rem; margin: 0 0 1.1rem; }
.chapter-meta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.chapter-meta span { font-size: .78rem; color: var(--muted); padding: .35rem .65rem; border-bottom: 1px solid var(--brown); }
.video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(244, 242, 235, .94); box-shadow: 0 18px 44px rgba(24, 53, 45, .22); }
.video-play::after { content: ""; position: absolute; left: 31px; top: 24px; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 21px solid var(--green); }
.media-status { position: absolute; left: 1rem; bottom: 1rem; padding: .48rem .7rem; border-radius: 8px; background: rgba(244, 242, 235, .92); color: var(--green); font-size: .74rem; font-weight: 700; }

.business-chapter.has-no-media { grid-template-columns: minmax(0, 760px); justify-content: center; }
.business-media { display: grid; width: 100%; max-width: 100%; min-width: 0; margin: 0; gap: 12px; }
.business-media-item { position: relative; width: 100%; max-width: 100%; min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--radius); background-color: #e8dfcf; background-repeat: no-repeat; box-shadow: 0 28px 78px rgba(40, 70, 60, .13); }
.business-media-image { background-image: var(--media-image); background-size: 500% 100%; background-position: var(--fallback-position, 0 0); }
.business-media-image.has-custom-image { background-size: cover; background-position: center; }
.business-media-video { background-image: var(--poster); background-size: 500% 100%; background-position: var(--fallback-position, 50% 0); }
.business-media-video.has-custom-poster { background-size: cover; background-position: center; }
.business-media-video video,
.business-media-video iframe { display: block; width: 100%; max-width: 100%; height: 100%; border: 0; object-fit: cover; }
.business-media.media-count-1 { grid-template-columns: 1fr; }
.business-media.media-count-1 .business-media-item { min-height: 0; aspect-ratio: 16 / 10; }
.business-media.media-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.business-media.media-count-2 .business-media-item { min-height: 360px; }
.business-media.media-count-3 { grid-template-columns: minmax(0, 1.45fr) minmax(220px, .75fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.business-media.media-count-3 .business-media-item { min-height: 244px; }
.business-media.media-count-3 .business-media-item:first-child { grid-row: 1 / 3; min-height: 500px; }
.business-media figcaption { grid-column: 1 / -1; padding: 1rem .2rem 0; color: #53635d; font-size: .82rem; line-height: 1.55; }
.business-media figcaption strong { color: var(--green); font-size: .92rem; }

.news-hero { min-height: 62dvh; }
.news-date { display: block; color: var(--brown); font-variant-numeric: tabular-nums; font-size: .84rem; margin-bottom: 1rem; }
.news-list { display: grid; gap: 1.15rem; }
.news-list-item { position: relative; display: grid; grid-template-columns: minmax(250px, 29%) 108px minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 2.5vw, 2.25rem); min-width: 0; padding: 0 0 1.15rem; }
.news-list-item:not(:last-child)::after { content: ""; position: absolute; right: 0; bottom: 0; left: calc(29% + clamp(1.25rem, 2.5vw, 2.25rem)); height: 1px; background: rgba(40, 70, 60, .16); }
.news-list-image { position: relative; display: block; width: 100%; height: clamp(150px, 14vw, 190px); overflow: hidden; border-radius: 6px; background: var(--paper); }
.news-list-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.news-list-item:hover .news-list-image img { transform: scale(1.035); }
.news-list-date { display: flex; flex-direction: column; align-items: flex-start; padding-top: .15rem; color: #4b5b54; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.date-year { font-size: .85rem; }
.date-day { margin-top: .23rem; font-family: Georgia, serif; font-size: clamp(1.8rem, 2.4vw, 2.2rem); color: var(--green-2); }
.date-mobile { display: none; }
.news-list-date::after { content: ""; width: 34px; height: 1px; margin: .72rem 0 0 1.2rem; background: rgba(40, 70, 60, .3); }
.news-list-content { min-width: 0; padding-right: .1rem; }
.news-list-content h2 { margin: 0 0 .4rem; font-size: clamp(1.16rem, 1.5vw, 1.42rem); line-height: 1.38; letter-spacing: -.015em; font-weight: 750; }
.news-list-content h2 a { color: var(--green-2); text-decoration: none; }
.news-list-content h2 a:hover { color: var(--brown); }
.news-list-content p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 0 0 .35rem; font-size: clamp(.92rem, 1.1vw, 1rem); line-height: 1.55; color: #626b65; }
.news-list-more { display: inline-flex; align-items: center; gap: .65rem; font-size: .86rem; font-weight: 600; color: var(--green-2); text-decoration: none; }
.news-list-more:hover { color: var(--brown); }
.news-arrow { font-size: 1.25rem; line-height: 1; font-weight: 400; transition: transform .25s; }
.news-list-more:hover .news-arrow { transform: translateX(4px); }
.news-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 0; }
.news-pagination .page-numbers { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 .25rem; border: 1px solid rgba(40, 70, 60, .17); border-radius: 6px; background: rgba(255, 255, 255, .45); color: var(--green-2); text-decoration: none; }
.news-pagination .page-numbers:hover { border-color: var(--green); }
.news-pagination .current { color: #fff; background: var(--green); border-color: var(--green); }
.news-pagination .prev, .news-pagination .next { font-size: 1.55rem; line-height: 1; }
.news-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.news-empty { padding: 4rem 0; }

.article-shell { width: min(860px, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5rem, 8vw, 8rem) 0; }
.article-head { padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.article-head h1 { font-family: "MuseDisplay", "Hiragino Sans GB", "PingFang SC", sans-serif; font-size: clamp(2.15rem, 3.4vw, 3.45rem); line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; margin: .6rem 0 1.4rem; }
.article-lead { font-size: 1.15rem; color: #52645d; max-width: 62ch; }
.article-body { font-size: 1.08rem; line-height: 1.95; color: #354d45; padding-top: 3rem; }
.article-body > p { margin: 0 0 1.7rem; }
.article-body .wp-block-image,
.article-body .wp-block-video,
.article-body .wp-block-gallery,
.article-body .wp-block-audio,
.article-body .wp-block-file,
.article-body .wp-block-embed { margin: 3rem 0; }
.article-body .wp-block-image img,
.article-body .wp-block-video video { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.article-body figcaption { margin-top: .75rem; color: #626b65; font-size: .78rem; line-height: 1.5; }
.article-body .wp-block-gallery { gap: 12px; }
.article-body .wp-block-gallery img { border-radius: var(--radius); }
.article-body .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.article-body .wp-block-embed iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.article-body h2 { margin: 3rem 0 1rem; font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.25; }
.article-body h3 { margin: 2.4rem 0 .8rem; font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.35; }
.article-body ul,
.article-body ol { margin: 0 0 1.7rem; padding-inline-start: 1.35em; }
.article-body blockquote { margin: 2.5rem 0; padding: .4rem 0 .4rem 1.5rem; border-left: 1px solid var(--brown); color: #465b53; }
.article-body > * { max-width: 100%; overflow-wrap: anywhere; }
.article-back { display: inline-flex; margin-top: 2rem; color: var(--green); font-weight: 700; text-underline-offset: .3em; }

.page-contact { margin-top: 2rem; }
.inner-page + footer { color: #626b65; }
.inner-page .section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 4vw, 4.5rem); }
.inner-page .closing { background: var(--green); color: #f8f4eb; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; position: relative; overflow: hidden; }
.inner-page .closing::after { content: ""; position: absolute; width: 540px; height: 540px; right: -180px; bottom: -360px; border: 1px solid rgba(210, 186, 150, .35); border-radius: 50%; box-shadow: 0 0 0 60px rgba(210, 186, 150, .07), 0 0 0 130px rgba(210, 186, 150, .05); }
.inner-page .closing h2 { font-family: "MuseDisplay", "PingFang SC", sans-serif; font-size: clamp(2rem, 3.8vw, 4rem); line-height: 1.12; margin: 0 0 .6rem; }
.inner-page .closing p { margin: 0; color: #d8dedb; }
.inner-page .closing-actions { display: flex; gap: 1rem; position: relative; z-index: 2; }
.button-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .58) !important; }
.button-light:hover { background: rgba(255, 255, 255, .1); }
.button-sand { background: var(--sand); color: var(--green-2); }
.button-sand:hover { background: #e0c9a6; transform: translateY(-2px); }

@media (max-width: 1050px) {
  .inner-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-map-panel { min-height: 360px; }
  .about-manifesto { grid-template-columns: 1fr; }
  .about-manifesto h2 { position: static; }
  .business-chapter { grid-template-columns: 1fr; }
  .business-chapter:nth-child(even) .chapter-copy,
  .business-chapter:nth-child(even) > :last-child { order: initial; }
  .news-list-item { grid-template-columns: minmax(210px, 34%) 86px minmax(0, 1fr); gap: 1.1rem; }
  .news-list-item:not(:last-child)::after { left: calc(34% + 1.1rem); }
  .news-list-content p { -webkit-line-clamp: 3; }
}

@media (max-width: 760px) {
  body.musedoors-site .site-header { grid-template-columns: minmax(72px, 1fr) auto auto auto; gap: .4rem; }
  body.musedoors-site .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  body.musedoors-site .brand img { width: 92px; height: 46px; }
  body.musedoors-site .header-cta { grid-column: 2; grid-row: 1; display: inline-flex; min-height: 40px; padding: .6rem .7rem; font-size: .85rem; }
  body.musedoors-site .language-switch { grid-column: 3; grid-row: 1; }
  body.musedoors-site .menu-toggle { grid-column: 4; grid-row: 1; }
  body.musedoors-site .atlas-menu { display: none; }
  .musedoors-site .site-nav a::after { bottom: 2px; }
  .inner-page { padding-top: 68px; }
  .inner-hero { padding: 4.5rem 1.25rem 3rem; gap: 1.4rem; }
  .inner-hero::after { inset: 28% -20% 0 0; opacity: .18; }
  .inner-hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero-map-panel { min-height: 280px; }
  .page-shell { width: calc(100% - 2.5rem); }
  .page-section { padding: 5rem 0; }
  .about-copy { font-size: 1.05rem; }
  .connection-field { grid-template-columns: 1fr; min-height: auto; padding-top: 1rem; }
  .connection-field::before { display: none; }
  .connection-node:nth-child(n) { min-height: 220px; transform: none; }
  .connection-node::before { top: 1.4rem; left: 1.4rem; }
  .business-index { display: grid; grid-template-columns: 1fr 1fr; }
  .business-index a { text-align: center; padding: .6rem .5rem; font-size: .85rem; }
  .business-chapter { padding: 4rem 0; gap: 1.6rem; }
  .business-media.media-count-1,
  .business-media.media-count-2,
  .business-media.media-count-3 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .business-media.media-count-1 .business-media-item,
  .business-media.media-count-2 .business-media-item,
  .business-media.media-count-3 .business-media-item,
  .business-media.media-count-3 .business-media-item:first-child { grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .news-list { gap: .52rem; }
  .news-list-item { display: grid; grid-template-columns: 40% minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 .72rem; min-height: 166px; padding: .5rem; border-radius: 9px; background: rgba(255, 255, 255, .82); box-shadow: 0 4px 22px rgba(40, 70, 60, .045); }
  .news-list-item:not(:last-child)::after { display: none; }
  .news-list-image { grid-row: 1 / 3; height: 100%; min-height: 150px; border-radius: 5px; }
  .news-list-date { grid-column: 2; grid-row: 1; padding: .05rem 2.3rem 0 0; font-size: .75rem; line-height: 1.25; color: #59675e; }
  .date-year, .date-day, .news-list-date::after { display: none; }
  .date-mobile { display: block; }
  .news-list-content { grid-column: 2; grid-row: 2; min-width: 0; padding: 0 2.25rem 0 0; }
  .news-list-content h2 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 0 0 .3rem; font-size: clamp(.94rem, 2.45vw, 1.1rem); line-height: 1.36; }
  .news-list-content p { -webkit-line-clamp: 3; margin: 0; font-size: clamp(.79rem, 2.1vw, .9rem); line-height: 1.38; }
  .news-list-more { position: absolute; top: 50%; right: .7rem; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #edf0e9; transform: translateY(-50%); }
  .news-list-more span:first-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .news-list-more .news-arrow { font-size: 1.24rem; }
  .news-pagination { gap: .36rem; margin: .9rem 0 0; }
  .news-pagination .page-numbers { min-width: 34px; min-height: 34px; border-radius: 50%; }
  .article-shell { padding: 4rem 0; }
  .article-head h1 { font-size: clamp(2rem, 9vw, 2.65rem); line-height: 1.2; }
  .video-play { width: 62px; height: 62px; }
  .video-play::after { left: 26px; top: 19px; }
  .inner-page .closing { grid-template-columns: 1fr; }
  .inner-page .closing-actions { flex-direction: column; }
  .inner-page .closing-actions .button { width: 100%; }
}

@media (max-width: 420px) {
  .news-list-item { grid-template-columns: 38% minmax(0, 1fr); min-height: 158px; gap: 0 .58rem; }
  .news-list-image { min-height: 145px; }
  .news-list-content { padding-right: 1.9rem; }
  .news-list-more { width: 27px; height: 27px; right: .45rem; }
  .news-list-content h2 { font-size: .84rem; }
  .news-list-content p { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .connection-node:nth-child(n),
  .news-list-image img, .news-arrow,
  .inner-page .reveal,
  .inner-page .reveal.is-visible { transform: none; opacity: 1; transition: none; }
}
