html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

body.paper-shell {
  background-color: #f5f5f0;
  background-image: none;
  position: relative;
  z-index: 0;
}

body.paper-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.site-nav {
  width: 100%;
  top: 0;
  position: sticky;
  z-index: 50;
  background-color: rgb(245 245 240 / 0.9);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgb(0 0 0 / 0.1);
  min-height: 89px;
}

.site-nav-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  box-sizing: border-box;
}

.site-brand {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(164px, 18vw, 224px);
  max-width: 52vw;
  min-height: 40px;
  text-decoration: none;
}

.site-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.site-nav-inner > a:first-child {
  font-family: "Playfair Display", serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #000 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.site-nav-inner > a.site-brand-logo {
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: normal !important;
}

.site-nav-link {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.site-nav .hidden a.link-underline {
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
}

.site-contact-link {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.site-nav .hidden a.inline-flex {
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
}

.site-nav-inner > div:last-child {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.mobile-nav-list {
  border-top: 1px solid rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}

.mobile-nav-link {
  color: #1a1c19;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
  padding: 14px 0;
  text-decoration: none;
  text-transform: none;
}

.mobile-nav-link + .mobile-nav-link {
  border-top: 1px solid rgb(0 0 0 / 0.08);
}

.site-nav.mobile-open .mobile-nav-panel {
  display: block;
}

.site-nav .gap-gutter {
  gap: 24px;
}

@media (min-width: 768px) {
  .site-nav-inner {
    padding-left: 72px;
    padding-right: 72px;
  }

  .mobile-nav-panel {
    display: none !important;
  }
}

.link-underline {
  position: relative;
  text-decoration: none;
  color: #1a1c19;
  transition: color 0.3s ease;
}

.link-underline::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #505f76;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.link-underline:hover {
  color: #505f76;
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.link-underline-active::after {
  transform: scaleX(1);
  background-color: #1a1c19;
}

.slide-up-element,
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s linear, transform 0.6s linear;
}

.slide-up-element.visible,
.slide-up-element.active,
.reveal-up.visible,
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.draw-divider {
  width: 0;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  transition: width 1s ease-out;
}

.draw-divider.visible {
  width: 100%;
}

.image-hover-zoom img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.image-hover-zoom:hover img {
  transform: scale(1.03);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

.blank-shell {
  min-height: calc(100vh - 96px);
}

@media (max-width: 767px) {
  .site-nav {
    min-height: 73px;
  }

  .site-nav-inner {
    min-height: 72px;
    padding: 16px 20px;
  }

  .site-nav-inner > a:first-child {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .site-nav-inner > a.site-brand-logo {
    font-size: 0 !important;
    line-height: 0 !important;
    width: clamp(148px, 48vw, 190px);
    min-height: 36px;
  }

  .site-brand-logo img {
    max-height: 40px;
  }

  .mobile-nav-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .font-display-lg,
  .text-display-lg,
  .font-display-lg-mobile,
  .text-display-lg-mobile {
    font-size: 42px !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  .font-headline-lg,
  .text-headline-lg,
  .font-headline-lg-mobile,
  .text-headline-lg-mobile {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .font-headline-md,
  .text-headline-md {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }

  .font-body-lg,
  .text-body-lg {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  .sticky {
    position: static !important;
  }

  .hairline-l {
    border-left: 0 !important;
  }

  .hairline-r {
    border-right: 0 !important;
  }

  .blank-shell {
    min-height: calc(100vh - 73px);
  }

  header,
  section,
  article,
  footer {
    overflow-wrap: anywhere;
  }

  .flex.gap-4.items-center {
    flex-wrap: wrap;
  }

  .h-\[400px\] {
    height: 280px !important;
  }

  .py-24 {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .pt-24 {
    padding-top: 64px !important;
  }

  .pb-32 {
    padding-bottom: 64px !important;
  }

  .pb-24 {
    padding-bottom: 64px !important;
  }

  .gap-gutter {
    gap: 20px !important;
  }
}

@media (max-width: 420px) {
  .site-nav-inner > a:first-child {
    font-size: 25px !important;
  }

  .site-nav-inner > a.site-brand-logo {
    font-size: 0 !important;
    width: 146px;
  }

  .font-display-lg,
  .text-display-lg,
  .font-display-lg-mobile,
  .text-display-lg-mobile {
    font-size: 36px !important;
  }
}
