/* One continuous material, five chapters. Content is readable without JS. */
html.living-matter-page, html.living-matter-page body { overflow-x: clip; }
.living { --matter-paper: #faf7f2; --matter-ink: #363a32; background: var(--matter-paper); color: var(--matter-ink); padding: 90px 0 40px; }
.living__intro { max-width: 1220px; margin: auto; padding: 0 40px; }
.living__eyebrow, .living__number { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.living__intro h2 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(44px, 6vw, 82px); line-height: 1.05; letter-spacing: -.045em; margin: 22px 0; }
.living__intro h2 em { color: #ae6155; font-weight: 400; }
.living__intro > p:last-child { max-width: 480px; color: #77786c; font-size: 18px; line-height: 1.6; }
.living__layout { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; }
.living__visual { display: block; position: relative; height: 350px; }
.living.is-ready .living__visual { display: block; position: sticky; top: 90px; height: min(690px, calc(100svh - 115px)); min-height: 360px; }
.living__canvas { width: 100%; height: calc(100% - 95px); display: block; opacity: 0; }
.living.has-bloom-frame .living__canvas { opacity: 1; }
.living__poster { position: absolute; inset: 0 0 95px; display: flex; align-items: center; justify-content: center; }
.living__poster img { width: auto; height: 100%; max-width: 100%; object-fit: contain; mask-image: radial-gradient(circle, #000 50%, transparent 98%); }
.living.has-bloom-frame .living__poster { visibility: hidden; }
.living:not(.is-ready) .living__nav { display: none; }
.living.is-static-bloom .living__visual { position: relative; top: 0; }
.living.is-static-bloom .living__layout { display: block; }
.living.is-static-bloom .living__chapter { min-height: 0; }
.living__caption { position: absolute; left: 10%; bottom: 78px; font-family: Georgia, serif; font-style: italic; font-size: 22px; color: #807867; }
.living__nav { position: absolute; bottom: 16px; left: 10%; right: 10%; display: flex; gap: 8px; }
.living__nav a { flex: 1; padding: 12px 0; border-top: 1px solid #cfc9bc; color: #8b887e; font-size: 11px; text-decoration: none; transition: color .2s, border-color .2s; }
.living__nav a[aria-current="step"] { color: #ad5b4c; border-color: #ad5b4c; }
.living a:focus-visible { outline: 2px solid #ad5b4c; outline-offset: 5px; }
.living__chapters { padding: 0 60px 0 28px; }
.living__chapter { min-height: 76svh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0; scroll-margin-top: 110px; }
.living__number { color: #a56a59; margin-bottom: 24px; }
.living__chapter h3 { font: 400 clamp(32px, 3.6vw, 50px)/1.12 Georgia, serif; letter-spacing: -.035em; margin: 0 0 24px; max-width: 520px; }
.living__chapter > p { font-size: 16px; line-height: 1.8; color: #707367; margin: 0; max-width: 490px; }
.living__demo { margin-top: 28px; border-top: 1px solid #d9d5cb; padding-top: 18px; max-width: 440px; }
.living__demo small { display: block; color: #7f8177; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.living__graph { width: 100%; height: 82px; overflow: visible; }
.living__schedule, .living__phases, .living__metrics { display: flex; gap: 9px; flex-wrap: wrap; }
.living__schedule span, .living__phases span, .living__metrics span { padding: 11px 12px; border-radius: 8px; background: #eeeae1; font-size: 12px; }
.living__schedule b { display: block; font-size: 17px; font-weight: 400; margin-bottom: 4px; }
.living__phases span:nth-child(1) { background:#efd8d1; }.living__phases span:nth-child(2) { background:#e9e9d8; }.living__phases span:nth-child(3) { background:#dce4d5; }.living__phases span:nth-child(4) { background:#e9dfd6; }
.living__report { display: flex; align-items: center; gap: 20px; font-size: 13px; line-height: 1.8; }
.living__sheet { width: 60px; height: 76px; padding: 15px 10px; background: #fffdf9; border: 1px solid #d9d5cb; box-shadow: 5px 5px 0 #e7e8df; }
.living__sheet i { display: block; height: 2px; margin: 7px 0; background: #b7c3ac; }
.living:not(.is-ready) .living__layout { display: block; max-width: 1220px; }
.living:not(.is-ready) .living__chapter { min-height: 0; }
[data-theme="dark"] .living { --matter-paper: #23251f; --matter-ink: #f0ece2; }
[data-theme="dark"] .living__chapter > p, [data-theme="dark"] .living__intro > p:last-child { color: #bdc0b1; }
[data-theme="dark"] .living__schedule span, [data-theme="dark"] .living__metrics span { background: #373a30; }
[data-theme="dark"] .living__phases, [data-theme="dark"] .living__sheet { color: #363a32; }
@media (max-width: 760px) {
  .living { padding-top: 55px; }
  .living__intro { padding: 0 25px; }
  .living__intro h2 { font-size: 46px; }
  .living__intro > p:last-child { font-size: 15px; }
  .living__layout { display: block; }
  .living.is-ready .living__visual { top: var(--living-header, 70px); height: 220px; min-height: 0; z-index: 3; background: var(--matter-paper); box-shadow: 0 14px 20px var(--matter-paper); }
  .living__canvas { height: 185px; }
  .living__poster { bottom: 35px; }
  .living__caption { display: none; }
  .living__nav { bottom: 0; left: 25px; right: 25px; }
  .living__nav a { padding: 7px 0; }
  .living__chapters { padding: 0 25px; }
  .living__chapter { min-height: 540px; padding: 44px 0 65px; scroll-margin-top: 320px; }
  .living__chapter h3 { font-size: 34px; }
  .living__chapter > p { font-size: 15px; line-height: 1.75; }
  .living__number { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce), (max-height: 650px) {
  .living.is-ready .living__visual { position: relative; top: 0; height: 280px; min-height: 0; box-shadow: none; }
  .living__layout { display: block; }
  .living__chapter { min-height: 0; padding: 40px 0; scroll-margin-top: 100px; }
  .living__caption { display: none; }
  .living__canvas { height: 220px; }
  .living__poster { bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html.living-matter-page { scroll-behavior: auto; }
}

@media (max-width: 760px) and (min-height: 651px) and (prefers-reduced-motion: no-preference) {
  .living.is-ready:not(.is-static-bloom) .living__visual::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--living-header, 70px); background: var(--matter-paper); pointer-events: none; }
}
