/* FruitMatch content, using the native Beyond Bounds type, surfaces and rhythm. */
.fruitmatch-page h1, .fruitmatch-page h2, .fruitmatch-page h3, .fruitmatch-page h4 { color: var(--text); }
.fruitmatch-page .project-context h3 { color: #dd3333; }
.fruitmatch-page .hero-art { left: 23%; top: 3%; width: 82%; height: 97%; object-fit: contain; object-position: 50% 48%; }
.fruitmatch-page .hero-shade { background: linear-gradient(90deg,#0a0a0afa 0,#0a0a0ac9 26%,#0a0a0a55 44%,#0a0a0a00 65%),linear-gradient(0deg,#0a0a0a 0,#0a0a0a0d 29%,transparent 70%,#0a0a0a9c); }
.fruitmatch-page .hero-tagline { white-space: normal; max-width: 540px; }
.fruitmatch-page .hero-motion { position: absolute; z-index: 3; right: var(--edge); bottom: 47px; background: #171717b3; backdrop-filter: blur(12px); }
.fruitmatch-page [hidden] { display: none !important; }
.fruitmatch-page .overview-facts { grid-template-columns: 1.1fr 1.1fr .8fr .6fr; }
.fruitmatch-page .overview-grid { align-items: center; }
.fruitmatch-page .overview-copy .lead { max-width: 495px; }
.fruitmatch-page .overview-trailer { align-self: center; }
.fruitmatch-page .fm-player { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #111; border: 1px solid #ffffff29; border-radius: 12px; isolation: isolate; }
.fruitmatch-page .fm-player > video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0a0a0a; }
.fruitmatch-page .fm-player .fm-video-play { z-index: 1; }
.fruitmatch-page .fm-video-error { position: absolute; z-index: 2; left: 12px; bottom: 50px; right: 12px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 8px; background: #171717f5; color: #d4d4d4; font-size: 13px; }
.fruitmatch-page .fm-video-error a { display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; }
.fruitmatch-page .fm-video-error .icon { width: 15px; height: 15px; }
.fruitmatch-page .fm-media-caption { margin-top: 12px; font-size: 12px; color: #888; }
.fruitmatch-page .project-gallery { min-width: 0; }
.fruitmatch-page .fm-world-views { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; margin-top: 32px; }
.fruitmatch-page .fm-world-views .image-surface { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.fruitmatch-page .fm-world-views .image-surface > img { object-fit: contain; }
.fruitmatch-page .fm-world-views figcaption { margin-top: 13px; color: #a3a3a3; font-size: 12px; }
/* Leave room for the heading, caption and thumbnail controls below the fixed header. */
.fruitmatch-page .gallery-stage { aspect-ratio: 2.13; max-height: max(220px, calc(100svh - var(--header) - 300px)); background: #101010; }
.fruitmatch-page .gallery-stage > img { object-fit: contain; object-position: center; }
/* Complete iPad interfaces remain legible before and during hover. The shared
   caption, cross-dissolve and image-to-dialog motion stay unchanged. */
body.doex-project-page #home .fruitmatch-page :is(.project-gallery, .fm-world-views) .image-trigger > :is(img, .media-transition-snapshot) { transform: none; }
.fruitmatch-page .gallery-thumbnails { position: relative; }
.fruitmatch-page .gallery-thumbnails button { flex: 0 0 128px; aspect-ratio: 4 / 3; max-width: none; }
.fruitmatch-page .gallery-thumbnails button img { object-fit: contain; }
.fruitmatch-page [data-gallery-counter] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fruitmatch-page .gallery-stage { touch-action: pan-y pinch-zoom; }
.fruitmatch-page .viewer-image-wrap { touch-action: pan-y pinch-zoom; }
.fruitmatch-page .fm-topic-heading { display: flex; align-items: center; gap: 13px; }
.fruitmatch-page .fm-editor-intro { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(220px,.8fr); gap: 65px; align-items: center; }
.fruitmatch-page .fm-feature-notes { list-style: none; margin: 0; padding: 0; font-size: 14px; color: #c0c0c0; }
.fruitmatch-page .fm-feature-notes li { display: flex; gap: 13px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fruitmatch-page .fm-feature-notes li:last-child { border: 0; }
.fruitmatch-page .fm-feature-notes .icon { width: 20px; height: 20px; color: #8c8c8c; }
.fruitmatch-page .fm-config-diagram { margin-top: 37px; }
.fruitmatch-page .fm-config-diagram picture { aspect-ratio: auto; }
.fruitmatch-page .fm-config-diagram picture > img { position: static; display: block; inset: auto; height: auto; object-fit: contain; }
.fruitmatch-page .fm-editor-lead { max-width: 80ch; }
.fruitmatch-page .fm-editor-examples { margin-top: 38px; display: grid; gap: 38px; }
.fruitmatch-page .fm-editor-example { display: grid; grid-template-columns: minmax(230px,.8fr) minmax(0,1.4fr); gap: clamp(30px,4.4vw,70px); align-items: center; }
.fruitmatch-page .fm-editor-example + .fm-editor-example { padding-top: 38px; border-top: 1px solid var(--line); }
.fruitmatch-page .fm-editor-example-copy h4 { max-width: 380px; margin: 0 0 17px; font-size: clamp(24px,2.2vw,34px); font-weight: 550; line-height: 1.25; }
.fruitmatch-page .fm-editor-example-copy p { max-width: 44ch; margin: 0; font-size: 16px; line-height: 1.8; color: #b3b3b3; }
.fruitmatch-page .fm-editor-example-visual picture { aspect-ratio: auto; }
.fruitmatch-page .fm-editor-example-visual picture > img { position: static; display: block; inset: auto; height: auto; object-fit: contain; }
.fruitmatch-page .fm-editor-example-note { margin: 17px 0 0; font-size: 12px; line-height: 1.6; color: #909090; }
.fruitmatch-page .fm-editor-other-controls { margin-top: 42px; padding-top: 34px; border-top: 1px solid var(--line); }
.fruitmatch-page .fm-editor-other-controls > h4 { margin: 0 0 22px; font-size: 24px; }
.fruitmatch-page .fm-editor-control-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 55px; }
.fruitmatch-page .fm-editor-control-list dt { margin: 0 0 7px; font-size: 17px; line-height: 1.4; font-weight: 550; color: #e0e0e0; }
.fruitmatch-page .fm-editor-control-list dd { font-size: 15px; line-height: 1.7; color: #a9a9a9; }
.fruitmatch-page .fm-editor-other-controls > p { margin: 25px 0 0; font-size: 14px; line-height: 1.7; }
.fruitmatch-page .fm-subsection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-top: 45px; margin-bottom: 22px; }
.fruitmatch-page h4 { font-weight: 550; letter-spacing: -.022em; line-height: 1.3; }
.fruitmatch-page .fm-subsection-heading h4 { font-size: 23px; }
.fruitmatch-page .fm-subsection-heading p { font-size: 13px; }
.fruitmatch-page .fm-video-section { display: grid; grid-template-columns: minmax(220px,.55fr) minmax(0,1fr); gap: 65px; align-items: center; margin-top: 55px; padding-top: 45px; border-top: 1px solid var(--line); }
.fruitmatch-page .fm-video-copy h4 { font-size: clamp(25px,2.5vw,36px); margin-bottom: 20px; max-width: 350px; }
.fruitmatch-page .fm-video-copy p { max-width: 370px; font-size: 15px; line-height: 1.8; }
.fruitmatch-page #world-builder .project-gallery,
.fruitmatch-page #player-experience .project-gallery { margin-top: 30px; }
.fruitmatch-page .fm-performance-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.fruitmatch-page .fm-engineering-list { margin: 0; }
.fruitmatch-page .fm-engineering-list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.fruitmatch-page .fm-engineering-list > div:first-child { border: 0; padding-top: 0; }
.fruitmatch-page .fm-engineering-list dt { font-size: 16px; font-weight: 500; color: #e0e0e0; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.fruitmatch-page .fm-engineering-list dt .icon { width: 21px; height: 21px; color: #8a8a8a; }
.fruitmatch-page .fm-engineering-list dd { font-size: 14px; color: var(--muted); padding-left: 33px; }
.fruitmatch-page .fm-handover { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; padding: 60px 0; align-items: center; border-bottom: 1px solid var(--line); }
.fruitmatch-page .fm-handover-copy h3 { color: var(--text); margin-bottom: 24px; font-size: clamp(28px,3.2vw,45px); }
.fruitmatch-page .fm-handover .prose { font-size: 15px; }
.fruitmatch-page .fm-completion .image-surface { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.fruitmatch-page .fm-completion img { object-fit: contain; transform: none; }
.fruitmatch-page .fm-completion figcaption { color: #8a8a8a; font-size: 12px; margin-top: 10px; }
.fruitmatch-page .fm-download-link { display: inline-flex; gap: 13px; align-items: center; border: 1px solid #ffffff30; background: #141414; border-radius: 9px; padding: 13px 17px; margin-top: 25px; font-size: 14px; transition: background .2s,border-color .2s; }
.fruitmatch-page .fm-download-link:hover { background: #212121; border-color: #ffffff60; }
.fruitmatch-page .fm-download-link .icon { width: 18px; height: 18px; }
.fruitmatch-page .fm-download-link .icon:last-child { margin-left: 13px; }
.fruitmatch-page .credits-section { padding-top: 43px; padding-bottom: 55px; }
.fruitmatch-page .detail-article { scroll-margin-top: calc(var(--header) + 15px); }
.fruitmatch-page #credits-content p { font-size: 14px; line-height: 1.8; }

/* Standalone preview renders the unchanged native Doex shell. WordPress uses
   its own header/footer and never loads these preview-only adjustments. */

@media (min-width:1600px) {
 .fruitmatch-page .hero-art { left:25%; width:77%; }
}
@media (max-width:1000px) {
 .fruitmatch-page .overview-trailer { max-width: 850px; width: 100%; }
 .fruitmatch-page .overview-facts { grid-template-columns: 1fr 1fr 1fr 1fr; }
 .fruitmatch-page .fm-editor-intro { grid-template-columns: 1fr; gap: 22px; }
 .fruitmatch-page .fm-feature-notes { display: flex; flex-wrap: wrap; column-gap: 24px; }
 .fruitmatch-page .fm-feature-notes li { border: 0; }
 .fruitmatch-page .fm-video-section, .fruitmatch-page .fm-handover { gap: 35px; }
 .fruitmatch-page .fm-performance-layout { gap: 35px; }
}
@media (max-width:850px) {
 .fruitmatch-page .fm-editor-example { grid-template-columns: 1fr; gap: 23px; }
 .fruitmatch-page .fm-editor-example-copy h4, .fruitmatch-page .fm-editor-example-copy p { max-width: 680px; }
 .fruitmatch-page .hero-art { left: 19%; width: 99%; }
 .fruitmatch-page .hero-motion { bottom: 46px; }
 .fruitmatch-page .gallery-thumbnails button { flex-basis: 110px; }
 .fruitmatch-page .fm-subsection-heading { display: block; }
 .fruitmatch-page .fm-subsection-heading p { margin-top: 10px; }
 .fruitmatch-page .fm-video-section { grid-template-columns: 1fr; gap: 25px; }
 .fruitmatch-page .fm-video-copy h4,.fruitmatch-page .fm-video-copy p { max-width: 630px; }
 .fruitmatch-page .fm-handover { grid-template-columns: 1fr; }
 .fruitmatch-page .fm-handover .prose { max-width: none; }
}
@media (max-width:650px) {
 .fruitmatch-page .fm-world-views { grid-template-columns: 1fr; gap: 25px; margin-top: 25px; }
 .fruitmatch-page .fm-editor-examples { margin-top: 28px; gap: 30px; }
 .fruitmatch-page .fm-editor-example + .fm-editor-example { padding-top: 30px; }
 .fruitmatch-page .fm-editor-example-copy h4 { margin-bottom: 13px; font-size: 25px; }
 .fruitmatch-page .fm-editor-example-copy p { font-size: 15px; line-height: 1.75; }
 .fruitmatch-page .fm-editor-control-list { grid-template-columns: 1fr; gap: 21px; }
 .fruitmatch-page .fm-editor-other-controls { margin-top: 31px; padding-top: 27px; }
 .fruitmatch-page .fm-editor-other-controls > h4 { font-size: 22px; }
 .fruitmatch-page .hero { height: 740px; }
 .fruitmatch-page .hero-art { top: 285px; left: 0; width: 118%; height: 430px; object-fit: contain; object-position: center; mask-image: linear-gradient(0deg,#000 66%,transparent 100%); }
 .fruitmatch-page .hero-shade { background: linear-gradient(180deg,#0a0a0a 0,#0a0a0ae0 24%,#0a0a0a00 55%,#0a0a0a22 80%,#0a0a0acc),linear-gradient(90deg,#0a0a0a38,transparent 80%); }
 .fruitmatch-page .hero-inner { padding-top: 148px; }
 .fruitmatch-page .hero-motion { bottom: 40px; right: 22px; }
 .fruitmatch-page .hero-tagline { max-width: 290px; }
 .fruitmatch-page .hero-bottom { padding-right: 55px; }
 .fruitmatch-page .project-entry { gap: 20px; }
 .fruitmatch-page .overview-facts { gap: 13px; grid-template-columns: 1.1fr 1.1fr .8fr .5fr; }
 .fruitmatch-page .gallery-stage { aspect-ratio: 4 / 3; }
 .fruitmatch-page .gallery-thumbnails button { flex: 0 0 86px; }
 .fruitmatch-page .gallery-caption { min-height: 31px; align-items: start; }
 .fruitmatch-page .fm-config-diagram { margin-top: 25px; }
 .fruitmatch-page .fm-topic-heading { align-items: flex-start; gap: 11px; }
 .fruitmatch-page .fm-topic-heading .icon { margin-top: 2px; }
 .fruitmatch-page .fm-subsection-heading { margin-top: 32px; margin-bottom: 20px; }
 .fruitmatch-page .fm-feature-notes { display: block; }
 .fruitmatch-page .fm-feature-notes li { padding: 9px 0; }
 .fruitmatch-page .fm-subsection-heading h4 { font-size: 21px; }
 .fruitmatch-page .fm-video-section { margin-top: 35px; padding-top: 30px; }
 .fruitmatch-page .fm-video-copy h4 { font-size: 26px; margin-bottom: 15px; }
 .fruitmatch-page .fm-performance-layout { grid-template-columns: 1fr; gap: 28px; }
 .fruitmatch-page .fm-engineering-list dd { font-size: 13px; }
 .fruitmatch-page .fm-handover { padding: 38px 0; gap: 30px; }
 .fruitmatch-page .credits-section { padding-top: 35px; padding-bottom: 40px; }
}
/* Keep the content aligned with the native theme controls. */
.fruitmatch-page .section { position:relative; width:100%; height:auto; overflow:visible; }
.fruitmatch-page .hero { padding:0; }
body.admin-bar .fruitmatch-page .site-header { top:var(--project-toolbar-offset,32px); }
body.doex-fruitmatch.navigation-open { overflow:hidden; }
body.doex-project-page #home [data-project-video]:fullscreen .fm-player { flex:1; aspect-ratio:auto; min-height:0; }
