.home-page {
  color-scheme: light;
  --ink-on-page: #15344f;
  --muted-on-page: #435d73;
  --accent: #19607f;
  --panel: rgba(251, 254, 255, 0.87);
  --edge: #b4c9dc;
  --wash: rgba(72, 121, 152, 0.08);
  --hover: rgba(72, 121, 152, 0.14);
  --selected: #cbdfee;
}
.home-page body {
  color: var(--ink-on-page);
  background:
    linear-gradient(#5382a116 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, #5382a116 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(140deg, #f8fcff, #dfebf5 60%, #edf6fb);
}
.home-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-page .site-header { border: 0; background: var(--panel); }
.brand-mark { background: #a7464c; box-shadow: none; }
.site-nav, .button { font-weight: 600; }
.nav-link::after { height: 2px; bottom: 16px; background: var(--accent); }
.button { border: 0; border-radius: 12px; }
.button-primary, .header-cta { color: #fff; background: #163c65; box-shadow: none; }
.button-primary:hover, .header-cta:hover { background: #102f51; box-shadow: none; }
.home-page .hero-actions .button-ghost { color: #101010; background: #fff; box-shadow: 0 1px 5px rgba(24, 58, 84, 0.12); }
.home-page .hero-actions .button-ghost:hover { box-shadow: 0 2px 8px rgba(24, 58, 84, 0.18); }
.nav-toggle { background: var(--wash); border: 0; }
.nav-toggle:hover { background: var(--hover); }
.nav-toggle span { background: var(--ink-on-page); }

.hero, .hero-inner { min-height: auto; }
.hero-inner { padding-block: clamp(72px, 10vw, 150px); }
.hero-copy h1 { font-weight: 650; line-height: 1.22; }
.platform-capabilities { display: grid; gap: 6px; margin-top: 24px; }
.hero-actions { margin-top: 30px; }
.home-page figure.hero-visual, .home-page address.contact-card { border: 0; background: transparent; padding: 0; }
.gui-heading { gap: 9px; color: var(--muted-on-page); font-size: 14px; font-weight: 600; }
.gui-heading .brand-mark { width: 29px; height: 29px; border-radius: 8px; color: var(--accent); background: var(--wash); font-size: 11px; }
.hero-slides { border-radius: 12px; box-shadow: 0 6px 24px rgba(3, 17, 22, 0.09); }
.hero-controls:not([hidden]) { color: var(--muted-on-page); }
.hero-controls button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--wash); color: var(--ink-on-page); font-size: 20px; line-height: 1; }
.hero-controls button:hover { background: var(--hover); }

main { --module-gap: clamp(24px, 3vw, 40px); display: grid; gap: var(--module-gap); }
main > section + section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(var(--module-gap) / -2);
  width: min(var(--shell), 90%);
  height: 1px;
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, #aac1d5 14%, #aac1d5 86%, transparent);
  pointer-events: none;
}
.section { padding-block: clamp(60px, 7vw, 96px); }
#cases { scroll-margin-top: 16px; }
.section-heading { margin-bottom: clamp(28px, 3vw, 44px); }
.section h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 650; }
.case-explorer { gap: clamp(16px, 2vw, 30px); }
.case-sidebar, .case-list, .case-viewer { padding: 0; border: 0; border-radius: 0; background: transparent; }
.case-sidebar-title, .case-list > p, .case-viewer .eyebrow {
  margin: 0 0 14px; color: var(--muted-on-page); font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
}
.workflow-steps { gap: 18px; }
.workflow-steps li:not(:last-child)::after { color: #607f95; line-height: 18px; }
.workflow-label, .workflow-steps .case-group-button, .case-list-button {
  min-height: 44px; padding: 8px 12px; align-content: center; border: 0; border-radius: 9px;
}
.workflow-label { background: transparent; color: var(--muted-on-page); }
.case-group-button, .case-list-button { color: var(--ink-on-page); background: var(--wash); }
.case-group-button:hover:not(:disabled), .case-list-button:hover { background: var(--hover); }
.case-group-button.is-active, .case-list-button.is-active { background: var(--selected); }
.case-group-button.is-active span, .case-list-button.is-active span { font-weight: 700; color: var(--accent); }
.case-viewer { gap: clamp(18px, 2.2vw, 32px); }
.case-viewer-copy h3 { font-size: clamp(22px, 2vw, 29px); font-weight: 650; line-height: 1.32; }
.case-viewer-copy > p:not(.eyebrow):not(.case-reference), .case-parameters { color: var(--muted-on-page); line-height: 1.8; }
.case-viewer-copy > p:not(.eyebrow):not(.case-reference) { margin-top: 14px; }
.case-parameters { gap: 7px; margin-top: 20px; }
.case-parameters li { padding-left: 14px; }
.case-parameters li::before { width: 4px; height: 4px; background: var(--accent); }
.case-reference, .case-caption { color: var(--muted-on-page); }
.case-thumbnails { gap: 9px; }
.case-thumbnail { width: 65px; height: 46px; border: 0; border-radius: 6px; opacity: 0.65; }
.case-thumbnail:hover, .case-thumbnail.is-active { opacity: 1; transform: none; }
.case-thumbnail.is-active { outline: 2px solid var(--accent); outline-offset: 2px; }
.case-thumbnail.is-active:focus-visible { outline-style: dashed; outline-offset: 4px; }
.case-main-image { min-height: 0; border: 0; border-radius: 12px; background: var(--wash); }
.case-main-image .technical-media { display: grid; place-items: center; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
.case-main-image .technical-media img { position: absolute; inset: 0; max-height: none; }
.case-main-image .technical-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.case-main-image:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.home-page .contact-section {
  color: var(--ink-on-page);
  background: #ffffff;
  box-shadow: 0 -10px 28px rgba(45, 91, 121, 0.045), 0 10px 28px rgba(45, 91, 121, 0.045);
}
.contact-section .section-shell { position: relative; }
.contact-details dt { margin-bottom: 10px; }
.contact-details dt { display: flex; align-items: center; gap: 9px; }
.contact-icon { display: inline-grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; color: #18a8b4; }
.contact-icon svg { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.contact-details dd { font-size: clamp(17px, 1.65vw, 21px); }
.contact-details a { text-decoration-color: #829fb5; }
.site-footer { align-items: end; padding-block: 32px; }
.lightbox { border: 0; color: var(--ink-on-page); background: #f3f8fc; box-shadow: 0 10px 32px rgba(24, 58, 84, 0.12); }
.lightbox::backdrop { background: rgba(21, 52, 79, 0.42); }
.lightbox figcaption { color: var(--muted-on-page); }
.lightbox video { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox-close {
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

/* Keep at least 860 layout pixels for the two-column desktop layout. */
@media (min-width: 1076px) {
  .home-page { zoom: 1.25; }
  .hero-copy { container-type: inline-size; }
  .hero-copy h1 { font-size: clamp(27px, 8.9cqw, 46px); }
  .section-shell, .hero-inner { width: min(92%, var(--shell)); }
  .site-header, .site-footer { padding-inline: max(4%, calc((100% - var(--shell)) / 2)); }
  .lightbox { max-width: 94%; }
  .lightbox :is(img, video) { max-height: 62.4vh; }
}
@media (max-width: 1000px) and (min-width: 861px), (min-width: 1076px) and (max-width: 1250px) {
  .case-explorer { grid-template-columns: 138px 110px minmax(0, 1fr); }
  .case-viewer { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
@media (max-width: 860px) {
  .home-page .site-nav { background: #f3f8fc; border: 0; box-shadow: 0 6px 18px rgba(24, 58, 84, 0.09); }
  .nav-link::after { display: none; }
  .hero-inner { padding-block: 56px; gap: 38px; }
  .case-explorer { row-gap: 34px; }
  .contact-layout { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .section { padding-block: 48px; }
  .contact-section { padding-block: 56px; }
  .case-viewer { gap: 22px; }
  .site-footer { gap: 14px; }
}
