/*
 * txminstitute.com: additions on top of site.css (copied unchanged from jpgalido.com).
 * Same fonts, colours and parts as jpgalido.com. Only TXM Institute pieces live here.
 * No inline styles: the CSP is style-src 'self'.
 */

/* logo: TXM / INSTITUTE. */
.logo b i { color: var(--red); }

/* hero with the book */
.hero-txm { align-items: center; }
.hero-txm .copy { flex: 2 1 560px; min-width: 0; }
.hero-txm .book-hero { flex: 0 1 300px; display: flex; justify-content: center; }
.hero-txm .book-hero img { width: 100%; max-width: 280px; border: 2px solid var(--ink); border-radius: 3px; box-shadow: 10px 10px 0 var(--ink); transform: rotate(2deg); }
.hero-txm .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-txm .three { margin-top: 18px; font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }

/* the gap: strategy deck vs daily work */
.gap { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: stretch; }
.gap > li { flex: 1 1 260px; min-width: 0; padding: 24px; background: var(--card); border: 2px solid var(--ink); border-radius: 6px; }
.gap > li.mid { background: var(--amber); }
.gap .k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.gap .mid .k { color: var(--ink); }
.gap h3 { margin-top: 8px; font-weight: 900; font-stretch: 70%; font-size: clamp(26px, 2.6vw, 34px); line-height: 1; text-transform: uppercase; }
.gap p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

/* the cycle drawn as a loop */
.cycle-art { margin-top: 40px; padding: 18px; background: var(--card); border: 2px solid var(--ink); border-radius: 6px; }

/* course tracks */
.tracks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; counter-reset: tr; }
.tracks > li { counter-increment: tr; flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--card); border: 2px solid var(--ink); border-top: 6px solid var(--green); border-radius: 6px; }
.tracks > li::before { content: "0" counter(tr); font-weight: 900; font-stretch: 64%; font-size: 40px; line-height: 1; color: var(--green-text); }
.tracks .k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--green-text); }
.tracks h3 { font-weight: 800; font-size: 21px; }
.tracks p { font-size: 16px; color: var(--muted); }
.tracks .status-chip { margin-top: auto; align-self: flex-start; }

/* who it is for */
.for { margin-top: 28px; border-bottom: 1px solid var(--ink); }
.for li { display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--ink); }
.for b { flex: 0 1 380px; font-weight: 900; font-stretch: 70%; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; text-transform: uppercase; }
.for span { flex: 1 1 360px; font-family: var(--serif); font-size: 20px; color: var(--ink-2); }

/* author strip */

/* sign-up box (mailto only: no forms, no scripts) */
.notify { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; padding: clamp(24px, 4vw, 44px); background: var(--red-text); color: var(--paper); border: 2px solid var(--ink); border-radius: 8px; }
.notify .display { color: var(--paper); }
.notify p { margin-top: 10px; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 22px); color: var(--paper); max-width: 34em; }
.notify .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* mock banner: removed before launch */
.mock-note { padding: 10px var(--gutter); background: var(--note); border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; text-align: center; }

/* hero headline: "TRANSFORMATION" must fit a 375px phone */
.hero-txm h1.d-xxl { font-size: clamp(38px, 8.6vw, 148px); }

/* ================= curriculum (proposed) ================= */
/* Motion: every animation ends on the picture a reader sees with motion off.
   site.css turns all animation off under prefers-reduced-motion. */
