/* Photos on the public pages: the home photo hero, "choose your path" cards and the banner under each data page's
   hero. Markup comes from marketing/site/photos.py; photos and credits are in public/img. Text over a photo is always
   white on a dark overlay, so it reads the same in every theme. */
.ph-pic, .ph-pic img { display: block; width: 100%; height: 100%; }
.ph-pic img { object-fit: cover; }

/* ---- home photo hero ---- */
.ph-hero { position: relative; z-index: 1; width: min(1360px, calc(100% - 32px)); margin: 16px auto 0; aspect-ratio: 16 / 7; min-height: 460px; max-height: 720px;
  border-radius: 28px; overflow: hidden; background: #111; color: #fff; isolation: isolate; }
.ph-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.ph-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.ph-slide.on { opacity: 1; }
.ph-slide .ph-pic img { transform: scale(1.04); transition: transform 7s ease-out; }
.ph-slide.on .ph-pic img { transform: scale(1); }
.ph-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.08) 100%), linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); }
.ph-copy { position: absolute; z-index: 2; left: clamp(20px, 5vw, 64px); right: clamp(20px, 5vw, 64px); bottom: clamp(24px, 6vw, 72px); max-width: 640px; }
.ph-copy h1 { margin: 0; font: 600 clamp(36px, 5.2vw, 72px)/1.04 var(--sans, Inter, sans-serif); letter-spacing: -.035em; color: #fff; }
.ph-copy h1 em { font-family: var(--serif, Georgia, serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: #22E58B; }
.ph-copy p { margin: 16px 0 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 46ch; }
.ph-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ph-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px var(--sans, Inter, sans-serif); text-decoration: none;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, border-color .2s; }
.ph-btn:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.6); }
.ph-btn.go { background: #ff2d55; border-color: #ff2d55; }
.ph-btn.go:hover { background: #ff5274; border-color: #ff5274; }
[data-theme="light"] .ph-btn.go { background: #fff; border-color: #fff; color: #0b0b0c; }
[data-theme="light"] .ph-btn.go:hover { background: #ececee; border-color: #ececee; }
.ph-tag { position: absolute; z-index: 2; top: 20px; left: clamp(20px, 5vw, 64px); display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); font: 500 13px var(--sans, Inter, sans-serif); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ph-tag i { width: 8px; height: 8px; border-radius: 50%; background: #22E58B; }
.ph-dots { position: absolute; z-index: 2; right: clamp(20px, 4vw, 48px); bottom: clamp(24px, 5vw, 56px); display: flex; gap: 8px; }
.ph-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; }
.ph-dots button[aria-current="true"] { background: #fff; }
.ph-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---- choose your path ---- */
.ph-paths { position: relative; z-index: 1; width: min(1360px, calc(100% - 32px)); margin: 20px auto 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-path { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: #111; isolation: isolate; }
.ph-path .ph-pic img { transition: transform .5s ease; }
.ph-path:hover .ph-pic img { transform: scale(1.04); }
.ph-path::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.05) 100%); }
.ph-path-tx { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 4px; }
.ph-path-tx b { font: 600 22px/1.15 var(--sans, Inter, sans-serif); letter-spacing: -.02em; }
.ph-path-tx span { font-size: 14px; color: rgba(255,255,255,.85); }
.ph-path-tx .ar { position: absolute; right: 0; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); font-size: 16px; transition: transform .2s; }
.ph-path:hover .ar { transform: translateX(3px); }
.ph-path:focus-visible { outline: 3px solid #22E58B; outline-offset: 3px; }

/* ---- banner under a data page's hero ---- */
.ph-band { position: relative; width: min(1280px, calc(100% - 32px)); margin: 8px auto 48px; aspect-ratio: 16 / 6; min-height: 220px; max-height: 480px; border-radius: 24px; overflow: hidden; background: #111; }
.ph-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 50%); pointer-events: none; }
.ph-band figcaption { position: absolute; z-index: 1; left: 20px; bottom: 16px; font: 500 14px var(--sans, Inter, sans-serif); color: #fff; }
main.cp .ph-band, main.sd .ph-band, main[data-sh] .ph-band { width: 100%; margin: 28px 0 40px; }

@media (max-width: 900px) {
  .ph-hero { aspect-ratio: auto; min-height: 560px; border-radius: 22px; }
  .ph-hero::after { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.2) 100%); }
  .ph-dots { top: 24px; bottom: auto; }
  .ph-paths { grid-template-columns: 1fr; }
  .ph-path { aspect-ratio: 16 / 9; }
  .ph-band { aspect-ratio: 16 / 9; min-height: 0; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-slide, .ph-slide .ph-pic img, .ph-path .ph-pic img { transition: none; transform: none; }
}
