/* Made with the kit (#made): a real film made with the make-a-video Skill from this guide.
   The film plays muted on a loop; the button turns the sound on. */

.md { position: relative; background: var(--dark); color: var(--on-dark); padding-block: clamp(72px, 8vw, 112px); }
.md-in { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; grid-template-areas: "head" "film"; }
.md-head { grid-area: head; max-width: 560px; min-width: 0; }
.md-film { grid-area: film; position: relative; margin: 0; width: 100%; max-width: 420px; }
@media (min-width: 900px) { .md-in { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); grid-template-areas: "film head"; } }

.md-film video { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; background: var(--dark-2); box-shadow: 0 30px 60px -30px oklch(0 0 0 / .9), 0 0 0 1px oklch(1 0 0 / .1); }
.md-sound { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 11px; border: 0; border-radius: var(--r-pill); background: oklch(0.165 0.008 70 / .78); color: var(--on-dark); font: 600 13px/1 var(--sans, inherit); cursor: pointer; backdrop-filter: blur(8px); transition-property: background-color, scale; transition-duration: .2s; }
.md-sound:hover { background: oklch(0.165 0.008 70 / .92); }
.md-sound:active { scale: .96; }
.md-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.md-sound svg path:first-child { fill: currentColor; stroke: none; }
.md-sound .md-on { display: none; }
.md-sound[aria-pressed="true"] .md-on { display: inline; }
.md-sound[aria-pressed="true"] .md-off { display: none; }

.md-head h2 { margin: 12px 0 18px; font-family: var(--display); font-size: var(--t-h2); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; color: var(--on-dark); }
.md-head h2 span { display: block; }
.md-head h2 span + span { color: var(--signal); }
.md-head > p { margin: 0 0 12px; font-size: var(--t-body); line-height: 1.55; color: var(--on-dark-2); text-wrap: pretty; }
.md-head .md-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 22px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); }
