/* Additional layouts apply only to CSTv2's service, project and reference pages. */
.subpage .page-main { padding-bottom: 100px; }
.subpage .page-hero { position: relative; padding: 100px 0 72px; border-bottom: 1px solid #1c3049; background: radial-gradient(ellipse at 92% 0, #123c7750, transparent 54%), #040b16; }
.subpage .page-hero h1 { max-width: 1090px; margin: 0; color: #f0f6ff; font-size: clamp(43px, 5.9vw, 78px); font-weight: 350; letter-spacing: -.052em; line-height: 1.07; overflow-wrap: anywhere; }
.subpage .page-hero .eyebrow { margin-bottom: 27px; color: #71d5ff; }
.subpage .page-lead { max-width: 720px; margin: 29px 0 0; color: #9fb3ce; font-size: 17px; line-height: 1.85; }
.subpage .page-section { padding-top: 72px; }
.subpage .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; margin-bottom: 32px; }
.subpage .section-heading h2 { margin: 0; max-width: 650px; color: #edf6ff; font-size: clamp(29px, 3vw, 41px); line-height: 1.16; font-weight: 400; letter-spacing: -.04em; }
.subpage .section-heading > p { max-width: 385px; margin: 0; color: #96abc5; font-size: 14px; line-height: 1.8; }
.subpage .services-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 42px; }
.subpage .services-feature-copy { min-width: 0; }
.subpage .services-feature h2 { margin: 0 0 22px; color: #eaf5ff; font-size: clamp(30px, 3.25vw, 45px); font-weight: 400; line-height: 1.16; letter-spacing: -.04em; }
.subpage .services-feature-copy > p:not(.eyebrow) { max-width: 460px; color: #9eb4ce; font-size: 15px; line-height: 1.8; margin: 0; }
.subpage .feature-list { list-style: none; padding: 0; margin: 26px 0; }
.subpage .feature-list li { position: relative; padding: 9px 0 9px 21px; color: #ccddf1; font-size: 14px; line-height: 1.6; }
.subpage .feature-list li::before { content: '+'; position: absolute; left: 0; color: #71d5ff; }
.subpage .inline-link { display: inline-flex; align-items: center; gap: 25px; color: #81d8ff; text-decoration: none; font-size: 13px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid #355a7a; }
.subpage .inline-link:hover { color: #e3f7ff; border-color: #71d5ff; }
.subpage .inline-link > span { font-size: 20px; }
.subpage .services-figure { margin: 0; min-width: 0; padding: 28px 20px 20px; background: radial-gradient(ellipse at 60% 20%, #17447966, transparent 70%), #081425; border: 1px solid #284968; }
.subpage .services-figure img { display: block; width: 100%; height: auto; }
.subpage .services-figure figcaption { margin-top: 18px; color: #7393b6; font: 10px/1.5 Consolas, monospace; }
.subpage .service-catalog { padding-top: 88px; }
.subpage .sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.subpage .service-tile { position: relative; min-width: 0; padding: 32px 28px; background: linear-gradient(135deg, #0b1a2d, #07111f); border: 1px solid #253b55; }
.subpage .tile-index { display: block; margin-bottom: 28px; color: #73bde9; font: 11px/1 Consolas, monospace; }
.subpage .service-tile h3 { max-width: 330px; margin: 0 0 15px; font-size: 25px; font-weight: 400; line-height: 1.2; letter-spacing: -.032em; color: #e8f2ff; overflow-wrap: anywhere; }
.subpage .service-tile > p { margin: 0; color: #96acc7; font-size: 13px; line-height: 1.75; }
.subpage .service-tile ul { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid #29435f; }
.subpage .service-tile li { position: relative; padding: 7px 0 7px 15px; font-size: 12px; line-height: 1.75; color: #b8cce3; }
.subpage .service-tile li::before { content: ''; position: absolute; top: 16px; left: 0; width: 3px; height: 3px; background: #71d5ff; }
.subpage .service-custom { display: flex; flex-direction: column; justify-content: center; background: radial-gradient(ellipse at 100% 0, #205ca067, transparent 70%), #0c2038; }
.subpage .custom-plus { color: #71d5ff; font-size: 42px; font-weight: 200; line-height: 1; margin-bottom: 30px; }
.subpage .service-custom .inline-link { margin-top: 24px; align-self: flex-start; }
.subpage .project-list { padding-top: 0; }
.subpage .project-row { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; padding: 76px 0; border-bottom: 1px solid #243b55; }
.subpage .project-row:nth-child(even) .project-copy { order: 2; }
.subpage .project-copy { min-width: 0; }
.subpage .project-copy h2 { font-size: clamp(28px, 3.05vw, 42px); color: #edf6ff; font-weight: 400; line-height: 1.17; letter-spacing: -.04em; margin: 0 0 23px; overflow-wrap: anywhere; }
.subpage .project-copy p:not(.eyebrow) { color: #a4b9d3; font-size: 14px; line-height: 1.9; margin: 0 0 16px; }
.subpage .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 25px 0 0; }
.subpage .tags li { border: 1px solid #315477; background: #0b2039; padding: 7px 10px; color: #9cceed; font-size: 10px; line-height: 1.45; }
.subpage .project-figure { min-width: 0; margin: 0; padding: 27px 20px 18px; background: radial-gradient(ellipse at 50% 30%, #123b6d70, transparent 70%), #071323; border: 1px solid #284764; }
.subpage .project-figure img { display: block; width: 100%; height: auto; }
.subpage .project-figure figcaption { display: flex; justify-content: space-between; gap: 15px; color: #7799ba; font: 9px/1.6 Consolas, monospace; padding: 18px 2px 0; }
.subpage .project-figure figcaption > span { color: #7db9df; flex-shrink: 0; }
.subpage .page-end-note { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-top: 70px; padding-top: 30px; }
.subpage .page-end-note h2 { margin: 0 0 13px; font-size: clamp(26px, 2.8vw, 36px); color: #e6f4ff; font-weight: 400; letter-spacing: -.035em; line-height: 1.25; }
.subpage .page-end-note p { max-width: 680px; margin: 0; color: #9bb1cd; font-size: 14px; line-height: 1.85; }
.subpage .page-end-note .button { flex-shrink: 0; }
.subpage .reference-catalog { padding-top: 48px; }
.subpage .archive-summary { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 0 0 35px; margin-bottom: 26px; border-bottom: 1px solid #2a405b; }
.subpage .archive-summary .eyebrow { margin: 0 0 13px; }
.subpage .archive-stat { display: flex; gap: 13px; align-items: baseline; color: #b8cce4; font-size: 13px; margin: 0; }
.subpage .archive-stat strong { font-size: 45px; line-height: 1; letter-spacing: -.045em; font-weight: 350; color: #87d8ff; }
.subpage .archive-period { margin-left: 15px; color: #6c8dad; font: 11px/1.5 Consolas, monospace; }
.subpage .archive-summary > p { max-width: 395px; margin: 0; font-size: 12px; line-height: 1.85; color: #91a8c4; }
.subpage .ref-filters { display: flex; align-items: flex-end; gap: 18px; padding: 24px; margin-bottom: 23px; border: 1px solid #293e58; background: #091626; }
.subpage .ref-filters label { display: flex; flex-direction: column; gap: 8px; color: #afc5e0; font-size: 11px; line-height: 1.6; }
.subpage .ref-filters label:first-child { flex: 1; min-width: 0; }
.subpage .ref-filters input, .subpage .ref-filters select { width: 100%; border: 1px solid #35506e; border-radius: 0; min-height: 49px; padding: 12px 14px; color: #e4f3ff; background: #040e1d; font: 14px/1.6 "Segoe UI", Arial, sans-serif; color-scheme: dark; }
.subpage .ref-filters input::placeholder { color: #7d97b7; opacity: 1; }
.subpage .ref-filters select { min-width: 150px; }
.subpage .ref-filters option { background: #071729; color: #e4f3ff; }
.subpage .ref-filters button { padding: 12px 20px; min-height: 49px; border: 1px solid #3b6288; background: #102a46; color: #c3e8ff; font: 12px/1.6 "Segoe UI", Arial, sans-serif; cursor: pointer; }
.subpage .ref-filters button:hover { background: #16416b; border-color: #75cfff; color: #fff; }
.subpage .reference-count { color: #83a1c3; font: 11px/1.5 Consolas, monospace; margin: 0 0 26px; }
.subpage .reference-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.subpage .reference-card { min-width: 0; border: 1px solid #2b405b; background: #0b192b; scroll-margin-top: 110px; }
.subpage .reference-card:target { outline: 2px solid #71d5ff; outline-offset: 4px; }
.subpage .reference-card > a { display: flex; flex-direction: column; padding: 15px; color: inherit; text-decoration: none; min-height: 100%; transition: background .2s; }
.subpage .reference-card > a:hover { background: #102945; }
.subpage .reference-preview { display: flex; justify-content: center; align-items: center; height: 235px; background: #071321; padding: 10px; border-bottom: 1px solid #2b4664; }
.subpage .reference-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.subpage .reference-info { padding: 17px 2px 4px; display: flex; flex-direction: column; flex: 1; }
.subpage .reference-year { display: flex; align-items: center; justify-content: space-between; color: #89afd5; font: 10px/1.5 Consolas, monospace; margin-bottom: 10px; }
.subpage .reference-year > span { color: #76cfff; font-size: 17px; }
.subpage .reference-card h2 { color: #e2efff; font-size: 16px; font-weight: 500; line-height: 1.45; letter-spacing: -.015em; margin: 0 0 17px; overflow-wrap: anywhere; }
.subpage .reference-open { font-size: 10px; line-height: 1.6; color: #7acfff; margin-top: auto; }
.subpage .no-results { color: #aac8e9; border: 1px solid #2a4666; padding: 60px 25px; text-align: center; background: #08192b; font-size: 14px; line-height: 1.8; }
.subpage [hidden] { display: none !important; }
.subpage .page-main a:focus-visible, .subpage .page-main button:focus-visible, .subpage .page-main input:focus-visible, .subpage .page-main select:focus-visible { outline: 2px solid #8ce5ff; outline-offset: 5px; }
@media (max-width: 1100px) {
  .subpage .page-hero { padding-top: 80px; }
  .subpage .services-feature { gap: 30px; }
  .subpage .service-tile { padding: 27px 23px; }
  .subpage .service-tile h3 { font-size: 22px; }
  .subpage .project-row { gap: 35px; padding: 62px 0; }
  .subpage .reference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 820px) {
  .subpage .page-main { padding-bottom: 75px; }
  .subpage .page-hero { padding: 66px 0 55px; }
  .subpage .page-lead { font-size: 15px; }
  .subpage .page-section { padding-top: 55px; }
  .subpage .section-heading { display: block; }
  .subpage .section-heading > p { max-width: 650px; margin-top: 18px; }
  .subpage .services-feature { grid-template-columns: 1fr; gap: 35px; }
  .subpage .services-feature-copy > p:not(.eyebrow) { max-width: 650px; }
  .subpage .services-figure { max-width: 620px; width: 100%; justify-self: center; }
  .subpage .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subpage .project-list { padding-top: 0; }
  .subpage .project-row { grid-template-columns: 1fr; gap: 28px; }
  .subpage .project-row:nth-child(even) .project-copy { order: initial; }
  .subpage .project-figure { max-width: 650px; width: 100%; justify-self: center; }
  .subpage .project-copy p:not(.eyebrow) { max-width: 690px; }
  .subpage .page-end-note { align-items: flex-start; flex-direction: column; gap: 23px; margin-top: 45px; }
  .subpage .archive-summary { align-items: flex-start; gap: 30px; }
  .subpage .archive-summary > p { max-width: 300px; }
  .subpage .archive-period { display: none; }
  .subpage .ref-filters { gap: 14px; padding: 20px; flex-wrap: wrap; }
  .subpage .ref-filters label:first-child { flex-basis: 100%; }
  .subpage .ref-filters label:nth-child(2) { flex: 1; }
  .subpage .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .subpage .page-hero { padding: 46px 0 42px; }
  .subpage .page-hero h1 { font-size: clamp(35px, 8.9vw, 47px); letter-spacing: -.045em; }
  .subpage .page-hero .eyebrow { font-size: 9px; margin-bottom: 22px; }
  .subpage .page-lead { font-size: 14px; margin-top: 23px; line-height: 1.8; }
  .subpage .page-section { padding-top: 42px; }
  .subpage .services-feature h2 { font-size: 30px; }
  .subpage .services-feature-copy > p:not(.eyebrow), .subpage .feature-list li { font-size: 13px; }
  .subpage .services-figure { padding: 18px 10px 13px; }
  .subpage .services-figure figcaption { margin: 13px 6px 0; font-size: 9px; }
  .subpage .sub-grid { grid-template-columns: 1fr; gap: 14px; }
  .subpage .service-tile { padding: 27px 25px; }
  .subpage .service-tile h3 { max-width: none; font-size: 25px; }
  .subpage .tile-index { margin-bottom: 22px; }
  .subpage .service-tile ul { margin-top: 18px; padding-top: 13px; }
  .subpage .service-custom { min-height: 300px; }
  .subpage .project-list { padding-top: 0; }
  .subpage .project-row { padding: 43px 0; }
  .subpage .project-copy h2 { font-size: 30px; }
  .subpage .project-copy p:not(.eyebrow) { font-size: 13px; }
  .subpage .project-figure { padding: 17px 8px 14px; }
  .subpage .project-figure figcaption { padding-inline: 6px; font-size: 8px; }
  .subpage .tags { gap: 6px; }
  .subpage .tags li { font-size: 9px; padding: 6px 9px; }
  .subpage .archive-summary { flex-direction: column; gap: 22px; padding-bottom: 27px; }
  .subpage .archive-summary > p { max-width: none; font-size: 11px; }
  .subpage .archive-period { display: inline; margin-left: 10px; font-size: 10px; }
  .subpage .archive-stat { gap: 10px; font-size: 12px; }
  .subpage .archive-stat strong { font-size: 40px; }
  .subpage .ref-filters { padding: 17px; gap: 16px 12px; }
  .subpage .ref-filters input, .subpage .ref-filters select { padding: 10px; font-size: 13px; min-height: 46px; }
  .subpage .ref-filters select { min-width: 0; }
  .subpage .ref-filters button { padding: 11px 12px; font-size: 11px; min-height: 46px; }
  .subpage .reference-grid { gap: 12px; }
  .subpage .reference-card > a { padding: 9px; }
  .subpage .reference-preview { padding: 5px; height: 180px; }
  .subpage .reference-info { padding-top: 12px; }
  .subpage .reference-card h2 { font-size: 13px; margin-bottom: 14px; }
  .subpage .reference-year, .subpage .reference-open { font-size: 9px; }
}
@media (max-width: 360px) {
  .subpage .reference-grid { gap: 10px; }
  .subpage .reference-preview { height: 150px; }
  .subpage .archive-period { margin-left: 4px; font-size: 9px; }
  .subpage .ref-filters { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .subpage .reference-card > a { transition: none; }
}
@media print {
  .subpage .page-hero { padding-top: 25px; }
  .subpage .page-hero h1 { font-size: 40px; }
  .subpage .page-main { padding-bottom: 0; }
  .subpage .ref-filters { display: none !important; }
  .subpage .service-tile, .subpage .project-row, .subpage .reference-card { break-inside: avoid; }
  .subpage .reference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subpage .project-row { padding-block: 30px; }
}
