/* The Blueprint — film version: full-screen footage behind the story. */
.reel { position: fixed; inset: 0; z-index: 0; background: #07090a; overflow: hidden; }
.reel-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .9s cubic-bezier(.22, .61, .36, 1); }
.reel-layer.is-on { opacity: 1; }
.reel-layer video, .reel-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Endless drift: slow push in and out with a pan, run by the compositor so it
   never pauses, even after a clip has finished on its last frame. */
.reel-layer video, .reel-layer img { transform: scale(1.06); will-change: transform; transform-origin: 55% 50%; animation: reel-drift 20s ease-in-out infinite alternate; }
.reel-layer:nth-child(even) video, .reel-layer:nth-child(even) img { animation-delay: -10s; }
@keyframes reel-drift {
  from { transform: translate3d(-1.5%, .8%, 0) scale(1.05); }
  to   { transform: translate3d(1.5%, -.8%, 0) scale(1.16); }
}
@media (prefers-reduced-motion: reduce) { .reel-layer video, .reel-layer img { animation: none; } }
/* Floating dust above the footage */
.reel-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; mix-blend-mode: screen; }
/* Readability: darker on the copy side, cinematic vignette everywhere */
.reel-grade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, .72) 0%, rgba(5, 7, 8, .35) 38%, rgba(5, 7, 8, 0) 62%),
    radial-gradient(120% 90% at 60% 45%, transparent 55%, rgba(3, 5, 6, .6) 100%);
}
.reel > .reel-grade { z-index: 3; transition: transform .9s cubic-bezier(.22, .61, .36, 1); }
/* Right-side panels get the shade on the right instead */
.reel.flip > .reel-grade { transform: scaleX(-1); }

/* The gold thread: a fine line down the left edge that fills as the story moves */
.thread { position: fixed; left: 22px; top: calc(var(--header-h) + 18px); bottom: 24px; width: 10px; height: auto; z-index: 3; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: #E3BD7F; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); filter: drop-shadow(0 0 6px rgba(227, 189, 127, .8)); }
@media (max-width: 767px) { .thread { left: 8px; } }

/* Panels float over footage */
.mfilm .panel { background: rgba(8, 11, 12, .62); }
@supports (backdrop-filter: blur(8px)) { .mfilm .panel { background: rgba(8, 11, 12, .48); backdrop-filter: blur(14px) saturate(120%); } }
.mfilm .beat--hero .hero-copy { text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.mfilm .scroll-cue { display: block; }
@media (min-width: 1024px) {
  .mfilm .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: end; }
  .mfilm .portrait { max-width: 280px; margin-left: auto; }
}

/* New trust sections */
.wont { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 12px; }
.wont li { position: relative; padding-left: 1.9rem; color: var(--warm-white); line-height: 1.5; }
.wont li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 14px; height: 2px; background: #E3BD7F; transform: rotate(45deg); box-shadow: 0 0 0 0 transparent; }
.wont li::after { content: ''; position: absolute; left: 2px; top: .55em; width: 14px; height: 2px; background: #E3BD7F; transform: rotate(-45deg); }

.btn-outline-light { border-color: rgba(245, 241, 233, .7); color: var(--warm-white); background: transparent; }
.btn-outline-light:hover { background: rgba(245, 241, 233, .08); }

.faq { margin-top: 1rem; border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 18px; line-height: 1.35; color: var(--warm-white); }
.faq summary::after { content: '+'; flex: none; font-size: 22px; line-height: 1; color: #E3BD7F; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; font-size: 16px; }
.mfilm .panel:has(.faq) { width: min(600px, 48vw); }

.panel--note p { color: var(--warm-white) !important; font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.55; }
.panel--note .eyebrow { font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.signoff { font-style: italic; color: #E3BD7F !important; margin-top: 1.2rem; }
@media (max-width: 1023px) { .mfilm .panel:has(.faq) { width: min(560px, 100%); } }

/* Where my AI works */
.where { display: grid; gap: 16px; margin-top: 1.2rem; }
.where-item { padding-top: 14px; border-top: 1px solid var(--line-dark); }
.where-item h3 { font-size: 19px; margin-bottom: .35em; color: #E3BD7F; }
.where-item p { font-size: 16px; margin: 0; }
.panel a:not(.btn) { color: var(--warm-white); text-decoration-color: rgba(227, 189, 127, .7); text-underline-offset: 3px; }
.mfilm .panel:has(.where) { width: min(600px, 48vw); }
@media (max-width: 1023px) { .mfilm .panel:has(.where) { width: min(560px, 100%); } }

/* Note from Bruce: personal photo */
.note-photo { margin: 1.4rem 0 1rem; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(227, 189, 127, .25); }
.note-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Work with me: three doors */
.doors { display: grid; gap: 20px; margin-top: 1.4rem; }
.door { padding: 22px 22px 24px; border-radius: 10px; border: 1px solid rgba(227, 189, 127, .35); background: rgba(8, 11, 12, .35); }
.door h3 { color: #E3BD7F; font-size: clamp(20px, 1.7vw, 23px); margin: 0 0 .5em; }
.door p { font-size: 16px; }
.door .btn { margin-top: .6rem; }
.door .cta-links { margin-top: .9rem; font-size: 15px; }
.door-subs { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: 10px; }
.door-subs li { padding-left: 1.2rem; position: relative; color: var(--warm-white); font-size: 16px; line-height: 1.5; }
.door-subs li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: #E3BD7F; }
.mfilm .panel:has(.doors) { width: min(760px, 92vw); }
@media (min-width: 1024px) { .doors--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mfilm .panel:has(.doors--three) { width: min(1120px, 92vw); } }

/* v5 cinematic stills (cine.js): WebGL canvas under the grade and dust */
.reel-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.reel-layer img { object-fit: cover; }
/* Work with me opens on its heading, not on a picture-only screen */
@media (max-width: 767px) { .mfilm .beat--intro { min-height: 100svh; align-items: center; padding: 14svh 0 10svh; } }
