/* R18: portfolio only. The homepage keeps its existing stylesheet. */
.vl-r18 { color: var(--vl-color-text); }
.vl-r18 h2 { color: var(--vl-color-secondary); font-size: var(--vl-font-size-2xl); margin-bottom: 1.25rem; }
.vl-r18-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; margin: 0 0 4rem; }
.vl-r18-lead { font-size: 1.15rem; line-height: 1.8; max-width: 65ch; margin: 1rem 0 1.5rem; }
.vl-r18-illustration { display: block; width: 100%; height: auto; border-radius: var(--vl-radius-lg); }
.vl-r18-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.vl-r18-card { background: var(--vl-color-surface); border: 1px solid var(--vl-color-border); border-radius: var(--vl-radius-lg); overflow: hidden; box-shadow: var(--vl-shadow-sm); }
.vl-r18-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.vl-r18-card-link:focus-visible { outline-offset: -4px; }
.vl-r18-card-media { border-bottom: 1px solid var(--vl-color-border); }
.vl-r18-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 1280/680; object-fit: cover; }
.vl-r18-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.5rem; }
.vl-r18-card h3 { font-family: var(--vl-font-serif); font-size: 1.65rem; color: var(--vl-color-secondary); margin: 1rem 0 .75rem; }
.vl-r18-card p { line-height: 1.7; margin-bottom: 1.5rem; }
.vl-r18-discover { margin-top: auto; color: var(--vl-color-primary); font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.vl-r18-contact { margin-top: 4rem; padding: 2.5rem; background: var(--vl-color-secondary-light); border-radius: var(--vl-radius-lg); }
.vl-r18-contact p { margin-bottom: 1.5rem; }
.vl-r18-case-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 2rem; align-items: start; }
.vl-r18 .vl-project-block h2 { font-size: var(--vl-font-size-xl); }
.vl-r18 .vl-project-block ul { padding-left: 1.25rem; }
.vl-r18 .vl-project-block li + li { margin-top: .65rem; }
.vl-r18-sidebar { display: grid; gap: 1.5rem; }
.vl-r18-sidebar p + p { margin-top: 1.5rem; }
.vl-r18-gallery { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,1fr); gap: 2rem; align-items: start; }
.vl-r18-gallery figure { margin: 0; min-width: 0; }
.vl-r18-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--vl-color-border); border-radius: var(--vl-radius); box-shadow: var(--vl-shadow-sm); }
.vl-r18-gallery figcaption { font-size: .8rem; line-height: 1.6; color: var(--vl-color-text-muted); margin-top: .75rem; }
.vl-r18-case-footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 1024px) { .vl-r18-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .vl-r18-case-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 768px) { .vl-r18-intro { grid-template-columns: minmax(0,1fr); gap: 1.5rem; margin-bottom: 3rem; } .vl-r18-grid { grid-template-columns: minmax(0,1fr); } .vl-r18-gallery { grid-template-columns: minmax(0,1fr); } .vl-r18-mobile { max-width: 280px; } .vl-r18-contact { padding: 1.5rem; } .vl-r18 .vl-project-title { font-size: 2rem; } }

