/* A quiet threshold and a fictional family archive. Not an authentication boundary. */
.family-section { background: #efede7; padding-block: 48px 64px; }
.family-section > .container > .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding-bottom: 18px; }
.family-section > .container > .section-heading > .eyebrow { display: none; }
.family-section > .container > .section-heading h2 { font-size: 29px; }
.family-gate { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; padding: 62px 32px 42px; background: radial-gradient(ellipse at 50% 0%, #57624f 0%, #324438 44%, #23382e 100%); color: #f3eddf; border: 1px solid #52614e; box-shadow: 0 24px 60px #23382e14; scroll-margin-top: 16px; }
.family-gate::after { position: absolute; z-index: -1; inset: 18px; border: 1px solid #cab78b55; content: ''; pointer-events: none; }
.family-door-frame { position: absolute; z-index: -1; inset: 32px 5%; display: flex; justify-content: space-between; pointer-events: none; }
.family-door-frame span { width: 22%; border: 1px solid #d7c9a51c; background: linear-gradient(90deg,#0e261d33,#eee5c20a,transparent); box-shadow: inset 0 0 0 12px #1e342913,inset -1px 0 #dbcc9b25; }
.family-door-frame span:last-child { transform: scaleX(-1); }
.family-gate-copy { width: min(100%,460px); text-align: center; }
.family-gate-label { color: #c7c5b0; font-size: 9px; letter-spacing: .22em; }
.family-seal { display: grid; place-items: center; margin: 22px auto 18px; color: #cbbf9b; }
.family-seal svg { width: 32px; height: 40px; }
.family-gate-copy .eyebrow { color: #d3c5a0; font-size: 12px; letter-spacing: .07em; margin-bottom: 15px; }
.family-gate-copy h3 { font-size: clamp(32px,3.3vw,46px); letter-spacing: -.03em; line-height: 1.45; }
.family-gate-description { margin-top: 18px; color: #d2d8cd; font-size: 14px; line-height: 2; }
#family-entry-form { width: min(100%,320px); margin: 32px auto 0; text-align: left; }
#family-entry-fields { padding: 0; border: 0; margin: 0; min-width: 0; }
#family-entry-form label { display: block; color: #d3d7cd; font-size: 11px; margin-bottom: 9px; }
.family-password-field { display: flex; border: 1px solid #b9bda357; background: #13291f3d; }
.family-password-field:focus-within { outline: 2px solid #e7d7b0; outline-offset: 4px; }
.family-password-field input { min-width: 0; width: 100%; padding: 13px 16px; border: 0; background: transparent; color: #fff9ed; font: inherit; font-size: 16px; letter-spacing: .18em; }
.family-password-field input:focus { outline: none; }
.family-password-field input::placeholder { color: #bfc8ba; font-size: 13px; letter-spacing: 0; }
.family-password-field button { min-width: 60px; border: 0; background: transparent; color: #e5dfcf; font-size: 12px; }
.family-entry-error { margin-top: 6px; color: #ffd7c7; font-size: 12px; }
.family-entry-error:empty { display: none; }
.family-enter-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 14px 20px; margin-top: 12px; border: 1px solid #ded3b9; background: #e9e1cf; color: #263c2f; font-size: 13px; transition: background 200ms; }
.family-enter-button:hover { background: #fff8e8; }
.family-gate :focus-visible { outline-color: #f1dfb5; }
.family-demo-note { margin: 22px -20px 0; color: #bbc6b7; font-size: 10px; line-height: 1.9; }
.family-demo-note strong { display: inline-block; margin-bottom: 5px; color: #ece4cf; font-size: 12px; font-weight: 500; }
.family-gate-footnote { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 34px; color: #bfc5b5; font-size: 10px; }
.family-gate-footnote i { width: 2px; height: 2px; border-radius: 50%; background: #a7ac93; }
.family-room { border: 1px solid #dcd8cc; background: #fcfbf7; scroll-margin-top: 16px; animation: family-arrive 700ms ease both; }
.family-room-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 32px; border-bottom: 1px solid #e6e2d9; color: #787968; font-size: 11px; }
.family-room-bar button { display: flex; align-items: center; gap: 12px; min-height: 44px; border: 0; background: transparent; color: #3b5442; font-size: 12px; }
.family-room-welcome { padding: 66px 28px 44px; text-align: center; background: radial-gradient(ellipse at top,#e6e9db77,transparent 65%); }
.family-room-welcome .eyebrow { color: #7c836b; font-size: 10px; }
.family-room-welcome h3 { font-size: clamp(29px,3vw,42px); line-height: 1.6; color: #344738; }
.family-room-welcome p:not(.eyebrow) { margin-top: 20px; color: #6c7263; font-size: 13px; line-height: 2; }
.family-room-welcome > span { display: block; margin-top: 23px; color: #686e5d; font-size: 10px; }
.family-room-tabs { display: flex; justify-content: center; margin: 0 40px; border-top: 1px solid #e8e3d8; border-bottom: 1px solid #d9d8cb; }
.family-room-tabs button { min-height: 54px; min-width: 100px; padding: 12px 24px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6e7467; font-size: 13px; }
.family-room-tabs [aria-pressed=true] { color: #284631; border-bottom-color: #5b7153; font-weight: 600; }
.family-panel { padding: 52px 40px; }
.family-panel + .family-panel { border-top: 1px solid #e9e5dc; }
.family-collection-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.family-collection-heading .eyebrow { font-size: 9px; letter-spacing: .14em; color: #686e5d; margin-bottom: 12px; }
.family-collection-heading h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px,2vw,29px); line-height: 1.6; letter-spacing: -.04em; color: #374b3a; margin: 0; }
.family-collection-heading p:not(.eyebrow) { margin-top: 10px; color: #707666; font-size: 12px; }
.family-collection-heading > span { color: #686e5d; font-size: 11px; white-space: nowrap; }
.family-letter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.family-letter-card { min-width: 0; padding: 0; border: 1px solid #e2ddcf; background: #f5f0e5; text-align: left; color: #42533e; transition: box-shadow 250ms, border-color 250ms; }
.family-letter-card:hover { box-shadow: 0 12px 24px #3b3e2910; border-color: #b7b69f; }
.family-letter-paper { padding: 20px 22px 0; overflow: hidden; height: 225px; background: radial-gradient(ellipse at 50% 100%,#ded3bd,#eee9df 80%); }
.family-letter-paper img { width: 100%; height: auto; transform: rotate(-3deg); transform-origin: center top; box-shadow: 1px 4px 12px #57492a22; }
.family-letter-card:nth-child(even) .family-letter-paper img { transform: rotate(3deg); }
.family-letter-label { position: relative; display: block; padding: 23px 22px; border-top: 1px solid #e6dece; background: #fbf8f0; box-shadow: 0 -9px 16px #58442807; }
.family-letter-label small { display: block; color: #686e5d; font-size: 10px; margin-bottom: 6px; }
.family-letter-label strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.family-letter-label > span { display: flex; justify-content: space-between; margin-top: 18px; color: #686e5d; font-size: 10px; }
.family-video-feature { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid #e0ded2; background: #f0f1e8; }
.family-video-poster { position: relative; min-width: 0; padding: 0; border: 0; background: #26392c; }
.family-video-poster > img { width: 100%; height: 100%; min-height: 270px; aspect-ratio: 16/10; object-fit: cover; filter: brightness(.8); }
.family-video-play { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 15px; color: white; background: linear-gradient(transparent,#12251935); }
.family-video-play i { display: grid; place-items: center; padding-left: 3px; width: 58px; height: 58px; border: 1px solid #fff8; border-radius: 50%; font-size: 20px; font-style: normal; background: #fff1; }
.family-video-play > span { font-size: 12px; letter-spacing: .02em; }
.family-video-copy { padding: clamp(26px,3vw,44px); align-self: center; }
.family-video-copy .eyebrow { font-size: 10px; margin-bottom: 14px; }
.family-video-copy h5 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.55; margin: 0 0 18px; color: #3e503e; }
.family-video-copy > p:not(.eyebrow) { color: #6c7463; font-size: 13px; line-height: 2; }
.family-video-copy small { display: block; border-top: 1px solid #d8ddce; padding-top: 16px; margin-top: 22px; color: #79806d; font-size: 10px; line-height: 1.9; }
.family-album-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.family-photo { min-width: 0; padding: 10px 10px 18px; border: 1px solid #e1ded1; background: white; color: #42523e; text-align: left; }
.family-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.family-photo > span { display: block; padding: 12px 5px 0; font-size: 12px; line-height: 1.8; }
.family-photo small { display: block; margin-bottom: 4px; color: #686e5d; font-size: 10px; }
.family-writing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.family-writing-card { padding: 30px; border: 1px solid #dedfce; background: #f1f3e9; color: #3f513c; text-align: left; }
.family-writing-card:nth-child(even) { background: #f4f0e8; }
.family-writing-card small { display: block; font-size: 10px; letter-spacing: .08em; color: #686e5d; }
.family-writing-card strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 18px 0 12px; }
.family-writing-card p { font-size: 13px; line-height: 2; color: #747a69; }
.family-writing-card > span { display: flex; justify-content: space-between; font-size: 11px; margin-top: 28px; padding-top: 16px; border-top: 1px solid #d7dbc9; }
.family-room-closing { padding: 42px 26px 48px; text-align: center; border-top: 1px solid #e7e3d8; }
.family-room-closing > p { font-family: var(--serif); font-size: 22px; color: #777d68; line-height: 1.8; }
.family-room-closing > span { display: block; margin-top: 24px; color: #686e5d; font-size: 10px; line-height: 1.9; }
.family-keepsake-dialog { width: min(880px,calc(100vw - 32px)); max-height: 90dvh; padding: 0; border: 1px solid #d9d7cb; background: #f3efe5; color: #364b3b; }
.family-keepsake-dialog::backdrop { background: #14271dd1; backdrop-filter: blur(5px); }
.family-keepsake-dialog .dialog-toolbar { position: sticky; top: 0; z-index: 1; background: #f8f6ef; border-bottom: 1px solid #ddd9ca; font-size: 11px; }
.family-detail-heading { text-align: center; padding: 32px 24px 20px; }
.family-detail-heading .eyebrow { font-size: 10px; margin-bottom: 12px; }
.family-detail-heading h2 { font-size: clamp(24px,3vw,33px); }
.family-detail-heading > p:last-child { font-size: 11px; color: #686e5d; margin-top: 12px; }
.family-letter-full { width: min(100% - 40px,540px); margin: 0 auto 24px; box-shadow: 0 8px 28px #3c37251a; }
.family-transcript { margin: 20px auto 32px; width: min(100% - 48px,660px); color: #5e6957; font-size: 14px; }
.family-transcript summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 12px; }
.family-transcript > div { padding: 16px 0 0; }
.family-transcript p, .family-detail-writing p { margin-bottom: 18px; line-height: 2.2; }
.family-detail-signoff { text-align: right; font-family: var(--serif); }
.family-detail-writing { width: min(100% - 48px,610px); margin: 12px auto 44px; padding: 28px; border-top: 1px solid #d8d4c5; color: #56644f; font-size: 16px; }
.family-detail-video { display: block; width: 100%; max-height: 58dvh; background: #17271c; }
.family-video-description { padding: 18px 24px 0; color: #6c7464; font-size: 12px; line-height: 1.9; }
@keyframes family-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .family-letter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family-letter-paper { height: 240px; padding-inline: 28px; }
  .family-panel { padding: 40px 28px; }
  .family-room-tabs { margin-inline: 28px; }
  .family-video-feature { grid-template-columns: 1fr; }
  .family-video-poster > img { max-height: 390px; object-position: center 30%; }
  .family-door-frame span { width: 12%; }
}
@media (max-width: 640px) {
  .family-section { padding-block: 32px 44px; }
  .family-section > .container > .section-heading { display: block; margin-bottom: 22px; }
  .family-section > .container > .section-heading > p:last-child { font-size: 12px; margin-top: 7px; }
  .family-gate { padding: 38px 25px 32px; scroll-margin-top: 12px; }
  .family-gate::after { inset: 10px; }
  .family-door-frame { inset: 22px; opacity: .45; }
  .family-door-frame span { width: 13px; }
  .family-gate-label { font-size: 7px; letter-spacing: .15em; }
  .family-seal { margin: 24px auto 22px; }
  .family-gate-copy h3 { font-size: 34px; }
  .family-gate-description { font-size: 12px; }
  .family-demo-note { margin-inline: 0; font-size: 10px; }
  .family-gate-footnote { gap: 9px; margin-top: 28px; font-size: 9px; }
  .family-room { scroll-margin-top: 12px; }
  .family-room-bar { padding: 8px 17px; gap: 8px; font-size: 10px; }
  .family-room-bar button { font-size: 11px; gap: 6px; }
  .family-room-welcome { padding: 38px 20px 30px; }
  .family-room-welcome h3 { font-size: 27px; }
  .family-room-welcome p:not(.eyebrow) { font-size: 12px; }
  .family-room-welcome br { display: none; }
  .family-room-welcome h3 br { display: initial; }
  .family-room-tabs { margin-inline: 16px; }
  .family-room-tabs button { min-width: 0; flex: 1; padding: 11px 4px; font-size: 11px; white-space: nowrap; }
  .family-panel { padding: 32px 18px; }
  .family-collection-heading { display: block; margin-bottom: 22px; }
  .family-collection-heading h4 { font-size: 23px; }
  .family-collection-heading > span { display: block; margin-top: 12px; font-size: 10px; }
  .family-letter-grid { gap: 14px; }
  .family-letter-paper { height: 160px; padding: 14px 12px 0; }
  .family-letter-label { padding: 17px 12px; }
  .family-letter-label strong { font-size: 19px; }
  .family-letter-label > span { margin-top: 12px; font-size: 9px; }
  .family-video-poster > img { min-height: 200px; }
  .family-video-copy { padding: 24px 20px; }
  .family-video-copy h5 { font-size: 25px; }
  .family-album-grid, .family-writing-grid { grid-template-columns: 1fr; gap: 18px; }
  .family-writing-card { padding: 24px; }
  .family-writing-card strong { font-size: 23px; }
  .family-room-closing { padding: 32px 18px; }
  .family-room-closing > p { font-size: 21px; }
  .family-keepsake-dialog { width: calc(100vw - 20px); max-height: 92dvh; }
  .family-keepsake-dialog .dialog-toolbar { padding: 10px 14px; }
  .family-detail-heading { padding: 26px 20px 18px; }
  .family-letter-full { width: calc(100% - 28px); }
  .family-transcript { width: calc(100% - 36px); }
  .family-detail-writing { width: calc(100% - 36px); padding: 22px 4px; font-size: 15px; }
}
@media (max-width: 360px) { .family-letter-paper { height: 130px; } .family-gate-copy h3 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { .family-room { animation: none; } .family-letter-card, .family-enter-button { transition: none; } }
