:root {
  --atlas-shell-ink: #f4f0e8;
  --atlas-shell-muted: rgba(244, 240, 232, .62);
  --atlas-shell-line: rgba(244, 240, 232, .18);
  --atlas-shell-gold: #e8c98a;
  --atlas-shell-panel: rgba(13, 15, 15, .88);
}

.topbar { display: none !important; }

.atlas-site-header {
  position: fixed;
  z-index: 90;
  top: 29px;
  left: 34px;
  color: var(--atlas-shell-ink);
  opacity: 1;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .52);
  transition: color 280ms ease, opacity 620ms ease, transform 720ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear;
}

.atlas-site-header[data-ready="false"] {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -12px, 0);
  pointer-events: none;
}

.atlas-site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(15px, 1.5vw, 25px);
  color: inherit;
  text-decoration: none;
}

.atlas-site-header__brand strong {
  font: 600 clamp(1.55rem, 2vw, 2rem)/.78 "Black Atlas Display", Georgia, serif;
  letter-spacing: .02em;
  white-space: nowrap;
}

.atlas-site-header__brand span {
  display: grid;
  gap: 4px;
  padding-left: clamp(15px, 1.5vw, 25px);
  border-left: 1px solid currentColor;
  font-size: .58rem;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .76;
}

.atlas-contact-menu {
  position: fixed;
  z-index: 95;
  inset: 0;
  overflow: clip;
  color: var(--atlas-shell-ink);
  font-family: Inter, system-ui, sans-serif;
  pointer-events: none;
}

.atlas-contact-menu__toggle {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 34px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 13px;
  padding: 7px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: 600 .64rem/1 Inter, system-ui, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .5);
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 620ms ease, transform 720ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear;
}

.atlas-contact-menu:not([data-ready="true"]) .atlas-contact-menu__toggle {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -12px, 0);
  pointer-events: none;
}

.atlas-contact-menu[data-open="true"] .atlas-contact-menu__toggle {
  opacity: 0;
  pointer-events: none;
}

.atlas-contact-menu__toggle i {
  position: relative;
  display: block;
  width: 21px;
  height: 14px;
}

.atlas-contact-menu__toggle b {
  position: absolute;
  right: 0;
  width: 21px;
  height: 1px;
  background: currentColor;
}

.atlas-contact-menu__toggle b:first-child { top: 3px; }
.atlas-contact-menu__toggle b:last-child { top: 10px; }

.atlas-contact-menu__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(4, 5, 5, .54);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity 420ms ease;
}

.atlas-contact-menu__panel {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100%;
  padding: 30px 32px;
  overflow-y: auto;
  border-left: 1px solid var(--atlas-shell-line);
  background: var(--atlas-shell-panel);
  box-shadow: -28px 0 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(26px);
  transform: translate3d(102%, 0, 0);
  pointer-events: auto;
  transition: transform 540ms cubic-bezier(.22, 1, .36, 1);
}

.atlas-contact-menu[data-open="true"] .atlas-contact-menu__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.atlas-contact-menu[data-open="true"] .atlas-contact-menu__panel { transform: none; }

.atlas-contact-menu__panel header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
}

.atlas-contact-menu__panel header p {
  margin: 0;
  color: var(--atlas-shell-muted);
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.atlas-contact-menu__close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--atlas-shell-line);
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.atlas-contact-menu__close i,
.atlas-contact-menu__close i::after {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.atlas-contact-menu__close i { transform: rotate(45deg); }
.atlas-contact-menu__close i::after { content: ""; transform: rotate(90deg); }

.atlas-contact-menu__body {
  display: flex;
  min-height: calc(100% - 58px);
  flex-direction: column;
  justify-content: center;
  padding: 36px 0 16px;
}

.atlas-contact-menu__eyebrow {
  margin: 0 0 17px;
  color: var(--atlas-shell-gold);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.atlas-contact-menu__body h2 {
  max-width: 8ch;
  margin: 0 0 18px;
  font: 400 clamp(3.25rem, 5vw, 4.7rem)/.82 "Black Atlas Display", Georgia, serif;
  letter-spacing: -.055em;
}

.atlas-contact-menu__body > p:not(.atlas-contact-menu__eyebrow) {
  max-width: 330px;
  margin: 0 0 28px;
  color: var(--atlas-shell-muted);
  font-size: .78rem;
  line-height: 1.65;
}

.atlas-contact-menu__primary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #171109;
  background: var(--atlas-shell-gold);
  font: 700 .68rem/1 Inter, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.atlas-contact-menu nav { margin-top: 24px; border-top: 1px solid var(--atlas-shell-line); }

.atlas-contact-menu nav a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--atlas-shell-line);
  color: inherit;
  font-size: .78rem;
  text-decoration: none;
}

