/* Shared lower-page experience */
.subpage-body { background: var(--cream); }
.site-header--subpage { position: relative; background: var(--cream); }
.site-header--subpage .brand { position: relative; z-index: 1; }
.page-opening { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; color: #fff8f3; background: var(--rose-deep); pointer-events: none; transform-origin: left center; animation: page-opening-out 1.1s cubic-bezier(.76,0,.18,1) .05s forwards; }
.page-opening span { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 7rem); letter-spacing: .16em; opacity: 0; animation: page-opening-mark .55s ease .1s forwards; }
.subpage-main { overflow: hidden; }
.page-hero { position: relative; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(380px, 1.1fr); gap: clamp(50px, 8vw, 140px); align-items: center; min-height: 650px; padding: 98px clamp(24px, 8vw, 132px) 92px; background: var(--pink-pale); }
.page-hero::before { content: ""; position: absolute; z-index: 0; top: -18%; right: -10%; width: 65%; height: 135%; border-radius: 50% 0 0 50%; background: radial-gradient(circle at 35% 44%, rgba(255,250,244,.98) 0 12%, rgba(247,220,214,.72) 48%, rgba(242,211,206,.06) 72%); }
.page-hero__content, .page-hero__art { position: relative; z-index: 1; }
.page-hero__content { max-width: 640px; }
/* Sizes below assume the rounded display face (wider than the old serif): looser tracking, taller leading, smaller mobile minimums. */
.page-hero h1 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(2.25rem, 7vw, 7rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.page-hero h1 em { color: var(--rose-deep); font-style: normal; }
.page-hero__lead { max-width: 500px; margin: 34px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 2.25; }
.page-hero__art { min-height: 470px; }
.page-hero__frame { position: absolute; right: 4%; top: 0; width: min(32vw, 390px); padding: 10px; background: #fff8f2; box-shadow: var(--shadow); transform: rotate(4deg); }
.page-hero__frame::before { content: ""; position: absolute; z-index: -1; inset: -14px 10px 16px -14px; border: 1px solid rgba(181,139,88,.6); }
/* Frames match the photos' own 2:3 ratio so no part of the person is cropped. */
.page-hero__frame img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; }
.page-hero__frame figcaption { padding: 12px 4px 3px; color: var(--rose-deep); font-family: var(--serif); font-size: 14px; font-style: normal; line-height: 1.1; }
.page-hero__stamp { position: absolute; left: 1%; bottom: 28px; display: grid; place-items: center; width: 105px; height: 105px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); background: rgba(255,248,240,.78); font-family: var(--serif); font-size: 14px; line-height: 1.05; text-align: center; transform: rotate(-12deg); }
.page-hero__stamp strong { display: block; font-size: 31px; font-weight: 400; }
.page-hero__scroll { position: absolute; bottom: 30px; left: clamp(24px, 8vw, 132px); display: flex; align-items: center; gap: 14px; color: var(--rose-deep); font-family: var(--serif); font-size: 10px; letter-spacing: .18em; transform: rotate(-90deg) translateX(-100%); transform-origin: left center; }
.page-hero__scroll i { width: 48px; height: 1px; background: currentColor; }
.route-strip { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 17px 24px; color: #fff6f1; background: var(--rose-deep); font-family: var(--serif); font-size: 14px; letter-spacing: .13em; text-align: center; }
.route-strip b { color: #eec9bd; font-size: 12px; }
.subsection { padding: 135px clamp(24px, 8vw, 132px); }
.subsection--cream { background: var(--cream); }
.subsection--rose { color: #fff8f3; background: var(--rose-deep); }
.subsection--blush { background: #f3e2de; }
.subsection__heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 58px; }
.subsection__heading h2 { max-width: 720px; margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5.6vw, 6rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.subsection__heading h2 em { color: var(--rose-deep); font-style: normal; }
.subsection--rose .subsection__heading h2 em { color: #f2c6be; }
.subsection__heading > p { max-width: 270px; margin: 0 0 6px; color: var(--ink-soft); font-size: 13px; line-height: 2; }
.subsection--rose .subsection__heading > p { color: #f4dcd5; }
.page-breadcrumb { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--rose-deep); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.page-breadcrumb a { transition: color .2s ease; }
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb span { color: var(--gold); font-family: var(--serif); font-size: 18px; font-weight: 400; }
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.reason { border-top: 1px solid rgba(255,241,231,.42); padding-top: 18px; }
.reason span { color: #f3c8bf; font-family: var(--serif); font-size: 28px; }
.reason h3 { margin: 20px 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; }
.reason p { margin: 0; color: #f4dcd5; font-size: 12px; line-height: 1.9; }
.detail-intro { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(50px, 9vw, 150px); align-items: start; }
.detail-intro__title h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5.4vw, 5.8rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.detail-intro__title h2 em { color: var(--rose-deep); font-style: normal; }
.detail-intro__body > p { margin: 0 0 23px; color: var(--ink-soft); font-size: 14px; line-height: 2.1; }
.detail-intro__body > p:first-child { color: var(--ink); font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 38px; }
.check-item { display: flex; gap: 12px; border-top: 1px solid var(--line); padding: 14px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.check-item::before { content: "✦"; flex: none; color: var(--gold); }
.detail-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 64px clamp(26px, 6vw, 78px); background: #f3dfda; }
.detail-cta h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4.8rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.detail-cta h2 em { color: var(--rose-deep); font-style: normal; }
.detail-cta p { max-width: 260px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.9; }
.profile-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(340px, 1.3fr); gap: clamp(50px, 10vw, 150px); align-items: center; }
.profile-layout__portrait { position: relative; max-width: 330px; padding: 12px; background: #f0d6d0; transform: rotate(-4deg); }
.profile-layout__portrait::before { content: ""; position: absolute; z-index: -1; inset: 16px -14px -14px 16px; border: 1px solid var(--gold); }
.profile-layout__portrait img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; }
.profile-layout__portrait figcaption { padding: 13px 4px 2px; color: var(--rose-deep); font-family: var(--serif); font-size: 15px; font-style: normal; line-height: 1.1; }
.profile-layout__body h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5.4vw, 5.8rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.profile-layout__body h2 em { color: var(--rose-deep); font-style: normal; }
.profile-layout__body .profile-name { max-width: 620px; margin: 30px 0 0; color: var(--rose-deep); font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.7; }
.profile-message { max-width: 620px; margin-top: 28px; }
.profile-message p { margin: 0 0 18px; color: var(--ink-soft); font-size: 13px; line-height: 2.15; }
.profile-message .profile-message__lead { margin-bottom: 30px; color: var(--ink); font-family: var(--serif); font-size: 21px; line-height: 1.45; }
.profile-message .profile-message__label { margin-bottom: 13px; color: var(--rose-deep); font-family: var(--serif); font-size: 15px; letter-spacing: .08em; }
.pullquote { margin-top: 35px; border-left: 1px solid var(--rose); padding-left: 20px; color: var(--ink); font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.subpage-footer-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.subpage-footer-nav a { color: var(--rose-deep); font-size: 11px; font-weight: 700; letter-spacing: .1em; transition: color .2s ease; }
.subpage-footer-nav a:hover { color: var(--gold); }

@keyframes page-opening-out { 0% { opacity: 1; transform: scaleX(1); } 70% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(0); } }
@keyframes page-opening-mark { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Heading sizes follow the column they sit in, not the viewport, so a ten-character line never breaks mid-phrase.
   Browsers without container units keep the clamp(vw) sizes declared above. */
.page-hero__content, .subsection__heading > div, .detail-intro__title, .profile-layout__body, .detail-cta > div { container-type: inline-size; }
.subsection__heading > div, .detail-cta > div { flex: 1 1 auto; min-width: 0; }
.page-hero h1 { font-size: clamp(2rem, 9.4cqw, 5rem); }
.subsection__heading h2, .detail-intro__title h2, .profile-layout__body h2 { font-size: clamp(1.9rem, 9.2cqw, 4.4rem); }
.detail-cta h2 { font-size: clamp(1.8rem, 9.4cqw, 4rem); }


@media (max-width: 980px) {
  .detail-intro, .profile-layout { gap: 55px; }
  /* Three items side by side leave the heading no room; stack the CTA early. */
  .detail-cta { display: block; }
  .detail-cta p { margin: 24px 0; }
  .page-hero { grid-template-columns: .9fr 1fr; gap: 28px; min-height: 600px; }
  .page-hero__art { min-height: 430px; }
  .reason-grid { gap: 26px; }
}

@media (max-width: 720px) {
  .detail-intro, .profile-layout { grid-template-columns: 1fr; gap: 54px; }
  .page-hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; padding: 74px 22px 88px; }
  .page-hero__art { order: -1; width: min(94%, 430px); min-height: 420px; margin: 0 auto 28px; }
  .page-hero__frame { right: 5%; width: min(72vw, 305px); }
  .page-hero__stamp { left: 0; bottom: 10px; width: 88px; height: 88px; font-size: 12px; }
  .page-hero__stamp strong { font-size: 26px; }
  .page-hero__scroll { display: none; }
  .route-strip { gap: 13px; font-size: 11px; }
  .subsection { padding: 94px 22px; }
  .subsection__heading { display: block; margin-bottom: 40px; }
  .subsection__heading > p { margin-top: 22px; }
  .reason-grid { gap: 24px; }
  .check-grid { grid-template-columns: 1fr; }
  .detail-cta { display: block; }
  .detail-cta p { margin: 24px 0; }
  .profile-layout__portrait { width: min(75%, 290px); margin: 0 auto; }
}
