/* Article-specific diagrams reuse the shared editorial typography and spacing. */
.article-profiles-page .article-hero h1 { max-width: 72rem; }
.article-profiles-page .article-hero-image { padding-top: clamp(1.25rem, 3vw, 2.25rem); background: var(--paper); }
.article-profiles-page .article-hero-image img { height: auto; aspect-ratio: 1200 / 630; object-fit: contain; }
.article-profiles-page .article-body { min-width: 0; }
.article-profiles-page .profile-heading-number { color: var(--accent-dark); white-space: nowrap; }
.profile-visual { margin: clamp(3.5rem, 7vw, 6rem) 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--ink); color: var(--paper); }
.profile-visual-label { display: block; margin-bottom: 1.15rem; color: #b9bbc0; font: 600 .7rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.profile-visual-title { display: block; margin-bottom: 1.8rem; font: 400 clamp(1.7rem, 3vw, 2.4rem)/1.15 var(--serif); letter-spacing: -.025em; }
.article-body .profile-visual-note { margin: 1.4rem 0 0; color: #b9bbc0; font-size: .8rem; line-height: 1.6; }
.profile-pair-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: start; text-align: center; }
.profile-digit { display: block; padding: .3rem 0 1.4rem; font: 400 clamp(5rem, 12vw, 8rem)/1 var(--serif); }
.profile-slash { padding-top: .7rem; color: #7e838b; font: 300 clamp(3.5rem, 8vw, 5.5rem)/1.2 var(--serif); }
.profile-digit-label { display: block; padding-top: 1rem; border-top: 1px solid var(--line-strong); font-size: 1rem; line-height: 1.5; }
.profile-digit-label > span { display: block; margin-top: .3rem; color: #b9bbc0; font-size: .84rem; }
.profile-pair figcaption { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: #b9bbc0; font-size: .86rem; line-height: 1.6; }
.profile-comparison { display: block; margin-top: 1rem; color: var(--paper); font: 400 1.65rem/1.2 var(--serif); }
/* One architectural object on desktop, enlarged room details on phones. */
.profile-house-overview { position: relative; margin-bottom: 1.5rem; }
.profile-house-overview > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.profile-house-marker { position: absolute; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid #c5b69a; border-radius: 50%; background: #11151b; color: #e8e5dc; font: 500 .8rem/1 var(--sans); }
.profile-house-building { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.profile-room { min-width: 0; padding: 1.15rem 0; border-top: 1px solid var(--line-strong); }
.profile-room-copy { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .6rem; align-items: start; }
.profile-room-number { padding-top: .2rem; color: #c5b69a; font: 500 .75rem/1.5 var(--sans); letter-spacing: .06em; }
.profile-room strong { display: block; font: 400 1.15rem/1.3 var(--serif); }
.profile-room-theme { display: block; margin-top: .45rem; color: #b9bbc0; font-size: .8rem; line-height: 1.5; }
.profile-house-detail { display: none; position: relative; overflow: hidden; margin-top: 1.1rem; }
.profile-house-detail img { position: absolute; display: block; max-width: none; height: auto; }
.profile-navigator { margin: clamp(3.5rem, 7vw, 6rem) 0 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(17,21,27,.23); }
.article-body .profile-nav-title { margin-bottom: 1.7rem; color: var(--ink); font: 400 clamp(1.5rem, 3vw, 2rem)/1.2 var(--serif); }
.profile-nav-group + .profile-nav-group { margin-top: 1.4rem; }
.article-body .profile-nav-group > p { margin-bottom: .6rem; color: #50555e; font-size: .82rem; line-height: 1.5; }
.profile-nav-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.profile-nav-links a { min-height: 3.25rem; padding: .7rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: .25rem; border: 1px solid rgba(17,21,27,.25); font: 400 1.4rem/1 var(--serif); transition: color .2s, background .2s; }
.profile-nav-links a span { font: 400 .8rem/1 var(--sans); color: var(--accent-dark); }
.profile-nav-links a svg { display: block; width: .7rem; height: .7rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.profile-nav-links a:hover { background: var(--ink); color: var(--paper); }
.profile-nav-links a:hover span { color: var(--paper); }
.profile-timeline ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.profile-timeline li { position: relative; min-width: 0; padding: 0 1rem 0 0; }
.profile-timeline li + li { padding-left: 1rem; }
.profile-timeline li:last-child { padding-right: 0; }
.profile-stage-scene { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; margin: 1rem 0 1.2rem; }
.profile-stage-scene img { position: absolute; top: 0; display: block; width: 300%; max-width: none; height: auto; }
.profile-timeline li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.profile-timeline li::after { content: ''; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border: 1px solid #c5b69a; background: var(--ink); border-radius: 50%; }
.profile-timeline li strong { display: block; margin-bottom: .65rem; color: var(--paper); font: 500 .95rem/1.5 var(--sans); }
.profile-timeline li > span { display: block; color: #b9bbc0; font-size: .84rem; line-height: 1.6; }
.article-profiles-page .article-cta h3:first-child { margin-top: 0; }
.article-profiles-page .article-cta h3 { color: var(--paper); }
@media (max-width: 767px) {
  .article-profiles-page .article-body h2 { font-size: clamp(2rem, 9vw, 2.55rem); overflow-wrap: break-word; }
  .profile-pair-grid { gap: .5rem; }
  .profile-digit-label { font-size: .95rem; }
  .profile-digit-label > span { font-size: .8rem; }
  .profile-house-overview { display: none; }
  .profile-house-building { grid-template-columns: 1fr; }
  .profile-room { padding: 1.35rem 0; }
  .profile-room:first-child { border-top: 0; padding-top: 0; }
  .profile-room-copy { grid-template-columns: 1.7rem minmax(0, 1fr); }
  .profile-room strong { font-size: 1.3rem; }
  .profile-house-detail { display: block; }
  .profile-nav-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-nav-links a { padding: .7rem; }
  .profile-timeline ol { grid-template-columns: 1fr; }
  .profile-timeline li, .profile-timeline li + li { padding: 0 0 1.75rem 1.4rem; border-left: 1px solid var(--line-strong); }
  .profile-timeline li:last-child { padding-bottom: 0; }
  .profile-timeline li::before { display: none; }
  .profile-timeline li::after { left: -4px; top: 0; }
  .profile-stage-scene { margin: 0 0 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .article-profiles-page { scroll-behavior: auto; }
  .profile-nav-links a { transition: none; }
}