.atlas-contact-menu nav small {
  color: var(--atlas-shell-muted);
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.atlas-contact-menu__contacts { margin-top: 23px; }
.atlas-contact-menu__contacts a { min-height: 48px; }
.atlas-contact-menu__contacts span { color: var(--atlas-shell-gold); }

.atlas-shell-menu-open { overflow: hidden; }

.atlas-site-header a:focus-visible,
.atlas-contact-menu button:focus-visible,
.atlas-contact-menu a:focus-visible,
.atlas-site-footer a:focus-visible {
  outline: 2px solid var(--atlas-shell-gold);
  outline-offset: 4px;
}

.atlas-site-footer__transition-rule {
  display: grid;
  position: relative;
  left: 50%;
  width: 100vw;
  height: 32px;
  margin-left: -50vw;
  place-items: center;
  background: linear-gradient(180deg, #0c0f10, #111313);
}

.atlas-site-footer__transition-rule::after {
  width: 58px;
  height: 1px;
  content: "";
  background: var(--atlas-shell-gold);
  box-shadow: 0 0 20px rgba(232, 201, 138, .34);
}

.atlas-site-footer {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin: 0 0 0 -50vw;
  padding: 0 clamp(24px, 4vw, 68px) 24px;
  color: var(--atlas-shell-ink);
  background: #111313;
}

.atlas-site-footer a { color: inherit; text-decoration: none; }

.atlas-site-footer__head {
  display: grid;
  min-height: 190px;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: end;
  padding: 52px 0 38px;
  border-bottom: 1px solid var(--atlas-shell-line);
}

.atlas-site-footer__brand,
.atlas-site-footer__place { display: grid; width: fit-content; gap: 9px; }

.atlas-site-footer__brand strong {
  font: 600 clamp(3.2rem, 6vw, 7rem)/.76 "Black Atlas Display", Georgia, serif;
  letter-spacing: -.045em;
}

.atlas-site-footer__brand span,
.atlas-site-footer__place span {
  color: var(--atlas-shell-gold);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.atlas-site-footer__place strong { font-size: 1rem; font-weight: 500; }

.atlas-site-footer__about { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.atlas-site-footer__about a { color: rgba(244, 240, 232, .68); font-size: .72rem; text-decoration: none; }
.atlas-site-footer__about a:hover { color: var(--atlas-shell-ink); }

.atlas-site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px 5vw;
  padding: 66px 0 78px;
}

.atlas-site-footer__group summary {
  list-style: none;
  pointer-events: none;
}

.atlas-site-footer__group summary::-webkit-details-marker { display: none; }

.atlas-site-footer__group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--atlas-shell-line);
  color: var(--atlas-shell-gold);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.atlas-site-footer__group h2::before {
  width: 18px;
  height: 1px;
  flex: 0 0 auto;
  content: "";
  background: currentColor;
}

.atlas-site-footer__group nav { display: grid; gap: 6px; padding-top: 11px; }

.atlas-site-footer__group a {
  color: rgba(244, 240, 232, .76);
  font-size: clamp(.78rem, .82vw, .92rem);
  line-height: 1.35;
}

.atlas-site-footer__group a:hover { color: var(--atlas-shell-ink); }

.atlas-site-footer__group--districts nav { grid-template-columns: 1fr; gap: 6px; }
.atlas-site-footer__group--districts a { font-size: clamp(.66rem, .68vw, .76rem); letter-spacing: .055em; }

.atlas-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--atlas-shell-line);
  color: rgba(244, 240, 232, .5);
  font-size: .7rem;
  line-height: 1.5;
}

.atlas-site-footer__legal a:last-child {
  margin-left: auto;
  color: var(--atlas-shell-gold);
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .atlas-site-header { top: 20px; left: 18px; }
  .atlas-site-header__brand strong { font-size: 1.45rem; }
  .atlas-site-header__brand span { display: none; }
  .atlas-contact-menu__toggle { top: 16px; right: 18px; min-height: 42px; font-size: .59rem; }
  .atlas-contact-menu__panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(86svh, 720px);
    padding: 23px 20px max(24px, env(safe-area-inset-bottom));
    border: 1px solid var(--atlas-shell-line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    transform: translate3d(0, 102%, 0);
  }
  .atlas-contact-menu__body { min-height: auto; justify-content: flex-start; padding-top: 24px; }
  .atlas-contact-menu__body h2 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .atlas-contact-menu nav a { min-height: 49px; }
  .atlas-site-footer__transition-rule { height: 24px; }
  .atlas-site-footer { padding: 0 20px 26px; }
  .atlas-site-footer__head { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 56px 0 34px; }
  .atlas-site-footer__brand strong { font-size: 3.5rem; }
  .atlas-site-footer__about { gap: 8px 16px; }
  .atlas-site-footer__grid { grid-template-columns: 1fr; gap: 0; padding: 24px 0 34px; }
  .atlas-site-footer__group { border-bottom: 1px solid var(--atlas-shell-line); }
  .atlas-site-footer__group summary { display: flex; min-height: 50px; align-items: center; cursor: pointer; pointer-events: auto; }
  .atlas-site-footer__group summary h2 { width: 100%; padding: 0; border: 0; }
  .atlas-site-footer__group summary h2::after { margin-left: auto; content: "+"; font-size: 1rem; font-weight: 400; }
  .atlas-site-footer__group[open] summary h2::after { content: "−"; }
  .atlas-site-footer__group nav { padding: 0 0 24px 28px; }
  .atlas-site-footer__group--districts nav { grid-template-columns: 1fr; }
  .atlas-site-footer__legal { display: grid; gap: 9px; }
  .atlas-site-footer__legal a:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-site-header,
  .atlas-contact-menu__toggle,
  .atlas-contact-menu__panel,
  .atlas-contact-menu__backdrop { transition: none; }
}