/* R19-R9. Historical hero preserved; native project details. Portfolio only; historical case studies retain their R18 rules above. */
main:has(.vl-r19) { background: #f9f8f6; }
.vl-content--page:has(.vl-r19) { position: relative; padding-top: 3rem; padding-bottom: 1rem; }
.vl-content--page:has(.vl-r19) > .vl-content-header { position: absolute; top: 5rem; margin: 0; width: 40%; }
.vl-content--page:has(.vl-r19) > .vl-content-header h1 { color: #264f58; font-size: clamp(3.6rem, 6vw, 5.5rem); line-height: 1.05; letter-spacing: -.04em; margin: 0; }
.vl-r19 { color: #1c2826; }
.vl-r19 .vl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.vl-r19 .vl-r19-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-bottom: 3.5rem; }
.vl-r19-intro-copy { padding-top: 6rem; }
.vl-r19 .vl-eyebrow { color: #a83b25; font-size: .7rem; font-weight: 700; letter-spacing: .12em; line-height: 1.8; margin: 0 0 1rem; max-width: 35ch; }
.vl-r19 .vl-r18-lead { font-size: 1.15rem; line-height: 1.75; margin: 0; max-width: 34ch; }
.vl-r19-hero-image { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 12px; }
.vl-r19-index { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.75rem; }
.vl-r19-index a { display: grid; place-items: center; width: 40px; height: 40px; border-bottom: 1px solid #acbfc2; color: #264f58; text-decoration: none; font-size: .8rem; font-variant-numeric: tabular-nums; }
.vl-r19-index a:hover { background: #e2eded; border-color: #264f58; }
/* One reading order for every project: title, images, summary, details. */
.vl-r19 #realisations { max-width: 1080px; margin-inline: auto; }
.vl-content-body:has(.vl-r19) { margin-bottom: 0; }
.vl-r19 .vl-r19-project { border-top: 1px solid #c5d4d5; padding: 3.5rem 0; margin: 0; scroll-margin-top: 7rem; }
.vl-r19 .vl-r19-project-heading { margin: 0 0 1.5rem; }
.vl-r19 .vl-r19-project h3 { color: #264f58; font-family: var(--vl-font-serif); font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1.15; letter-spacing: -.025em; margin: 0; }
.vl-r19 .vl-r19-summary { max-width: 68ch; font-size: 1rem; line-height: 1.75; margin: 1.25rem 0 .5rem; }
.vl-r19 .vl-r19-gallery { min-width: 0; width: 100%; }
.vl-r19 .vl-r19-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #64828a #e2eded; border: 0; border-radius: 0; background: transparent; }
.vl-r19 .vl-r19-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.vl-r19 .vl-r19-slide a { display: flex; align-items: center; justify-content: center; height: auto; aspect-ratio: 1280 / 680; padding: .4rem; border: 1px solid #d8e2e2; border-radius: 6px; background: #fff; }
.vl-r19 .vl-r19-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vl-r19 .vl-r19-slide figcaption { padding: .65rem 0 0; color: #3c6068; font-size: .75rem; line-height: 1.6; }
.vl-r19 .vl-r19-gallery[data-gallery-portrait="true"] { max-width: 320px; margin-inline: auto; }
.vl-r19 .vl-r19-gallery[data-gallery-portrait="true"] .vl-r19-slide a { height: 470px; aspect-ratio: auto; }
.vl-r19 .vl-r19-controls { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: .75rem; }
.vl-r19 .vl-r19-controls[hidden] { display: none; }
.vl-r19 .vl-r19-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #64828a; background: transparent; border-radius: 50%; color: #264f58; font: inherit; font-size: 1.25rem; cursor: pointer; }
.vl-r19 .vl-r19-controls button:hover:not(:disabled) { background: #264f58; color: #fff; }
.vl-r19 .vl-r19-controls button:disabled { color: #6a7e82; border-color: #cbd8d9; cursor: default; }
.vl-r19 .vl-r19-position { color: #264f58; font-size: .8rem; font-variant-numeric: tabular-nums; }
.vl-r19 .vl-r19-details { max-width: 76ch; }
.vl-r19 .vl-r19-details summary { display: flex; align-items: center; gap: .85rem; width: fit-content; min-height: 44px; padding: .5rem .35rem; margin-left: -.35rem; color: #264f58; cursor: pointer; list-style: none; font-size: .9rem; font-weight: 600; }
.vl-r19 .vl-r19-details summary::-webkit-details-marker { display: none; }
.vl-r19 .vl-r19-details summary:hover { color: #a83b25; }
.vl-r19 .vl-r19-detail-mark { width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.vl-r19 .vl-r19-details[open] .vl-r19-detail-mark { transform: translateY(2px) rotate(225deg); }
.vl-r19-details-open, .vl-r19-details[open] .vl-r19-details-closed { display: none; }
.vl-r19-details[open] .vl-r19-details-open { display: inline; }
.vl-r19 .vl-r19-detail-content { padding-top: 1.5rem; }
.vl-r19 .vl-r19-project-label, .vl-r19 .vl-r19-meta { color: #3c6068; font-size: .8rem; line-height: 1.7; margin: 0 0 .5rem; }
.vl-r19 .vl-r19-description { margin-top: 1.75rem; min-width: 0; }
.vl-r19 .vl-r19-description section + section, .vl-r19 .vl-r19-specs { margin-top: 1.5rem; }
.vl-r19 .vl-r19-project h4 { font-family: var(--vl-font-sans); color: #264f58; font-size: .9rem; font-weight: 700; line-height: 1.5; margin: 0 0 .6rem; }
.vl-r19 .vl-r19-description p, .vl-r19 .vl-r19-description li { font-size: .95rem; line-height: 1.8; }
.vl-r19 .vl-r19-description p { margin: 0; }
.vl-r19 .vl-r19-description p + p { margin-top: .75rem; }
.vl-r19 .vl-r19-description ul { padding-left: 1.1rem; margin: 0; }
.vl-r19 .vl-r19-description li + li { margin-top: .4rem; }
.vl-r19 .vl-r19-description li::marker { color: #a83b25; }
.vl-r19 .vl-r19-description .vl-r19-links { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin-top: 1.5rem; }
.vl-r19 .vl-inline-link { color: #a83b25; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.vl-r19 .vl-inline-link:hover { color: #264f58; }
.vl-r19 .vl-r19-review { border-top: 1px solid #d8e2e2; margin-top: 2rem; padding-top: 1.5rem; }
.vl-r19 .vl-r19-review-meta { color: #3c6068; font-size: .8rem; line-height: 1.7; margin: 0; }
.vl-r19 .vl-r19-review blockquote { margin: 1.25rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid #a83b25; color: #264f58; font-family: var(--vl-font-serif); font-size: 1.15rem; line-height: 1.7; }
.vl-r19 .vl-r19-review blockquote p { margin: 0; }
.vl-r19 .vl-r19-review blockquote p + p { margin-top: .8rem; }
.vl-r19 .vl-r19-review > p:last-child { font-size: .8rem; line-height: 1.8; margin: 0; }
.vl-r19 .vl-r19-project--provisional { padding-block: 2.5rem; }
.vl-r19 .vl-r19-project--provisional h3 { font-size: clamp(1.8rem, 2.5vw, 2.3rem); }
.vl-r19 .vl-r19-project--provisional .vl-r19-gallery { max-width: 420px; }
.vl-r19 .vl-r19-project--provisional .vl-r19-track { border: 0; border-radius: 0; background: none; }
.vl-r19 .vl-r19-project--provisional .vl-r19-slide { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 1rem; align-items: center; }
.vl-r19 .vl-r19-project--provisional .vl-r19-slide a { height: auto; aspect-ratio: auto; padding: 0; border: 0; background: none; }
.vl-r19 .vl-r19-project--provisional .vl-r19-slide img { height: auto; }
.vl-r19 .vl-r19-project--provisional figcaption { padding: 0; max-width: 24ch; font-size: .7rem; }
.vl-r19 .vl-r19-project:last-child { padding-bottom: 1.5rem; }
.vl-r19 p, .vl-r19 a { overflow-wrap: anywhere; }
.vl-r19 :is(button,a,summary,[tabindex]):focus-visible { outline: 3px solid #264f58; outline-offset: 3px; }
@media (max-width: 1100px) {
 .vl-content--page:has(.vl-r19) > .vl-content-header { top: 4rem; }
 .vl-r19-intro-copy { padding-top: 5rem; }
}
@media (max-width: 800px) {
 .vl-content--page:has(.vl-r19) > .vl-content-header { position: static; width: auto; margin-bottom: 1.25rem; }
 .vl-r19-intro-copy { padding: 0; }
 .vl-r19 .vl-r19-intro { gap: 1.5rem; grid-template-columns: 1fr 1fr; }
 .vl-r19 .vl-r18-lead { font-size: 1rem; }
 .vl-r19-index { gap: .15rem; }
}
@media (max-width: 600px) {
 .vl-content--page:has(.vl-r19) { padding-top: 2rem; }
 .vl-content--page:has(.vl-r19) > .vl-content-header h1 { font-size: 3.4rem; }
 .vl-r19 .vl-r19-intro { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 2.5rem; }
 .vl-r19-intro-copy { display: contents; }
 .vl-r19 .vl-eyebrow { max-width: none; margin-bottom: 0; }
 .vl-r19 .vl-r18-lead { max-width: none; }
 .vl-r19-hero-image { grid-row: 3; margin-top: .25rem; }
 .vl-r19-index { grid-row: 4; margin-top: .25rem; gap: .4rem; }
 .vl-r19 .vl-r19-project { padding-block: 2.25rem; }
 .vl-r19 .vl-r19-project h3 { font-size: 2.1rem; }
 .vl-r19 .vl-r19-project-heading { margin-bottom: 1.25rem; }
 .vl-r19 .vl-r19-slide a { height: auto; aspect-ratio: 1280 / 680; padding: .4rem; }
 .vl-r19 .vl-r19-slide figcaption { padding: .65rem 0 0; }
 .vl-r19 .vl-r19-gallery[data-gallery-portrait="true"] { max-width: 240px; }
 .vl-r19 .vl-r19-gallery[data-gallery-portrait="true"] .vl-r19-slide a { height: 380px; aspect-ratio: auto; }
 .vl-r19 .vl-r19-summary { margin-top: 1.25rem; font-size: .96rem; }
 .vl-r19 .vl-r19-project--provisional h3 { font-size: 1.8rem; }
 .vl-r19 .vl-r19-project--provisional .vl-r19-slide a { aspect-ratio: auto; }
 .vl-r19 .vl-r19-review blockquote { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .vl-r19 .vl-r19-track { scroll-behavior: auto; } }
