/* BroadMoney case (story-led, 5 Nov): sticky notes, paper sketches, phone prototypes from her real screens, soft light rays.
   Less is more: one idea per screen; everything else stays the case.css look. */

/* ---- hero: a warm stage with soft moving light rays and two real screens, never over-zoomed ---- */
.bm-stage { position: relative; margin: 0 var(--pad); aspect-ratio: 16 / 9; overflow: hidden; background: #E6DED0; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 70px); }
.bm-rays { position: absolute; inset: -30%; pointer-events: none; mix-blend-mode: screen; }
.bm-rays i { position: absolute; top: 0; left: 50%; width: 22%; height: 140%; transform-origin: 50% 0; background: linear-gradient(to bottom, rgba(255, 248, 230, 0.95), rgba(255, 248, 230, 0) 75%); filter: blur(28px); opacity: 0.8; animation: bm-ray 14s ease-in-out infinite; }
.bm-rays i:nth-child(1) { --r: -38deg; margin-left: -30%; animation-duration: 16s; }
.bm-rays i:nth-child(2) { --r: -22deg; margin-left: -14%; width: 12%; animation-delay: -4s; }
.bm-rays i:nth-child(3) { --r: -30deg; margin-left: 2%; width: 30%; animation-duration: 19s; animation-delay: -9s; }
.bm-rays i:nth-child(4) { --r: -16deg; margin-left: 20%; width: 10%; animation-delay: -2s; }
@keyframes bm-ray { 0%, 100% { transform: rotate(var(--r)) translateX(0); opacity: 0.55; } 50% { transform: rotate(calc(var(--r) + 6deg)) translateX(4%); opacity: 0.95; } }
.bm-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 30% 0%, rgba(255, 250, 238, 0.55), transparent 60%), linear-gradient(to top, rgba(120, 100, 70, 0.10), transparent 40%); }
.bm-stage .bm-ph { position: relative; z-index: 1; width: clamp(130px, 17vw, 270px); }
.bm-stage .bm-ph:nth-child(2) { transform: translateY(6%); }
.bm-stage .bm-ph:nth-child(3) { transform: translateY(-4%); }

/* ---- a phone: her real screen inside a soft rounded frame ---- */
.bm-ph { aspect-ratio: 390 / 844; border-radius: 9% / 4.2%; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08), 0 50px 90px -50px rgba(60, 45, 20, 0.55), 0 18px 30px -22px rgba(60, 45, 20, 0.35); position: relative; }
.bm-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---- prototype: frames that play like a screen recording, with a tap dot where the finger goes ---- */
.bm-proto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 90px); align-items: center; margin: 0 var(--pad) 0 var(--col); max-width: 900px; }
.bm-proto .bm-ph { width: min(300px, 100%); justify-self: center; }
.bm-proto .bm-ph img { opacity: 0; transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); transform: translateX(8%); }
.bm-proto .bm-ph img.is-on { opacity: 1; transform: none; }
.bm-proto .bm-ph img.is-off { opacity: 0; transform: translateX(-8%); }
/* a step can be a video, or a screen built from layers (.bm-scr), not only an image */
.bm-ph > video, .bm-ph > .bm-scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bm-scr > img, .bm-scr > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bm-proto .bm-ph > :is(video, .bm-scr) { opacity: 0; transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); transform: translateX(8%); }
.bm-proto .bm-ph > :is(video, .bm-scr).is-on { opacity: 1; transform: none; }
.bm-proto .bm-ph > :is(video, .bm-scr).is-off { opacity: 0; transform: translateX(-8%); }
/* a recording in the phone: always on */
.bm-proto[data-rec] .bm-ph > video { opacity: 1; transform: none; }
.bm-tap { position: absolute; z-index: 3; width: 13%; aspect-ratio: 1; margin: -6.5% 0 0 -6.5%; border-radius: 50%; background: rgba(17, 17, 17, 0.22); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); opacity: 0; transform: scale(0.6); pointer-events: none; }
.bm-tap.is-tap { animation: bm-tap 0.7s var(--ease); }
@keyframes bm-tap { 0% { opacity: 0; transform: scale(1.4); } 35% { opacity: 1; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.1); } }
.bm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.bm-steps li { counter-increment: s; display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; color: var(--ink-soft); transition: color 0.4s; }
.bm-steps li::before { content: counter(s, decimal-leading-zero); font-size: 11px; letter-spacing: 0.08em; padding-top: 0.35em; }
.bm-steps li.is-now { color: var(--ink); }
.bm-steps li.is-now::before { color: var(--ink); }

