/* Gallery and walkthrough share the existing follo palette and typography. */
.homepage-media-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.media-option { display: flex; align-items: center; gap: 18px; text-decoration: none; padding: 23px; border: 1px solid #b28cdb40; border-radius: 20px; background: radial-gradient(ellipse at 0 0,#9256d422,transparent 75%),#ffffff04; transition: border-color .2s,background .2s; }
.media-option:hover { border-color: #bd8cf18c; background-color: #a86ae50c; }
.media-option-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #b388e04a; border-radius: 14px; background: #ad6bfc13; color: #d6b5fb; }
.media-option-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.media-option--video .media-option-icon svg { fill: currentColor; stroke: none; }
.media-option-copy { display: grid; gap: 6px; min-width: 0; }
.media-option-copy small { color: #b6a5c7; font-size: .73rem; }
.media-option-copy strong { color: var(--text); font-size: 1rem; font-weight: 550; letter-spacing: -.02em; }
.media-option-copy > span { color: var(--muted); font-size: .79rem; line-height: 1.6; }
.media-option-arrow { margin-left: auto; color: var(--purple-light); font-size: 1.25rem; }
.media-option:focus-visible, .video-dialog button:focus-visible, .media-page a:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 5px; }
body.video-dialog-open { overflow: hidden; }
.video-dialog { width: min(1120px,calc(100vw - 36px)); max-width: calc(100vw - 36px); max-height: calc(100dvh - 36px); margin: auto; padding: 22px; color: var(--text); background: radial-gradient(ellipse at 0 0,#55337450,transparent 70%),#111020; border: 1px solid #ab80d270; border-radius: 25px; box-shadow: 0 35px 120px #000a; overflow-y: auto; }
.video-dialog:not([open]) { display: none; }
.video-dialog::backdrop { background: #050411d9; backdrop-filter: blur(8px); }
.video-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.video-dialog-header h2 { margin: 0; font-size: clamp(1.3rem,2.4vw,1.8rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 550; }
.video-dialog-header button { flex: none; padding: 9px 13px; min-height: 44px; border: 1px solid #a17bc550; border-radius: 11px; background: #ffffff07; color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.video-dialog-header button span { margin-left: 10px; font-size: 1.1rem; }
.video-dialog-player { aspect-ratio: 16/9; background: #080712; border-radius: 15px; overflow: hidden; }
.video-dialog-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.media-caption { color: #b2a2c5; font-size: .8rem; line-height: 1.7; text-align: center; margin: 20px auto 0; }
.media-caption a, .video-direct-link { color: var(--purple-light); text-underline-offset: 3px; }
.video-direct-link { display: block; margin-top: 13px; text-align: center; font-size: .8rem; }
.media-page .media-hero { padding: 75px 0 60px; max-width: 880px; margin: auto; text-align: center; }
.media-hero h1 { max-width: none; margin: 25px 0 23px; font-size: clamp(2.7rem,4.6vw,4.7rem); font-weight: 550; letter-spacing: -.05em; line-height: 1.04; }
.media-hero p { max-width: 55ch; margin: 0 auto; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.media-hero .hero-actions { justify-content: center; margin-top: 30px; }
.gallery-walkthrough { margin: 22px 0 90px; scroll-margin-top: 125px; }
.gallery-walkthrough .section-heading { max-width: 780px; }
.gallery-walkthrough .section-heading h2 { font-weight: 550; font-size: clamp(2.2rem,3.4vw,3.4rem); }
.gallery-walkthrough .demo-video-shell { width: min(1120px,100%); }
.media-page #screenshots { width: min(1120px,100%); margin: 0 auto 60px; scroll-margin-top: 120px; }
.media-page #screenshots .section-heading { max-width: 800px; }
.media-page #screenshots .section-heading h2 { font-size: clamp(2.2rem,3.5vw,3.5rem); font-weight: 550; }
.page-gallery .screenshot-gallery .gallery-stage .gallery-main { display: flex; align-items: center; justify-content: center; }
.page-gallery .screenshot-gallery .gallery-stage .gallery-main img { position: static; width: auto; max-width: calc(100% - 32px); max-height: calc(100% - 32px); height: auto; object-fit: contain; transform: none; margin: auto; }
.gallery-next { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; width: min(1120px,100%); margin: 0 auto 80px; padding: 40px; border: 1px solid var(--line); border-radius: 26px; background: #ffffff08; }
.gallery-next h2 { font-size: clamp(2rem,3vw,2.7rem); font-weight: 550; letter-spacing: -.04em; margin: 0 0 16px; }
.gallery-next p { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 46ch; margin: 0; }
.gallery-next .story-kicker { font-weight: 550; font-size: .7rem; }
.gallery-next .hero-actions { margin: 0; }
@media (min-width:761px) and (max-width:1180px) {
  .page-home-update .site-nav { gap: 12px; font-size: .86rem; }
  .page-gallery .site-nav { gap: 15px; font-size: .9rem; }
}
@media (max-width:760px) {
  .homepage-media-options { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .media-option { padding: 20px; gap: 14px; }
  .media-option-copy strong { font-size: .95rem; }
  .media-option-copy > span { font-size: .76rem; }
  .video-dialog { padding: 16px; border-radius: 20px; width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .video-dialog-header { gap: 12px; margin-bottom: 16px; }
  .video-dialog-header h2 { font-size: 1.25rem; }
  .video-dialog-header button { font-size: .76rem; padding: 8px 10px; }
  .video-dialog-header button span { margin-left: 5px; }
  .media-caption { font-size: .74rem; }
  .media-page .media-hero { padding: 48px 2px 42px; }
  .media-hero h1 { font-size: clamp(2.5rem,9vw,3.5rem); }
  .media-hero p { font-size: 1rem; }
  .media-hero .hero-actions { gap: 12px; }
  .media-hero .button { padding: 13px 16px; font-size: .88rem; }
  .gallery-walkthrough { margin-bottom: 65px; scroll-margin-top: 90px; }
  .gallery-walkthrough .demo-video-shell { padding: 8px; border-radius: 20px; }
  .gallery-walkthrough .demo-video { border-radius: 13px; }
  .gallery-next { padding: 28px 23px; margin-bottom: 60px; }
  .gallery-next .hero-actions { flex-wrap: wrap; }
  .gallery-next .button { font-size: .86rem; padding: 14px; }
}
@media (prefers-reduced-motion:reduce) { .media-option { transition: none; } }
