/* Base page: reserve space for hover motion instead of letting adjacent cards touch. */
body #main-content .tpc-module .tpc-media.v5-media-box { padding-top:32px; margin-bottom:32px; }
body #main-content .tpc-module .tpc-cards { gap:24px; margin-top:0; grid-template-columns:repeat(3,minmax(0,1fr)); }
body #main-content .tpc-module .tpc-cards[data-count="1"] { grid-template-columns:minmax(0,1fr); }
body #main-content .tpc-module .tpc-cards[data-count="2"],
body #main-content .tpc-module .tpc-cards[data-count="4"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
body #main-content .tpc-module .tpc-subcard { display:flex; flex-direction:column; min-width:0; min-height:224px; padding:28px; border-radius:14px; transition:transform 200ms ease,box-shadow 200ms ease,border-color 200ms ease; }
body #main-content .tpc-module .tpc-subcard h3 { font-size:24px; line-height:1.45; margin-bottom:14px; text-wrap:balance; }
body #main-content .tpc-module .tpc-subcard p { margin-bottom:24px; font-size:15px; line-height:1.85; }
body #main-content .tpc-module .tpc-tags { margin-top:auto; gap:8px; padding-top:4px; }
body #main-content .tpc-module .tpc-subcard:hover { transform:none; box-shadow:0 4px 16px #0f1a300d; }
body #main-content .tpc-module .tpc-subcard::after { inset-inline:20px; width:auto; border-radius:3px; }
body #main-content .tpc-module + .tpc-module { margin-top:96px; }
@media (hover:hover) and (pointer:fine) {
  body #main-content .tpc-module .tpc-subcard:hover,
  body #main-content .tpc-module .tpc-subcard:focus-within { transform:translateY(-3px); box-shadow:0 10px 24px #0f1a3012; border-color:#9bb3f2; }
}
@media (max-width:1199px) {
  body #main-content .tpc-module .tpc-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  body #main-content .tpc-module .tpc-media.v5-media-box { padding-top:24px; margin-bottom:24px; }
  body #main-content .tpc-module .tpc-cards { grid-template-columns:minmax(0,1fr); gap:20px; }
  body #main-content .tpc-module .tpc-cards[data-count] { grid-template-columns:minmax(0,1fr); }
  body #main-content .tpc-module .tpc-subcard { min-height:0; padding:24px; }
  body #main-content .tpc-module .tpc-subcard h3 { font-size:22px; }
  body #main-content .tpc-module + .tpc-module { margin-top:64px; }
}
:root { --card-gap:24px; --card-padding:28px; --card-radius:14px; --card-motion:200ms; }
/* Image cards retain their media layout; content cards share padding and typography. */
body #main-content :is(.v5-scene-grid,.pc-grid,.pc-vgrid,.pc-scene-grid,.cap-grid,.cd-mods,.cd-rel-grid,.cslist-in,.cdrel-grid,.rel-grid,.svc-cards,.news-grid) { gap:var(--card-gap); }
body #main-content :is(.v5-scene-item,.pc-card,.pc-vcard,.pc-scene-card,.cap-card,.cd-mod,.cd-rel,.vc-card) { min-width:0; padding:var(--card-padding); border-radius:var(--card-radius); }
body #main-content :is(.cscard,.rel-card,.hv7-biz-card,.hv7-case,.svc-card) { min-width:0; border-radius:var(--card-radius); }
body #main-content :is(.tpc-subcard,.v5-scene-item,.pc-card,.pc-vcard,.pc-scene-card,.cap-card,.cd-mod,.cd-rel,.cscard,.rel-card,.hv7-biz-card,.hv7-case,.svc-card,.nitem) { transition:transform var(--card-motion) ease,box-shadow var(--card-motion) ease,border-color var(--card-motion) ease; }
body #main-content :is(.v5-scene-item,.pc-card,.pc-vcard,.pc-scene-card,.cap-card,.cd-mod,.cd-rel,.cscard,.rel-card,.hv7-biz-card,.hv7-case,.svc-card,.nitem):hover { transform:none; }
body #main-content :is(.v5-scene-item,.pc-card,.pc-vcard,.pc-scene-card,.cap-card,.cd-mod) h3 { font-size:24px; line-height:1.45; text-wrap:balance; }
body #main-content .pc-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
body #main-content .pc-grid[data-count="1"] { grid-template-columns:minmax(0,600px); justify-content:center; }
body #main-content .pc-card { width:auto; max-width:none; flex-basis:auto; }
body #main-content .cscard-body { padding:24px 28px 28px; }
@media(hover:hover) and (pointer:fine) {
  body #main-content :is(.v5-scene-item,.pc-card,.pc-vcard,.pc-scene-card,.cap-card,.cd-mod,.cd-rel,.cscard,.rel-card,.hv7-biz-card,.hv7-case,.svc-card,.nitem):hover,
  body #main-content :is(.v5-scene-item,.pc-card,.pc-vcard,.pc-scene-card,.cap-card,.cd-mod,.cd-rel,.cscard,.rel-card,.hv7-biz-card,.hv7-case,.svc-card,.nitem):focus-within { transform:translateY(-3px); box-shadow:0 10px 24px #0f1a3012; }
}
@media(max-width:1199px) {
  body #main-content :is(.pc-grid,.cap-grid,.svc-cards) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
  :root { --card-gap:20px; --card-padding:24px; }
  body #main-content :is(.pc-grid,.pc-grid[data-count],.pc-vgrid,.pc-scene-grid,.cap-grid,.cd-mods,.cd-rel-grid,.cslist-in,.cdrel-grid,.rel-grid,.svc-cards) { grid-template-columns:minmax(0,1fr); }
  body #main-content :is(.v5-scene-item,.pc-card,.pc-vcard,.pc-scene-card,.cap-card,.cd-mod) h3 { font-size:22px; }
  body #main-content .cscard-body { padding:20px 24px 24px; }
  body #main-content .capability-visual-copy li { max-width:100%; overflow-wrap:anywhere; }
}
@media(prefers-reduced-motion:reduce) {
  body #main-content :is(.tpc-subcard,.v5-scene-item,.pc-card,.pc-vcard,.pc-scene-card,.cap-card,.cd-mod,.cd-rel,.cscard,.rel-card,.hv7-biz-card,.hv7-case,.svc-card,.nitem) { transition:none; }
  body #main-content :is(.tpc-subcard,.v5-scene-item,.pc-card,.pc-vcard,.pc-scene-card,.cap-card,.cd-mod,.cd-rel,.cscard,.rel-card,.hv7-biz-card,.hv7-case,.svc-card,.nitem):is(:hover,:focus-within) { transform:none; }
}

/* The contact page's fixed-width service introduction exceeded the desktop content width. */
body #main-content .svc-head { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1fr); gap:40px; }
body #main-content .svc-head .sec-head, body #main-content .svc-head .lead { width:auto; min-width:0; max-width:100%; margin:0; }
@media(max-width:992px) { body #main-content .svc-head { grid-template-columns:minmax(0,1fr); gap:24px; } }
