/* Home / Viziune / Galeria, and the permanent Cantus Mundi page.
   All content remains visible without JS; imagery uses native responsive sources. */
.home .home-news-grid { row-gap: 36px; }
.home .home-vision { background: var(--surface); padding-block: clamp(36px,4vw,64px); }
.home .home-vision > .container,.home .home-gallery > .container,.cm-page > .container,.cm-page section > .container { max-width: 1520px; }
.home .home-vision .home-section-head h2,.home .home-gallery .home-section-head h2 { font-size: clamp(2.2rem,4.5vw,4.5rem); }
.cm-feature { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr); align-items: stretch; background: var(--ink); color: var(--surface); border-radius: 4px; overflow: hidden; }
.cm-feature-copy { padding: clamp(26px,3.7vw,58px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.cm-kicker { margin: 0 0 18px; font: 700 .75rem/1.5 var(--font-sans); letter-spacing: .05em; color: var(--brand-deep); }
.cm-feature .cm-kicker { color: var(--gold); }
.cm-feature-copy h1,.cm-feature-copy h3 { font: 700 clamp(3.7rem,7vw,7rem)/.94 var(--font-sans); letter-spacing: -.06em; margin: 0 0 26px; color: var(--surface); }
.cm-feature-copy > p:not(.cm-kicker) { font-size: 1rem; line-height: 1.6; max-width: 43ch; color: var(--bg); margin: 0 0 18px; }
.cm-feature-copy > h1 + p,.cm-feature-copy > h3 + p { font-size: clamp(1.12rem,1.55vw,1.4rem); line-height: 1.45; }
.cm-feature-image { position: relative; margin: 0; min-width: 0; min-height: 380px; }
.cm-feature-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 45%; }
.cm-feature-image figcaption,.cm-events-image figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 22px 16px; background: linear-gradient(transparent,#25282dcc); color: var(--surface); font: 400 .7rem/1.5 var(--font-sans); }
.cm-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 14px 22px; margin-top: 8px; background: var(--gold); color: var(--ink); border-radius:var(--radius-cta); text-decoration: none; font: 700 .85rem/1.45 var(--font-sans); }
.cm-button:hover { background: var(--surface); color: var(--ink); }
.cm-button > span { font-size: 1.25rem; }
.cm-text-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--brand-deep); text-underline-offset: 5px; font-size: .85rem; font-weight: 600; }
.cm-feature .cm-text-link { color: var(--surface); margin-top: 10px; }
.cm-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 0; padding: 28px 0 20px; border-bottom: 1px solid var(--line); gap: 0; }
.cm-metrics > div { display: flex; flex-direction: column; gap: 8px; padding-inline: clamp(16px,2.2vw,36px); border-left: 1px solid var(--line); min-width: 0; }
.cm-metrics > div:first-child { border-left: 0; padding-left: 0; }
.cm-metrics dt { order: 1; color: var(--mut); font-size: .9rem; }
.cm-metrics dd { margin: 0; color: var(--brand-deep); font: 700 clamp(1.8rem,3.4vw,3.6rem)/1.1 var(--font-sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.cm-source { margin: 12px 0 0; color: var(--mut); font: 400 .72rem/1.6 var(--font-sans); }
.cm-source a { color: inherit; text-underline-offset: 3px; }
.home .home-gallery { background: var(--ink); color: var(--surface); padding-block: clamp(36px,4vw,64px); }
.home .home-gallery .home-section-head h2 { color: var(--surface); }
.home .home-gallery .home-section-head > a { color: var(--gold); }
.hg-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.5fr); gap: clamp(30px,4vw,64px); align-items: center; }
.hg-copy .cm-kicker { color: var(--gold); }
.hg-copy h3 { font: 700 clamp(2.5rem,4.5vw,4.5rem)/1.05 var(--font-sans); letter-spacing: -.05em; color: var(--surface); margin: 0 0 20px; }
.hg-copy > p:not(.cm-kicker) { max-width: 42ch; color: var(--bg); font-size: 1rem; line-height: 1.65; }
.hg-links { margin-top: 22px; display: flex; flex-direction: column; align-items: stretch; }
.hg-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #F2EEE833; color: var(--gold); font-size: .85rem; font-weight: 600; text-decoration: none; }
.hg-links a:hover { color: var(--surface); }
.hg-copy .hg-address { margin-top: 20px; font-size: .75rem!important; }
.hg-works { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: center; min-width: 0; }
.hg-works figure { margin: 0; min-width: 0; }
.hg-works figure:nth-child(2) { margin-top: 90px; }
.hg-works figure > a { display: block; background: var(--surface); box-shadow: 0 12px 24px #0003; }
.hg-works img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.hg-works figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font: 400 .75rem/1.45 var(--font-sans); }
.hg-works figcaption > span { color: var(--gold); }
.hg-works figcaption a { color: var(--surface); text-decoration: none; min-height: 32px; }
.hg-works figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cm-page { background: var(--surface); color: var(--ink); }
.cm-page-hero { padding-block: 24px 40px; }
.cm-breadcrumb { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; font-size: .78rem; color: var(--mut); }
.cm-breadcrumb a { color: var(--brand-deep); min-height: 44px; display: inline-flex; align-items: center; }
.cm-page .cm-feature { min-height: 520px; }
.cm-page h2 { font: 700 clamp(2rem,3.6vw,3.6rem)/1.08 var(--font-sans); letter-spacing: -.04em; margin: 0; color: inherit; }
.cm-page h3 { color: inherit; }
.cm-mission { padding-block: clamp(36px,5vw,72px); background: var(--ink); color: var(--surface); }
.cm-mission .cm-kicker,.cm-mission .cm-text-link { color: var(--gold); }
.cm-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,5vw,80px); }
.cm-split > div > p:not(.cm-kicker) { margin: 0 0 18px; font-size: 1rem; line-height: 1.75; }
.cm-activities,.cm-events,.cm-join { padding-block: clamp(36px,4vw,64px); }
.cm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cm-section-head .cm-kicker { margin-bottom: 10px; }
.cm-section-head > a { flex-shrink: 0; }
.cm-activity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(20px,3vw,40px); }
.cm-activity-grid article { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 24px; min-width: 0; }
.cm-activity-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--brand-deep); font-size: 1.5rem; margin-bottom: 20px; }
.cm-activity-grid h3 { font: 700 clamp(1.4rem,2.1vw,2rem)/1.12 var(--font-sans); letter-spacing: -.03em; margin: 0 0 14px; }
.cm-activity-grid p { font-size: .94rem; line-height: 1.7; margin: 0 0 16px; color: var(--mut); }
.cm-activity-grid .cm-text-link { margin-top: auto; }
.cm-events { background: var(--bg); }
.cm-events-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 32px; }
.cm-events-image { position: relative; margin: 0; min-height: 350px; }
.cm-events-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; border-radius: 3px; }
.cm-event-list > a { position: relative; display: block; padding: 22px 32px 22px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cm-event-list time { font-size: .75rem; color: var(--brand-deep); }
.cm-event-list h3 { font: 700 clamp(1.25rem,1.8vw,1.7rem)/1.17 var(--font-sans); letter-spacing: -.02em; margin: 10px 0; }
.cm-event-list p { font-size: .85rem; line-height: 1.5; color: var(--mut); margin: 0; }
.cm-event-arrow { position: absolute; top: 24px; right: 0; color: var(--brand-deep); }
.cm-event-list > a:hover h3 { color: var(--brand-deep); }
.cm-join { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; }
.cm-join p:not(.cm-kicker) { line-height: 1.6; max-width: 45ch; color: var(--mut); }
.cm-join-links { display: flex; flex-direction: column; align-items: flex-start; justify-self: end; }
.cm-join .cm-button:hover { background: var(--ink); color: var(--surface); }
.cm-page section[id] { scroll-margin-top: calc(var(--head-height,80px) + 20px); }
.cm-page :focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 1000px) and (min-width: 761px) {
 .cm-feature { grid-template-columns: 1fr 1fr; }
 .cm-feature-copy { padding: 28px; }
 .hg-layout { grid-template-columns: 1fr 1.2fr; gap: 28px; }
 .hg-works { grid-template-columns: 1fr; gap: 20px; }
 .hg-works figure:nth-child(2) { margin: 0 0 0 20%; }
 .hg-works figure:first-child { margin-right: 20%; }
}
@media (max-width: 760px) {
 .home .home-news-grid { row-gap: 0; }
 .cm-feature { grid-template-columns: minmax(0,1fr); }
 .cm-feature-copy { padding: 26px 22px 30px; }
 .cm-feature-copy h1,.cm-feature-copy h3 { font-size: clamp(3.6rem,16vw,5.5rem); margin-bottom: 22px; }
 .cm-feature-copy h3 br,.cm-feature-copy h1 br { display: none; }
 .cm-feature-copy h3,.cm-feature-copy h1 { max-width: 9ch; }
 .cm-feature-copy > p:not(.cm-kicker) { font-size: .92rem; max-width: none; }
 /* Explicit width avoids Safari's zero intrinsic grid width with absolutely positioned children. */
 .cm-feature-image { width: 100%; min-height: 0; aspect-ratio: auto; }
 .cm-feature-image img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; object-position: center; }
 .cm-feature-image figcaption { position: static; padding: 12px 22px 16px; background: #25282d; }
 .cm-feature .cm-button { width: 100%; font-size: .8rem; padding: 14px 16px; }
 .cm-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 0 0; }
 .cm-metrics > div,.cm-metrics > div:first-child { padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); gap: 6px; }
 .cm-metrics > div:nth-child(even) { padding-left: 24px; }
 .cm-metrics > div:last-child { grid-column: 1/-1; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 16px; border: 0; }
 .cm-metrics dd { font-size: 2.5rem; }
 .cm-metrics dt { font-size: .83rem; }
 .cm-source { font-size: .67rem; }
 .home .home-gallery .home-section-head { align-items: start; }
 .hg-layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
 .hg-copy h3 { font-size: 2.65rem; }
 .hg-copy > p:not(.cm-kicker) { max-width: none; font-size: .94rem; }
 .hg-works { grid-template-columns: minmax(0,1fr); gap: 28px; }
 .hg-works figure:first-child { margin-right: 8%; }
 .hg-works figure:nth-child(2) { margin: 0 0 0 16%; }
 .cm-page-hero { padding-top: 12px; padding-bottom: 30px; }
 .cm-page .cm-feature { min-height: 0; }
 .cm-split,.cm-activity-grid,.cm-events-layout,.cm-join { grid-template-columns: minmax(0,1fr); gap: 26px; }
 .cm-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
 .cm-activity-grid article { padding-top: 20px; }
 .cm-activity-grid p { margin-bottom: 8px; }
 .cm-events-image { min-height: 0; aspect-ratio: 3/2; }
 .cm-join-links { justify-self: stretch; }
 .cm-join .cm-button { width: 100%; }
}
