:root {
  --bg: #f8f8f8;
  --blue: #0073eb;
  --pink: #ec2c79;
  --ink: #15141a;
  --muted: #5f6070;
  --line: rgba(26, 25, 38, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.32);
  --max-width: 1280px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.about-page {
  overflow: hidden;
  background: var(--bg);
}

.about-hero {
  position: relative;
  min-height: 690px;
  padding: 110px 24px 78px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 22% 22%, rgba(142, 99, 255, 0.5), transparent 32%),
    radial-gradient(circle at 82% 26%, rgba(236, 44, 121, 0.34), transparent 34%),
    linear-gradient(145deg, #09112f 0%, #17205a 39%, #3c2083 72%, #1b4f9d 100%);
  isolation: isolate;
  overflow: hidden;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  /* background: linear-gradient(to bottom, rgba(248, 248, 248, 0), var(--bg) 88%); */
  pointer-events: none;
  z-index: 3;
}

.stars,
.stars span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stars {
  opacity: 0.88;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,255,255,0.62) 0 1px, transparent 1.5px);
  background-position: 0 0, 42px 38px;
  background-size: 96px 96px, 140px 140px;
}

.stars span {
  width: 6px;
  height: 6px;
  inset: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
}

.stars span:nth-child(1) { left: 12%; top: 28%; }
.stars span:nth-child(2) { left: 28%; top: 18%; width: 4px; height: 4px; }
.stars span:nth-child(3) { right: 21%; top: 25%; width: 5px; height: 5px; }
.stars span:nth-child(4) { right: 11%; top: 48%; width: 4px; height: 4px; }
.stars span:nth-child(5) { left: 46%; bottom: 20%; width: 5px; height: 5px; }
.stars span:nth-child(6) { left: 8%; bottom: 34%; width: 4px; height: 4px; }

.about-hero-panel {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  min-height: 493px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 42px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 82px);
  box-shadow: 0 30px 90px rgba(2, 7, 30, 0.28);
  overflow: visible;
}

.about-hero-copy {
  position: relative;
  z-index: 5;
  width: min(620px, 100%);
  padding: 34px 18px;
  text-align: center;
}

.hero-kicker,
.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-kicker {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 11px 17px;
  color: #dbe7ff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 14, 48, 0.34);
}

.about-hero h1 {
  margin: 0;
  color: #f7fbff;
  font-family: "Dela Gothic One", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: clamp(4.4rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
  text-shadow:
    /* 0 8px 0 rgba(236, 44, 121, 0.84), */
    0 18px 34px rgba(0, 6, 35, 0.44);
}

.hero-lede {
  max-width: 500px;
  margin: 30px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 1vw + 0.8rem, 1.44rem);
  font-weight: 400;
  line-height: 1.44;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.hero-dragon {
  position: absolute;
  z-index: 3;
  height: auto;
  pointer-events: none;
  max-width: none;
  filter: drop-shadow(0 24px 26px rgba(2, 8, 34, 0.34));
}

.hero-dragon-midnight {
  left: clamp(-144px, -10.6vw, -18px);
  bottom: clamp(-28px, -2.2vw, 18px);
  width: clamp(340px, 31vw, 500px);
  transform: rotate(-6deg);
}

.hero-dragon-rainbow {
  right: clamp(-230px, -13vw, -82px);
  top: clamp(96px, 8vw, 128px);
  width: clamp(480px, 40vw, 630px);
  transform: rotate(2deg);
}

.about-grid-bg {
  position: relative;
  padding: 20px 0 84px;
  background: var(--bg);
  background-size: 42px 42px;
}

.content-band {
  width: min(calc(100% - 34px), var(--max-width));
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.content-band + .content-band {
  margin-top: 24px;
}

.section-heading {
  max-width: 620px;
}

.section-heading h2,
.creator-card h2,
.partner-card h2,
.team-card h2,
.mascot-copy h2,
.bat-copy h2,
.final-note h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3.45rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

.section-heading p:not(.eyebrow),
.creator-card p:not(.eyebrow),
.partner-card p:not(.eyebrow),
.team-card p:not(.eyebrow),
.mascot-copy p:not(.eyebrow),
.bat-copy p:not(.eyebrow),
.final-note p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.46;
}

.show-flow {
  padding: 16px 0 4px;
}

.compact-heading {
  max-width: 620px;
  margin-bottom: 18px;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flow-step {
  position: relative;
  min-height: 410px;
  padding: 18px 24px 48px;
  display: grid;
  grid-template-rows: 194px 48px auto 1fr;
  align-items: start;
  row-gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(22, 24, 38, 0.07);
}

.flow-step::after {
  content: "";
  position: absolute;
  inset: auto 24px 26px;
  height: 9px;
  border-radius: 999px;
}

.flow-step > img {
  display: block;
  width: min(100%, 245px);
  height: 100%;
  max-height: 166px;
  margin: 0 auto;
  object-fit: contain;
  align-self: center;
  justify-self: center;
}

.discover-image-frame {
  width: min(100%, 245px);
  aspect-ratio: 640 / 474;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  align-self: center;
  justify-self: center;
}

.discover-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

.flow-step span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}

.flow-step h3 {
  margin: 5px 0 0;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 0.95;
}

.flow-step p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.42;
}

.play-step span,
.play-step::after { background: #0073eb; }
.discover-step span,
.discover-step::after { background: #7ac143; }
.vote-step span,
.vote-step::after { background: #ec2c79; }
.watch-step span,
.watch-step::after { background: #f6b31b; }

.flow-deck-controls {
  display: none;
}

.creator-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
}

.creator-card,
.partner-card,
.team-card,
.mascot-band,
.bat-feature,
.bts-card,
.reactions-card,
.final-note {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(22, 24, 38, 0.07);
}

.creator-card {
  min-height: 340px;
  padding: 30px;
}

.calculus-card {
  display: grid;
  grid-template-columns: minmax(230px, 36%) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  min-height: 400px;
  background: #eaf6df;
}

.calculus-card .eyebrow,
.calculus-card h2 {
  color: #1f8e4d;
}

.creator-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  max-width: 380px;
  align-self: center;
}

.creator-pet {
  position: relative;
  z-index: 1;
  grid-column: 2;
  width: min(90%, 540px);
  justify-self: end;
  margin: 0 0 -46px;
}

.akram-card {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-color: rgba(0, 115, 235, 0.15);
  background: #e8f3ff;
}

.akram-card .eyebrow {
  color: var(--blue);
}

.akram-card p:not(.eyebrow) {
  max-width: 310px;
}

.akram-photo {
  width: min(68%, 170px);
  aspect-ratio: 1;
  margin-bottom: 20px;
  border: 7px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 35px rgba(24, 25, 32, 0.12);
}

.partners-team {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.partners-column {
  display: grid;
  gap: 24px;
  grid-auto-rows: minmax(0, 1fr);
}

.partner-card {
  min-height: 300px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 34%);
  gap: 18px;
  align-items: end;
}

.micro-card {
  background: #fff0dc;
}

.micro-card .eyebrow,
.micro-card h2 {
  color: #cc6a24;
}

.meemonz-card {
  grid-template-columns: minmax(0, 56%) minmax(190px, 44%);
  background: #f5e7ff;
}

.meemonz-card .eyebrow,
.meemonz-card h2 {
  color: #ae47e8;
}

.partner-art {
  width: min(142%, 300px);
  align-self: end;
  justify-self: end;
  margin: 0 0 -30px 0;
  transform: translateX(24%);
}

.meemonz-art {
  width: min(143%, 340px);
  max-width: none;
  margin-right: -10px;
  transform: translateX(25%);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-row a,
.team-socials a,
.message-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  cursor: pointer;
  appearance: none;
  transition: transform 170ms ease, filter 170ms ease;
}

.social-row a:hover,
.team-socials a:hover,
.message-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.message-button:focus-visible {
  outline: 3px solid rgba(0, 115, 235, 0.3);
  outline-offset: 3px;
}

.social-row img,
.team-socials img,
.message-button img {
  width: 25px;
  height: 25px;
}

.message-button img {
  width: 22px;
  height: 22px;
}

.team-card {
  padding: 32px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 207, 64, 0.42), transparent 34%),
    #fff8d8;
}

.team-card .eyebrow,
.team-card h2 {
  color: #c39102;
}

.team-header {
  max-width: 640px;
}

.team-list-shell {
  margin-top: 24px;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 14px;
}

.team-scrollbar {
  display: none;
}

.team-member {
  position: relative;
  min-width: 0;
  min-height: 112px;
  height: 100%;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(26, 25, 38, 0.08);
  border-radius: 18px;
  background: #fff;
}

.team-avatar {
  width: 68px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(26, 25, 38, 0.08);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-avatar span {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.38);
}

.team-member-content {
  min-width: 0;
  padding-right: 42px;
}

.team-member.has-message-button .team-member-content {
  padding-right: 82px;
}

.team-member h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.team-card .team-member p {
  margin: 3px 0 0;
  color: #7a7b87;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.18;
}

.team-socials {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
}

.team-socials a,
.team-socials .message-button {
  width: 34px;
  height: 34px;
  border-color: rgba(26, 25, 38, 0.08);
  background: #f7f8fb;
  box-shadow: none;
}

.team-socials img,
.team-socials .message-button img {
  width: 21px;
  height: 21px;
}

.message-modal {
  --letter-navy: #172649;
  --letter-blue: #2f78d6;
  --letter-ink: #25293a;
  --letter-muted: #74798a;
  --letter-paper: #fffdf8;
  width: min(650px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--letter-ink);
}

.message-modal::backdrop {
  background: rgba(9, 15, 32, 0.68);
  backdrop-filter: blur(14px) saturate(0.78);
}

.message-modal[open] {
  animation: message-modal-in 260ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.message-modal:focus {
  outline: none;
}

.message-letter {
  position: relative;
  isolation: isolate;
  min-height: 570px;
  padding: 42px 46px 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: inherit;
  background:
    linear-gradient(rgba(31, 45, 75, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 45, 75, 0.016) 1px, transparent 1px),
    radial-gradient(circle at 88% 10%, rgba(47, 120, 214, 0.09), transparent 28%),
    var(--letter-paper);
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow:
    0 38px 100px rgba(4, 10, 26, 0.36),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.message-letter::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, #172649 0 57%, #2f78d6 57% 82%, #e6b44a 82%);
}

.message-letter::after {
  content: "PAS";
  position: absolute;
  z-index: -1;
  right: -22px;
  bottom: -56px;
  color: rgba(23, 38, 73, 0.027);
  font-family: "Dela Gothic One", "Inter", sans-serif;
  font-size: 10rem;
  line-height: 1;
  pointer-events: none;
}

.message-letter-orbit {
  position: absolute;
  z-index: -1;
  top: -165px;
  right: -145px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(47, 120, 214, 0.08);
  border-radius: 50%;
}

.message-letter-orbit::before,
.message-letter-orbit::after {
  content: "";
  position: absolute;
  border: inherit;
  border-radius: inherit;
}

.message-letter-orbit::before {
  inset: 44px;
}

.message-letter-orbit::after {
  inset: 88px;
}

.message-modal-close {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(23, 38, 73, 0.11);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.88);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(23, 38, 73, 0.09);
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.message-modal-close:hover {
  background: #fff;
  border-color: rgba(47, 120, 214, 0.3);
  transform: rotate(4deg) scale(1.05);
}

.message-modal-close:focus-visible {
  outline: 3px solid rgba(47, 120, 214, 0.28);
  outline-offset: 3px;
}

.message-modal-close img {
  width: 19px;
  height: 19px;
}

.message-letter-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding-right: 46px;
}

.message-modal-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 11px 28px rgba(23, 38, 73, 0.13),
    0 0 0 1px rgba(23, 38, 73, 0.07);
}

.message-modal-avatar > img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #eef3f9;
  object-fit: cover;
  object-position: center top;
}

.message-modal-status {
  position: absolute;
  right: 1px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--letter-blue);
}