@keyframes txm-draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes txm-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes txm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes txm-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes txm-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes txm-walk { 0%, 8% { transform: translate(0, 0); } 22%, 34% { transform: translate(0, 73px); } 48%, 60% { transform: translate(0, 191px); } 74%, 100% { transform: translate(0, 309px); } }
.art--sans { font-family: var(--display); }
.anim-draw { stroke-dasharray: 1400; animation: txm-draw 2.6s cubic-bezier(.4,0,.2,1) both; }
.anim-pop { transform-box: fill-box; transform-origin: center; animation: txm-pop .5s cubic-bezier(.2,.8,.2,1) both; }
.anim-rise { animation: txm-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.anim-bar { transform-box: fill-box; transform-origin: left center; animation: txm-grow-x 1s cubic-bezier(.2,.8,.2,1) both; }
.anim-walk { animation: txm-walk 5s ease-in-out infinite; }
.d1 { animation-delay: .3s; } .d2 { animation-delay: .55s; } .d3 { animation-delay: .8s; } .d4 { animation-delay: 1.05s; } .d5 { animation-delay: 1.3s; }
.d6 { animation-delay: 1.55s; } .d7 { animation-delay: 1.8s; } .d8 { animation-delay: 2.05s; } .d9 { animation-delay: 2.3s; } .d10 { animation-delay: 2.55s; }

.proposed { display: inline-block; margin-top: 18px; padding: 6px 12px; border: 2px dashed var(--brown); border-radius: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--brown); }
.wide-art { margin-top: 36px; padding: clamp(10px, 2vw, 22px); background: var(--card); border: 2px solid var(--ink); border-radius: 6px; overflow-x: auto; }
.wide-art .art { min-width: 640px; }
.wide-art figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* module list */
.modules { margin-top: 32px; border-bottom: 2px solid var(--ink); }
.modules > li { display: flex; flex-wrap: wrap; gap: 10px 36px; padding: 24px 0; border-top: 2px solid var(--ink); }
.modules .m { flex: 0 0 110px; font-weight: 900; font-stretch: 64%; font-size: 52px; line-height: .9; color: var(--red-text); }
.modules .m small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.modules .body { flex: 1 1 360px; min-width: 0; }
.modules h3 { font-weight: 900; font-stretch: 70%; font-size: clamp(26px, 2.8vw, 34px); line-height: 1; text-transform: uppercase; }
.modules .q { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); }
.modules .ls { margin-top: 10px; font-size: 15px; color: var(--muted); }
.modules .out { flex: 0 1 300px; min-width: 0; padding: 14px 16px; background: var(--card); border: 2px solid var(--ink); border-radius: 6px; font-size: 15px; }
.modules .out b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); }
.modules a { color: var(--red-text); font-weight: 800; }
.stage-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--ink); background: var(--card); }
.stage-tag.e1 { background: #E8EEF9; } .stage-tag.e2 { background: var(--note); } .stage-tag.e3 { background: #D6EFD9; }

/* lesson anatomy: watch, see, try, check */
.anatomy { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.anatomy > li { flex: 1 1 200px; min-width: 0; padding: 22px; background: var(--card); border: 2px solid var(--ink); border-radius: 6px; }
.anatomy .t { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }
.anatomy h3 { margin-top: 6px; font-weight: 900; font-stretch: 70%; font-size: 30px; line-height: 1; text-transform: uppercase; }
.anatomy p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.band--ink .anatomy > li { background: #2A2622; border-color: var(--ink-line); }
.band--ink .anatomy p { color: var(--ink-soft); }
.band--ink .anatomy .t { color: var(--amber); }

/* certification ladder */
.ladder { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: flex-end; }
.ladder > li { flex: 1 1 260px; min-width: 0; padding: 24px; background: var(--card); border: 2px solid var(--ink); border-radius: 6px; }
.ladder > li:nth-child(2) { border-top: 8px solid var(--red); }
.ladder > li:nth-child(3) { border-style: dashed; }
.ladder .k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); }
.ladder h3 { margin-top: 6px; font-weight: 900; font-stretch: 70%; font-size: clamp(28px, 2.8vw, 36px); line-height: 1; text-transform: uppercase; }
.ladder ul { margin-top: 12px; padding-left: 18px; }
.ladder li li { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* module page: lesson rail and the open lesson */
.lesson-rail { margin-top: 28px; counter-reset: ls; }
.lesson-rail > li { counter-increment: ls; display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--ink); }
.lesson-rail > li:last-child { border-bottom: 1px solid var(--ink); }
.lesson-rail > li::before { content: "1." counter(ls); flex: 0 0 52px; font-weight: 900; font-stretch: 64%; font-size: 30px; color: var(--red-text); }
.lesson-rail b { flex: 1 1 280px; font-weight: 800; font-size: 19px; }
.lesson-rail span { flex: 1 1 320px; font-family: var(--serif); font-size: 18px; color: var(--ink-2); }
.lesson-rail .open { background: var(--note); }
.lesson-rail .now { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--red-text); }
.keyidea { margin-top: 28px; padding: 22px 24px; border-left: 8px solid var(--red); background: var(--card); border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); border-radius: 0 6px 6px 0; font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: clamp(26px, 3vw, 38px); line-height: 1.02; text-transform: uppercase; }
.quiz { margin-top: 24px; border-top: 2px solid var(--ink); }
.quiz details { border-bottom: 2px solid var(--ink); }
.quiz summary { display: flex; gap: 14px; align-items: baseline; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 1.8vw, 22px); }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary::after { content: "Show answer +"; margin-left: auto; flex: 0 0 auto; font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--red-text); }
.quiz details[open] summary::after { content: "Hide −"; }
.quiz .a { padding: 0 0 18px; font-size: 17px; color: var(--ink-2); }
.quiz .a b { color: var(--green-text); }
.try { margin-top: 28px; padding: 24px; background: var(--amber); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink); }
.try .k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.try p { margin-top: 8px; font-family: var(--serif); font-size: 20px; }

