/* Hallmark in-place refinement: preserve the existing photographic home and coral accent.
   Critique: controls stay legible on all three images; media layouts retain natural proportions. */
.home-hero .hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.home-hero .hero-slide { opacity: 0; z-index: auto; transition: opacity 650ms ease-in-out; }
.home-hero .hero-slide.is-active { opacity: 1; }
.hero-controls { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; padding: 2px 8px; border: 1px solid color-mix(in srgb,var(--color-on-image) 50%,transparent); border-radius: 32px; background: var(--color-surface); color: var(--color-ink); white-space: nowrap; }
.hero-controls[hidden], .hero-edge[hidden] { display: none; }
.hero-edge { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; transform: translateY(-50%); border: 1px solid color-mix(in srgb,var(--color-on-image) 22%,transparent); border-radius: 50%; background: var(--color-overlay); color: var(--color-on-image); cursor: pointer; transition: background var(--dur-short), transform var(--dur-micro), opacity var(--dur-short); }
@media (hover: hover) and (pointer: fine) {
  .hero-edge { opacity: 0; pointer-events: none; }
  .home-hero:hover .hero-edge, .home-hero:focus-within .hero-edge { opacity: 1; pointer-events: auto; }
}
.hero-edge-previous { left: 20px; }
.hero-edge-next { right: 20px; }
.hero-edge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-edge:hover { background: var(--color-image-overlay); }
.hero-edge:active { transform: translateY(-50%) scale(.92); }
.hero-edge:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.hero-dot { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: transform var(--dur-micro); }
.hero-dot:active { transform: scale(.9); }
.hero-controls button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.hero-dots { display: flex; align-items: center; gap: 0; }
.hero-dot { min-width: 26px; border-radius: 6px; }
.hero-dot::before { content: ''; width: 6px; height: 6px; border-radius: 8px; background: var(--color-muted); opacity: .45; }
.hero-dot.is-active::before { width: 20px; opacity: 1; background: var(--color-accent); }
body[data-view="videos"] main { max-width: none; padding: 0; }
body[data-view="videos"] .library-content { padding-top: 32px; }
body[data-view="videos"] .library-heading p { display: block; font-size: 13px; line-height: 1.7; margin-top: 8px; color: var(--color-muted); }
.case-grid.video-gallery { grid-template-columns: minmax(0,1fr); }
.case-grid .video-card > .cover-link,
.case-grid .video-card > .official-preview { aspect-ratio: 16 / 9; align-self: start; }
.case-grid .video-card > .official-preview > .cover-link { width: 100%; height: 100%; aspect-ratio: auto; }
.video-card .video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 1px solid color-mix(in srgb,var(--color-on-image) 60%,transparent); border-radius: 50%; background: var(--color-overlay); color: var(--color-on-image); backdrop-filter: blur(4px); }
.video-play svg { width: 19px; height: 19px; fill: currentColor; margin-left: 3px; }
.video-duration { position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; border-radius: 4px; background: var(--color-image-overlay); color: var(--color-on-image); font: 11px var(--font-mono); }
.case-grid .video-card .cover-type { display: inline-flex; }
.video-card .card-title { font-size: 14px; line-height: 1.65; min-height: 3.3em; }
.video-card .card-meta, .video-card .card-source { display: none; }
.video-card .card-bottom .tags { display: flex; }
.video-card .card-text { padding-top: 12px; }
@media (max-width: 39.99rem) {
  .top-navigation { width: 100%; gap: 0; justify-content: space-between; }
  .top-nav-item { white-space: nowrap; }
  .home-hero .hero-art { object-position: 34% center; }
  .home-hero .hero-content { padding-top: 166px; }
  .home-hero .hero-description { font-size: 12px; }
  .hero-edge { top: auto; bottom: 22px; width: 44px; height: 44px; transform: none; }
  .hero-edge:active { transform: scale(.92); }
  .hero-edge-previous { left: 12px; }
  .hero-edge-next { right: 12px; }
  .hero-controls { bottom: 24px; }
}
@media (min-width: 40rem) {
  .case-grid.video-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 60rem) {
  .hero-controls { bottom: 28px; }
  .case-grid.video-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body[data-view="videos"] .library-content { padding-top: 40px; }
}
@media (min-width: 85rem) {
  .case-grid.video-gallery { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-slide, .hero-edge, .hero-dot, .hero-dot::before { transition: none; }
  .hero-dot:active { transform: none; }
  .hero-edge:active { transform: translateY(-50%); }
}
@media (max-width: 39.99rem) and (prefers-reduced-motion: reduce) {
  .hero-edge:active { transform: none; }
}