.message-modal-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  color: var(--letter-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-modal-kicker img {
  width: 17px;
  height: 17px;
}

.message-letter-header h2 {
  margin: 0;
  color: var(--letter-navy);
  font-size: clamp(1.75rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
}

.message-letter-sender > p:last-child {
  margin: 5px 0 0;
  color: var(--letter-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.message-letter-edition {
  display: grid;
  min-width: 48px;
  justify-items: center;
  color: var(--letter-navy);
  line-height: 1;
}

.message-letter-edition span {
  font-size: 0.93rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.message-letter-edition small {
  margin-top: 5px;
  color: #9a7a34;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.message-letter-divider {
  position: relative;
  height: 18px;
  margin: 22px 0 15px;
}

.message-letter-divider::before,
.message-letter-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background: rgba(23, 38, 73, 0.12);
}

.message-letter-divider::before {
  left: 0;
  right: calc(50% + 15px);
}

.message-letter-divider::after {
  left: calc(50% + 15px);
  right: 0;
}

.message-letter-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5a53c;
  box-shadow: 0 0 0 4px #fffdf8;
  transform: translate(-50%, -50%);
}

.message-letter-body {
  position: relative;
  z-index: 1;
  min-height: 150px;
  max-height: min(35svh, 300px);
  padding: 22px 30px 20px 42px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(47, 120, 214, 0.34) transparent;
  scrollbar-width: thin;
}

.message-letter-body::before {
  content: "";
  position: absolute;
  top: 27px;
  bottom: 22px;
  left: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(#2f78d6, rgba(47, 120, 214, 0.08));
}

.message-letter-quote {
  position: absolute;
  top: 4px;
  left: 31px;
  color: var(--letter-blue);
  font-family: Georgia, serif;
  font-size: 3.8rem;
  line-height: 1;
  opacity: 0.14;
}

.message-letter-body p {
  position: relative;
  margin: 0;
  color: #35394a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2.6vw, 1.24rem);
  font-weight: 400;
  line-height: 1.72;
}

.message-letter-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
  margin-top: 18px;
  padding: 20px 6px 0 28px;
  border-top: 1px solid rgba(23, 38, 73, 0.09);
}

.message-signoff > p {
  margin: 0;
  color: var(--letter-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-style: italic;
}

.message-signoff > span {
  display: block;
  margin-top: -2px;
  color: var(--letter-navy);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-signature {
  position: relative;
  width: min(250px, 100%);
  height: 82px;
  margin: 1px 0 0;
  overflow: hidden;
}

.message-signature img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
  clip-path: inset(0 100% 0 0);
  filter: invert(13%) sepia(18%) saturate(1830%) hue-rotate(182deg) brightness(91%) contrast(92%);
}

.message-signature.is-signing img {
  animation: message-signature-write 1.85s cubic-bezier(0.22, 0.7, 0.2, 1) 260ms forwards;
}

.message-signature-ink {
  display: none;
}

.message-signature.is-signing .message-signature-ink {
  display: none;
  animation: none;
}

.message-letter-seal {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--letter-navy);
}

.message-letter-seal > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 38, 73, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 0 4px rgba(23, 38, 73, 0.035);
}

.message-letter-seal img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.message-letter-seal p {
  margin: 0;
  color: #7d8190;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes message-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes message-signature-write {
  0% { clip-path: inset(0 100% 0 0); }
  18% { clip-path: inset(0 82% 0 0); }
  44% { clip-path: inset(0 55% 0 0); }
  72% { clip-path: inset(0 25% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes message-signature-ink {
  0% { left: -12px; opacity: 0; }
  8% { opacity: 0.72; }
  88% { opacity: 0.48; }
  100% { left: calc(100% - 14px); opacity: 0; }
}

@media (max-width: 560px) {
  .message-modal {
    width: min(100% - 20px, 650px);
    max-height: calc(100svh - 20px);
    border-radius: 23px;
  }

  .message-letter {
    min-height: 0;
    padding: 29px 22px 24px;
  }

  .message-modal-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }

  .message-letter-header {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 13px;
    padding-right: 34px;
  }

  .message-modal-avatar {
    width: 62px;
    height: 62px;
  }

  .message-modal-kicker {
    font-size: 0.66rem;
  }

  .message-letter-header h2 {
    font-size: 1.55rem;
  }

  .message-letter-edition {
    display: none;
  }

  .message-letter-divider {
    margin: 18px 0 10px;
  }

  .message-letter-body {
    min-height: 132px;
    max-height: 31svh;
    padding: 19px 10px 16px 31px;
  }

  .message-letter-body::before {
    left: 10px;
  }

  .message-letter-quote {
    left: 23px;
  }

  .message-letter-body p {
    font-size: 1.03rem;
    line-height: 1.62;
  }

  .message-letter-footer {
    gap: 10px;
    margin-top: 12px;
    padding: 16px 0 0 12px;
  }

  .message-signature {
    width: min(205px, 100%);
    height: 72px;
  }

  .message-letter-seal > span {
    width: 46px;
    height: 46px;
  }

  .message-letter-seal img {
    width: 31px;
    height: 31px;
  }

  .message-letter-seal p {
    display: none;
  }
}

.message-modal:focus,
.message-modal:focus-visible,
.message-letter:focus,
.message-letter:focus-visible {
  outline: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .message-modal[open] {
    animation: none;
  }

  .message-signature img,
  .message-signature.is-signing img {
    clip-path: none;
    animation: none;
  }

  .message-signature-ink,
  .message-signature.is-signing .message-signature-ink {
    display: none;
    animation: none;
  }
}

/* Personal letters — restrained, editorial, and content-first. */
.message-modal {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(88svh, 860px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 18, 25, 0.2);
  color: #202126;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.message-modal::backdrop {
  background: rgba(20, 22, 28, 0.57);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.message-modal[open] {
  animation: final-letter-open 230ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.message-letter {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  max-height: min(88svh, 860px);
  margin: 0;
  padding: 34px 48px 42px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  scrollbar-color: #d7d8dc transparent;
  scrollbar-width: thin;
}

.message-letter::-webkit-scrollbar {
  width: 6px;
}

.message-letter::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d7d8dc;
}

.message-letter::before,
.message-letter::after {
  display: none;
}

.message-modal-close {
  position: absolute;
  z-index: 5;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border: 1px solid #e7e7e9;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(15, 18, 25, 0.04);
}

.message-modal-close:hover {
  border-color: #d4d5d8;
  background: #f7f7f8;
  transform: none;
}

.message-modal-close:focus-visible {
  outline: 3px solid rgba(32, 33, 38, 0.16);
  outline-offset: 3px;
}

.message-modal-close img {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.message-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 64px 0 0;
}

.message-letter-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-letter-brand > img {
  width: 34px;
  height: 42px;
  object-fit: contain;
}

.message-letterhead .message-letter-brand p {
  margin: 0;
  color: #1c1d22;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-transform: none;
}

.message-letterhead .message-letter-brand span {
  display: block;
  margin-top: 3px;
  color: #8b8d94;
  font-family: inherit;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message-letterhead time {
  color: #767880;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.message-letter-divider {
  height: 1px;
  margin: 24px 0 26px;
  background: #ececef;
}

.message-letter-divider::before,
.message-letter-divider::after,
.message-letter-divider span {
  display: none;
}

.message-letter-routing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.message-letter-sender {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  max-width: none;
  margin: 0;
}

.message-modal-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid #e8e8ea;
  border-radius: 50%;
  background: #f7f7f8;
  box-shadow: none;
}

.message-modal-avatar > img {
  background: #f7f7f8;
}

.message-modal-kicker,
.message-letter-recipient > span {
  margin: 0 0 3px;
  color: #9a9ca2;
  font-family: inherit;
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.message-letter-sender h2 {
  margin: 0;
  color: #1d1e23;
  font-family: inherit;
  font-size: 1.34rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.message-letter-sender > div:last-child > p:last-child {
  margin: 3px 0 0;
  color: #74767d;
  font-size: 0.67rem;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
}

.message-letter-recipient {
  min-width: 160px;
  padding: 4px 0 4px 24px;
  border-top: 0;
  border-left: 1px solid #ececef;
}

.message-letter-recipient p {
  margin: 0;
  color: #393a40;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 650;
}

.message-letter-body {
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 38px 0 32px;
  overflow: visible;
  text-align: left;
}

.message-letter-body::before {
  display: none;
}

.message-copy p,
.message-letter-body #messageModalText p {
  margin: 0;
  color: #303137;
  font-family: inherit;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  font-weight: 430;
  line-height: 1.78;
  letter-spacing: -0.008em;
  white-space: normal;
}

.message-copy p + p,
.message-letter-body #messageModalText p + p {
  margin-top: 1.25em;
}

.message-letter-footer {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.message-signoff {
  width: min(260px, 100%);
  margin: 0;
}

.message-signoff > p {
  margin: 0 0 2px;
  color: #777980;
  font-family: inherit;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 550;
}

.message-signature {
  width: min(250px, 100%);
  height: 82px;
  margin: 0;
}

.message-signature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

.message-signature-ink,
.message-letter-postscript {
  display: none;
}

@keyframes final-letter-open {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .message-modal {
    width: calc(100% - 20px);
    max-height: 92svh;
    border-radius: 19px;
  }

  .message-letter {
    max-height: 92svh;
    padding: 26px 24px 32px;
  }

  .message-modal-close {
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
  }

  .message-letterhead {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-right: 38px;
  }

  .message-letterhead time {
    display: block;
    align-self: center;
    margin: 0 0 0 auto;
    font-size: 0.6rem;
    white-space: nowrap;
  }

  .message-letter-brand {
    gap: 8px;
  }

  .message-letter-brand > img {
    width: 32px;
    height: 40px;
  }

  .message-letterhead .message-letter-brand p {
    font-size: 0.7rem;
  }

  .message-letterhead .message-letter-brand span {
    margin-top: 2px;
    font-size: 0.52rem;
  }

  .message-letter-divider {
    margin: 21px 0 23px;
  }

  .message-letter-routing {
    display: block;
  }

  .message-letter-recipient {
    min-width: 0;
    margin-top: 18px;
    padding: 17px 0 0;
    border-top: 1px solid #eeeeef;
    border-left: 0;
  }

  .message-letter-body {
    padding: 29px 0 27px;
  }

  .message-copy p,
  .message-letter-body #messageModalText p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .message-signature {
    width: min(220px, 100%);
    height: 74px;
  }
}

.message-modal:focus,
.message-modal:focus-visible,
.message-letter:focus,
.message-letter:focus-visible {
  outline: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .message-modal[open] {
    animation: none;
  }
}

/* Classic message letter */
.message-modal {
  --letter-navy: #1d2940;
  --letter-ink: #30323a;
  --letter-muted: #77777b;
  width: min(620px, calc(100% - 32px));
  border-radius: 18px;
}

.message-modal::backdrop {
  background: rgba(22, 24, 31, 0.66);
  backdrop-filter: blur(12px) saturate(0.68);
}

.message-letter {
  min-height: 540px;
  padding: 34px 52px 42px;
  border-color: rgba(255, 255, 255, 0.68);
  background:
    radial-gradient(circle at 12% 8%, rgba(113, 94, 63, 0.035), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 58%),
    #fbfaf6;
  box-shadow:
    0 34px 90px rgba(5, 7, 12, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.message-letter::before {
  inset: 14px;
  width: auto;
  height: auto;
  border: 1px solid rgba(49, 49, 48, 0.1);
  border-radius: 10px;
  background: none;
  pointer-events: none;
}

.message-letter::after,
.message-letter-orbit {
  display: none;
}

.message-modal-close {
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-color: rgba(39, 40, 45, 0.1);
  background: #fbfaf6;
  box-shadow: 0 4px 14px rgba(31, 31, 31, 0.07);
}

.message-modal-close:hover {
  border-color: rgba(29, 41, 64, 0.28);
  background: #fff;
  transform: scale(1.04);
}

.message-modal-close:focus-visible {
  outline-color: rgba(29, 41, 64, 0.23);
}

.message-modal-close img {
  width: 17px;
  height: 17px;
}

.message-letterhead {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.message-letterhead > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.message-letterhead p {
  margin: 8px 0 0;
  color: var(--letter-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.message-letterhead span {
  margin-top: 4px;
  color: #99958b;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.message-letter-divider {
  height: 13px;
  margin: 17px 0 18px;
}

.message-letter-divider::before,
.message-letter-divider::after {
  background: rgba(43, 44, 48, 0.14);
}

.message-letter-divider::before {
  right: calc(50% + 11px);
}

.message-letter-divider::after {
  left: calc(50% + 11px);
}

.message-letter-divider span {
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: var(--letter-navy);
  box-shadow: 0 0 0 4px #fbfaf6;
  transform: translate(-50%, -50%) rotate(45deg);
}

.message-letter-sender {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  max-width: 360px;
  margin: 0 auto;
}

.message-modal-avatar {
  width: 64px;
  height: 64px;
  padding: 3px;
  box-shadow:
    0 7px 20px rgba(29, 41, 64, 0.1),
    0 0 0 1px rgba(29, 41, 64, 0.08);
}

.message-modal-avatar > img {
  background: #efeee9;
}

.message-modal-kicker {
  margin-bottom: 3px;
  color: #8a867d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.message-letter-sender h2 {
  margin: 0;
  color: var(--letter-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 600;
  line-height: 1;
}

.message-letter-sender > div:last-child > p:last-child {
  margin: 5px 0 0;
  color: var(--letter-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.message-letter-body {
  min-height: 138px;
  max-height: min(35svh, 290px);
  margin-top: 22px;
  padding: 25px 25px 20px;
  text-align: center;
}

.message-letter-body::before {
  display: none;
}

.message-letter-quote {
  top: 2px;
  left: 50%;
  color: var(--letter-navy);
  font-size: 3.1rem;
  opacity: 0.1;
  transform: translateX(-50%);
}

.message-letter-body p {
  color: var(--letter-ink);
  font-size: clamp(1.08rem, 2.6vw, 1.2rem);
  line-height: 1.75;
}

.message-letter-footer {
  display: block;
  margin-top: 10px;
  padding: 22px 24px 0;
  border-top-color: rgba(43, 44, 48, 0.12);
}

.message-signoff {
  width: min(270px, 100%);
  margin-left: auto;
  text-align: left;
}

.message-signoff > p {
  color: #858179;
  font-size: 0.78rem;
}

.message-signoff > span {
  margin-top: -5px;
  color: #737279;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}

.message-signature {
  width: min(270px, 100%);
  height: 84px;
}

.message-signature img {
  filter: invert(14%) sepia(11%) saturate(1390%) hue-rotate(180deg) brightness(90%) contrast(90%);
}

.message-signature.is-signing img {
  animation-duration: 1.25s;
  animation-delay: 120ms;
}

.message-signature.is-signing .message-signature-ink {
  animation-duration: 1.25s;
  animation-delay: 120ms;
}

.message-letter-seal,
.message-letter-edition {
  display: none;
}

@media (max-width: 560px) {
  .message-modal {
    width: min(100% - 20px, 620px);
    border-radius: 16px;
  }

  .message-letter {
    padding: 27px 26px 29px;
  }

  .message-letter::before {
    inset: 9px;
    border-radius: 9px;
  }

  .message-modal-close {
    top: 14px;
    right: 14px;
    width: 35px;
    height: 35px;
  }

  .message-letterhead > img {
    width: 42px;
    height: 42px;
  }

  .message-letterhead p {
    font-size: 0.76rem;
  }

  .message-letter-divider {
    margin: 14px 0 15px;
  }

  .message-letter-sender {
    grid-template-columns: 57px minmax(0, 1fr);
    gap: 13px;
    max-width: 285px;
  }

  .message-modal-avatar {
    width: 57px;
    height: 57px;
  }

  .message-letter-sender h2 {
    font-size: 1.48rem;
  }

  .message-letter-body {
    min-height: 128px;
    max-height: 31svh;
    margin-top: 17px;
    padding: 22px 5px 16px;
  }

  .message-letter-body p {
    font-size: 1.01rem;
    line-height: 1.65;
  }

  .message-letter-footer {
    margin-top: 7px;
    padding: 17px 5px 0;
  }

  .message-signoff {
    width: min(230px, 100%);
  }

  .message-signature {
    width: min(230px, 100%);
    height: 75px;
  }
}

/* Editorial correspondence layout */
.message-modal {
  width: min(680px, calc(100% - 32px));
  border-radius: 14px;
}

.message-letter {
  min-height: 600px;
  padding: 42px 54px 38px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(108, 74, 48, 0.055) 31px 32px, transparent 32px),
    radial-gradient(circle at 88% 7%, rgba(113, 94, 63, 0.035), transparent 24%),
    #fcfbf7;
}

.message-letter::before {
  inset: 12px;
  border-color: rgba(55, 51, 46, 0.11);
  border-radius: 7px;
}

.message-letter::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: block;
  width: 48px;
  height: 48px;
  border-right: 1px solid rgba(55, 51, 46, 0.09);
  border-bottom: 1px solid rgba(55, 51, 46, 0.09);
  border-radius: 0 0 7px;
  pointer-events: none;
}

.message-modal-close {
  top: 18px;
  right: 18px;
  z-index: 5;
  background: rgba(252, 251, 247, 0.92);
}

.message-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-right: 54px;
  text-align: left;
}

.message-letter-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.message-letter-brand > img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  object-fit: contain;
}

.message-letterhead .message-letter-brand p {
  margin: 0;
  color: var(--letter-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-letterhead .message-letter-brand span {
  display: block;
  margin-top: 4px;
  color: #8b887f;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.message-letterhead time {
  color: #615f59;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.message-letter-divider {
  height: 1px;
  margin: 20px 0 24px;
  background: rgba(48, 47, 45, 0.16);
}

.message-letter-divider::before,
.message-letter-divider::after,
.message-letter-divider span {
  display: none;
}

.message-letter-routing {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(170px, 0.85fr);
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(55, 52, 47, 0.09);
  border-radius: 8px;
  background: rgba(239, 236, 228, 0.46);
}

.message-letter-sender {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  max-width: none;
  margin: 0;
}

.message-modal-avatar {
  width: 58px;
  height: 58px;
  box-shadow:
    0 5px 15px rgba(29, 41, 64, 0.08),
    0 0 0 1px rgba(29, 41, 64, 0.08);
}

.message-modal-kicker,
.message-letter-recipient > span {
  margin: 0 0 4px;
  color: #89857c;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.message-letter-sender h2 {
  font-size: 1.55rem;
}

.message-letter-sender > div:last-child > p:last-child {
  margin-top: 4px;
  font-size: 0.65rem;
}

.message-letter-recipient {
  min-width: 0;
  padding: 5px 0 5px 24px;
  border-left: 1px solid rgba(55, 52, 47, 0.13);
}

.message-letter-recipient p {
  margin: 0;
  color: var(--letter-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
}

.message-letter-body {
  min-height: 170px;
  max-height: min(35svh, 320px);
  margin-top: 0;
  padding: 34px 4px 26px;
  text-align: left;
}

.message-letter-body p {
  color: #363638;
  font-size: clamp(1.06rem, 2.5vw, 1.17rem);
  line-height: 1.78;
}

.message-letter-body .message-letter-salutation {
  margin: 0 0 15px;
  color: var(--letter-navy);
  font-size: clamp(1.08rem, 2.5vw, 1.19rem);
  font-weight: 600;
}

.message-letter-body #messageModalText {
  margin: 0;
  white-space: pre-line;
}

.message-letter-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(150px, auto);
  align-items: end;
  gap: 30px;
  margin-top: 0;
  padding: 22px 4px 0;
}

.message-signoff {
  width: min(285px, 100%);
  margin: 0;
}

.message-signature {
  width: min(285px, 100%);
  height: 86px;
}

.message-letter-postscript {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  color: #89857e;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
}

.message-letter-postscript img {
  width: 17px;
  height: 17px;
  opacity: 0.56;
}

@media (max-width: 560px) {
  .message-modal {
    width: min(100% - 18px, 680px);
    border-radius: 12px;
  }

  .message-letter {
    min-height: 0;
    padding: 27px 25px 28px;
    background:
      linear-gradient(90deg, transparent 0 17px, rgba(108, 74, 48, 0.045) 17px 18px, transparent 18px),
      #fcfbf7;
  }

  .message-letter::before {
    inset: 8px;
    border-radius: 6px;
  }

  .message-letterhead {
    align-items: flex-start;
    gap: 10px;
    padding-right: 34px;
  }

  .message-letter-brand {
    gap: 9px;
  }

  .message-letter-brand > img {
    width: 40px;
    height: 40px;
  }

  .message-letterhead .message-letter-brand p {
    font-size: 0.72rem;
  }

  .message-letterhead .message-letter-brand span {
    font-size: 0.5rem;
  }

  .message-letterhead time {
    padding-top: 4px;
    font-size: 0.67rem;
  }

  .message-letter-divider {
    margin: 16px 0 18px;
  }

  .message-letter-routing {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 14px 15px;
  }

  .message-letter-sender {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .message-modal-avatar {
    width: 52px;
    height: 52px;
  }

  .message-letter-sender h2 {
    font-size: 1.35rem;
  }

  .message-letter-recipient {
    padding: 11px 0 0;
    border-top: 1px solid rgba(55, 52, 47, 0.11);
    border-left: 0;
  }

  .message-letter-recipient p {
    font-size: 0.9rem;
  }

  .message-letter-body {
    min-height: 144px;
    max-height: 29svh;
    padding: 25px 1px 20px;
  }

  .message-letter-body p,
  .message-letter-body .message-letter-salutation {
    font-size: 0.99rem;
    line-height: 1.66;
  }

  .message-letter-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 17px 1px 0;
  }

  .message-signoff,
  .message-signature {
    width: min(235px, 100%);
  }

  .message-signature {
    height: 74px;
  }

  .message-letter-postscript {
    justify-content: flex-end;
    font-size: 0.49rem;
  }
}

/* Clean message card */
.message-modal {
  width: min(660px, calc(100% - 32px));
  border-radius: 24px;
  color: #17181c;
}

.message-modal::backdrop {
  background: rgba(20, 22, 27, 0.58);
  backdrop-filter: blur(14px) saturate(0.72);
}

.message-letter {
  min-height: 560px;
  padding: 38px 44px 36px;
  border: 1px solid rgba(20, 22, 27, 0.08);
  border-radius: inherit;
  background: #fff;
  box-shadow:
    0 36px 100px rgba(8, 10, 15, 0.3),
    0 2px 8px rgba(8, 10, 15, 0.05);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.message-letter::before,
.message-letter::after {
  display: none;
}

.message-modal-close {
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message-modal-close:hover {
  background: #f2f2f3;
  transform: none;
}

.message-modal-close:focus-visible {
  outline: 2px solid #d7d9de;
  outline-offset: 2px;
}

.message-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-right: 58px;
}

.message-letter-brand {
  gap: 12px;
}

.message-letter-brand > img {
  width: 44px;
  height: 44px;
}

.message-letterhead .message-letter-brand p {
  margin: 0;
  color: #17181c;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.message-letterhead .message-letter-brand span {
  margin-top: 3px;
  color: #8a8d96;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.message-letterhead time {
  color: #686b73;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
}

.message-letter-divider {
  height: 1px;
  margin: 22px 0;
  background: #ececef;
}

.message-letter-routing {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid #ececef;
  border-radius: 0;
  background: transparent;
}

.message-letter-sender {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
}

.message-modal-avatar {
  width: 58px;
  height: 58px;
  padding: 2px;
  border: 1px solid #e5e6e9;
  background: #fff;
  box-shadow: none;
}

.message-modal-avatar > img {
  background: #f4f4f5;
}

.message-modal-kicker,
.message-letter-recipient > span {
  margin: 0 0 4px;
  color: #9a9ca3;
  font-family: inherit;
  font-size: 0.59rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-letter-sender h2 {
  color: #17181c;
  font-family: inherit;
  font-size: 1.48rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.message-letter-sender > div:last-child > p:last-child {
  margin-top: 5px;
  color: #737680;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.message-letter-recipient {
  min-width: 145px;
  padding: 8px 0 8px 28px;
  border-left: 1px solid #ececef;
}

.message-letter-recipient p {
  color: #34353a;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 650;
}

.message-letter-body {
  min-height: 190px;
  max-height: min(36svh, 330px);
  padding: 30px 2px 28px;
  text-align: left;
}

.message-letter-body p,
.message-letter-body .message-letter-salutation {
  color: #34353a;
  font-family: inherit;
  font-size: clamp(1rem, 2.5vw, 1.08rem);
  line-height: 1.72;
}

.message-letter-body .message-letter-salutation {
  margin-bottom: 16px;
  color: #17181c;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.message-letter-body .message-email-link {
  color: #006fe6;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.message-letter-body .message-email-link:hover {
  color: #0059b8;
}

.message-letter-body .message-email-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid #006fe6;
  outline-offset: 3px;
}

.message-letter-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
  padding: 24px 2px 0;
  border-top: 1px solid #ececef;
}

.message-signoff {
  width: min(275px, 100%);
  margin: 0;
}

.message-signoff > p {
  color: #7b7e86;
  font-family: inherit;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
}

.message-signoff > span {
  margin-top: -5px;
  color: #898b92;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.message-signature {
  width: min(275px, 100%);
  height: 82px;
}

.message-signature img {
  filter: invert(8%) sepia(4%) saturate(830%) hue-rotate(189deg) brightness(95%) contrast(91%);
}

.message-letter-postscript {
  display: none;
}

@media (max-width: 560px) {
  .message-modal {
    width: min(100% - 18px, 660px);
    border-radius: 20px;
  }

  .message-letter {
    min-height: 0;
    padding: 26px 24px 28px;
    background: #fff;
  }

  .message-modal-close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
  }

  .message-letterhead {
    align-items: flex-start;
    gap: 12px;
    padding-right: 34px;
  }

  .message-letter-brand {
    gap: 9px;
  }

  .message-letter-brand > img {
    width: 38px;
    height: 38px;
  }

  .message-letterhead .message-letter-brand p {
    font-size: 0.78rem;
  }

  .message-letterhead .message-letter-brand span {
    font-size: 0.6rem;
  }

  .message-letterhead time {
    padding-top: 4px;
    font-size: 0.65rem;
  }

  .message-letter-divider {
    margin: 18px 0;
  }

  .message-letter-routing {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 18px;
  }

  .message-letter-sender {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .message-modal-avatar {
    width: 52px;
    height: 52px;
  }

  .message-letter-sender h2 {
    font-size: 1.3rem;
  }

  .message-letter-recipient {
    min-width: 0;
    padding: 13px 0 0;
    border-top: 1px solid #ececef;
    border-left: 0;
  }

  .message-letter-body {
    min-height: 155px;
    max-height: 30svh;
    padding: 24px 1px 21px;
  }

  .message-letter-body p,
  .message-letter-body .message-letter-salutation {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .message-letter-footer {
    padding: 19px 1px 0;
  }

  .message-signoff,
  .message-signature {
    width: min(235px, 100%);
  }

  .message-signature {
    height: 74px;
  }
}

.mascot-band {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: 20px;
  padding: 38px;
  background:
    radial-gradient(circle at 80% 26%, rgba(0, 115, 235, 0.14), transparent 36%),
    #eaf8ff;
}

.mascot-copy {
  max-width: 500px;
}

.mascot-copy .eyebrow,
.mascot-copy h2 {
  color: #006bd8;
}

.mascot-stage {
  position: relative;
  min-height: 280px;
  border-radius: 26px;
  background:
    linear-gradient(rgba(0, 115, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 115, 235, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.52);
  background-size: 34px 34px;
}

.mascot-bubbles,
.mascot-bubbles span {
  position: absolute;
  pointer-events: none;
}

.mascot-bubbles {
  inset: 0;
  z-index: 1;
}

.mascot-bubbles span {
  width: 18px;
  aspect-ratio: 1;
  border: 2px solid rgba(0, 115, 235, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.38);
}

.mascot-bubbles span:nth-child(1) {
  left: 31%;
  top: 21%;
  width: 13px;
}

.mascot-bubbles span:nth-child(2) {
  left: 33%;
  top: 33%;
  width: 21px;
}

.mascot-bubbles span:nth-child(3) {
  right: 32%;
  top: 20%;
  width: 15px;
}

.mascot-bubbles span:nth-child(4) {
  right: 24%;
  top: 42%;
  width: 24px;
}

.mascot-bubbles span:nth-child(5) {
  left: 31%;
  bottom: 24%;
  width: 16px;
}

.mascot-bubbles span:nth-child(6) {
  left: 25%;
  top: 43%;
  width: 19px;
}

.mascot-bubbles span:nth-child(7) {
  right: 21%;
  bottom: 26%;
  width: 14px;
}

.mascot-bubbles span:nth-child(8) {
  left: 30%;
  bottom: 12%;
  width: 12px;
}

.mascot-bubbles span:nth-child(9) {
  right: 31%;
  bottom: 16%;
  width: 18px;
}

.inky-art {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(40%, 205px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 18px rgba(0, 83, 150, 0.14));
}

.puffer-art {
  position: absolute;
  left: 8%;
  top: 24px;
  width: min(25%, 128px);
}

.turtle-art {
  position: absolute;
  right: 6%;
  bottom: 34px;
  width: min(28%, 150px);
}

.bat-feature {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr) minmax(170px, 0.35fr);
  align-items: center;
  gap: 12px;
  padding: 28px 36px;
  background-size: 36px 36px;
}

.bat-copy {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.bat-copy .eyebrow,
.bat-copy h2 {
  color: var(--ink);
}

.bat {
  width: min(100%, 230px);
  justify-self: center;
  filter: drop-shadow(0 16px 22px rgba(42, 23, 74, 0.08));
}

@media (min-width: 821px) {
  .bat-fairy {
    width: min(106%, var(--bat-size, 230px));
  }

  .bat-strawberry {
    width: min(115%, var(--bat-size, 230px));
  }
}

.bat-strawberry {
  --bat-size: 270px;
  --bat-compact-size: 215px;
  --bat-mobile-size: 200px;
  transform: rotate(-8deg);
  filter:
    drop-shadow(0 16px 18px rgba(236, 96, 118, 0.16))
    drop-shadow(0 28px 38px rgba(236, 96, 118, 0.08));
}

.bat-fairy {
  --bat-size: 250px;
  --bat-compact-size: 194px;
  --bat-mobile-size: 184px;
  transform: rotate(8deg);
  filter:
    drop-shadow(0 16px 18px rgba(248, 211, 94, 0.18))
    drop-shadow(0 28px 38px rgba(248, 211, 94, 0.09));
}

.connect-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.connect-card {
  position: relative;
  min-height: 440px;
  padding: 38px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(22, 24, 38, 0.07);
}

.connect-card::before,
.connect-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.connect-card::before {
  width: 260px;
  aspect-ratio: 1;
  right: -72px;
  bottom: -92px;
  background: rgba(255, 255, 255, 0.46);
}

.connect-card::after {
  width: 120px;
  aspect-ratio: 1;
  top: -54px;
  right: 22%;
  border: 24px solid rgba(255, 255, 255, 0.26);
}

.join-card {
  background:
    radial-gradient(circle at 9% 0%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(145deg, #effbe5 0%, #e1f7cf 100%);
}

.hello-card {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.74), transparent 34%),
    linear-gradient(145deg, #fff0f7 0%, #f5e6ff 100%);
}

.connect-copy {
  position: relative;
  z-index: 3;
  width: min(64%, 390px);
}

.connect-card h2 {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 2.65vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.connect-card p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.48;
}

.join-card .eyebrow {
  color: #268449;
}

.hello-card .eyebrow {
  color: #b23178;
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.connect-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(21, 20, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 170ms ease;
}

.connect-links a:hover {
  transform: none;
  background: #fff;
  box-shadow: none;
}

.connect-links a:focus-visible {
  outline: 3px solid rgba(0, 115, 235, 0.22);
  outline-offset: 2px;
}

.connect-links img {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
}

.join-cta {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 25px;
  padding: 10px 11px 10px 20px;
  border: 1px solid rgba(23, 101, 52, 0.18);
  border-radius: 999px;
  color: #fff;
  background: #218346;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 170ms ease;
}

.join-cta:hover {
  transform: none;
  background: #176f39;
  box-shadow: none;
}

.join-cta:focus-visible {
  outline: 3px solid rgba(33, 131, 70, 0.3);
  outline-offset: 3px;
}

.join-cta-arrow {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #176f39;
  background: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

/* Team application */
.join-modal {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  height: min(900px, calc(100vh - 32px));
  height: min(900px, calc(100svh - 32px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 28px;
  color: var(--ink);
  background: #f5f5f7;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.28);
}

.join-modal::backdrop {
  background: rgba(22, 22, 23, 0.58);
  backdrop-filter: blur(14px) saturate(0.7);
  -webkit-backdrop-filter: blur(14px) saturate(0.7);
}

.join-modal:focus {
  outline: none;
}

.join-modal[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  animation: join-modal-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.join-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.join-modal-close img {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

.join-modal-close:hover {
  transform: rotate(4deg);
  background: #fff;
}

.join-modal-close:focus-visible {
  outline: 3px solid rgba(0, 115, 235, 0.42);
  outline-offset: 2px;
}

.join-modal-header {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 34px 76px 30px;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background:
    radial-gradient(circle at 50% -15%, #ffffff 0, #ffffff 30%, transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.join-modal-header::before,
.join-modal-header::after {
  content: none;
}

.join-modal-header::before {
  width: 150px;
  height: 150px;
  left: -55px;
  bottom: -83px;
  border: 25px solid rgba(255, 255, 255, 0.36);
}

.join-modal-header::after {
  width: 128px;
  height: 128px;
  right: 105px;
  top: -86px;
  background: rgba(255, 255, 255, 0.34);
}

.join-modal-pet {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 108px;
  height: 108px;
  transform: translateX(-50%);
}

.join-modal-pet span {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #f2f2f4;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.join-modal-pet img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.12));
}

.join-modal-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 7px;
  color: #287b45;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.join-modal-header h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.join-modal-header > p:last-child {
  position: relative;
  z-index: 1;
  margin: 9px 0 0;
  max-width: 480px;
  color: #6e6e73;
  font-size: 0.93rem;
  line-height: 1.4;
}

.join-modal-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.join-form {
  padding: 30px 34px 36px;
}

.join-form-section {
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.join-form-section + .join-form-section {
  margin-top: 16px;
}

.join-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
}

.join-section-heading > span {
  flex: 0 0 auto;
  min-width: 36px;
  padding: 7px 8px;
  border-radius: 10px;
  color: #6e6e73;
  background: #f1f1f3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.join-section-heading h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.join-section-heading p {
  margin: 4px 0 0;
  color: #7b7b80;
  font-size: 0.82rem;
  line-height: 1.4;
}

.join-fields-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.join-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.join-contact-field {
  margin-top: 16px;
}

.join-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.join-field small,
.join-form-note {
  color: #7b7b80;
  font-size: 0.72rem;
  line-height: 1.35;
}

.join-input-shell {
  min-height: 52px;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  background: #fbfbfc;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.join-input-shell:focus-within {
  border-color: #86868b;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.07);
}

.join-input-shell > img {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  margin-right: 10px;
  object-fit: contain;
}

.join-prefix {
  flex: 0 0 auto;
  margin-right: 3px;
  color: #777e79;
  font-weight: 700;
}

.join-prefix[hidden] {
  display: none;
}

.join-input-shell input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
}

.join-custom-field {
  position: relative;
}

.join-custom-select {
  position: relative;
}

.join-select-trigger {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  color: var(--ink);
  background: #fbfbfc;
  font: inherit;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.join-select-trigger:hover {
  background: #fff;
  border-color: #b8b8bd;
}

.join-select-trigger:focus-visible,
.join-select-trigger[aria-expanded="true"] {
  outline: 0;
  border-color: #86868b;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.07);
}

.join-select-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.92rem;
}

.join-select-value img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.join-select-chevron {
  width: 17px;
  height: 17px;
  opacity: 0.55;
  transition: transform 160ms ease;
}

.join-select-trigger[aria-expanded="true"] .join-select-chevron {
  transform: rotate(180deg);
}

.join-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 268px;
  padding: 7px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.join-select-menu[hidden] {
  display: none;
}

.join-select-menu button {
  width: 100%;
  min-height: 43px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.join-select-menu button:hover,
.join-select-menu button:focus-visible {
  outline: 0;
  background: #f1f1f3;
}

.join-select-menu button > img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.join-option-check {
  color: #1d1d1f;
  font-weight: 700;
  opacity: 0;
}

.join-select-menu button[aria-selected="true"] .join-option-check {
  opacity: 1;
}

.join-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.join-field textarea {
  width: 100%;
  min-height: 142px;
  padding: 15px 16px;
  resize: vertical;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: #fbfbfc;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.join-field textarea:focus {
  border-color: #86868b;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.07);
}

.join-input-shell input::placeholder,
.join-field textarea::placeholder {
  color: #a0a6a2;
}

.join-input-shell:has(input:user-invalid),
.join-field textarea:user-invalid {
  border-color: #d95d6b;
}

.join-textarea-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.join-role-field {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.join-role-field legend {
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.join-role-field > small {
  display: block;
  margin-top: 7px;
  color: #7b7b80;
  font-size: 0.72rem;
}

.join-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.join-role-grid label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.join-role-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.join-role-grid label > span {
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  background: #fbfbfc;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.join-role-grid label:hover > span {
  border-color: #aaaab0;
  background: #fff;
}

.join-role-grid img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.join-role-grid b {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.join-role-grid i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1d1d1f;
  font-size: 0.68rem;
  font-style: normal;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 150ms ease, transform 150ms ease;
}

.join-role-grid input:checked + span {
  border-color: #1d1d1f;
  background: #f1f1f3;
  box-shadow: inset 0 0 0 1px #1d1d1f;
}

.join-role-grid input:checked + span i {
  opacity: 1;
  transform: scale(1);
}

.join-role-grid input:focus-visible + span {
  outline: 3px solid rgba(0, 0, 0, 0.13);
  outline-offset: 2px;
}

.join-question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.join-question {
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid #e1e1e5;
  border-radius: 16px;
  background: #fbfbfc;
}

.join-question legend {
  min-height: 51px;
  padding: 0;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.35;
}

.join-radio-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.join-radio-row label {
  position: relative;
  cursor: pointer;
}

.join-radio-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.join-radio-row span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  place-items: center;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #646469;
  background: #ededf0;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.join-radio-row span img {
  width: 15px;
  height: 15px;
  opacity: 0.55;
}

.join-answer-yes span img {
  filter: invert(43%) sepia(72%) saturate(641%) hue-rotate(101deg) brightness(86%) contrast(91%);
}

.join-answer-no span img {
  filter: invert(31%) sepia(73%) saturate(1715%) hue-rotate(328deg) brightness(91%) contrast(89%);
}

.join-answer-yes input:checked + span {
  border-color: #198754;
  color: #fff;
  background: #198754;
  box-shadow: 0 6px 14px rgba(25, 135, 84, 0.2);
}

.join-answer-no input:checked + span {
  border-color: #d63c4a;
  color: #fff;
  background: #d63c4a;
  box-shadow: 0 6px 14px rgba(214, 60, 74, 0.2);
}

.join-radio-row input:checked + span img {
  padding: 0;
  background: transparent;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.join-radio-row input:focus-visible + span {
  outline: 3px solid rgba(0, 115, 235, 0.3);
  outline-offset: 2px;
}

.join-consent-section {
  padding-bottom: 24px;
}

.join-consent {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  color: #5f5f64;
  font-size: 0.79rem;
  line-height: 1.48;
  cursor: pointer;
}

.join-consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.join-checkbox {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #b8b8bd;
  border-radius: 7px;
  background: #fff;
}

.join-consent input:checked + .join-checkbox {
  border-color: #1d1d1f;
  background: #1d1d1f;
}

.join-consent input:checked + .join-checkbox::after {
  content: "✓";
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.join-consent input:focus-visible + .join-checkbox {
  outline: 3px solid rgba(0, 115, 235, 0.3);
  outline-offset: 2px;
}

.join-consent a {
  color: #1d1d1f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.join-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
  text-align: center;
}

.join-submit {
  min-width: 220px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 18px 12px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1d1d1f;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.18);
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}

.join-submit span:last-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1d1d1f;
  background: #fff;
}

.join-submit:hover {
  transform: translateY(-2px);
  background: #000;
}

.join-submit:focus-visible {
  outline: 3px solid rgba(0, 115, 235, 0.38);
  outline-offset: 3px;
}

.join-submit:disabled {
  cursor: not-allowed;
  color: #929298;
  background: #d9d9dd;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.join-submit:disabled span:last-child {
  color: #a4a4aa;
  background: #ececee;
}

.join-form[aria-busy="true"] .join-submit:disabled {
  cursor: wait;
}

.join-form-note {
  max-width: 530px;
  margin: 13px 0 0;
}

.join-form-status {
  width: min(100%, 560px);
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #f0c52f;
  border-radius: 12px;
  color: #705600;
  background: #fff8cc;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.join-form-status:empty {
  display: none;
}

.join-form-status.is-error {
  border-color: #f05b68;
  color: #922536;
  background: #fff0f2;
}

.join-turnstile {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 14px;
}

.join-success {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 54px 34px;
  text-align: center;
}

.join-success[hidden] {
  display: none;
}

.join-success > img {
  width: 72px;
  height: 72px;
  margin-bottom: 17px;
}

.join-success .join-modal-kicker {
  color: #6e6e73;
}

.join-success h3 {
  max-width: 550px;
  margin: 0;
  font-family: "Dela Gothic One", "Inter", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.join-success > p:not(.join-modal-kicker) {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.join-success button {
  min-width: 130px;
  min-height: 48px;
  margin-top: 25px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1d1d1f;
  font-weight: 700;
  cursor: pointer;
}

@keyframes join-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  .join-modal {
    width: min(560px, calc(100% - 20px));
    height: calc(100svh - 20px);
    border-radius: 24px;
  }

  .join-modal-header {
    min-height: 250px;
    padding: 31px 60px 23px;
  }

  .join-modal-pet {
    width: 96px;
    height: 96px;
  }

  .join-form {
    padding: 18px 14px 24px;
  }

  .join-fields-two,
  .join-question-grid {
    grid-template-columns: 1fr;
  }

  .join-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-question legend {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .join-modal {
    width: calc(100% - 12px);
    height: calc(100svh - 12px);
    border-radius: 20px;
  }

  .join-modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .join-modal-header {
    min-height: 244px;
    padding: 30px 44px 20px;
  }

  .join-modal-header h2 {
    font-size: 1.8rem;
  }

  .join-modal-header > p:last-child {
    font-size: 0.82rem;
  }

  .join-form {
    padding-inline: 15px;
  }

  .join-section-heading > span {
    display: none;
  }

  .join-form-section {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .join-role-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-modal[open] {
    animation: none;
  }
}

.connect-pet {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 20px rgba(45, 42, 62, 0.12));
}

.join-chick {
  right: -1px;
  bottom: -2px;
  width: min(30%, 188px);
}

.join-pet-row {
  display: contents;
}

.join-goldfish {
  top: 24px;
  right: -1px;
  bottom: auto;
  width: min(27%, 169px);
  transform: rotate(3deg);
}

.join-cactus {
  right: 40%;
  bottom: -12px;
  width: min(22%, 138px);
  transform: rotate(-5deg);
}

.hello-cupid {
  top: 40px;
  right: 15px;
  bottom: auto;
  width: min(38%, 217px);
  transform: rotate(-5deg);
}

.hello-monkey {
  right: 55px;
  bottom: -1px;
  width: min(40%, 237px);
}

.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  align-items: stretch;
  gap: 24px;
}

.media-row .section-heading {
  width: 100%;
  max-width: none;
}

.media-heading-title {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.25vw, 18px);
  min-width: 0;
}

.media-heading-title h2 {
  flex: 1 1 auto;
  min-width: 0;
}

.media-heading-pet {
  flex: 0 0 auto;
  width: clamp(88px, 9.2vw, 140px);
  height: clamp(80px, 8.35vw, 127px);
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(22, 24, 38, 0.09));
}

.bts-heading-pet {
  transform: translate(5px, -4px) rotate(4deg);
}

.reactions-heading-pet {
  transform: translate(5px, -4px) rotate(-4deg);
}

.bts-card,
.reactions-card {
  min-height: clamp(590px, 50vw, 640px);
  padding: 30px;
}

.bts-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: start;
}

.bts-viewer {
  position: relative;
  align-self: center;
  width: 100%;
  margin-top: 18px;
}

.round-button {
  --button-icon: url("icons/chevron_right.svg");
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: rgba(20, 20, 28, 0.38);
  background: transparent;
  cursor: pointer;
  transition: color 170ms ease, transform 170ms ease;
}

.round-button:hover {
  transform: translateY(-1px);
  color: var(--pink);
}

.round-button:focus-visible {
  outline: 3px solid rgba(236, 44, 121, 0.22);
  outline-offset: 2px;
  color: var(--pink);
}

.round-button::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  background: var(--button-icon) center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7));
  opacity: 0.54;
  transition: filter 170ms ease, opacity 170ms ease;
}

.round-button:hover::before,
.round-button:focus-visible::before {
  filter:
    brightness(0) saturate(100%) invert(32%) sepia(79%) saturate(2626%) hue-rotate(316deg) brightness(96%) contrast(93%)
    drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7));
  opacity: 1;
}

.bts-prev::before,
.reaction-prev::before {
  --button-icon: url("icons/arrow_left_circle.svg");
}

.bts-next::before,
.reaction-next::before {
  --button-icon: url("icons/arrow_right_circle.svg");
}

.flow-prev::before {
  --button-icon: url("icons/chevron_left.svg");
}

.flow-next::before {
  --button-icon: url("icons/chevron_right.svg");
}

.bts-slide {
  min-width: 0;
  margin: 0;
}

.bts-image-frame {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
}

.bts-image-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(21, 23, 35, 0.12);
}

.bts-image-frame figcaption {
  position: absolute;
  top: auto;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: rgba(18, 18, 22, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.bts-caption {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  text-align: center;
}

.bts-caption strong {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.05;
}

.bts-caption span {
  display: -webkit-box;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bts-controls,
.reaction-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  width: min(100%, 260px);
  margin: 16px auto 0;
}

.bts-controls .round-button,
.reaction-controls .round-button {
  width: 44px;
  height: 44px;
  background: #f5f5f7;
}

.bts-controls .round-button::before,
.reaction-controls .round-button::before {
  width: 30px;
  height: 30px;
  opacity: 0.68;
}

.bts-controls .round-button:hover,
.reaction-controls .round-button:hover,
.bts-controls .round-button:focus-visible,
.reaction-controls .round-button:focus-visible {
  color: var(--pink);
  background: #fce8f0;
  transform: none;
}

.bts-controls .round-button:hover::before,
.reaction-controls .round-button:hover::before,
.bts-controls .round-button:focus-visible::before,
.reaction-controls .round-button:focus-visible::before {
  filter:
    brightness(0) saturate(100%) invert(32%) sepia(79%) saturate(2626%) hue-rotate(316deg) brightness(96%) contrast(93%)
    drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7));
  opacity: 1;
}

.bts-dots,
.flow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.bts-dots {
  align-self: center;
  align-items: center;
  height: 44px;
  margin-top: 0;
  line-height: 0;
}

.bts-dots button,
.flow-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 28, 0.16);
  cursor: pointer;
}

.bts-dots button {
  transition: width 220ms ease, background 220ms ease;
}

.bts-dots button.active {
  width: 24px;
  border-radius: 999px;
}

.bts-dots button.active,
.flow-dots button.active {
  background: var(--pink);
}

@media (max-width: 820px) {
  .bts-dots,
  .flow-dots {
    gap: 0;
  }

  .bts-dots button,
  .flow-dots button {
    position: relative;
    width: 44px;
    height: 44px;
    background: transparent;
  }

  .bts-dots button::before,
  .flow-dots button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(20, 20, 28, 0.16);
    transform: translate(-50%, -50%);
  }

  .bts-dots button.active {
    width: 44px;
  }

  .bts-dots button.active,
  .flow-dots button.active {
    background: transparent;
  }

  .bts-dots button.active::before {
    width: 24px;
    border-radius: 999px;
  }

  .bts-dots button.active::before,
  .flow-dots button.active::before {
    background: var(--pink);
  }
}

.reactions-card {
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto minmax(145px, auto);
  row-gap: 12px;
  padding-bottom: 0;
  background: #fff;
}

.reactions-card .section-heading {
  position: relative;
  z-index: 2;
}

.reaction-spotlight {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 8px 4px 0;
}

.reaction-quote {
  position: relative;
  display: grid;
  align-content: center;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  margin: 0;
  padding: 40px 28px 20px;
  overflow: hidden;
  border: 1px solid rgba(26, 25, 38, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(22, 24, 38, 0.07);
}

.reaction-quote.is-entering {
  animation: reaction-enter 260ms ease both;
}

@keyframes reaction-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reaction-quote-mark {
  position: absolute;
  top: 8px;
  left: 24px;
  color: rgba(236, 44, 121, 0.24);
  font-family: Georgia, serif;
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.reaction-quote blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.reaction-quote figcaption {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 500;
}

.reaction-quote figcaption::before {
  content: "— ";
}

.reaction-controls {
  width: min(100%, 300px);
  margin-top: 0;
}

.reaction-position {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.reaction-progress {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.1);
}

.reaction-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
  transition: width 260ms ease;
}

.reaction-walruses {
  position: relative;
  z-index: 1;
  left: auto;
  bottom: auto;
  align-self: end;
  justify-self: center;
  width: min(78%, 400px);
  height: auto;
  pointer-events: none;
  transform: none;
  filter: drop-shadow(0 14px 18px rgba(22, 24, 38, 0.08));
}

@media (min-width: 1101px) {
  .bts-card,
  .reactions-card {
    height: 720px;
    min-height: 720px;
    max-height: 720px;
  }

  .media-row .section-heading {
    min-height: 130px;
  }

  .bts-viewer {
    align-self: start;
    margin-top: 18px;
  }

  .reaction-spotlight {
    align-items: start;
    padding-top: 6px;
  }

  .reaction-quote blockquote {
    font-size: 1.25rem;
  }

  .bts-caption span {
    min-height: calc(1.42em * 3);
  }
}

.final-note {
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr) minmax(150px, 0.32fr);
  align-items: center;
  gap: 20px;
  padding: 34px 44px;
  text-align: center;
  background: #f0fbeb;
}

.final-note .eyebrow,
.final-note h2 {
  color: #27924a;
}

.final-note p:not(.eyebrow) {
  max-width: 610px;
  margin-left: auto;
  margin-right: auto;
}

.final-pet {
  width: min(100%, 180px);
  justify-self: center;
}

.marten-art {
  transform: rotate(7deg);
}

@media (max-width: 1100px) {
  .about-hero {
    min-height: 850px;
    padding: 104px 24px 76px;
  }

  .about-hero-panel {
    min-height: 670px;
  }

  .about-hero-copy {
    transform: translateY(-12px);
  }

  .about-hero h1 {
    font-size: clamp(4.6rem, 8vw, 6.8rem);
  }

  .flow-track,
  .partners-team,
  .media-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-team {
    grid-template-columns: minmax(0, 1fr);
  }

  .bts-card,
  .reactions-card {
    min-height: 0;
  }

  .hero-dragon-midnight {
    left: clamp(-190px, -15vw, -118px);
    bottom: clamp(-270px, -22vw, -190px);
    width: clamp(430px, 50vw, 540px);
    transform: rotate(-10deg);
  }

  .hero-dragon-rainbow {
    right: clamp(-470px, -39vw, -320px);
    top: clamp(-260px, -21vw, -178px);
    width: clamp(760px, 86vw, 900px);
    transform: rotate(8deg);
  }

  .calculus-card .creator-pet {
    width: min(100%, 600px);
    margin: 0 0 -58px;
  }

  .calculus-card .creator-copy {
    max-width: 430px;
  }

  .calculus-card {
    grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
    gap: 28px;
    min-height: 540px;
  }
}

@media (max-width: 919px) {
  .creator-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 821px) and (max-width: 919px) {
  .calculus-card {
    grid-template-columns: minmax(310px, 44%) minmax(0, 1fr);
    gap: 22px;
    min-height: 455px;
    padding-top: 26px;
  }

  .calculus-card .creator-copy {
    max-width: 360px;
  }

  .calculus-card .creator-pet {
    width: min(100%, 470px);
    margin-bottom: -52px;
  }
}

@media (min-width: 920px) and (max-width: 1100px) {
  .creator-row {
    grid-template-columns: minmax(0, 1.18fr) minmax(270px, 0.82fr);
    gap: 20px;
  }

  .creator-card {
    padding: 26px;
  }

  .calculus-card {
    grid-template-columns: minmax(225px, 43%) minmax(0, 1fr);
    gap: 18px;
    min-height: 390px;
  }

  .calculus-card .creator-copy {
    max-width: 330px;
  }

  .calculus-card .creator-pet {
    width: clamp(300px, 34vw, 320px);
    margin-bottom: -54px;
    transform: translate(140px, 20px) scale(1.22);
    transform-origin: right bottom;
  }

  .akram-card {
    min-height: 390px;
  }

  .akram-photo {
    width: min(62%, 150px);
    margin-bottom: 16px;
  }

  .partners-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-card {
    min-height: 390px;
  }

  .micro-art {
    width: min(154%, 360px);
    transform: translateX(31%);
  }

  .meemonz-art {
    width: min(170%, 390px);
    margin-right: -26px;
    transform: translateX(35%);
  }
}

@media (min-width: 1101px) and (max-width: 1180px) {
  .meemonz-art {
    width: min(170%, 390px);
    margin-right: -26px;
    transform: translateX(35%);
  }
}

@media (max-width: 820px) {
  .media-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-heading-pet {
    width: clamp(88px, 20vw, 122px);
    height: clamp(80px, 18.2vw, 111px);
  }

  .about-hero {
    min-height: 920px;
    padding: 102px 16px 76px;
  }

  .about-hero-panel {
    min-height: 760px;
    border-radius: 32px;
  }

  .about-hero-copy {
    align-self: center;
    transform: translateY(-2px);
  }

  .about-hero h1 {
    font-size: clamp(4rem, 14vw, 6.8rem);
  }

  .hero-dragon-midnight {
    width: clamp(380px, 80vw, 520px);
    left: clamp(-104px, -12vw, -58px);
    bottom: -280px;
    transform: rotate(-14deg);
  }

  .hero-dragon-rainbow {
    width: clamp(660px, 99vw, 856px);
    right: clamp(-436px, -24vw, -169px);
    top: -100px;
    transform: rotate(8deg);
  }

  .hero-lede {
    max-width: 400px;
  }

  .creator-row,
  .mascot-band,
  .bat-feature,
  .final-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-step {
    min-height: 404px;
    grid-template-rows: 178px 46px auto 1fr;
  }

  .discover-image-frame {
    width: min(100%, 220px);
  }

  .creator-pet,
  .partner-art {
    justify-self: center;
    margin: 10px auto -32px;
    transform: none;
  }

  .meemonz-art {
    transform: translateX(14%);
  }

  .calculus-card {
    grid-template-columns: minmax(250px, 42%) minmax(0, 1fr);
    gap: 18px;
    min-height: 430px;
    padding-right: 18px;
  }

  .calculus-card .creator-copy {
    max-width: 340px;
  }

  .calculus-card .creator-pet {
    width: min(100%, 450px);
    align-self: end;
    justify-self: end;
    margin: 0 0 -50px;
  }

  .akram-card {
    min-height: 320px;
  }

  .team-list {
    grid-template-columns: minmax(0, 1fr);
    max-height: calc((112px * 3.5) + (14px * 3));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .team-list::-webkit-scrollbar {
    display: none;
  }

  .team-list-shell {
    position: relative;
  }

  .team-scrollbar {
    position: absolute;
    top: 0;
    right: 2px;
    bottom: 0;
    display: block;
    width: 7px;
    border-radius: 999px;
    background: rgba(195, 145, 2, 0.13);
    pointer-events: none;
  }

  .team-scrollbar.is-hidden {
    opacity: 0;
  }

  .team-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 48px;
    border-radius: inherit;
    background: rgba(195, 145, 2, 0.52);
    box-shadow: 0 1px 3px rgba(116, 82, 0, 0.16);
    transform: translateY(0);
    will-change: transform;
  }

  .mascot-stage {
    min-height: 250px;
  }

  .inky-art {
    width: min(50%, 180px);
  }

  .mascot-bubbles span:nth-child(1) {
    left: 18%;
  }

  .mascot-bubbles span:nth-child(2) {
    left: 28%;
  }

  .mascot-bubbles span:nth-child(3) {
    right: 22%;
  }

  .mascot-bubbles span:nth-child(4) {
    right: 10%;
  }

  .mascot-bubbles span:nth-child(5) {
    left: 18%;
  }

  .mascot-bubbles span:nth-child(6) {
    left: 9%;
  }

  .mascot-bubbles span:nth-child(7) {
    right: 12%;
  }

  .mascot-bubbles span:nth-child(8) {
    left: 33%;
  }

  .mascot-bubbles span:nth-child(9) {
    right: 29%;
  }

  .bat-feature {
    row-gap: 8px;
    padding-block: 30px 34px;
    text-align: center;
  }

  .bat {
    width: min(72%, var(--bat-compact-size, 190px));
  }

  .bat-strawberry {
    justify-self: end;
    margin-top: 2px;
  }

  .bat-fairy {
    justify-self: start;
    margin-bottom: -6px;
  }

  .round-button {
    width: 46px;
    height: 46px;
  }

  .round-button::before {
    width: 32px;
    height: 32px;
  }

}

@media (min-width: 700px) and (max-width: 919px) {
  .akram-card {
    min-height: 270px;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 28%);
    align-items: center;
    align-content: center;
    justify-items: stretch;
    gap: 30px;
    padding: 34px 46px;
    text-align: left;
  }

  .akram-card .akram-photo {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 210px);
    margin: 0;
    justify-self: center;
  }

  .akram-card > div {
    grid-column: 1;
    grid-row: 1;
    max-width: 560px;
  }

  .akram-card p:not(.eyebrow) {
    max-width: 540px;
  }
}

@media (min-width: 681px) and (max-width: 919px) {
  .partners-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .partner-card {
    min-height: clamp(420px, 54vw, 500px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(190px, 1fr);
    align-items: start;
    gap: 16px;
    padding: 28px;
  }

  .partner-card > div {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }

  .partner-card p:not(.eyebrow) {
    font-size: clamp(1rem, 1.8vw, 1.12rem);
  }

  .partner-art {
    width: auto;
    height: clamp(350px, 47vw, 430px);
    max-width: none;
    align-self: end;
    justify-self: center;
    margin: 0 auto -34px;
    transform: none;
  }

  .micro-art {
    height: clamp(350px, 47vw, 430px);
  }

  .meemonz-art {
    height: clamp(350px, 47vw, 430px);
    margin-right: auto;
    transform: none;
  }
}

@media (max-width: 680px) {
  .partners-column {
    grid-auto-rows: auto;
  }

  .meemonz-art {
    transform: none;
  }

  .calculus-card {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0;
  }

  .calculus-card .creator-copy {
    grid-column: 1;
    max-width: 100%;
  }

  .calculus-card .creator-pet {
    grid-column: 1;
    width: min(96%, 330px);
    justify-self: center;
    margin: 8px auto -36px;
  }
}

@media (max-width: 560px) {
  .content-band {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .about-grid-bg {
    background-size: 30px 30px;
  }

  .about-hero {
    min-height: max(860px, 100svh);
    padding: 92px 12px 58px;
  }

  .about-hero-panel {
    min-height: calc(max(860px, 100svh) - 150px);
    border-radius: 28px;
  }

  .about-hero-copy {
    padding: 62px 10px 34px;
    transform: translateY(-86px);
  }

  .about-hero h1 {
    font-size: clamp(3.5rem, 17vw, 5.1rem);
  }

  .hero-lede {
    max-width: 315px;
    font-size: 1.03rem;
  }

  .hero-dragon-midnight {
    width: clamp(328px, 85vw, 395px);
    left: clamp(-84px, -13vw, -46px);
    bottom: -108px;
    transform: rotate(-15deg);
  }

  .hero-dragon-rainbow {
    width: clamp(520px, 158vw, 503px);
    right: clamp(-419px, -10vw, -119px);
    top: -95px;
    transform: rotate(9deg);
  }

  .section-heading h2,
  .creator-card h2,
  .partner-card h2,
  .team-card h2,
  .mascot-copy h2,
  .bat-copy h2,
  .final-note h2 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .flow-step,
  .creator-card,
  .partner-card,
  .team-card,
  .mascot-band,
  .bat-feature,
  .bts-card,
  .reactions-card,
  .final-note {
    border-radius: 22px;
    padding: 24px;
  }

  .bat-feature {
    row-gap: 6px;
    padding: 28px 24px 32px;
  }

  .bat-copy {
    margin: 2px auto 4px;
  }

  .bat {
    width: min(66%, var(--bat-mobile-size, 178px));
  }

  .content-band + .content-band {
    margin-top: 22px;
  }

  .flow-step {
    min-height: 390px;
    padding: 20px 24px 50px;
    grid-template-rows: 132px 46px auto 1fr;
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(22, 24, 38, 0.08);
  }

  .flow-step::after {
    inset: auto 24px 26px;
  }

  .flow-step > img {
    width: min(100%, 180px);
    max-height: 128px;
  }

  .discover-image-frame {
    width: min(100%, 180px);
    border-radius: 18px;
  }

  .flow-track {
    position: relative;
    display: block;
    min-height: 390px;
    margin: 4px 0 0;
  }

  .flow-step {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .flow-step.is-active {
    z-index: 4;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .flow-step.is-next {
    opacity: 0;
    transform: translateY(10px);
  }

  .flow-step.is-previous {
    opacity: 0;
    transform: translateY(10px);
  }

  .flow-deck-controls {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    width: min(100%, 260px);
    margin: 15px auto 0;
  }

  .flow-deck-controls .round-button {
    width: 42px;
    height: 42px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(22, 24, 38, 0.12);
  }

  .flow-deck-controls .round-button:hover {
    transform: none;
    color: rgba(20, 20, 28, 0.68);
    background: #f3f5f8;
    box-shadow: 0 10px 28px rgba(22, 24, 38, 0.12);
  }

  .flow-deck-controls .round-button::before {
    width: 24px;
    height: 24px;
    border: 0;
    background: var(--button-icon) center / contain no-repeat;
    opacity: 1;
    transform: none;
  }

  .flow-dots {
    margin-top: 0;
  }

  .creator-card,
  .partner-card {
    min-height: 0;
  }

  .calculus-card {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0;
  }

  .calculus-card .creator-copy {
    max-width: 100%;
  }

  .creator-pet {
    width: min(84%, 250px);
  }

  .calculus-card .creator-pet {
    width: min(96%, 330px);
    justify-self: center;
    margin: 8px auto -36px;
  }

  .partner-card,
  .meemonz-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 8px;
    padding-bottom: 0;
  }

  .partner-card > div {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
  }

  .partner-card p:not(.eyebrow) {
    max-width: none;
  }

  .partner-art {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    height: clamp(250px, 72vw, 290px);
    max-width: none;
    justify-self: end;
    margin: -38px -24px -24px 0;
    transform: none;
  }

  .meemonz-art {
    width: auto;
    margin-right: -24px;
    transform: none;
  }

  .akram-card {
    min-height: 360px;
  }

  .team-member {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 112px;
    border-radius: 18px;
  }

  .reactions-card {
    grid-template-rows: auto minmax(180px, auto) auto minmax(130px, auto);
    height: 620px;
    min-height: 0;
    max-height: 620px;
    padding: 24px 0 0;
  }

  .bts-card {
    height: auto;
    min-height: 660px;
    max-height: none;
    grid-template-rows: auto auto auto;
    align-content: start;
  }

  .bts-viewer {
    align-self: start;
    margin-top: 22px;
  }

  .bts-caption {
    gap: 8px;
    margin-top: 18px;
  }

  .bts-controls {
    margin-top: 22px;
  }

  .reactions-card .section-heading {
    padding: 0 24px;
  }

  .reactions-card .section-heading h2 {
    max-width: 300px;
    font-size: clamp(1.9rem, 7.4vw, 2.15rem);
  }

  .reaction-spotlight {
    padding: 18px 24px 0;
  }

  .reaction-quote {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    padding: 40px 22px 20px 26px;
  }

  .reaction-quote blockquote {
    font-size: 1.15rem;
  }

  .reaction-controls {
    width: min(calc(100% - 48px), 290px);
  }

  .reaction-walruses {
    width: min(82%, 320px);
  }

  .bts-image-frame figcaption {
    max-width: calc(100% - 24px);
    left: auto;
    right: 12px;
    font-size: 0.72rem;
  }

  .bts-caption span {
    min-height: calc(1.42em * 4);
    -webkit-line-clamp: 4;
  }

  .final-pet {
    width: 130px;
  }
}

@media (min-width: 561px) and (max-width: 820px) and (orientation: portrait) {
  .hero-dragon-midnight {
    width: clamp(410px, 70vw, 530px);
    left: clamp(-96px, -11vw, -54px);
    bottom: -240px;
    transform: rotate(-14deg);
  }

  .hero-dragon-rainbow {
    width: clamp(660px, 103vw, 830px);
    right: clamp(-430px, -23vw, -155px);
    top: -95px;
  }

  .hero-lede {
    max-width: 400px;
  }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .bts-card {
    height: 660px;
    max-height: 660px;
  }

  .reactions-card {
    grid-template-rows: auto minmax(205px, auto) auto minmax(170px, auto);
    height: 620px;
    min-height: 0;
    max-height: 620px;
    padding-bottom: 0;
  }

  .reaction-spotlight {
    padding-top: 20px;
  }

  .reaction-quote {
    height: 205px;
    min-height: 205px;
    max-height: 205px;
  }

  .reaction-walruses {
    width: min(95%, 400px);
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .bts-card,
  .reactions-card {
    height: 660px;
    max-height: 660px;
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .about-hero {
    min-height: auto;
    padding-top: clamp(112px, 11.5vw, 136px);
    padding-bottom: clamp(38px, 4.8vw, 56px);
  }

  .about-hero-panel {
    min-height: clamp(640px, 67vw, 720px);
    overflow: visible;
  }

  .about-hero-copy {
    align-self: start;
    width: min(850px, 88%);
    margin-top: clamp(435px, 42vw, 462px);
    padding: 0 16px 34px;
    transform: none;
  }

  .about-hero h1 {
    font-size: clamp(4.25rem, 8.2vw, 5.9rem);
    line-height: 0.9;
  }

  .hero-lede {
    max-width: min(540px, 100%);
    margin-top: clamp(18px, 2.2vw, 28px);
  }

  .hero-dragon-midnight {
    width: clamp(435px, 40vw, 450px);
    left: clamp(-125px, -6vw, -60px);
    top: clamp(-82px, -9.2vw, -30px);
    bottom: auto;
    transform: rotate(-8deg);
  }

  .hero-dragon-rainbow {
    width: clamp(440px, 70vw, 650px);
    right: clamp(-196px, -12vw, -82px);
    top: clamp(-48px, -3.8vw, -22px);
    bottom: auto;
    transform: rotate(4deg);
  }
}

@media (min-width: 700px) and (max-width: 760px) {
  .hero-dragon-midnight {
    width: clamp(378px, 53vw, 405px);
    left: clamp(-104px, -9vw, -72px);
    top: clamp(-62px, -7vw, -42px);
  }

  .hero-dragon-rainbow {
    width: clamp(560px, 75vw, 610px);
    right: clamp(-218px, -15vw, -121px);
    top: clamp(-54px, -6vw, -38px);
  }
}

@media (min-width: 1100px) and (max-width: 1320px) {
  .about-hero {
    min-height: clamp(660px, 59vw, 720px);
    padding: clamp(104px, 9vw, 122px) 24px clamp(58px, 5vw, 72px);
  }

  .about-hero-panel {
    min-height: clamp(480px, 44vw, 550px);
  }

  .about-hero-copy {
    width: min(560px, 58%);
    padding: 30px 16px;
    transform: none;
  }

  .about-hero h1 {
    font-size: clamp(5.9rem, 8.6vw, 7.25rem);
    line-height: 0.92;
  }

  .hero-lede {
    max-width: 500px;
    margin-top: clamp(22px, 2vw, 30px);
  }

  .hero-dragon-midnight {
    width: clamp(410px, 35vw, 500px);
    left: clamp(-118px, -7.5vw, -76px);
    bottom: clamp(-115px, -9.6vw, -22px);
    top: auto;
    transform: rotate(-7deg);
  }

  .hero-dragon-rainbow {
    width: clamp(520px, 43vw, 620px);
    right: clamp(-247px, -11vw, -116px);
    top: clamp(-32px, -4vw, 140px);
    bottom: auto;
    transform: rotate(2deg);
  }
}

/* Akram portrait pet composition */
.akram-portrait {
  position: relative;
  width: min(82%, 240px);
  height: 205px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.akram-photo-flip {
  position: relative;
  z-index: 1;
  width: 170px;
  aspect-ratio: 1;
  max-width: 72%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}

.akram-photo-coin {
  position: absolute;
  inset: 0;
  display: block;
  border: 7px solid #fff;
  border-radius: 50%;
  box-shadow: 0 18px 35px rgba(24, 25, 32, 0.12);
  transform-style: preserve-3d;
  will-change: transform;
}

.akram-photo-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #121318;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.akram-photo-back {
  transform: rotateY(180deg);
}

.akram-portrait .akram-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
}

.akram-photo-flip::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: 2;
  border: 3px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.akram-photo-flip:hover::after {
  border-color: rgba(0, 115, 235, 0.42);
  transform: scale(1.035);
}

.akram-photo-flip:focus-visible {
  outline: none;
}

.akram-photo-flip:focus-visible::after {
  border-color: #0073eb;
  box-shadow: 0 0 0 4px rgba(0, 115, 235, 0.2);
}

.akram-photo-flip.is-flipping {
  cursor: wait;
}

.akram-photo-flip.is-flipping .akram-photo-coin {
  animation: akram-coin-flip 1.6s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.akram-photo-flip.is-flipping::after {
  animation: akram-coin-glow 1.6s ease-in-out both;
}

@keyframes akram-coin-flip {
  0% {
    transform: rotateY(0deg) scale(1);
  }
  28% {
    transform: rotateY(180deg) scale(1.07);
  }
  68% {
    transform: rotateY(180deg) scale(1.07);
  }
  100% {
    transform: rotateY(360deg) scale(1);
  }
}

@keyframes akram-coin-glow {
  0%,
  100% {
    border-color: transparent;
    box-shadow: none;
    transform: scale(1);
  }
  28%,
  68% {
    border-color: rgba(246, 179, 27, 0.85);
    box-shadow: 0 0 0 5px rgba(246, 179, 27, 0.18);
    transform: scale(1.1);
  }
}

.akram-portrait-pet {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
}

.akram-wyvern {
  left: 12px;
  bottom: -1px;
  width: 85px;
  transform: rotate(-7deg);
}

.akram-starfish {
  top: 2px;
  right: 8px;
  width: 87px;
  transform: rotate(3deg);
}

@media (min-width: 700px) and (max-width: 919px) {
  .akram-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
  }

  .akram-card .akram-portrait {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 280px);
    height: 240px;
    margin: 0;
    justify-self: center;
  }

  .akram-card .akram-portrait .akram-photo-flip {
    width: clamp(185px, 23vw, 220px);
    max-width: 78%;
  }

  .akram-card .akram-wyvern {
    width: clamp(100px, 10vw, 132px);
  }

  .akram-card .akram-starfish {
    width: clamp(85px, 9vw, 114px);
    top: 12px;
  }
}

@media (max-width: 560px) {
  .akram-portrait {
    width: min(92%, 220px);
    height: 190px;
    margin-bottom: 12px;
  }

  .akram-portrait .akram-photo-flip {
    width: 158px;
  }

  .akram-wyvern {
    width: 79px;
  }

  .akram-starfish {
    width: 80px;
  }
}

@media (max-width: 820px) {
  .connect-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .connect-card {
    min-height: 510px;
    padding: 30px;
  }

  .connect-copy {
    width: min(70%, 450px);
  }

  .connect-card h2 {
    font-size: clamp(2rem, 7.6vw, 2.8rem);
  }

  .join-chick {
    width: min(30%, 220px);
  }

  .join-goldfish {
    top: 30px;
    right: -1px;
    bottom: auto;
    width: min(26%, 180px);
  }

  .join-cactus {
    right: auto;
    left: 13%;
    width: min(24%, 165px);
  }

  .hello-cupid {
    top: 30px;
    right: 24px;
    bottom: auto;
    left: auto;
    width: min(27%, 190px);
  }

  .hello-monkey {
    width: min(34%, 235px);
  }
}

@media (max-width: 560px) {
  .connect-card {
    min-height: 610px;
    padding: 26px 22px;
    border-radius: 22px;
  }

  .join-card {
    min-height: 720px;
  }

  .connect-copy {
    width: 100%;
  }

  .connect-card h2 {
    max-width: 330px;
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .connect-card p:not(.eyebrow) {
    max-width: 360px;
    font-size: 1rem;
  }

  .connect-links {
    gap: 8px;
    margin-top: 20px;
  }

  .connect-links a {
    min-height: 43px;
    padding: 6px 11px 6px 7px;
    font-size: 0.8rem;
  }

  .connect-links img {
    width: 29px;
    height: 29px;
  }

  .join-chick {
    right: -1px;
    width: min(42%, 176px);
  }

  .join-goldfish {
    top: auto;
    right: -1px;
    bottom: 210px;
    width: min(38%, 159px);
  }

  .join-cactus {
    right: auto;
    left: 20px;
    bottom: -8px;
    width: min(36%, 150px);
  }

  .hello-cupid {
    top: auto;
    right: 16px;
    bottom: 160px;
    left: auto;
    width: min(44%, 184px);
  }

  .hello-monkey {
    right: -1px;
    bottom: -1px;
    width: min(39%, 163px);
  }
}

@media (max-width: 680px) {
  .connect-card {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .join-card {
    min-height: 0;
  }

  .hello-card {
    min-height: 465px;
  }

  .connect-copy {
    width: 100%;
  }

  .connect-card h2 {
    font-size: clamp(1.9rem, 8.4vw, 2.3rem);
  }

  .join-card h2 {
    width: 58%;
    min-height: 120px;
  }

  .join-goldfish {
    top: 22px;
    right: -1px;
    bottom: auto;
    width: min(33%, 180px);
  }

  .join-cactus {
    right: auto;
    bottom: -8px;
    left: 18px;
    width: min(34%, 165px);
  }

  .join-chick {
    right: -1px;
    bottom: -2px;
    width: min(34%, 165px);
  }

  .join-pet-row {
    position: relative;
    display: block;
    height: clamp(154px, 43vw, 209px);
    margin: clamp(16px, 3.2vw, 20px) -22px -26px;
  }

  .hello-monkey {
    right: -1px;
    bottom: -1px;
    left: auto;
    width: min(46%, 220px);
  }

  .hello-cupid {
    top: auto;
    right: auto;
    bottom: -24px;
    left: 20px;
    width: min(45%, 225px);
  }
}

@media (min-width: 501px) and (max-width: 680px) {
  .join-card h2 {
    width: 52%;
    min-height: 0;
  }

  .join-goldfish {
    top: 12px;
    width: min(32%, 160px);
  }
}

@media (max-width: 400px) {
  .join-card {
    min-height: 0;
  }

  .hello-card {
    min-height: 540px;
  }
}

/* Connect cards: keep copy and artwork in independent layout regions so the
   illustrations can scale freely without ever covering text or actions. */
.connect-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.82fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}

.connect-copy {
  width: auto;
  min-width: 0;
  align-self: start;
}

.connect-art {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  margin: -22px -38px -38px 0;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
  pointer-events: none;
}

.connect-art .connect-pet {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: none;
}

.join-art {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: 2px;
}

.join-art .join-goldfish {
  grid-column: 1 / -1;
  width: min(100%, 182px);
  align-self: center;
  justify-self: end;
  transform: translateX(14px);
}

.join-art .join-cactus,
.join-art .join-chick {
  width: min(100%, 128px);
  align-self: end;
}

.hello-art {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.hello-art .hello-cupid {
  width: min(100%, 190px);
  align-self: center;
}

.hello-art .hello-monkey {
  width: min(100%, 225px);
  align-self: end;
}

@media (min-width: 1041px) {
  .join-art {
    overflow: visible;
  }

  .join-art .join-cactus {
    width: min(127%, 170px);
    max-width: none;
    justify-self: start;
    transform: translateX(clamp(-125px, -5vw, -58px)) translateY(9px);
  }

  .join-art .join-chick {
    width: min(145%, 165px);
    max-width: none;
    justify-self: end;
    transform: translate(3px, -45px);
  }

  .hello-art .hello-cupid {
    width: min(115%, 220px);
    max-width: none;
    align-self: end;
    justify-self: end;
    margin-right: 15px;
    transform: translateY(10px);
  }

  .hello-art {
    overflow: visible;
  }

  .hello-art .hello-monkey {
    transform: translateX(-60px);
  }
}

@media (max-width: 1040px) {
  .connect-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .connect-card {
    min-height: 420px;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  }

  .connect-copy {
    max-width: 570px;
  }

  .join-art .join-goldfish {
    width: min(88%, 205px);
  }

  .join-art .join-cactus {
    width: min(130%, 170px);
    max-width: none;
  }

  .join-art .join-chick {
    width: min(127%, 165px);
    max-width: none;
    transform: translateX(14px);
  }

  .hello-art .hello-cupid {
    width: min(90%, 220px);
    max-width: none;
  }

  .hello-art .hello-monkey {
    width: min(88%, 225px);
  }
}

@media (min-width: 920px) and (max-width: 1040px) {
  .connect-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .connect-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(160px, 1fr);
    gap: 20px;
    padding: 30px;
  }

  .connect-copy {
    max-width: none;
  }

  .connect-card h2 {
    font-size: clamp(2rem, 3.5vw, 2.35rem);
  }

  .connect-links {
    gap: 8px;
    margin-top: 20px;
  }

  .connect-art {
    width: auto;
    height: 190px;
    align-self: end;
    margin: 0 -30px -30px;
  }

  .connect-art .connect-pet {
    max-height: none;
  }

  .connect-card .join-art {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 4px;
    padding-inline: 0;
    overflow: hidden;
  }

  .connect-card .join-art .join-goldfish {
    grid-column: auto;
    grid-row: 1;
    width: 100%;
    max-width: none;
    align-self: center;
    justify-self: start;
    transform: scaleX(-1);
    transform-origin: center;
  }

  .connect-card .join-art .join-cactus {
    grid-row: 1;
    width: 95%;
    max-width: none;
    align-self: end;
    justify-self: center;
    transform: translateX(12px);
  }

  .connect-card .join-art .join-chick {
    grid-row: 1;
    width: 100%;
    max-width: none;
    align-self: end;
    justify-self: end;
    transform: translateX(16px);
  }

  .hello-art {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 4px;
    padding-inline: 0;
  }

  .hello-art .hello-cupid,
  .hello-art .hello-monkey {
    width: 100%;
    max-width: none;
    align-self: end;
    transform-origin: bottom center;
  }

  .hello-art .hello-cupid {
    justify-self: end;
    transform: translate(22px, 14%) scale(1.05);
  }

  .hello-art .hello-monkey {
    justify-self: start;
    transform: translateX(22px) scale(1);
  }
}

@media (min-width: 681px) and (max-width: 1040px) {
  .join-art {
    overflow: visible;
  }

  .join-art .join-cactus {
    transform: translateX(clamp(-56px, -5vw, -34px));
  }
}

@media (max-width: 680px) {
  .connect-card,
  .join-card,
  .hello-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 5vw, 26px);
    padding: clamp(22px, 6vw, 28px);
  }

  .connect-copy,
  .connect-card h2,
  .connect-card p:not(.eyebrow) {
    width: auto;
    max-width: none;
    min-height: 0;
  }

  .connect-art {
    width: auto;
    height: clamp(150px, 42vw, 220px);
    margin: 0 calc(clamp(22px, 6vw, 28px) * -1) calc(clamp(22px, 6vw, 28px) * -1);
    padding: 0 clamp(10px, 3vw, 18px);
  }

  .join-art {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(5px, 2vw, 12px);
    padding-inline: 0;
  }

  .join-art .join-goldfish {
    grid-column: auto;
    grid-row: 1;
    width: 100%;
    align-self: center;
    justify-self: start;
    transform: scaleX(-1);
    transform-origin: center;
  }

  .join-art .join-cactus {
    grid-row: 1;
    width: 95%;
    align-self: end;
    justify-self: center;
    transform: translateX(20px);
  }

  .join-art .join-chick {
    grid-row: 1;
    width: 100%;
    align-self: end;
    justify-self: end;
    transform: translateX(16px);
  }

  .hello-art {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(4px, 2vw, 12px);
    padding-inline: clamp(8px, 3vw, 18px);
  }

  .hello-art .hello-cupid,
  .hello-art .hello-monkey {
    width: 100%;
    align-self: end;
    transform-origin: bottom center;
  }

  .hello-card {
    gap: clamp(6px, 1.8vw, 12px);
  }

  .hello-card .hello-art {
    height: clamp(158px, 38vw, 198px);
  }

  .hello-art .hello-cupid {
    transform: translateY(14%) scale(1.05);
  }

  .hello-art .hello-monkey {
    transform: scale(1);
  }
}

@media (max-width: 500px) {
  .join-card .join-art {
    height: clamp(142px, 36.8vw, 184px);
  }

  .join-art .join-cactus {
    transform: translate(17px, -18px);
  }

  .join-art .join-chick {
    transform: translate(16px, 6px);
  }

  .hello-art .hello-cupid {
    transform: translate(12px, 14%) scale(1);
  }

  .hello-art .hello-monkey {
    transform: translateX(15px) scale(1);
  }
}

@media (max-width: 380px) {
  .connect-links {
    display: grid;
    grid-template-columns: minmax(0, max-content);
  }

  .connect-links a {
    width: fit-content;
  }

  .connect-art {
    height: 142px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reaction-progress-bar {
    transition: none;
  }

  .akram-photo-flip.is-flipping .akram-photo-coin {
    animation-name: akram-coin-dissolve;
  }

  .akram-photo-flip.is-flipping::after {
    animation: none;
  }

  @keyframes akram-coin-dissolve {
    0%,
    100% {
      transform: rotateY(0deg);
    }
    12%,
    88% {
      transform: rotateY(180deg);
    }
  }
}

/* Final letter composition. Kept last so legacy modal rules cannot override it. */
@media (max-width: 360px) {
  .message-letterhead {
    gap: 10px !important;
    height: 132px !important;
    min-height: 132px !important;
    padding-right: 0 !important;
  }

  .message-letter-brand {
    gap: 3px !important;
  }

  .message-letter-brand > img {
    width: 56px !important;
    height: 69px !important;
  }

  .message-letter-pet {
    width: 75px !important;
    height: 69px !important;
  }

  .message-letterhead .message-letter-brand p {
    font-size: 0.9rem !important;
    white-space: nowrap;
  }

  .message-letterhead .message-letter-brand span {
    display: none !important;
  }

  .message-letterhead time {
    top: 102px !important;
    font-size: 0.72rem !important;
  }

  .message-letter-routing {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .message-letter-recipient {
    display: none !important;
  }
}

.message-modal:focus,
.message-modal:focus-visible,
.message-letter:focus,
.message-letter:focus-visible {
  outline: none !important;
}

.message-modal,
.message-modal:focus {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(88svh, 860px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 18, 25, 0.2);
  outline: none;
}

.message-letter {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 0;
  max-height: min(88svh, 860px);
  padding: 34px 48px 42px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  scrollbar-color: #d7d8dc transparent;
  scrollbar-width: thin;
}

.message-letter::before,
.message-letter::after {
  display: none;
}

.message-letterhead {
  height: 72px;
  min-height: 72px;
  padding-right: 28px;
}

.message-letter-brand > img {
  width: 69px;
  height: 84px;
}

.message-letterhead .message-letter-brand p {
  font-size: 1rem;
}

.message-letter-date {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  align-self: center;
  margin-left: auto;
}

.message-letter-pet {
  display: block;
  width: 91px;
  height: 84px;
  flex: 0 0 auto;
}

.message-letterhead time {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.message-letter-divider {
  margin: 24px 0 26px;
  background: #ececef;
}

.message-letter-routing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 26px;
  border: 0;
  border-bottom: 1px solid #eeeeef;
  border-radius: 0;
  background: transparent;
}

.message-letter-recipient {
  min-width: 160px;
  padding: 4px 0 4px 24px;
  border-top: 0;
  border-left: 1px solid #ececef;
}

.message-letter-body {
  position: static;
  min-height: 0;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 20px 0 30px;
  overflow: visible;
  overscroll-behavior: auto;
}

.message-letter-body::before {
  display: none;
}

.message-copy,
#messageModalText {
  position: static;
  display: block;
  height: auto;
  max-height: none;
  overflow: visible;
  white-space: normal;
}

.message-copy p,
.message-letter-body #messageModalText p {
  position: static;
  margin: 0;
  color: #303137;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  font-weight: 430;
  line-height: 1.78;
  letter-spacing: -0.008em;
}

.message-copy p + p,
.message-letter-body #messageModalText p + p {
  margin-top: 1.25em;
}

.message-letter-footer {
  position: static;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.message-signoff {
  position: static;
  width: min(260px, 100%);
  margin: 0;
}

.message-signoff > p {
  margin: 0 0 2px;
  color: #777980;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 550;
}

.message-signature {
  position: relative;
  width: min(210px, 100%);
  height: 69px;
  margin: 0;
  overflow: hidden;
}

.message-letter-postscript {
  display: none;
}

@media (max-width: 600px) {
  .message-modal,
  .message-modal:focus {
    width: calc(100% - 20px);
    max-height: 92svh;
    border-radius: 19px;
  }

  .message-letter {
    max-height: 92svh;
    padding: 26px 24px 32px;
  }

  .message-letterhead {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: flex-start;
    justify-content: stretch;
    gap: 16px;
    height: 152px;
    min-height: 152px;
    padding-top: 30px;
    padding-right: 0;
  }

  .message-letterhead time {
    position: absolute;
    top: 115px;
    right: 0;
    display: block;
    margin: 0;
    font-size: 0.8rem;
    transform: none;
    white-space: nowrap;
  }

  .message-letter-date {
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-self: end;
    gap: 6px;
    align-self: flex-start;
    margin-left: 0;
  }

  .message-letter-pet {
    width: 86px;
    height: 79px;
  }

  .message-letter-brand {
    flex-direction: column;
    align-items: flex-start;
    justify-self: start;
    gap: 3px;
  }

  .message-letter-brand > img {
    width: 64px;
    height: 79px;
  }

  .message-letterhead .message-letter-brand p {
    font-size: 1rem;
    text-align: left;
    white-space: nowrap;
  }

  .message-letterhead .message-letter-brand span {
    margin-top: 1px;
    font-size: 0.75rem;
    text-align: left;
  }

  .message-letter-divider {
    margin: 21px 0 23px;
  }

  .message-letter-routing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
  }

  .message-letter-sender {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .message-modal-avatar {
    width: 44px;
    height: 44px;
  }

  .message-letter-sender h2 {
    font-size: 1.15rem;
  }

  .message-letter-recipient {
    min-width: 0;
    margin: 0;
    padding: 4px 0 4px 14px;
    border-top: 0;
    border-left: 1px solid #eeeeef;
  }

  .message-letter-recipient p {
    font-size: 0.72rem;
  }

  .message-letter-body {
    box-sizing: border-box;
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 19px 0 25px;
    transform: none;
  }

  .message-copy,
  #messageModalText {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .message-copy p,
  .message-letter-body #messageModalText p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .message-signature {
    width: min(185px, 100%);
    height: 62px;
  }
}

@media (min-width: 361px) and (max-width: 560px) {
  .message-letterhead time {
    top: 112px;
  }
}

/* Compact the two-column team directory when it shares space with partners. */
@media (min-width: 1101px) {
  .team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-member {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .team-avatar {
    width: 56px;
  }

  .team-member-content,
  .team-member.has-message-button .team-member-content {
    padding-right: 34px;
  }

  .team-member h3 {
    font-size: 1.2rem;
    line-height: 1.05;
  }

  .team-card .team-member p {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .team-socials {
    top: 12px;
    right: 12px;
    flex-direction: column;
    gap: 4px;
  }

  .team-socials a,
  .team-socials .message-button {
    width: 30px;
    height: 30px;
  }

  .team-socials img,
  .team-socials .message-button img {
    width: 18px;
    height: 18px;
  }
}