/* learning journey */
ol.journey-tl { position: relative; margin-top: 36px; padding-left: 46px; }
.journey-tl::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 4px; background: var(--rule); }
.journey-tl::after { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 4px; background: var(--red); transform-origin: top; animation: txm-grow-y 3.5s cubic-bezier(.4,0,.2,1) .2s both; }
.journey-tl > li { position: relative; padding: 0 0 30px; }
.journey-tl > li::before { content: ""; position: absolute; left: -39px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); z-index: 1; }
.journey-tl > li.goal::before { background: var(--red); }
.journey-tl .when { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }
.journey-tl h3 { margin-top: 4px; font-weight: 900; font-stretch: 70%; font-size: clamp(24px, 2.6vw, 32px); line-height: 1; text-transform: uppercase; }
.journey-tl .row-j { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 10px; }
.journey-tl .row-j > p { flex: 1 1 240px; min-width: 0; font-size: 16px; color: var(--ink-2); }
.journey-tl .row-j b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.persona { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: center; margin-top: 28px; padding: 24px; background: var(--card); border: 2px solid var(--ink); border-radius: 6px; }
.persona .av { flex: 0 0 84px; height: 84px; border-radius: 50%; background: var(--amber); border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 900; font-stretch: 70%; font-size: 34px; }
.persona > div { flex: 1 1 360px; min-width: 0; }
.persona h3 { font-weight: 900; font-stretch: 70%; font-size: 30px; text-transform: uppercase; }
.persona p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

/* human in the lead: four outcomes */
.lead4 { margin-top: 20px; border-bottom: 1px solid var(--ink); counter-reset: l4; }
.lead4 li { counter-increment: l4; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--ink); }
.lead4 li::before { content: "0" counter(l4); grid-row: span 2; font-weight: 900; font-stretch: 64%; font-size: 30px; line-height: 1; color: var(--red-text); }
.lead4 b { font-weight: 900; font-stretch: 70%; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.05; text-transform: uppercase; }
.lead4 span { margin-top: 4px; font-family: var(--serif); font-size: 18px; color: var(--ink-2); }
.lead4 .mods { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--green-text); }
.lead4 .mods { display: block; margin-top: 4px; font-style: normal; }
