.society-page {
  --society-pink: #e94b8a;
  --society-pink-dark: #c62f6f;
  --society-rose-soft: #ffeef5;
  --society-gold: #c89d46;
  --society-gold-soft: #fff6e4;
  background:
    radial-gradient(circle at 8% 6%, rgba(233, 75, 138, 0.15), rgba(233, 75, 138, 0) 33%),
    radial-gradient(circle at 92% 10%, rgba(200, 157, 70, 0.14), rgba(200, 157, 70, 0) 32%),
    linear-gradient(180deg, #fff8fc 0%, #ffffff 32%, #fffdf8 100%);
}

.society-page .site-nav a.current::after {
  background: var(--society-pink);
}

.society-page .section-nav {
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 75, 138, 0.12), rgba(233, 75, 138, 0) 42%),
    linear-gradient(180deg, #fff8fc 0%, #fffdf9 100%);
  border-color: #efd5df;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.society-page .section-nav a:hover {
  background: #fff1f7;
}

.society-page .section-nav a.is-active {
  background: #ffe8f3;
  color: var(--society-pink-dark);
}

.society-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 75, 138, 0.1), rgba(233, 75, 138, 0) 38%),
    radial-gradient(circle at 0% 100%, rgba(200, 157, 70, 0.08), rgba(200, 157, 70, 0) 36%),
    #ffffff;
  border-color: #ecd9e1;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.society-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--society-pink-dark);
}

.society-page .project-intro h1 {
  margin-bottom: 8px;
}

.society-page .project-intro .subtitle {
  color: #7a5060;
}

.society-prose {
  max-width: 790px;
}

.society-prose p {
  margin: 0 0 14px;
}

.society-prose p:last-child {
  margin-bottom: 0;
}

.society-prose h3 {
  margin: 20px 0 10px;
  color: #7a5060;
  font-size: 1.08rem;
  font-weight: 700;
}

.society-prose h3:first-child {
  margin-top: 0;
}

.society-page .case-section h2 {
  margin-bottom: 10px;
}

.society-video-stack {
  margin-top: 24px;
  display: grid;
  gap: 22px;
}

.society-video-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 252, 0.98) 100%);
  border: 1px solid #ecd9e1;
  border-radius: 12px;
  padding: 20px;
}

.society-video-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.society-video-card p {
  margin: 12px 0 16px;
  color: #5f5b67;
}

.society-video-card > p + .society-video-frame {
  margin-top: 10px;
}

.society-video-frame {
  position: relative;
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0d7e6;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  background: #ece7ef;
}

.society-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.society-email-frame {
  max-width: 760px;
  margin-top: 22px;
  border: 1px solid #ead7df;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.society-email-context {
  background: linear-gradient(180deg, #fff8fc 0%, #fffdf9 100%);
  border-top: 3px solid #e680a8;
  border-bottom: 1px solid #ecd9e1;
  padding: 14px 16px;
}

.society-email-context h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.society-email-context .context-label {
  margin: 0 0 8px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #7a5060;
}

.society-email-context p {
  margin: 0 0 10px;
  color: #433a46;
}

.society-email-context p:last-child {
  margin-bottom: 0;
}

.society-email-header {
  background:
    linear-gradient(180deg, #fff4f8 0%, #fff8ef 100%);
  border-top: 3px solid #e680a8;
  border-bottom: 1px solid #ecd9e1;
  padding: 14px 16px;
}

.society-email-header p {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #433a46;
}

.society-email-header p:last-child {
  margin-bottom: 0;
}

.society-email-header strong {
  color: #2f2732;
}

.society-email-body {
  padding: 18px 16px 20px;
  background: #ffffff;
}

.society-email-body p {
  margin: 0 0 12px;
}

.society-email-body p:last-child {
  margin-bottom: 0;
}

.society-email-inline-image {
  width: 100%;
  max-width: 360px;
  margin: 6px 0 14px;
  border-radius: 10px;
  border: 1px solid #ead7df;
}

.society-email-inline-image--large {
  max-width: 460px;
}

body.society-page .society-email-body .email-variable,
body.society-page mark.email-variable {
  display: inline-block !important;
  background: #ffd7e8 !important;
  border: 1px solid #f2a3c5 !important;
  box-shadow: none !important;
  border-radius: 4px;
  padding: 1px 6px;
  color: #7a1f4b !important;
  -webkit-text-fill-color: #7a1f4b !important;
  font-weight: 700;
  line-height: 1.2;
}

.society-email-linklike {
  color: var(--society-pink-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.society-email-body hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #eadfe4;
}

.society-email-cta-wrap {
  margin: 10px 0 14px;
}

.society-email-cta {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(180deg, #e35f98 0%, #cb3f7d 100%);
  color: #ffffff;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.society-page .bottom-nav {
  border-color: #ecd9e1;
  background:
    radial-gradient(circle at 96% 8%, rgba(233, 75, 138, 0.12), rgba(233, 75, 138, 0) 34%),
    linear-gradient(180deg, #fff9fc 0%, #fffdf9 100%);
}

.society-page .project-links a,
.society-page .jump-links a {
  color: var(--society-pink-dark);
}

.society-page .project-links a:hover,
.society-page .jump-links a:hover {
  color: #9d2458;
}

@media (max-width: 1023px) {
  .society-page .section-nav-wrapper {
    background: #ffffff;
  }

  .society-page .section-nav {
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .society-video-card,
  .society-email-header,
  .society-email-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .society-email-frame {
    margin-top: 18px;
  }
}
