/* One shared, compact project header for every editorial project page. */
.story-page.story-editorial .story-feed { overflow-anchor: none; }

.story-page.story-editorial .site-header {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  height: 54px;
  min-height: 54px;
  padding: 4px 12px;
  border-bottom: 1px solid rgba(29, 27, 24, .2);
  background: #fff;
  color: #161513;
}
.story-page.story-editorial .site-header .brand-mark { width: 82px; height: 42px; }
.story-page.story-editorial .site-header .brand-mark {
  display: block;
  flex: 0 0 82px;
  min-width: 82px;
  max-width: 82px;
  min-height: 42px;
  max-height: 42px;
  overflow: hidden;
}
.story-page.story-editorial .site-header .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: left center;
  transform: none !important;
}

/* The same closing signature used on the home page, placed after the last
   editorial spread inside the project's own scroll container. */
.story-page.story-editorial .story-feed > .project-site-footer {
  position: relative;
  display: grid !important;
  width: 100%;
  min-height: 285px;
  margin: 0;
  padding: 44px clamp(28px, 6vw, 72px) 34px;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 28px 52px;
  align-items: start;
  background: #000;
  color: #f7f6f2;
  scroll-snap-align: end;
}
.story-page.story-editorial .project-site-footer .brand-mark {
  display: block;
  width: 142px;
  height: 106px;
}
.story-page.story-editorial .project-site-footer .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  filter: invert(1) grayscale(1) brightness(2.2);
}
.story-page.story-editorial .project-site-footer .footer-social {
  display: flex;
  gap: 30px;
  align-self: center;
}
.story-page.story-editorial .project-site-footer .footer-social a,
.story-page.story-editorial .project-site-footer > span,
.story-page.story-editorial .project-site-footer .footer-meta a {
  color: inherit;
  font: 500 15px/1.2 'DM Mono', monospace;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.story-page.story-editorial .project-site-footer > span { align-self: center; white-space: nowrap; }
.story-page.story-editorial .project-site-footer .footer-social a:hover,
.story-page.story-editorial .project-site-footer .footer-meta a:hover { text-decoration: underline; text-underline-offset: .25em; }
.story-page.story-editorial .project-site-footer .footer-meta {
  display: flex;
  grid-column: 1 / -1;
  gap: 30px;
  width: 100%;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.35);
}

/* Compact shared footer — keep the project ending as tight as the home footer. */
.story-page.story-editorial .story-feed > .project-site-footer{min-height:136px;padding:17px clamp(24px,4vw,54px) 13px;grid-template-columns:76px minmax(0,1fr) auto;grid-template-areas:"brand social year" "meta meta meta";gap:12px 26px;align-items:center}.story-page.story-editorial .project-site-footer .brand-mark{grid-area:brand;width:76px;height:52px;margin:0}.story-page.story-editorial .project-site-footer .brand-mark img{object-position:left center}.story-page.story-editorial .project-site-footer .footer-social{grid-area:social;gap:20px;margin:0;align-self:center}.story-page.story-editorial .project-site-footer>span{grid-area:year;justify-self:end;margin:0}.story-page.story-editorial .project-site-footer .footer-meta{grid-area:meta;grid-column:auto;gap:9px 15px;margin:0;padding-top:11px}.story-page.story-editorial .project-site-footer .footer-social a,.story-page.story-editorial .project-site-footer>span,.story-page.story-editorial .project-site-footer .footer-meta a{font-size:10px}@media(max-width:700px){.story-page.story-editorial .story-feed > .project-site-footer{min-height:126px;padding:14px 20px 11px;grid-template-columns:60px minmax(0,1fr) auto;gap:10px 14px}.story-page.story-editorial .project-site-footer .brand-mark{width:60px;height:42px}.story-page.story-editorial .project-site-footer .footer-social{gap:10px}.story-page.story-editorial .project-site-footer .footer-meta{gap:8px 11px;padding-top:9px;white-space:normal}.story-page.story-editorial .project-site-footer .footer-social a,.story-page.story-editorial .project-site-footer>span,.story-page.story-editorial .project-site-footer .footer-meta a{font-size:9px;letter-spacing:.065em}}

