/* Story page, frozen 17 Oct (#183). Scoped under .mt-story so links outrank the Elementor kit. */

.mt-story { margin-block: 0 !important; color: var(--wp--preset--color--teal); }
.mt-story :where(h1, h2, h3, p, figure, ul) { margin: 0; }
.site-main > .mt-follow { margin-block-start: 0 !important; }
.mt-story__in { max-width: 1240px; margin: 0 auto; padding-left: clamp(20px, 5vw, 56px); padding-right: clamp(20px, 5vw, 56px); box-sizing: border-box; }
.mt-story__narrow { max-width: 1040px; display: flex; flex-direction: column; }

.mt-story .mt-story__eyebrow,
.mt-story__eyebrows { font: 500 12px/1.4 var(--wp--preset--font-family--label); letter-spacing: 3px; text-transform: uppercase; color: var(--wp--preset--color--slate); }
.mt-story .mt-story__h2 { font: 400 clamp(28px, 3.2vw, 40px)/1.2 var(--wp--preset--font-family--display); color: var(--wp--preset--color--teal); text-wrap: balance; }
.mt-story .mt-story__muted { color: var(--wp--preset--color--slate); }

/* Editor-only dummy labels (never shown to visitors). Same look as on Home. */
.mt-story .mt-dummy { position: absolute; top: 10px; left: 10px; z-index: 3; font: 400 11px/1.3 var(--wp--preset--font-family--label); letter-spacing: 1.2px; text-transform: uppercase; color: #F7F4F0; background: rgba(4, 10, 12, .75); border: 1px dashed rgba(247, 244, 240, .6); padding: 6px 10px; pointer-events: none; }

/* ---------- 1. Teaser ---------- */
.mt-story__teaser-in { padding-top: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.mt-story__eyebrows { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--wp--preset--color--teal); }
.mt-story__eyebrow-r { color: var(--wp--preset--color--slate); }
.mt-story__frame { position: relative; width: 100%; aspect-ratio: 2.39 / 1; background: #081014; overflow: hidden; border-top: 10px solid #000; border-bottom: 10px solid #000; box-shadow: 0 30px 60px -36px rgba(0, 30, 38, .55); }
.mt-story__frame .mt-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-story__frame .mt-hero__shade { display: none; }
.mt-story__frame .mt-hero__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(60px, 6.5vw, 88px); height: clamp(60px, 6.5vw, 88px); border-radius: 50%; border: 1.5px solid rgba(247, 244, 240, .85); background: rgba(4, 10, 12, .45); color: #F7F4F0; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; z-index: 2; }
.mt-story__frame .mt-hero__play:hover { background: rgba(4, 10, 12, .65); }
.mt-story__frame .mt-hero__play:focus-visible { outline: 2px solid #F7F4F0; outline-offset: 3px; }
.mt-story__frame.is-playing .mt-hero__play,
.mt-story__frame.is-playing .mt-dummy { display: none; }
.mt-story__frame .mt-hero__teaser { z-index: 4; background: #000; }

/* ---------- 2. Title block ---------- */
.mt-story__head-in { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.mt-story__sheet { position: relative; }
.mt-story__sheet img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 30px 50px -34px rgba(0, 30, 38, .6); }
.mt-story__text { display: flex; flex-direction: column; gap: 16px; }
.mt-story .mt-story__title { font: 500 clamp(40px, 5.4vw, 68px)/1.05 var(--wp--preset--font-family--display); color: var(--wp--preset--color--teal); }
.mt-story .mt-story__format { font: 400 14px/1.5 var(--wp--preset--font-family--label); color: var(--wp--preset--color--body); }
.mt-story .mt-story__logline { margin-top: 6px; font: 400 clamp(20px, 2vw, 24px)/1.5 var(--wp--preset--font-family--body); color: var(--wp--preset--color--teal); max-width: 560px; }
.mt-story__credits { border-top: 1px solid var(--wp--preset--color--mist); padding-top: 14px; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; font: 400 13px/1.5 var(--wp--preset--font-family--label); color: var(--wp--preset--color--body); }
.mt-story .mt-story__button { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 26px; box-sizing: border-box; background: var(--wp--preset--color--teal); color: var(--wp--preset--color--cream); font: 500 15px/1 var(--wp--preset--font-family--label); text-decoration: none; }
.mt-story .mt-story__button:hover { background: var(--wp--preset--color--slate); color: var(--wp--preset--color--cream); }

/* ---------- 3. How it's built ---------- */
.mt-story__built { border-top: 1px solid var(--wp--preset--color--mist); }
.mt-story__built .mt-story__narrow { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); gap: 24px; }
.mt-story .mt-story__pitch { font: 400 18px/1.7 var(--wp--preset--font-family--body); color: var(--wp--preset--color--body); max-width: 720px; }
.mt-story .mt-story__quests { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mt-story__quest { border-top: 3px solid var(--wp--preset--color--teal); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.mt-story__who { font: 400 22px/1.25 var(--wp--preset--font-family--display); color: var(--wp--preset--color--teal); }
.mt-story__qname { font: 500 13px/1.4 var(--wp--preset--font-family--label); letter-spacing: 1.2px; text-transform: uppercase; color: var(--wp--preset--color--teal); }
.mt-story__tale { font: 400 12px/1.5 var(--wp--preset--font-family--label); color: var(--wp--preset--color--slate); }

/* ---------- 4. The opening ---------- */
.mt-story__opening { background: var(--wp--preset--color--sand); scroll-margin-top: 0; }
.mt-story__opening .mt-story__narrow { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); gap: 20px; }
.mt-script { height: 640px; overflow-y: auto; border: 1px solid var(--wp--preset--color--mist); background: #FFFFFF; box-shadow: 0 24px 40px -30px rgba(0, 30, 38, .45); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mt-script:focus-visible { outline: 2px solid var(--wp--preset--color--teal); outline-offset: 3px; }
.mt-script__pages { max-width: 620px; margin: 0 auto; padding: 56px 48px; box-sizing: border-box; font: 400 14px/1.5 var(--wp--preset--font-family--script); color: #111; }
.mt-script p { margin: 0; }
.mt-script__num { text-align: right; margin-bottom: 24px !important; }
.mt-script__page + .mt-script__page .mt-script__num { margin-top: 48px !important; }
.mt-script__scene, .mt-script__action, .mt-script__trans { margin-top: 18px !important; }
.mt-script__page > :nth-child(2) { margin-top: 0 !important; }
.mt-script__scene { text-transform: uppercase; }
.mt-script__trans { text-align: right; }
.mt-script__chr { margin: 18px 0 0 38% !important; }
.mt-script__paren { margin: 0 24% 0 30% !important; }
.mt-script__dlg { margin: 0 18% 0 22% !important; }
.mt-story__below { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font: 400 12px/1.5 var(--wp--preset--font-family--label); color: var(--wp--preset--color--slate); }

/* ---------- 5. Next story ---------- */
.mt-story__next { position: relative; background: #081014; color: #F7F4F0; overflow: hidden; border-top: 10px solid #000; border-bottom: 10px solid #000; }
.mt-story__next-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-story__next-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 10, 12, .82) 0%, rgba(4, 10, 12, .45) 45%, rgba(4, 10, 12, 0) 75%); }
.mt-story__next-in { position: relative; aspect-ratio: 2.39 / 1; max-height: 600px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mt-story .mt-story__next .mt-story__eyebrow { color: rgba(247, 244, 240, .8); }
.mt-story .mt-story__next-h { font: 400 clamp(28px, 3.6vw, 48px)/1.15 var(--wp--preset--font-family--display); max-width: 560px; color: #F7F4F0; }
.mt-story .mt-story__next-line { font: 400 clamp(16px, 1.6vw, 19px)/1.55 var(--wp--preset--font-family--body); max-width: 480px; color: rgba(247, 244, 240, .9); }

@media (max-width: 760px) {
	.mt-story__head-in { grid-template-columns: 1fr; }
	.mt-story__sheet { max-width: 280px; }
	.mt-story .mt-story__quests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mt-story__next-in { aspect-ratio: 16 / 9; padding-top: 24px; padding-bottom: 24px; }
}
@media (max-width: 520px) {
	.mt-script__pages { padding: 28px 18px; font-size: 11px; }
	.mt-script__dlg { margin-left: 12% !important; margin-right: 6% !important; }
	.mt-script__paren { margin-left: 20% !important; margin-right: 10% !important; }
	.mt-script__chr { margin-left: 30% !important; }
}

/* ---------- 2a. Title block on a darkened still (#249, #294) ---------- */
.mt-story__head.has-bg { position: relative; background: #0b1114; overflow: hidden; }
.mt-story__head.has-bg .mt-story__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-story__head.has-bg .mt-story__head-in { position: relative; }
.mt-story__head.has-bg .mt-story__eyebrow { color: rgba(247, 244, 240, .8); }
.mt-story .mt-story__head.has-bg :is(.mt-story__title, .mt-story__logline) { color: #F7F4F0; }
.mt-story .mt-story__head.has-bg .mt-story__format,
.mt-story__head.has-bg .mt-story__credits { color: rgba(247, 244, 240, .88); border-color: rgba(247, 244, 240, .25); }
.mt-story .mt-story__head.has-bg .mt-story__muted { color: rgba(247, 244, 240, .65); }
.mt-story .mt-story__head.has-bg .mt-story__button { background: #F7F4F0; color: var(--wp--preset--color--teal); }
.mt-story .mt-story__head.has-bg .mt-story__button:hover { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--teal); }
.mt-story__head.has-bg .mt-story__sheet img { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }

/* ---------- 3a. The world (lookbook, #249): justified rows on white (#230) ---------- */
.mt-story__world { background: #FFFFFF; border-top: 1px solid var(--wp--preset--color--mist); }
.mt-story__world .mt-story__in { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); display: flex; flex-direction: column; gap: 24px; }
.mt-world { --h: clamp(110px, 14.4vw, 200px); display: flex; flex-wrap: wrap; gap: 14px; }
.mt-world__item { flex: var(--ar) 1 calc(var(--h) * var(--ar)); height: var(--h); margin: 0; }
.mt-world__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-story .mt-world__cap { text-align: center; font: italic 400 16px/1.4 var(--wp--preset--font-family--display); color: var(--wp--preset--color--slate); }
@media (max-width: 760px) { .mt-world { --h: 34vw; gap: 8px; } }

/* ---------- 6 Nov: title block first, teaser second; two buttons ---------- */
.mt-story__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.mt-story .mt-story__buttons .mt-story__button { margin-top: 0; }
.mt-story .mt-story__button--line { background: transparent; color: var(--wp--preset--color--teal); border: 1.5px solid var(--wp--preset--color--teal); }
.mt-story .mt-story__head.has-bg .mt-story__button--line { background: transparent; color: #F7F4F0; border-color: rgba(247, 244, 240, .8); }
.mt-story .mt-story__head.has-bg .mt-story__button--line:hover { background: rgba(247, 244, 240, .12); color: #F7F4F0; }
.mt-story__teaser { scroll-margin-top: 24px; }
.mt-story__teaser-in { padding-bottom: clamp(40px, 6vw, 72px); }

/* 2 Dec: the copyright notice takes its own full-width line under the pages note. */
.mt-story__notice { flex-basis: 100%; }

/* Horror mood frame (3 Dec): the lamp sits at the right, so phones' 16:9 crop keeps it in view. No effect at 2.39:1. */
.mt-story__next-img{object-position:80% 50%}
/* Daytime mood frame (5 Dec): on phones the text covers the whole image, so darken it there. */
@media (max-width:760px){.mt-story__next-img{filter:brightness(.55)}}
