/* Birthday edition. Scoped to the homepage; shared pages keep their own styles. */
.birthday-page {
  --birthday-paper: #faf5eb;
  --birthday-wine: #842f42;
  --birthday-ink: #512d37;
  --birthday-muted: #8c7479;
  --display: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", "SimSun", serif;
  background: var(--birthday-paper);
  color: var(--birthday-ink);
}
.birthday-page .grain { opacity: .035; }
.birthday-page .topbar { position: relative; max-width: 1440px; margin: auto; padding: 25px 5%; gap: 30px; color: var(--birthday-ink); }
.birthday-page .brand-mark { border-color: #c6a8a6; background: #efe5d8; }
.birthday-page .brand-lockup small { color: #8c7479; }
.birthday-page .nav { margin-left: auto; gap: 30px; font-size: 12px; letter-spacing: .06em; }
.birthday-page .nav a { color: #70545d; }
.birthday-page .nav a:hover { color: var(--birthday-wine); }
.birthday-page .nav a::after { background: var(--birthday-wine); }
.birthday-edition { padding: 8px 13px; border: 1px solid #d5b9bc; border-radius: 30px; font-size: 10px; letter-spacing: .1em; color: var(--birthday-wine); white-space: nowrap; }
.birthday-page :is(a,button,summary):focus-visible { outline: 2px solid #a24460; outline-offset: 6px; }
.birthday-hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 5%; max-width: 1290px; min-height: 690px; margin: auto; padding: 62px 5% 95px; }
.birthday-copy { position: relative; z-index: 2; padding-bottom: 16px; }
.birthday-eyebrow { margin: 0 0 30px; font: 12px/1.5 var(--sans); letter-spacing: .3em; color: var(--birthday-wine); }
.birthday-title { margin: 0; max-width: none; font-family: var(--display); font-weight: 400; letter-spacing: -.055em; }
.birthday-title strong { display: block; margin-bottom: 16px; font-size: clamp(76px, 8vw, 116px); font-weight: 400; line-height: 1.1; }
.birthday-title span { display: block; white-space: nowrap; font-size: clamp(50px, 5.7vw, 80px); line-height: 1.2; letter-spacing: -.055em; }
.birthday-title .title-stop { display: inline; font-size: inherit; color: #ae5467; }
.birthday-wish { margin: 32px 0 10px; font: 22px/1.5 var(--display); letter-spacing: .15em; }
.birthday-subtext { margin: 0; color: #897078; font-size: 13px; line-height: 1.8; letter-spacing: .04em; }
.birthday-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.candle-button { display: inline-flex; align-items: center; justify-content: center; gap: 23px; min-height: 48px; padding: 14px 23px; border: 1px solid var(--birthday-wine); border-radius: 3px; background: var(--birthday-wine); color: #fff9f0; cursor: pointer; font-size: 13px; letter-spacing: .06em; transition: background .2s, transform .2s; }
.candle-button[hidden] { display: none; }
.candle-button:hover { background: #6d2637; transform: translateY(-2px); }
.candle-button .button-spark { font-size: 18px; }
.candle-caption { flex-basis: 100%; min-height: 22px; margin: 0; color: #957f84; font-size: 11px; letter-spacing: .08em; }
.birthday-art { position: relative; width: 100%; max-width: 525px; justify-self: end; margin: 0; padding: 12px 12px 34px; background: #fffaf3; border: 1px solid #e3d4d0; box-shadow: 0 14px 34px #63313f13; transform: rotate(2deg); }
.cake-stage { position: relative; aspect-ratio: 1; overflow: hidden; background: #ded3df; }
.cake-stage picture, .cake-stage img { display: block; width: 100%; height: 100%; }
.cake-stage img { object-fit: contain; }
.birthday-art figcaption { margin: 17px 0 -16px; font: italic 14px/1.2 var(--display); color: #9a6a75; letter-spacing: .1em; text-align: center; }
.candle-flame { position: absolute; z-index: 1; display: block; width: 2.8%; height: 5.8%; border: 1.5px solid #c77b42; border-radius: 75% 35% 58% 45%; background: #ffd785; transform-origin: center bottom; animation: candle-flicker 1.8s ease-in-out infinite alternate; transition: opacity .3s, scale .3s; }
.candle-flame::after { content: ""; position: absolute; width: 48%; height: 58%; bottom: 7%; left: 24%; border-radius: 70% 35% 60% 35%; background: #fff3bd; }
.flame-two { left: 42.1%; bottom: 88.3%; }
.flame-one { left: 56%; bottom: 87.3%; animation-delay: -.7s; }
.candles-out .candle-flame { opacity: 0; scale: .2; }
.cake-smoke { position: absolute; width: 2%; height: 7%; border-left: 2px solid #897580; border-radius: 50%; opacity: 0; pointer-events: none; }
.smoke-two { left: 43.4%; bottom: 89%; }
.smoke-one { left: 57.4%; bottom: 88%; }
.candles-out .cake-smoke { animation: candle-smoke 1.2s ease-out both; }
.birthday-portrait { position: absolute; right: -25px; bottom: -35px; z-index: 2; display: block; width: 132px; padding: 7px 7px 10px; border: 1px solid #e0ceca; background: #fffaf3; box-shadow: 0 7px 18px #5d33401c; transform: rotate(-9deg); text-align: center; cursor: pointer; color: var(--birthday-wine); }
.birthday-portrait::before { content: ""; position: absolute; top: -10px; left: 36%; width: 45px; height: 20px; background: #ddb3b5b3; transform: rotate(7deg); }
.birthday-portrait img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 38%; }
.birthday-portrait span { display: block; padding-top: 8px; font: 17px/1.2 "Kaiti", "KaiTi", var(--display); letter-spacing: .16em; }
.birthday-under { max-width: 1160px; display: flex; align-items: center; gap: 18px; margin: 0 auto; padding: 0 0 40px; color: #a5868c; font-size: 10px; letter-spacing: .18em; }
.birthday-under::before, .birthday-under::after { content: ""; height: 1px; flex: 1; background: #dfcbd0; }
.birthday-note { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; max-width: 1160px; margin: 0 auto 70px; padding: 35px 0 55px; }
.birthday-note h2 { margin: 0; font: 400 clamp(30px, 3.5vw, 45px)/1.6 var(--display); letter-spacing: .05em; }
.birthday-note h2 span { color: #a56b80; }
.birthday-note-copy { border-left: 1px solid #dfcbd0; padding-left: 50px; }
.birthday-note-copy p { margin: 0 0 12px; font: 15px/1.9 var(--display); letter-spacing: .05em; }
.birthday-note-copy p:last-child { margin: 22px 0 0; font: 11px/1.8 var(--sans); color: #927a82; }
.birthday-page .members { padding: 70px max(5%, calc((100vw - 1160px) / 2)) 85px; background: #eee4e9; color: var(--birthday-ink); }
.birthday-page .members::before { display: none; }
.birthday-page .section-kicker-light { border-color: #d4bdc9; color: #937888; }
.birthday-page .members-heading { padding: 42px 0 32px; align-items: end; }
.birthday-page .members h2 { font-size: clamp(33px, 4vw, 49px); line-height: 1.2; letter-spacing: .02em; }
.birthday-page .members .mini-label { color: #947b89; margin-bottom: 12px; letter-spacing: .16em; }
.birthday-page .members-note { color: #937888; font-size: 11px; }
.birthday-page .member-grid { grid-template-columns: repeat(5, 1fr); gap: 17px; }
.birthday-page .member-card { grid-column: auto; min-height: 0; height: 275px; padding: 13px; overflow: visible; background: #fffaf4; border: 1px solid #d8c6ce; box-shadow: 0 5px 14px #6f455808; color: #633546; transform: rotate(0); }
.birthday-page .member-card:nth-child(2) { transform: rotate(1.5deg); }
.birthday-page .member-card:nth-child(3) { transform: rotate(-1deg); }
.birthday-page .member-card:nth-child(4) { transform: rotate(1deg); }
.birthday-page .member-card:nth-child(5) { transform: rotate(-1.5deg); }
.birthday-page .member-card::before, .birthday-page .card-symbol, .birthday-page .card-orbit { display: none; }
.birthday-page .card-avatar-frame { inset: 11px 11px 65px; }
.birthday-page .card-avatar { opacity: 1; filter: none; object-position: center 35%; }
.birthday-page .card-number { align-self: flex-end; margin-bottom: 2px; color: #ad8c97; font-size: 8px; }
.birthday-page .card-name { left: 14px; bottom: 28px; font-size: 25px; line-height: 1; letter-spacing: .06em; }
.birthday-page .card-arrow { right: 13px; bottom: 26px; font-size: 19px; color: #a56376; }
.birthday-page .member-card-featured { border-color: #b9778c; transform: rotate(-2deg); }
.birthday-card-tag { position: absolute; z-index: 3; top: -12px; right: 8px; padding: 7px 11px; transform: rotate(5deg); color: #fffaf4; background: #99465f; font-size: 10px; letter-spacing: .1em; }
.birthday-page .member-card:hover { transform: translateY(-6px) rotate(0); border-color: #99465f; }
.birthday-page .member-card:hover .card-avatar { opacity: 1; transform: scale(1.02); }
.birthday-links { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 38px; color: #8d7080; font-size: 12px; }
.birthday-links a { display: inline-flex; align-items: center; gap: 18px; border-bottom: 1px solid #b695a5; padding-bottom: 6px; color: #77475b; }
.birthday-office { max-width: 1160px; margin: 0 auto; padding: 38px 0; scroll-margin-top: 20px; }
.birthday-office > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 14px; letter-spacing: .08em; }
.birthday-office > summary::-webkit-details-marker { display: none; }
.birthday-office > summary::after { content: "+"; font: 300 25px/1 var(--sans); color: #956878; }
.birthday-office[open] > summary::after { content: "−"; }
.birthday-office > summary small { margin-left: auto; margin-right: 28px; font-size: 10px; color: #a1858d; }
.birthday-office .office-intro { margin-top: 30px; padding: 42px 32px; }
.birthday-office .office-layout { padding-top: 45px; }
.birthday-office .office-heading { min-height: 590px; }
.birthday-office .office-heading h2 { font-size: 75px; }
.birthday-page .footer { padding: 24px max(5%, calc((100vw - 1160px) / 2)); background: #faf5eb; border-top: 1px solid #e5d4d8; color: #a0858e; font-size: 10px; letter-spacing: .08em; }
.birthday-page .footer span:last-child { color: #8f5266; }
.birthday-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }
.profile-birthday-note { margin: 22px 0 0; padding: 12px 15px; border: 1px solid #ba8c9b66; color: #f1cbd7; font: 15px/1.6 var(--display); }
.profile-birthday-note[hidden] { display: none; }
@keyframes candle-flicker { from { transform: rotate(-6deg) scaleY(.95); } to { transform: rotate(5deg) scaleY(1.05); } }
@keyframes candle-smoke { 0% { opacity: .6; transform: translateY(0) scaleX(1); } 100% { opacity: 0; transform: translateY(-28px) scaleX(2); } }
@media (min-width: 1450px) { .birthday-hero { min-height: 740px; } }
@media (max-width: 1200px) {
  .birthday-page .birthday-edition { display: none; }
  .birthday-under, .birthday-note, .birthday-office { margin-left: 5%; margin-right: 5%; }
  .birthday-page .member-card { height: 240px; }
}
@media (max-width: 800px) {
  .birthday-page .topbar { flex-wrap: wrap; gap: 18px; padding: 22px 6%; }
  .birthday-page .nav { gap: 22px; margin-right: 0; font-size: 11px; }
  .birthday-hero { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding: 30px 7% 75px; }
  .birthday-copy { text-align: center; padding-bottom: 0; }
  .birthday-eyebrow { margin-bottom: 21px; font-size: 10px; }
  .birthday-title strong { font-size: 84px; margin-bottom: 10px; }
  .birthday-title span { font-size: 55px; }
  .birthday-wish { margin-top: 23px; font-size: 20px; }
  .birthday-subtext { font-size: 12px; }
  .birthday-actions { justify-content: center; margin-top: 24px; gap: 10px; }
  .birthday-art { width: min(90%, 480px); justify-self: center; padding: 9px 9px 30px; }
  .birthday-portrait { width: 112px; right: -18px; bottom: -26px; }
  .birthday-note { grid-template-columns: 1fr; gap: 28px; text-align: center; padding: 10px 0 25px; margin-bottom: 45px; }
  .birthday-note h2 { font-size: 30px; }
  .birthday-note-copy { border: 0; padding-left: 0; }
  .birthday-note-copy p { font-size: 14px; }
  .birthday-page .members { padding-top: 46px; padding-bottom: 48px; }
  .birthday-page .members-heading { flex-direction: row; gap: 20px; padding: 30px 0; }
  .birthday-page .members h2 { font-size: 33px; }
  .birthday-page .members-note { text-align: right; line-height: 1.8; margin-bottom: 2px; }
  .birthday-page .member-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 17px; }
  .birthday-page .member-card { height: auto; aspect-ratio: 3/4; }
  .birthday-page .member-card-featured { grid-column: span 2; width: 58%; justify-self: center; aspect-ratio: 1; margin: 8px 0 6px; }
  .birthday-page .member-card-featured .card-avatar-frame { inset: 11px 11px 62px; }
  .birthday-links { font-size: 11px; }
  .birthday-office { padding: 30px 0; }
  .birthday-office .office-intro { padding: 25px 18px; }
  .birthday-office .office-heading { min-height: 420px; }
  .birthday-office .office-layout { padding-top: 30px; }
}
@media (max-width: 480px) {
  .birthday-page .topbar { gap: 18px; padding: 20px 6% 10px; }
  .birthday-page .brand-lockup small { display: block; font-size: 7px; }
  .birthday-page .brand { gap: 10px; }
  .birthday-page .brand-lockup strong { font-size: 14px; }
  .birthday-page .birthday-edition { display: inline; margin-left: auto; font-size: 9px; padding: 7px 9px; }
  .birthday-page .nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; padding-top: 15px; padding-bottom: 8px; border-top: 1px solid #e6d8d9; font-size: 11px; }
  .birthday-hero { padding-top: 28px; gap: 32px; }
  .birthday-title strong { font-size: 74px; }
  .birthday-title span { font-size: clamp(40px, 12vw, 53px); }
  .birthday-wish { font-size: 20px; }
  .birthday-subtext { font-size: 11px; }
  .candle-button { min-height: 45px; padding: 12px 20px; font-size: 12px; }
  .birthday-art { width: 94%; }
  .birthday-portrait { width: 97px; right: -12px; bottom: -30px; }
  .birthday-portrait span { font-size: 14px; }
  .birthday-page .member-card { padding: 10px; }
  .birthday-page .member-card-featured { width: 70%; }
  .birthday-page .card-name { font-size: 24px; }
  .birthday-page .members-note { font-size: 10px; }
  .birthday-note h2 { font-size: 27px; }
  .birthday-links { align-items: start; gap: 18px; flex-direction: column; }
  .birthday-office > summary small { font-size: 8px; margin-right: 18px; }
  .birthday-page .footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .candle-flame, .candles-out .cake-smoke { animation: none; }
  .candle-flame, .candle-button { transition: none; }
}
