:root {
  --primary: #d71935;
  --deep: #8f1029;
  --pink: #ff6b86;
  --orange: #ff9b36;
  --cream: #fff7f3;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cream);
  background: #fff0f3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: #fff0f3;
}
.stage {
  min-height: 100svh;
  overflow: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 22px;
}
.composition {
  position: relative;
  isolation: isolate;
  width: 380px;
  max-width: 100%;
  animation: arrive .7s both;
}
.bio-card {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  background: linear-gradient(125deg, #ce1837, var(--primary) 46%, var(--deep));
  border: 1px solid #ffffff55;
  box-shadow: inset 1px 0 0 #ffb4b055, 0 12px 32px #931b3526, 0 3px 7px #8f102914;
}
.portrait-wrap { position: relative; height: 150px; overflow: hidden; }
#portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 30%;
  mask-image: linear-gradient(#000 60%, transparent 100%);
}
.card-content { position: relative; margin-top: -5px; padding: 0 23px 47px; text-align: center; }
.eyebrow { margin: 0 0 7px; font-size: 8px; letter-spacing: 1.3px; font-weight: 700; line-height: 1.4; }
h1 { font: 400 43px/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -1.6px; margin: 0 0 9px; }
h1 em { font-weight: 400; color: #ffddc8; }
.profession { font-size: 12px; line-height: 1.4; font-weight: 600; margin: 0 0 4px; }
.segments { font-size: 12px; line-height: 1.4; color: #fff0e9; margin: 0; }
.biography { max-width: 290px; margin: 11px auto 16px; font-size: 12px; line-height: 1.55; color: #fff0e9; }
.links { display: grid; gap: 10px; }
.bio-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  border: 1px solid #ef6b80;
  border-radius: 12px;
  color: #fff7f3;
  background: linear-gradient(115deg, #b71130, #a80f30);
  box-shadow: inset 0 1px 0 #ffc5c52b, 0 3px 0 #750e2840, 0 5px 10px #690a2214;
  font: 600 12px/1.4 Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: transform .2s, filter .2s, box-shadow .2s;
  -webkit-tap-highlight-color: #ffd4c433;
}
.bio-link svg { display: block; width: 21px; height: 21px; flex-shrink: 0; }
.link-arrow { margin-left: auto; color: #ffd7c6; }
.link-arrow svg { width: 16px; height: 16px; }
.primary-cta {
  color: #602135;
  background: linear-gradient(115deg, #ffe4d1, #ffc4ad);
  border-color: #fff0dc;
  box-shadow: inset 0 1px 0 #fff9, 0 3px 0 #8e2236, 0 5px 12px #690a2226;
}
.primary-cta .link-arrow { color: inherit; }
@media (hover: hover) {
  .bio-link:hover { transform: translateY(-2px); filter: brightness(1.04); }
}
.bio-link:active { transform: translateY(2px); filter: brightness(.97); }
button:focus-visible { outline: 3px solid #fff5cf; outline-offset: 4px; }
.card-signature { margin-top: 42px; font: italic 12px/1.4 Georgia, serif; }
.card-signature span { margin-left: 5px; }
.editorial-card {
  position: relative;
  margin: 13px 0 0;
  padding: 13px 18px;
  border: 1px solid #eed1c1;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #672e26;
  background: linear-gradient(110deg, #ffe7d6, #ffdbca);
  box-shadow: 0 4px 12px #9b391f0d;
}
#editorial-text { margin: 0; font: italic 17px/1.4 Georgia, serif; }
/* Organic petals stay outside all text, image and button surfaces. */
.petal {
  display: block;
  position: absolute;
  width: 15px;
  height: 30px;
  border-radius: 85% 15% 78% 22% / 70% 20% 80% 30%;
  background: linear-gradient(130deg, #f8cad1, #d98494);
  box-shadow: inset 2px 1px 3px #fff5;
  pointer-events: none;
  opacity: .65;
  animation: petal-float 9s ease-in-out infinite;
}
.petal-top { top: -30px; left: 16px; rotate: -46deg; scale: .65; }
.petal-side { top: 280px; left: -21px; rotate: 27deg; scale: .75; opacity: .45; animation-delay: -3s; }
.editorial-petal { position: static; flex-shrink: 0; width: 10px; height: 20px; rotate: -30deg; animation: none; opacity: .8; }
.petal-gallery { right: -19px; top: 59px; rotate: 35deg; scale: .7; opacity: .45; animation-delay: -5s; }
.heart {
  position: absolute;
  right: -23px;
  top: 7px;
  width: 85px;
  height: 85px;
  z-index: 2;
  scale: .48;
  rotate: 18deg;
  pointer-events: none;
  filter: drop-shadow(5px 8px 6px #9f15362b);
  animation: float 8s ease-in-out infinite;
}
.heart span { position: absolute; width: 51px; height: 51px; top: 23px; left: 17px; border-radius: 9px; background: linear-gradient(130deg, #ff6a7d, #ee173c 60%, #ad062c); transform: rotate(-45deg); box-shadow: inset 3px 2px 7px #ff8797, inset -3px -5px 8px #b20b33; }
.heart span::before, .heart span::after { content: ''; position: absolute; width: 51px; height: 51px; border-radius: 50%; background: inherit; }
.heart span::before { top: -25px; left: 0; box-shadow: inset 4px 6px 7px #ff8a9a; }
.heart span::after { left: 25px; top: 0; box-shadow: inset -4px -3px 7px #a00b2b; }
.gallery-section { position: relative; width: 380px; max-width: 100%; margin: 27px 0 0; color: #6b2d37; }
h2 { font: 400 25px/1.25 Georgia, serif; letter-spacing: -.5px; text-align: center; margin: 0 0 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-frame { position: relative; overflow: hidden; border-radius: 16px; background: #f3d5c8; aspect-ratio: 4/5; border: 1px solid #d7a59a40; box-shadow: 0 3px 9px #7d26330d; }
.gallery-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-item figcaption { font-size: 11px; line-height: 1.5; text-align: center; margin-top: 7px; color: #6b2d37; }
.footer-wrap { width: 380px; max-width: 100%; }
footer { margin: 27px 0 0; text-align: center; color: #80545a; }
footer p { font: italic 12px/1.5 Georgia, serif; margin: 0; }
.toast { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 15px); width: max-content; max-width: calc(100% - 32px); padding: 13px 18px; border: 1px solid #ffb4b0; border-radius: 13px; background: #50212e; color: #fff7f3; font-size: 12px; line-height: 1.6; text-align: center; box-shadow: 0 8px 24px #45122126; opacity: 0; visibility: hidden; transition: .2s; z-index: 10; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 50% { transform: translateY(-5px); } }
@keyframes petal-float { 50% { transform: translateY(-4px) rotate(5deg); } }
@media (max-width: 350px) {
  .stage { padding: 21px 21px; }
  .portrait-wrap { height: 128px; }
  .card-content { padding: 0 18px 45px; }
  h1 { font-size: 36px; }
  .segments, .profession { font-size: 11px; }
  .bio-link { gap: 10px; padding-inline: 12px; }
  .biography { margin-block: 9px 14px; }
  #editorial-text { font-size: 16px; }
}
@media (max-width: 599px) {
  .gallery-item:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc((100% - 12px) / 2); justify-self: center; }
}
@media (min-width: 600px) {
  .stage { padding-top: 40px; padding-bottom: 32px; }
  .gallery-section { width: 420px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
