.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.preloader__inner img {
  width: 66px;
  height: 66px;
  animation: preloader-mark 1.1s var(--ease) both;
}

.preloader__name {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.02em;
  animation: anim-rise 0.8s var(--ease) 0.15s both;
}

.preloader__line {
  width: 120px;
  height: 1px;
  margin-block: 4px;
  overflow: hidden;
  background: var(--line);
}

.preloader__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  animation: preloader-line 1.2s var(--ease) 0.2s both;
}

.preloader__meta {
  color: var(--moss);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  animation: fade-in 0.8s var(--ease) 0.45s both;
}

@keyframes preloader-mark {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes preloader-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.ink-veil {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  background: var(--forest-deep);
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0.75s var(--ease-slow);
}

.ink-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(216, 196, 155, 0.12), transparent 38%),
    radial-gradient(circle at 75% 85%, rgba(44, 74, 107, 0.14), transparent 42%);
}

.ink-veil.is-open {
  visibility: visible;
  clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0.8s var(--ease-slow), visibility 0s linear;
}

.ink-veil.is-leaving {
  visibility: visible;
  clip-path: circle(0% at 50% 112%);
  transition: clip-path 0.75s var(--ease-slow), visibility 0s linear;
}

.ink-veil__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--cream);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}

.ink-veil.is-open .ink-veil__inner {
  opacity: 1;
  transform: translateY(0);
}

.ink-veil.is-leaving .ink-veil__inner {
  opacity: 0;
  transform: translateY(-8px);
}

.ink-veil__monogram {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 88px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--gold-soft);
}

.ink-veil__rule {
  width: 72px;
  height: 1px;
  background: var(--gold-soft);
  opacity: 0.6;
}

.ink-veil__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 240, 227, 0.65);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(248, 244, 234, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(248, 244, 234, 0.94);
  box-shadow: 0 10px 40px rgba(10, 26, 47, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: 100%;
  padding-inline: clamp(20px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(8deg) scale(1.04);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.brand__text span {
  color: var(--moss);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.nav-link {
  position: relative;
  padding-block: 9px;
  color: var(--moss);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.nav-link--legacy {
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--forest);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header-cta .icon {
  width: 13px;
  height: 13px;
}

.header-cta:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.menu-toggle__bars span {
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.menu-toggle__bars span:last-child {
  width: 15px;
  margin-left: auto;
}

.menu-toggle.is-open .menu-toggle__bars span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__bars span:last-child {
  width: 22px;
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  display: none;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  background: var(--forest-deep);
  color: var(--cream);
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 15%, rgba(216, 196, 155, 0.12), transparent 30%),
    radial-gradient(circle at 15% 85%, rgba(44, 74, 107, 0.18), transparent 34%);
}

.mobile-menu__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-height: calc(100dvh - var(--header-h));
  padding: 36px var(--gutter) 32px;
}

.mobile-menu .eyebrow {
  color: var(--gold-soft);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--cream-line);
  color: rgba(246, 240, 227, 0.68);
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  padding-left: 7px;
  color: var(--cream);
}

.mobile-nav__no {
  width: 22px;
  color: var(--gold-soft);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.mobile-nav__name {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(26px, 5.5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mobile-nav .icon {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.mobile-menu.is-open .mobile-nav a {
  animation: menu-item-in 0.55s var(--ease) both;
}

.mobile-menu.is-open .mobile-nav a:nth-child(2) { animation-delay: 0.04s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { animation-delay: 0.08s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { animation-delay: 0.12s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { animation-delay: 0.16s; }
.mobile-menu.is-open .mobile-nav a:nth-child(6) { animation-delay: 0.2s; }
.mobile-menu.is-open .mobile-nav a:nth-child(7) { animation-delay: 0.24s; }

@keyframes menu-item-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--cream-line);
}

.mobile-menu__foot p {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mobile-menu__foot p em {
  color: var(--gold-soft);
}

.mobile-menu__foot span {
  max-width: 130px;
  color: rgba(246, 240, 227, 0.45);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}

.tab-panel {
  position: relative;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 9vw, 120px);
  background: var(--forest-deep);
  color: var(--cream);
}

.site-footer .anim {
  animation: anim-rise 0.9s var(--ease) both;
  animation-delay: var(--delay, 0s);
}

.site-footer .eyebrow {
  color: var(--gold-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(36px, 7vw, 100px);
  padding-bottom: clamp(50px, 7vw, 84px);
  border-bottom: 1px solid var(--cream-line);
}

.footer-cta h2 {
  margin-top: 18px;
  font-size: clamp(3.2rem, 7.6vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.footer-cta h2 em {
  color: var(--gold-soft);
}

.footer-cta__side {
  max-width: 390px;
  padding-bottom: 10px;
}

.footer-cta__side p {
  margin-bottom: 26px;
  color: rgba(246, 240, 227, 0.55);
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  padding-block: clamp(48px, 7vw, 80px);
}

.brand--footer {
  margin-bottom: 20px;
}

.brand--footer .brand__text strong {
  color: var(--cream);
  font-size: 22px;
}

.brand--footer .brand__text span {
  color: rgba(246, 240, 227, 0.4);
}

.footer-brand > p {
  max-width: 250px;
  color: rgba(246, 240, 227, 0.5);
  font-size: 13px;
  line-height: 1.8;
}

.footer-seal {
  display: inline-block;
  margin-top: 26px;
  padding: 8px 12px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-col__title {
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  color: rgba(246, 240, 227, 0.58);
  font-size: 12.5px;
  line-height: 1.75;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-col--contact p {
  margin-bottom: 2px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 30px;
  padding-block: 24px;
  border-top: 1px solid var(--cream-line);
  color: rgba(246, 240, 227, 0.4);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom a {
  color: var(--gold-soft);
  transition: color 0.25s var(--ease);
}

.footer-bottom a:hover {
  color: var(--cream);
}

.footer-word {
  margin-top: -2px;
  overflow: hidden;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(88px, 18.5vw, 290px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.72;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(216, 196, 155, 0.14);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  animation: footer-word-drift 16s ease-in-out infinite alternate;
}

@keyframes footer-word-drift {
  from { transform: translateX(-1.2%); }
  to { transform: translateX(1.2%); }
}

@media (max-width: 1180px) {
  .primary-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-cta__side {
    max-width: 480px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding-top: 20px;
    border-top: 1px solid var(--cream-line);
  }

  .footer-col--contact .footer-col__title {
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }

  .site-header__inner {
    padding-inline: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__text strong {
    font-size: 18px;
  }

  .brand__text span {
    font-size: 7px;
  }

  .menu-toggle__text {
    display: none;
  }

  .mobile-menu__inner {
    padding: 28px 20px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    justify-content: flex-start;
  }

  .footer-word {
    font-size: 24vw;
  }
}

@media (max-width: 460px) {
  .brand__text span {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col--contact {
    flex-direction: column;
    gap: 4px;
  }
}