/* ---- sticky notes: hand-written, paper feel, a strip of tape, each on its own tilt ---- */
.bm-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 34px); margin: 0 var(--pad) 0 var(--col); max-width: 1000px; padding: 10px 0 0; }
.bm-note { position: relative; margin: 0; padding: 30px 20px 24px; min-height: 13em; background: var(--c, #F6E7A6); transform: rotate(var(--t, -1.5deg)); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 22px 30px -24px rgba(70, 50, 10, 0.55); background-image: linear-gradient(170deg, rgba(255, 255, 255, 0.35), transparent 40%), radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px); background-size: auto, 5px 5px; transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1); }
.bm-note:hover { transform: rotate(0deg) translateY(-4px); }
.bm-note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 74px; height: 22px; margin-left: -37px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); transform: rotate(calc(var(--t, -1.5deg) * -2)); }
.bm-note b { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(17, 17, 17, 0.8); }
.bm-note p { margin: 0; font-family: "Caveat", "Bradley Hand", cursive; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.12; color: #22201c; }
.bm-note:nth-child(1) { --c: #F6E7A6; --t: -2deg; }
.bm-note:nth-child(2) { --c: #F5D6D0; --t: 1.6deg; }
.bm-note:nth-child(3) { --c: #D7E8D2; --t: -1deg; }
.bm-note:nth-child(4) { --c: #D6E2EE; --t: 2.2deg; }

/* ---- paper sketches: lo-fi, drawn with a wobbly pen on squared paper ---- */
.bm-sketch { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px, 2vw, 30px); margin: 0 var(--pad) 0 var(--col); max-width: 900px; padding: clamp(20px, 3vw, 44px); background-color: #FBFAF6; background-image: linear-gradient(rgba(70, 110, 160, 0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 110, 160, 0.10) 1px, transparent 1px); background-size: 22px 22px; box-shadow: 0 30px 60px -45px rgba(60, 45, 20, 0.5); transform: rotate(-0.6deg); }
.bm-sketch figure { margin: 0; }
.bm-sketch svg { display: block; width: 100%; height: auto; overflow: visible; }
.bm-sketch .pen { fill: none; stroke: #23211d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bm-sketch .red { fill: none; stroke: #C9463D; stroke-width: 2.2; stroke-linecap: round; }
.bm-sketch .grn { fill: none; stroke: #2F7D4F; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bm-sketch .hand { font-family: "Caveat", cursive; font-size: 22px; fill: #23211d; }
.bm-sketch .hand.red-t { fill: #C9463D; }
.bm-sketch .hand.grn-t { fill: #2F7D4F; }
.bm-sketch figcaption { margin-top: 10px; text-align: center; font-family: "Caveat", cursive; font-size: 24px; color: #23211d; }
.bm-arrow { width: clamp(40px, 6vw, 80px); }
/* the pen draws itself in when the sketch comes into view */
.bm-sketch .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1); }
.bm-sketch.is-in .draw { stroke-dashoffset: 0; }

/* ---- the pushback: a quote, big, with a small doodle ---- */
.bm-quote { margin: 0 var(--pad) 0 var(--col); max-width: 22em; font-size: clamp(26px, 3vw, 50px); line-height: 1.05; letter-spacing: -0.04em; position: relative; }
.bm-quote::before { content: "\201C"; position: absolute; left: -0.55em; top: -0.1em; color: rgba(17, 17, 17, 0.2); }

/* ---- the numbers: confirmed ones solid; ones still to fill in are dashed so nobody mistakes them ---- */
.bm-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 50px); margin: clamp(40px, 7vh, 80px) 0 0; }
.bm-nums div { border-top: 1px solid var(--ink); padding-top: 14px; }
.bm-nums strong { display: block; font-weight: 500; font-size: clamp(34px, 4.2vw, 74px); line-height: 0.95; letter-spacing: -0.05em; }
.bm-nums span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); max-width: 18em; }
.tbc { display: inline-block; padding: 0 0.18em; border: 1.5px dashed #C9463D; color: #C9463D; border-radius: 4px; line-height: 1.05; }

/* ---- the 9pm insight: a little clock line ---- */
.bm-night { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin: 30px 0 10px; max-width: 34em; }
.bm-night i { height: 30px; background: var(--tile); border-radius: 2px; }
.bm-night i.off { background: #23211d; }
.bm-night i.try { background: #23211d; box-shadow: inset 0 -10px 0 #C9A13D; }
.bm-night-k { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; max-width: 34em; font-size: 11px; color: var(--ink-soft); letter-spacing: 0.06em; }

/* ---- everything she owned: a quiet list ---- */
.bm-owned { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--g); max-width: 40em; }
.bm-owned li { padding: 14px 0; border-top: 1px solid rgba(17, 17, 17, 0.14); font-size: clamp(16px, 1.2vw, 19px); }

/* doodle underline (same pen as the home page) */
.bm-ul { position: relative; display: inline-block; }
.bm-ul svg { position: absolute; left: -1%; bottom: -0.22em; width: 102%; height: 0.3em; overflow: visible; }
.bm-ul path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.5s; }
.is-in .bm-ul path, .bm-ul.is-in path { stroke-dashoffset: 0; }

@media (max-width: 760px) {
  .bm-stage { aspect-ratio: 4 / 5; gap: 12px; }
  .bm-stage .bm-ph { width: 40vw; }
  .bm-stage .bm-ph:nth-child(3) { display: none; }
  .bm-notes { grid-template-columns: 1fr 1fr; margin-left: var(--pad); }
  .bm-note { min-height: 11em; padding: 26px 14px 18px; }
  .bm-proto { grid-template-columns: 1fr; margin-left: var(--pad); }
  .bm-proto .bm-ph { width: 64vw; }
  .bm-sketch { grid-template-columns: 1fr; margin-left: var(--pad); }
  .bm-arrow { transform: rotate(90deg); justify-self: center; }
  .bm-quote { margin-left: calc(var(--pad) + 0.5em); }
  .bm-nums { grid-template-columns: 1fr; }
  .bm-owned { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-rays i { animation: none; }
  .bm-sketch .draw, .bm-ul path { transition: none; stroke-dashoffset: 0; }
}
.bm-night-l { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--ink-soft); }
.bm-night-l i { width: 12px; height: 12px; border-radius: 2px; background: #23211d; }
.bm-night-l i.g { margin-left: 12px; box-shadow: inset 0 -5px 0 #C9A13D; }
.bm-nums span.tbc { display: inline-block; margin: 0; font-size: inherit; line-height: 1.05; color: #C9463D; max-width: none; }
@media (max-width: 760px) {
  .bm-sketch { grid-template-columns: 1fr 26px 1fr; gap: 6px; padding: 16px 12px; }
  .bm-arrow { width: 26px; transform: none; }
  .bm-sketch figcaption { font-size: 16px; line-height: 1.1; }
}

/* ---- hero film (6 Nov): her original photo, whole, with the sunlight drifting across it ---- */
.bm-film { margin: 0 auto; width: min(calc(100% - 2 * var(--pad)), calc(88vh * 1194 / 1600), 760px); }
.bm-film__in { position: relative; aspect-ratio: 1194 / 1600; overflow: hidden; background: #bdb3a5; }
.bm-film__in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: bm-cam 26s ease-in-out infinite alternate; transform-origin: 66% 58%; }
@keyframes bm-cam { from { transform: scale(1.045) translate(0.6%, 0.4%); } to { transform: scale(1) translate(0, 0); } }
/* a warm band of sun along the photo's own diagonal light, breathing and drifting slowly */
.bm-film__sun { position: absolute; left: -40%; top: -20%; width: 180%; height: 26%; transform: rotate(-38deg); transform-origin: 50% 50%; background: linear-gradient(to bottom, transparent, rgba(255, 236, 200, 0.42) 45%, rgba(255, 244, 222, 0.5) 52%, transparent); filter: blur(18px); mix-blend-mode: soft-light; animation: bm-sun 11s ease-in-out infinite; pointer-events: none; }
.bm-film__sun--2 { top: 38%; height: 18%; animation-duration: 15s; animation-delay: -6s; opacity: 0.8; }
@keyframes bm-sun { 0%, 100% { translate: -3% 0; opacity: 0.55; } 50% { translate: 4% 2%; opacity: 1; } }
/* a whisper of moving shade, as if leaves move outside the window */
.bm-film__dust { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 30% 18% at 30% 30%, rgba(40, 30, 20, 0.10), transparent 70%), radial-gradient(ellipse 22% 14% at 75% 20%, rgba(40, 30, 20, 0.08), transparent 70%); mix-blend-mode: multiply; animation: bm-leaf 9s ease-in-out infinite alternate; }
@keyframes bm-leaf { from { transform: translate(-2%, 1%); opacity: 0.6; } to { transform: translate(3%, -2%); opacity: 1; } }

/* ---- web flow: the web app in a quiet browser frame, clicking through the sidebar ---- */
.bm-proto--web { grid-template-columns: 1fr; max-width: 900px; }
.bm-web { width: 100%; box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08), 0 50px 90px -55px rgba(60, 45, 20, 0.55); background: #fff; }
.bm-web__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F1EEE8; }
.bm-web__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(17, 17, 17, 0.16); }
.bm-web__bar span { margin-left: 14px; font-size: 11px; color: var(--ink-soft); }
.bm-proto--web .bm-ph { width: 100%; aspect-ratio: 1728 / 1117; border-radius: 0; box-shadow: none; }
.bm-proto--web .bm-tap { width: 3.2%; margin: -1.6% 0 0 -1.6%; }
.bm-steps--row { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.bm-steps--row li { display: flex; gap: 8px; }
@media (max-width: 760px) {
  .bm-film { width: calc(100% - 2 * var(--pad)); }
  .bm-proto--web .bm-tap { width: 6%; margin: -3% 0 0 -3%; }
}
@media (prefers-reduced-motion: reduce) { .bm-film__in img, .bm-film__sun, .bm-film__dust { animation: none; } }

/* ---- hero film v2: widened photo as a light-only video, her real flow playing on the phone's screen ---- */
.bm-hv { margin: 0 var(--pad); }
.bm-hv__in { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #8f877c; }
.bm-hv__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-hv__scr { position: absolute; left: 56.72%; top: 30.9%; width: 11.33%; height: auto; aspect-ratio: 390 / 844; border-radius: 12% / 5.6%; box-shadow: none; background: #fff; filter: brightness(0.97) contrast(1.02); }
/* screens slide in from the right like the real app; ones waiting off-screen snap back without crossing the screen */
.bm-hv__scr img { opacity: 1 !important; transform: translateX(100%); transition: none !important; }
.bm-hv__scr img.is-on { transform: none; z-index: 2; transition: transform 0.6s var(--ease) !important; }
.bm-hv__scr img.is-off { transform: translateX(-30%); z-index: 1; filter: brightness(0.92); transition: transform 0.6s var(--ease), filter 0.6s !important; }
@media (prefers-reduced-motion: reduce) { .bm-hv__scr img.is-on, .bm-hv__scr img.is-off { transition: none !important; } }
.bm-hv__scr .bm-tap { width: 16%; margin: -8% 0 0 -8%; }
.bm-hv__scr::after { content: ""; position: absolute; z-index: 4; left: 50%; top: 1.5%; width: 31%; height: 3.6%; margin-left: -15.5%; border-radius: 99px; background: #0b0b0c; }
.bm-hv__scr::before { content: ""; position: absolute; z-index: 4; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.10), transparent 35%), linear-gradient(to top, rgba(60, 45, 30, 0.10), transparent 30%); }

/* 30 Nov 2026: BroadMoney information architecture map */
.bm-ia { margin: clamp(10px, 2vh, 24px) var(--pad) 0 var(--col); max-width: 1080px; }
.bm-ia__row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: stretch; }
.bm-ia__node { border: 1px solid var(--ink); background: var(--paper); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.bm-ia__node b, .bm-ia__ops b { font-size: clamp(17px, 1.35vw, 21px); font-weight: 500; margin-bottom: 4px; }
.bm-ia__node span, .bm-ia__ops span { font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.bm-ia__node--key { background: #F6E7A6; }
.bm-ia__arr { position: relative; align-self: center; width: clamp(76px, 7.6vw, 112px); height: 1px; background: var(--ink); font-style: normal; }
.bm-ia__arr::after { content: ""; position: absolute; right: 0; top: -4px; border: 4.5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
.bm-ia__arr em { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; white-space: nowrap; font-family: "Caveat", "Bradley Hand", cursive; font-style: normal; font-size: 18px; line-height: 1; color: var(--ink); }
.bm-ia__ops { position: relative; margin-top: 34px; padding: 16px; border: 1px dashed var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.bm-ia__ops::before { content: "sees everything above"; position: absolute; top: -26px; left: 16px; font-family: "Caveat", "Bradley Hand", cursive; font-size: 19px; }
.bm-ia__ops small { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-left: 8px; }
.bm-ia__cap { margin: 18px 0 0; max-width: 40em; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 900px) {
  .bm-ia { margin-left: var(--pad); }
  .bm-ia__row { grid-template-columns: 1fr; }
  .bm-ia__arr { width: 1px; height: 46px; justify-self: start; margin-left: 28px; }
  .bm-ia__arr::after { right: auto; top: auto; left: -4px; bottom: 0; border: 4.5px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; }
  .bm-ia__arr em { left: 14px; right: auto; bottom: auto; top: 14px; white-space: nowrap; text-align: left; }
  .bm-ia__ops { flex-direction: column; }
}

/* 30 Nov 2026: OwnIt, how I design with AI */
.ai-how { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--g, 28px); max-width: 60em; }
.ai-how li { padding: 16px 0 0; border-top: 1px solid var(--ink); font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.ai-how b { display: block; margin-bottom: 8px; font-size: clamp(16px, 1.2vw, 19px); font-weight: 500; color: var(--ink); }
.ai-ba { margin-top: 34px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 18px; align-items: center; max-width: 60em; }
.ai-ba > div { padding: 18px; background: var(--tile); }
.ai-ba > div:last-child { background: #D7E8D2; }
.ai-ba p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }
.ai-ba > i { font-style: normal; font-size: 26px; }
@media (max-width: 760px) {
  .ai-how { grid-template-columns: 1fr; gap: 18px; }
  .ai-ba { grid-template-columns: 1fr; }
  .ai-ba > i { transform: rotate(90deg); justify-self: start; margin-left: 18px; }
}
