.site-menu-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-tools {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
}

.site-menu {
  display: flex;
  align-items: flex-end;
  position: relative;
}

.site-help-button,
.site-menu-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(123, 47, 58, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(188, 35, 137, 0.22), rgba(93, 52, 199, 0.20), rgba(28, 175, 123, 0.18)) border-box;
  color: var(--green-dark, var(--brand-dark, var(--wine-dark, #54232b)));
  line-height: 1;
  font-weight: 820;
}

.site-help-button {
  font-size: 1rem;
  cursor: pointer;
}

.site-help-button:hover,
.site-menu-button:hover {
  border-color: var(--green, var(--brand, var(--wine, #7b2f3a)));
  box-shadow: 0 0 0 3px rgba(123, 47, 58, 0.10);
}

.site-menu-button {
  gap: 4px;
}

.site-menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-menu-button[aria-expanded="true"] {
  border-color: var(--green, var(--brand, var(--wine, #7b2f3a)));
  box-shadow: 0 0 0 3px rgba(123, 47, 58, 0.12);
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.site-menu-panel .text-link {
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  background: transparent;
}

.site-menu-panel .text-link:hover,
.site-menu-panel .text-link[aria-current="page"] {
  background: rgba(188, 35, 137, 0.06);
}

body.modal-open {
  overflow: hidden;
}

.about-modal.hidden,
.feedback-modal.hidden {
  display: none;
}

.about-modal,
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
}

.about-modal-backdrop,
.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 31, 0.44);
  backdrop-filter: blur(3px);
}

.about-modal-card,
.feedback-modal-card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 25, 31, 0.24);
}

.feedback-modal-card {
  width: min(560px, 100%);
}

.about-modal-close,
.feedback-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--green-dark, #54232b);
  font-size: 1rem;
  font-weight: 820;
  cursor: pointer;
}

.about-modal-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.about-modal-art {
  display: grid;
  gap: 10px;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.about-modal-copy {
  display: grid;
  gap: 12px;
  padding: 10px 42px 4px 0;
}

.about-modal-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.about-modal-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.62;
}

.about-modal-copy a {
  color: var(--green, #7b2f3a);
  font-weight: 760;
}

.studio-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17191f;
  color: white;
}

.studio-lockup img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.studio-lockup strong {
  display: block;
  color: white;
  font-size: 0.98rem;
  line-height: 1.1;
}

.feedback-modal-card h2 {
  margin: 0;
  padding-right: 40px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.08;
}

.feedback-modal-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.52;
}

.feedback-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.feedback-form.hidden,
.feedback-thanks.hidden {
  display: none;
}

.feedback-form label {
  color: var(--ink);
  font-weight: 760;
}

.feedback-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.feedback-attachment-note {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.feedback-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--green-dark, var(--brand-dark, var(--wine-dark, #54232b)));
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.feedback-actions .primary-button {
  border-color: var(--green, var(--brand, var(--wine, #7b2f3a)));
  background: var(--green, var(--brand, var(--wine, #7b2f3a)));
  color: white;
}

.feedback-thanks {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feedback-thanks h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.08;
}

.feedback-thanks button {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-dark, var(--brand-dark, var(--wine-dark, #54232b)));
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.enterprise-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(123, 47, 58, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(38, 29, 24, 0.06);
}

.enterprise-callout h2 {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.enterprise-callout p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.enterprise-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--green, var(--brand, var(--wine, #7b2f3a)));
  border-radius: 8px;
  background: var(--green, var(--brand, var(--wine, #7b2f3a)));
  color: white;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.site-feedback-row {
  display: flex;
  justify-content: center;
  margin-top: -2px;
  color: var(--green, var(--brand, var(--wine, #7b2f3a)));
  font-size: 0.86rem;
}

.site-feedback-row a {
  color: inherit;
  font-weight: 760;
  text-decoration: none;
}

.site-feedback-row a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.site-footer span {
  display: inline-block;
}

@media (max-width: 640px) {
  .site-menu-panel {
    min-width: min(76vw, 220px);
  }

  .about-modal {
    padding: 12px;
  }

  .about-modal-card {
    max-height: 88vh;
    padding: 14px;
  }

  .about-modal-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-height: 220px;
  }

  .about-modal-copy {
    padding: 0;
  }

  .studio-lockup img {
    width: 54px;
    height: 54px;
  }

  .enterprise-callout {
    flex-direction: column;
    align-items: stretch;
  }
}
