/* Website-native illustrations and product preview compositions. */
.algorithm-continuity {
  grid-template-columns: .78fr 1.22fr;
  gap: 32px;
  align-items: center;
  margin-top: 34px;
  padding-top: 30px;
}
.temporal-copy h3 { max-width: 400px; }
.temporal-copy > p { margin: 14px 0 18px; font-size: 13px; color: var(--muted); line-height: 1.85; max-width: 390px; }
.temporal-copy .algorithm-continuity-flow { font-size: 11px; gap: 10px; }
.temporal-visual { min-width: 0; margin: 0; }
.temporal-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.temporal-scene { overflow: hidden; border-radius: 6px; background: var(--ink); }
.temporal-scene > span { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; gap: 6px; font-size: 11px; color: #E2E7E8; }
.temporal-scene b { font: 10px var(--font-mono); color: #B2C0C5; }
.temporal-scene img { display: block; width: 100%; height: 139px; object-fit: cover; }
.temporal-result { background: #263A42; }
.temporal-result > span { color: var(--accent-light); }
.temporal-visual > figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 15px; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.temporal-visual > figcaption > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.temporal-visual i { display: inline-block; width: 7px; height: 7px; background: #B55344; border-radius: 50%; }

.product-card { min-width: 0; padding: 26px; }
.product-preview { margin: 23px 0 0; min-width: 0; }
.product-preview > a { position: relative; display: block; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #EDF0ED; }
.product-preview img { display: block; width: 100%; aspect-ratio: 8 / 5; height: auto; object-fit: cover; transition: transform .35s ease; }
.product-preview > a:hover img { transform: scale(1.025); }
.product-card-dark .product-preview > a { border-color: #46606A; }
.product-preview > figcaption { display: block; margin-top: 9px; font-size: 10px; color: var(--muted); }
.product-card-dark .product-preview > figcaption { color: #BAC6CA; }
.product-preview-expand { position: absolute; inset: auto 8px 8px auto; padding: 5px 8px; font-size: 10px; line-height: 1.3; color: #EEF2F3; background: rgba(20,35,46,.88); border-radius: 3px; }
.product-card h3 { margin-top: 24px; min-height: 63px; }
.product-card-education { position: relative; isolation: isolate; overflow: hidden; }
.product-card-education::before { content: ""; position: absolute; inset: auto -70px -25px auto; z-index: -1; width: 360px; height: 245px; background: linear-gradient(to bottom, rgba(244,241,234,.42), rgba(244,241,234,.22)), url('assets/visuals/education-campus.svg') center / cover; opacity: .13; pointer-events: none; }

.industry-card { min-width: 0; padding: 22px 22px 24px; min-height: 405px; }
.industry-scene { position: relative; margin: -22px -22px 20px; overflow: hidden; background: #0C171F; }
.industry-scene img { display: block; width: 100%; aspect-ratio: 8 / 5; height: auto; object-fit: cover; transition: transform .45s ease; }
.industry-scene::after { content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 42%; background: linear-gradient(to top, rgba(8,16,22,.78), rgba(8,16,22,0)); pointer-events: none; }
.industry-card:hover .industry-scene img { transform: scale(1.035); }
.industry-scene-tag { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; background: rgba(8,16,22,.58); backdrop-filter: blur(4px); font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; color: rgba(255,255,255,.82); }
.industry-scene figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 15px 11px; border-top: 0; color: rgba(255,255,255,.88); font-size: 11px; background: transparent; }
.industry-card h3 { margin-top: 14px; }
.industry-card p { margin-bottom: 22px; }
.industry-visual-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; }

.visual-preview-dialog { width: min(1200px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 14px; border: 1px solid #C8D0CB; border-radius: 10px; background: #F4F1EA; color: var(--ink); overflow: auto; }
.visual-preview-dialog::backdrop { background: rgba(10,24,32,.76); }
.visual-preview-dialog figure { margin: 0; }
.visual-preview-dialog img { display: block; width: 100%; height: auto; border-radius: 4px; }
.visual-preview-dialog figcaption { padding: 11px 3px 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.visual-preview-close { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 0 10px auto; padding: 5px 11px; border: 1px solid var(--line); background: transparent; border-radius: 4px; color: var(--ink); font-size: 12px; }
.visual-preview-close span { font-size: 22px; line-height: 1; }
body.visual-preview-open { overflow: hidden; }

@media (max-width: 1100px) {
  .algorithm-continuity { grid-template-columns: 1fr; gap: 22px; }
  .temporal-copy > p { max-width: 620px; }
  .temporal-copy h3 { max-width: none; }
  .product-preview img { max-height: 290px; }
  .product-card:last-child .product-preview { max-width: 550px; }
}
@media (max-width: 900px) {
  .product-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; align-items: start; }
  .product-top { grid-column: 1 / -1; }
  .product-preview { grid-column: 2; grid-row: 2 / 7; align-self: center; }
  .product-card h3, .product-card > p, .product-card .product-list, .product-card .tags, .product-card > .text-link { grid-column: 1; }
  .product-card .tags { margin-top: 0; }
  .product-card h3 { min-height: 0; }
  .industry-card { min-height: 0; }
}
@media (max-width: 640px) {
  .products .section-head h2 { font-size: clamp(28px, 8.7vw, 36px); }
  .algorithm-continuity { gap: 20px; }
  .temporal-scenes { grid-template-columns: 1fr; gap: 8px; }
  .temporal-scene { display: grid; grid-template-columns: 80px 1fr; }
  .temporal-scene > span { flex-direction: column; align-items: start; justify-content: center; padding: 12px 10px; }
  .temporal-scene img { height: 104px; }
  .product-card { display: flex; padding: 23px; }
  .product-preview { width: 100%; margin-top: 20px; }
  .product-preview img { max-height: none; }
  .product-card h3 { margin-top: 22px; }
  .industry-card { padding: 22px; }
  .industry-scene { margin-bottom: 20px; }
  .industry-scene img { aspect-ratio: 2 / 1; }
  .visual-preview-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 9px; }
  .visual-preview-dialog figcaption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-preview img, .industry-scene img { transition: none; }
}