.story-page.story-editorial .story-actions {
  position: fixed;
  z-index: 69;
  top: 54px;
  right: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 44px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  transform: none;
  border: 0;
  background: #fff;
}
.story-page.story-editorial .story-actions a {
  display: flex;
  flex: 1 1 0;
  max-width: 360px;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid #d6d5d2;
  border-radius: 999px;
  background: #eee;
  color: #292929;
  font: 500 clamp(9px, 1.15vw, 11px)/1.1 Manrope, Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
}
.story-page.story-editorial .story-actions a[aria-current="page"] {
  border-color: #c8c8c8;
  background: #dedede;
  color: #242424;
}
.story-page.story-editorial .story-actions__commercial {
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}
.story-page.story-editorial .story-actions__commercial > span { white-space: nowrap; }
.story-page.story-editorial .story-actions__commercial small {
  color: #7a6f68;
  font: 600 .72em/1 Manrope, Arial, sans-serif;
  letter-spacing: .08em;
}
.story-page.story-editorial .story-actions a:hover,
.story-page.story-editorial .story-actions a:focus-visible {
  transform: none;
  border-color: #9d9d9d;
  background: #f4f4f4;
}

.story-page.story-editorial .story-switcher {
  position: fixed;
  z-index: 69;
  top: 98px;
  right: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 66px;
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  justify-content: center;
  padding: 5px 10px 9px;
  transform: none;
  border: 0;
  border-bottom: 1px solid #d2d2d2;
  border-radius: 0;
  background: #fff;
}
.story-page.story-editorial .story-switcher a {
  display: flex;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #777;
  border-radius: 50%;
  background: #fff;
  color: #292929;
  font: 400 13px/1 'Playfair Display', Georgia, serif;
  letter-spacing: .015em;
  text-align: center;
  text-decoration: none;
}
.story-page.story-editorial .story-switcher a img,
.story-page.story-editorial .story-switcher__name { display: none !important; }
.story-page.story-editorial .story-switcher__initials {
  display: flex !important;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
.story-page.story-editorial .story-switcher a[aria-current="page"] {
  border-color: #949494;
  background: #bcbcbc;
  color: #242424;
}
.story-page.story-editorial .story-switcher a:hover,
.story-page.story-editorial .story-switcher a:focus-visible {
  transform: none;
  border-color: #292929;
}

/* Keep all journal content below the same 164px header. */
.story-page.villa-arabian .story-feed {
  height: calc(100svh - 164px);
  margin-top: 164px;
}
.story-page.villa-schilde .sr-pages { padding-top: 170px; }
.story-page.story-regis .regis-pages { padding-top: 176px; }

@media (min-width: 701px) {
  .story-page.story-primo .story-feed > .story-slide,
  .story-page.story-balqis .story-feed > .story-slide {
    padding-top: 176px !important;
  }
}

/* Tablet layouts are continuous magazine pages, not full-screen snap slides. */
@media (min-width: 701px) and (max-width: 1023px) {
  .story-page.story-editorial .story-feed {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
  }
  .story-page.story-editorial .story-slide {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }
}

@media (max-width: 700px) {
  .story-page.story-editorial .story-feed > .project-site-footer {
    min-height: 178px;
    padding: 18px 24px 16px;
    grid-template-columns: 76px 1fr auto;
    gap: 14px 20px;
  }
  .story-page.story-editorial .project-site-footer .brand-mark { width: 76px; height: 56px; }
  .story-page.story-editorial .project-site-footer .footer-social { flex-direction: row; gap: 16px; align-items: center; }
  .story-page.story-editorial .project-site-footer .footer-social a,
  .story-page.story-editorial .project-site-footer > span,
  .story-page.story-editorial .project-site-footer .footer-meta a { font-size: 10px; }
  .story-page.story-editorial .project-site-footer > span { grid-column: auto; }
  .story-page.story-editorial .project-site-footer .footer-meta { flex-wrap: nowrap; gap: 10px; padding-top: 12px; white-space: nowrap; }
  .story-page.story-editorial .site-header {
    height: 44px;
    min-height: 44px;
    padding: 3px 12px;
  }
  .story-page.story-editorial .site-header .brand-mark {
    width: 46px;
    height: 34px;
    flex-basis: 46px;
    min-width: 46px;
    max-width: 46px;
    min-height: 34px;
    max-height: 34px;
  }
  .story-page.story-editorial .story-lang-switch { top: 3px; right: 12px; }
  .story-page.story-editorial .story-actions {
    top: 44px;
    height: 38px;
    gap: 6px;
    padding: 4px 12px;
  }
  .story-page.story-editorial .story-actions a {
    max-width: none;
    min-height: 30px;
    padding: 4px 3px;
    font-size: clamp(9px, 2.35vw, 11px);
  }
  .story-page.story-editorial .story-actions__commercial small { font-size: .66em; }
  .story-page.story-editorial .story-switcher {
    top: 82px;
    height: 54px;
    gap: clamp(16px, 5vw, 28px);
    padding: 4px 10px 6px;
  }
  .story-page.story-editorial .story-switcher a {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
  .story-page.story-editorial .story-slide:first-child { padding-top: 9.75rem; }
  .story-page.story-editorial.story-mobile-magazine .magazine-pages { padding-top: 9.75rem; }
  .story-page.story-regis .regis-pages { padding-top: 160px; }
  .story-page.villa-arabian .story-feed {
    height: calc(100svh - 136px);
    margin-top: 136px;
  }
  .story-page.villa-schilde .sr-pages { padding-top: 142px; }
}

@media (max-width: 360px) {
  .story-page.story-editorial .story-actions { gap: 4px; padding-inline: 8px; }
  .story-page.story-editorial .story-actions a { font-size: 8px; }
  .story-page.story-editorial .story-actions__commercial small { font-size: .62em; }
  .story-page.story-editorial .story-switcher { gap: 12px; }
}

/* The full-screen menu shared by projects and legal documents. */
.story-page.story-editorial .story-lang-switch { top:50%; right:70px; transform:translateY(-50%); }
.story-page.story-editorial .project-menu-toggle{position:absolute;top:50%;right:12px;z-index:113;display:grid;width:42px;height:42px;padding:9px 7px;border:1px solid #1d1b18;border-radius:3px;background:#fff;color:#1d1b18;transform:translateY(-50%);cursor:pointer}
.story-page.story-editorial .project-menu-toggle span{display:block;width:100%;height:1.5px;background:currentColor}
.project-site-menu{position:fixed;z-index:110;inset:0;display:block;overflow-y:auto;padding:88px max(15px,6vw) 42px;background:#171716;color:#eeeae2;clip-path:inset(0 0 100%);pointer-events:none;transition:clip-path .55s cubic-bezier(.77,0,.18,1)}
.project-site-menu[hidden]{display:none!important}
.project-site-menu__map{width:min(1180px,100%);border-top:1px solid rgba(238,234,226,.18)}
.project-site-menu__group{display:block;padding:17px 0 19px;border-bottom:1px solid rgba(238,234,226,.18)}
.project-site-menu__title{display:block;color:#eeeae2;font:400 clamp(52px,5.15vw,86px)/.9 'Playfair Display',Georgia,serif;letter-spacing:-.06em;text-decoration:none}
.project-site-menu__title span{display:inline-block;margin-right:.14em;color:#a8a298;font:500 .22em/1 'DM Mono',monospace;letter-spacing:.04em;vertical-align:top;transform:translateY(.8em)}
.project-site-menu__sub{display:flex;padding:14px 0 0 42px;flex-direction:column;gap:5px}
.project-site-menu__sub a{width:max-content;max-width:100%;color:#b9b3a9;font:400 clamp(18px,1.55vw,27px)/1.2 'Playfair Display',Georgia,serif;letter-spacing:-.025em;text-decoration:none}
.project-site-menu__title:hover,.project-site-menu__title:focus-visible{color:#c9b695;outline:0}
.project-site-menu__sub a:hover,.project-site-menu__sub a:focus-visible{color:#f5f1e9;outline:0}
.project-site-menu__contact{display:inline-block;margin-top:34px;padding-bottom:7px;border-bottom:1px solid rgba(238,234,226,.6);color:#d8d2c8;font:10px 'DM Mono',monospace;letter-spacing:.08em;text-decoration:none;text-transform:uppercase}
.project-menu-open .project-site-menu{clip-path:inset(0);pointer-events:auto}
.project-menu-open .story-actions,.project-menu-open .story-switcher{visibility:hidden}
.project-menu-open .site-header{z-index:112!important;background:#000!important;color:#eeeae2!important;border-color:rgba(238,234,226,.14)!important}
.project-menu-open .site-header .brand-mark img{filter:invert(1)!important}
.project-menu-open .project-menu-toggle{border-color:rgba(238,234,226,.7);background:#000;color:#eeeae2}
.project-menu-open .story-lang-switch,.project-menu-open .legal-lang-switch{color:#eeeae2!important}
@media(max-width:700px){
  .story-page.story-editorial .story-lang-switch{top:50%;right:62px;transform:translateY(-50%)}
  .story-page.story-editorial .project-menu-toggle{right:10px;width:32px;height:32px;padding:7px 6px}
  .project-site-menu{padding:74px 15px 36px}
  .project-site-menu__group{padding:17px 0 20px}
  .project-site-menu__title{font-size:51px}
  .project-site-menu__title span{font-size:11px;transform:translateY(9px)}
  .project-site-menu__sub{padding:17px 0 0 27px}
  .project-site-menu__sub a{font-size:22px}
}

/* Keep the final footer compact after the mobile project rules above. */
@media(max-width:700px){.story-page.story-editorial .story-feed{overflow-y:auto!important;overscroll-behavior-y:auto!important;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch}.story-page.story-editorial .story-feed > .project-site-footer{min-height:126px;padding:14px 20px 11px;grid-template-columns:60px minmax(0,1fr) auto;grid-template-areas:"brand social year" "meta meta meta";gap:10px 14px;align-items:center}.story-page.story-editorial .project-site-footer .brand-mark{grid-area:brand;width:60px;height:42px;margin:0}.story-page.story-editorial .project-site-footer .footer-social{grid-area:social;flex-direction:row;gap:10px;margin:0}.story-page.story-editorial .project-site-footer>span{grid-area:year;justify-self:end;margin:0}.story-page.story-editorial .project-site-footer .footer-meta{grid-area:meta;grid-column:auto;flex-wrap:nowrap;justify-content:flex-start;gap:7px;margin:0;padding-top:9px;white-space:nowrap}.story-page.story-editorial .project-site-footer .footer-social a,.story-page.story-editorial .project-site-footer>span,.story-page.story-editorial .project-site-footer .footer-meta a{font-size:8px;letter-spacing:.035em}}

.story-page.story-editorial .project-site-footer .brand-mark img{filter:none!important}

/* Keep the header mark in its original proportions and use a clean three-line menu. */
.story-page.story-editorial .site-header .brand-mark{width:70px;min-width:70px;max-width:70px;height:42px;min-height:42px;max-height:42px;overflow:visible}
.story-page.story-editorial .site-header .brand-mark img{width:70px;height:auto;max-width:none;object-fit:contain;object-position:left center}
.story-page.story-editorial .project-menu-toggle{width:38px;height:36px;padding:5px 4px;border:0!important;border-radius:0;background:transparent!important;gap:6px}
.story-page.story-editorial .project-menu-toggle span{width:27px;height:1.5px}
.project-menu-open .project-menu-toggle{border:0!important;background:transparent!important}
@media(max-width:700px){.story-page.story-editorial .site-header .brand-mark{width:58px;min-width:58px;max-width:58px;height:38px;min-height:38px;max-height:38px}.story-page.story-editorial .site-header .brand-mark img{width:58px;height:auto}.story-page.story-editorial .project-menu-toggle{right:9px;width:34px;height:32px;padding:4px 3px;gap:5px}.story-page.story-editorial .project-menu-toggle span{width:25px;height:1.5px}}

/* Open menu: one warm charcoal surface, with a quiet but fully readable
   language control and three free-standing white strokes. */
.project-menu-open .site-header,
.project-menu-open .project-site-menu { background:#1b1a18!important; }
.project-menu-open .site-header { border-bottom-color:rgba(255,255,255,.14)!important; }
.project-menu-open .story-lang-switch,
.project-menu-open .story-lang-switch button,
.project-menu-open .legal-lang-switch,
.project-menu-open .legal-lang-switch button { color:#f4f1ec!important; }
.project-menu-open .story-lang-switch span,
.project-menu-open .legal-lang-switch span { color:rgba(244,241,236,.48)!important; }
.project-menu-open .story-lang-switch button.is-active,
.project-menu-open .legal-lang-switch button.is-active { border-bottom-color:#f4f1ec!important; color:#fff!important; }
.project-menu-open .project-menu-toggle {
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#fff!important;
  box-shadow:none!important;
}
.project-menu-open .project-menu-toggle span { background:#fff!important; }
