/* ezrajacksonbailey.com shared styles (2026-10-28 launch makeover).
   Tokens mirror the "Ezra Jackson Bailey" Design System. Motion rules ported from Troveman's global.css. */
:root {
  --bg: #0f1115; --bg-2: #14171d; --bg-3: #1b1f27;
  --ink: #e8e8ea; --ink-2: #b6b9c2; --muted: #9a9ea8;
  --line: #2a2e38; --line-2: #353a46;
  --accent: #d4a574; --accent-hot: #e9b97f; --accent-ink: #1a1206;
  --green: #7db58b; --white: #ffffff; --paper: #f6f3ee;
  /* Troveman palette, used only inside .tv bands (the client's brand, not ours) */
  --tv-bone: #fafaf9; --tv-sand: #ebe8e5; --tv-stone: #998d80; --tv-plum: #463a3c; --tv-slate: #66717a;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 5rem; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hot); }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, blockquote, figcaption, dd { text-wrap: pretty; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- HDR white (unchanged from the live site; delete this block to kill it) ---------- */
.hdr-ink { color: var(--white); }
@media (dynamic-range: high) and (forced-colors: none) {
  @supports (dynamic-range-limit: no-limit) {
    :root { --hdr-white: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAIAAADAAbR1AAAABGNJQ1AJEAABTSMj/gAAAAhjTExJAFuNgABbjYA/mg9jAAAAHElEQVR42mPY5EBbyDBqwagFoxaMWjBqwVCwAADiB9YfdnTMcAAAAABJRU5ErkJggg=="); }
    .hdr-ink { background-image: var(--hdr-white); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; dynamic-range-limit: no-limit; }
    .btn-white { background-image: var(--hdr-white); background-size: 100% 100%; dynamic-range-limit: no-limit; }
  }
}

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.label { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.1; }
.serif em, h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
h2.serif { font-size: clamp(2rem, 4vw, 3.1rem); margin: .7rem 0 1.1rem; max-width: 22ch; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 58ch; margin: 0; }

/* ---------- buttons + pills ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px; font-family: var(--sans); font-weight: 500; font-size: .98rem; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease, color .15s ease; white-space: nowrap; cursor: pointer; }
.btn .arrow { font-family: var(--mono); transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-white { background-color: var(--paper); color: #0f1115; font-weight: 600; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.btn-white:hover { color: #0f1115; transform: translateY(-2px); }
/* The glow: one button per screen (hero CTA, form submit). */
.btn-glow { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 40px -8px rgba(255,255,255,.22); }
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 16px 50px -8px rgba(255,255,255,.32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-lg { padding: 1.05rem 1.75rem; font-size: 1.06rem; }
.btn-sm { padding: .5rem 1rem; font-size: .86rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(125,181,139,.18); }
.dot.booked { background: var(--accent); box-shadow: 0 0 0 3px rgba(212,165,116,.18); }
.link-arrow { font-weight: 500; }
.link-arrow .arrow { font-family: var(--mono); display: inline-block; transition: transform .15s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- referral strip (visitors from troveman.com; shown by ejb.js) ---------- */
.ref-strip { display: none; background: var(--tv-sand); color: var(--tv-plum); }
.ref-strip.on { display: block; }
.ref-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; font-size: .95rem; }
.ref-strip strong { font-weight: 600; }
.ref-strip a { background: var(--tv-plum); color: var(--tv-bone); padding: .5rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.ref-strip a:hover { color: var(--tv-bone); background: #5a4a4d; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); padding: .8rem 0; background: rgba(15,17,21,.78); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar .home { font-weight: 500; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.topbar .home span { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: .85rem; }
.topnav { display: flex; gap: 1.4rem; margin-right: .6rem; }
.topnav a { color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.topnav a:hover, .topnav a[aria-current] { color: var(--ink); }
@media (max-width: 860px) { .topbar .pill { display: none; } }
@media (max-width: 600px) { .topnav { display: none; } }

/* ---------- sections ---------- */
section.block { padding: 7rem 0; border-bottom: 1px solid var(--line); }
section.block.alt { background: var(--bg-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem 3rem; flex-wrap: wrap; }
.section-head .lede { max-width: 44ch; }
@media (max-width: 820px) { section.block { padding: 4.5rem 0; } }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(900px 520px at 85% -10%, rgba(212,165,116,.12), transparent 65%), radial-gradient(700px 420px at 0% 110%, rgba(125,181,139,.05), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; min-height: min(86vh, 820px); }
.hero-text { padding: 5rem 0; }
.hero-me { display: flex; align-items: center; gap: .9rem; }
.hero-me img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
h1.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.028em; margin: 1.4rem 0 1.4rem; max-width: 15ch; }
.hero-sub { color: var(--ink-2); font-size: 1.15rem; max-width: 46ch; margin: 0 0 2.1rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; }
.cta-alt { color: var(--ink-2); font-size: .95rem; }
.cta-alt a { color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.cta-alt a:hover { color: var(--accent); border-color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-meta dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.hero-meta dd { margin: 0; font-size: .95rem; }

/* The wall of work: two columns of real phone screenshots drifting at different speeds */
.wall { position: relative; height: min(86vh, 820px); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; transform: rotate(-4deg) translateX(4%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.wall-col { display: flex; flex-direction: column; gap: 1.1rem; animation: wall-up 60s linear infinite; }
.wall-col.down { animation-name: wall-down; animation-duration: 70s; margin-top: -40%; }
.wall:hover .wall-col { animation-play-state: paused; }
.phone { display: block; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-3); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); aspect-ratio: 390 / 844; position: relative; transition: transform .25s ease, border-color .25s ease; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone:hover { transform: translateY(-4px) scale(1.02); border-color: var(--accent); }
.phone .tag { position: absolute; left: .7rem; bottom: .7rem; background: rgba(15,17,21,.82); color: var(--ink); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-text { padding: 2.6rem 0 2rem; }
  .wall { height: auto; display: block; transform: none; margin: 0 -1.5rem 2.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .wall-col { flex-direction: row; width: max-content; animation: wall-left 48s linear infinite; }
  .wall-col.down { display: none; }
  .wall .phone { width: 150px; border-radius: 18px; flex: none; }
  .phone .tag { font-size: .55rem; }
}
@keyframes wall-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-col, .wall-col.down { animation: none; } }

/* ---------- Troveman band: a page within the page, in the client's palette ---------- */
.tv { background: var(--tv-sand); color: var(--tv-plum); position: relative; overflow: hidden; }
.tv .eyebrow { color: var(--tv-slate); }
.tv h2, .tv h3 { color: var(--tv-plum); }
.tv h2 em { color: var(--tv-stone); }
.tv p { color: #5b4f51; }
.tv a { color: var(--tv-plum); }
.tv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; align-items: center; padding-top: 7rem; padding-bottom: 7rem; }
.tv-photo { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(70,58,60,.55); }
.tv-photo img { width: 100%; height: 100%; object-fit: cover; }
.tv-mat { background: var(--tv-bone); padding: 2.2rem; border-radius: 4px; box-shadow: 0 30px 70px -35px rgba(70,58,60,.55); }
.tv-wordmark { width: 200px; height: auto; margin-bottom: 1.6rem; }
.tv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #d9d4cf; border: 1px solid #d9d4cf; border-radius: 12px; overflow: hidden; margin: 2rem 0; }
.tv-facts div { background: var(--tv-bone); padding: 1rem 1.1rem; }
.tv-facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; color: var(--tv-plum); }
.tv-facts span { font-size: .8rem; color: var(--tv-slate); }
.btn-plum { background: var(--tv-plum); color: var(--tv-bone) !important; }
.btn-plum:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(70,58,60,.7); }
.btn-plum-ghost { border-color: var(--tv-stone); color: var(--tv-plum); }
.btn-plum-ghost:hover { border-color: var(--tv-plum); transform: translateY(-1px); }
@media (max-width: 900px) { .tv-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 4.5rem; padding-bottom: 4.5rem; } .tv-wordmark { width: 150px; } .tv-mat { padding: 1.2rem; } .tv-facts b { font-size: 1.35rem; } }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.work-card { display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: inherit; transition: border-color .2s ease, transform .2s ease; }
a.work-card:hover { border-color: var(--accent); transform: translateY(-3px); color: inherit; }
.work-card .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.work-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a.work-card:hover .shot img { transform: scale(1.035); }
.work-card .text { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.work-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: .45rem 0 .5rem; }
.work-card p { color: var(--ink-2); font-size: .95rem; margin: 0 0 1rem; }
.work-card .go { margin-top: auto; color: var(--accent); font-size: .9rem; font-weight: 500; }
.work-card.wide { grid-column: span 2; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } .work-card.wide { grid-column: auto; } }

/* ---------- principles + services ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4rem; }
.why-grid .lede + .lede { margin-top: 1rem; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.principles h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: .5rem 0 .4rem; }
.principles p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.num { font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; }
.svc { margin-top: 3rem; border-top: 1px solid var(--line-2); }
.svc-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.5rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); align-items: center; transition: background .2s ease; }
.svc-row h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 0; }
.svc-row p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .why-grid, .principles { grid-template-columns: 1fr; gap: 1.5rem; } .svc-row { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; padding: 1.9rem 1.75rem; }
.plan.featured { border-color: rgba(212,165,116,.55); background: linear-gradient(180deg, #221f1b, var(--bg-3) 60%); box-shadow: 0 30px 80px -40px rgba(212,165,116,.35); }
.plan-tag { position: absolute; top: -.75rem; left: 1.5rem; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; margin: .5rem 0 .9rem; }
.plan-price { font-family: var(--serif); font-size: 2.1rem; letter-spacing: -.02em; line-height: 1.1; }
.plan-price small { font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.plan-note { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin: .35rem 0 1.1rem; }
.plan-desc { color: var(--ink-2); font-size: .96rem; margin: 0 0 1.2rem; }
.plan-price + .plan-desc { margin-top: 1.1rem; }
.plan ul { list-style: none; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); flex-grow: 1; }
.plan li { position: relative; padding-left: 1.1rem; color: var(--ink-2); font-size: .92rem; margin-bottom: .55rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: 1px; background: var(--accent); }
.plan-fit { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.plan-fit strong { color: var(--ink-2); font-weight: 500; }
.door { margin-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; border: 1px dashed var(--line-2); border-radius: 18px; padding: 1.4rem 1.75rem; color: var(--ink-2); }
.door strong { color: var(--ink); font-weight: 500; }
.fine { color: var(--muted); font-size: .8rem; margin-top: 1rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- creator door (one quiet line on the homepage) ---------- */
.creator-line { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.creator-line .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.creator-line p { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--ink-2); }

/* ---------- closer + waitlist ---------- */
.closer { padding: 8rem 0 6rem; text-align: center; background: radial-gradient(700px 360px at 50% 0%, rgba(212,165,116,.09), transparent 70%); }
.closer h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.04; letter-spacing: -.025em; margin: .8rem auto 1.1rem; max-width: 16ch; }
.closer .lede { margin: 0 auto 2.2rem; }
.wl { display: flex; gap: .6rem; max-width: 520px; margin: 0 auto; }
.wl input { flex: 1; min-width: 0; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 999px; padding: .95rem 1.2rem; font: inherit; font-size: 16px; color: var(--ink); }
.wl input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-name { max-width: 34%; }
.wl-msg { min-height: 1.5em; margin-top: .9rem; color: var(--green); font-size: .92rem; }
.wl-msg.err { color: var(--accent); }
.contact-row { margin-top: 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .92rem; }
.contact-row a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.contact-row a:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn { display: none; padding: .2rem .6rem; background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-family: var(--mono); font-size: .7rem; cursor: pointer; }
.has-clipboard .copy-btn { display: inline-block; }
.copy-btn.copied { border-color: var(--green); color: var(--green); }
.bio { max-width: 60ch; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; display: flex; gap: 1.2rem; align-items: center; text-align: left; }
.bio img { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; flex: none; }
.bio strong { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .wl { flex-direction: column; } .wl-name { max-width: none; } .bio { flex-direction: column; text-align: center; } }

footer.foot { padding: 2.5rem 0; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
footer.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer.foot a { color: var(--muted); } footer.foot a:hover { color: var(--accent); }

/* ---------- case study + courses pages ---------- */
.page-hero { padding: 6rem 0 4rem; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.0; letter-spacing: -.03em; margin: 1rem 0 1.4rem; max-width: 16ch; }
.steps { display: grid; gap: 0; margin-top: 3rem; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: center; padding: 3.5rem 0; border-top: 1px solid var(--line); }
.step:nth-child(even) .step-media { order: -1; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; margin: .6rem 0 .8rem; }
.step p { color: var(--ink-2); margin: 0 0 .8rem; max-width: 46ch; }
.step-media { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 3 / 2; background: var(--bg-3); box-shadow: 0 40px 80px -40px rgba(0,0,0,.85); }
.step-media img, .step-media video { width: 100%; height: 100%; object-fit: cover; }
.step-media.type { display: flex; flex-direction: column; justify-content: center; padding: 2.2rem; gap: .7rem; font-family: var(--mono); font-size: .82rem; color: var(--ink-2); }
.step-media.type div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line-2); padding-bottom: .55rem; gap: 1rem; }
.step-media.type b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.5rem 0; } .step:nth-child(even) .step-media { order: 0; } }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; max-width: 30ch; margin: 0; }
.quote-slot { border: 1px dashed var(--line-2); border-radius: 18px; padding: 2.5rem; color: var(--muted); }
.built { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 2.5rem; }
.built div { background: var(--bg-2); padding: 1.5rem; }
.built h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0 0 .35rem; }
.built p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .built { grid-template-columns: 1fr; } }
.ask { display: grid; gap: .8rem; max-width: 560px; margin: 2rem auto 0; text-align: left; }
.ask label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ask input, .ask textarea { background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 14px; padding: .95rem 1.1rem; font: inherit; font-size: 16px; color: var(--ink); }
.ask textarea { min-height: 7rem; resize: vertical; }
.ask input:focus, .ask textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }

/* ---------- motion (ported from Troveman, 2026-10-22/28) ---------- */
.motion-ready [data-motion] { opacity: 0; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.motion-ready [data-motion="rise"] { transform: translateY(22px); }
.motion-ready [data-motion="settle"] { transform: translateY(10px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.motion-ready [data-motion].in { opacity: 1; transform: none; }
.motion-ready [data-stagger] > :not([data-motion]) { opacity: 0; }
[data-parallax] { will-change: transform; }
@keyframes px { from { transform: translate3d(0, -6.5%, 0) scale(1.14); } to { transform: translate3d(0, 6.5%, 0) scale(1.14); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .px-frame { view-timeline: --ejb-px block; }
    [data-parallax] { animation: px linear both; animation-timeline: --ejb-px; animation-range: cover; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-motion] { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-parallax] { transform: none !important; animation: none !important; }
}
.wall-wrap { min-width: 0; }

/* ---------- 2026-10-28 round 3 ---------- */
.tv-video { aspect-ratio: 16 / 9; border-radius: 4px; }
.tv-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-caption { margin-top: .9rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tv-slate); text-align: center; }
.tv .tv-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .tv .tv-grid { grid-template-columns: 1fr; } }

/* Shuffling deck: three counseling sites stacked; ejb.js rotates the top card */
.deck { position: relative; overflow: visible; background: linear-gradient(180deg, #161a21, var(--bg-3)); }
.work-card .deck img { position: absolute; left: 7%; top: 9%; width: 86%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px rgba(0,0,0,.85);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s ease, z-index 0s .35s; }
.work-card .deck img.p0 { transform: translate(0, 6%) rotate(0deg); z-index: 3; }
.work-card .deck img.p1 { transform: translate(4%, -2%) rotate(2.5deg) scale(.95); z-index: 2; opacity: .85; }
.work-card .deck img.p2 { transform: translate(-4%, -8%) rotate(-2.5deg) scale(.9); z-index: 1; opacity: .6; }
.work-card:hover .deck img { transform: none; }
.work-card:hover .deck img.p0 { transform: translate(0, 6%) scale(1.02); }
.work-card:hover .deck img.p1 { transform: translate(6%, -3%) rotate(4deg) scale(.95); }
.work-card:hover .deck img.p2 { transform: translate(-6%, -9%) rotate(-4deg) scale(.9); }
@media (prefers-reduced-motion: reduce) { .deck img { transition: none; } }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.tile { background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; overflow: hidden; position: relative; display: flex; flex-direction: column; gap: .6rem; }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; margin: 0; }
.tile p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.t-web { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 1.5rem; padding-bottom: 0; }
.t-web .tile-text { display: flex; flex-direction: column; gap: .6rem; padding-bottom: 1.8rem; justify-content: center; }
.t-search, .t-nurture, .t-brand, .t-ops { grid-column: span 2; }
.phones2 { position: relative; min-height: 280px; margin-top: 1.8rem; }
.phones2 img { position: absolute; width: 46%; border-radius: 16px 16px 0 0; border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); }
.phones2 img:first-child { left: 6%; bottom: 0; height: 100%; object-fit: cover; object-position: top; }
.phones2 img:last-child { right: 4%; bottom: 0; height: 84%; object-fit: cover; object-position: top; }
.serp { background: var(--paper); color: #202124; border-radius: 12px; padding: .9rem 1rem; margin: .4rem 0 .3rem; font-family: Arial, Helvetica, sans-serif; }
.serp-url { font-size: .72rem; color: #4d5156; }
.serp-title { font-size: 1rem; color: #1a0dab; margin: .2rem 0 .45rem; line-height: 1.3; }
.serp-chip { display: inline-block; font-size: .7rem; background: #eef1f7; color: #3c4043; border-radius: 999px; padding: .15rem .55rem; }
.flow { list-style: none; margin: .4rem 0 .3rem; padding: 0 0 0 1rem; border-left: 1px solid var(--line-2); display: grid; gap: .55rem; }
.flow li { position: relative; font-size: .88rem; color: var(--ink); }
.flow li::before { content: ""; position: absolute; left: -1.33rem; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(212,165,116,.18); }
.flow b { font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .1em; color: var(--muted); margin-right: .5rem; text-transform: uppercase; }
.t-brand { padding-top: 0; }
.tile-media { margin: 0 -1.8rem .6rem; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--line); }
.tile-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .4rem 0 .3rem; }
.chips span { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; padding: .4rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); background: var(--bg-2); }
.chips i { font-style: normal; color: var(--accent); font-family: var(--mono); font-size: .8rem; }
.tile:hover { border-color: var(--line-2); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .t-web, .t-search, .t-nurture, .t-brand, .t-ops { grid-column: auto; } .t-web { grid-template-columns: 1fr; } .phones2 { min-height: 230px; } }

.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .plans.two { grid-template-columns: 1fr; } }
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ask-row > div { display: grid; gap: .8rem; }
@media (max-width: 560px) { .ask-row { grid-template-columns: 1fr; } }

/* ---------- 2026-10-28 round 4 ---------- */
/* Now building strip */
.now { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.now .wrap { display: flex; align-items: center; gap: .6rem 1.5rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
.now .label { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-2); white-space: nowrap; }
.now .dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(125,181,139,.18); } 50% { box-shadow: 0 0 0 6px rgba(125,181,139,.05); } }
.now-items { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font-size: .92rem; color: var(--ink-2); }
.now-items a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.now-items a:hover { color: var(--accent); border-color: var(--accent); }
.now-items i { font-style: normal; color: var(--muted); }
@media (max-width: 600px) { .now-items i { display: none; } .now-items { flex-direction: column; gap: .2rem; } }
@media (prefers-reduced-motion: reduce) { .now .dot { animation: none; } }

/* Client palette swatches (Brand tile, pre-launch) */
.swatches { display: grid; gap: .55rem; margin: 1.6rem 0 .6rem; }
.swatches div { display: flex; align-items: center; gap: .35rem; }
.swatches span { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); }
.swatches em { font-style: normal; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: .5rem; }

/* Phones: principles show titles only */
@media (max-width: 600px) { .principles p { display: none; } .principles { gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; } .principles h3 { margin: .2rem 0 0; } }

/* Footer signature */
.sig-wrap { display: block !important; padding-bottom: 1.5rem; }
footer.foot a.sig, .sig { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 11vw, 9.5rem); line-height: .95; letter-spacing: -.04em; color: var(--ink); opacity: .9; }
.sig em { font-style: italic; color: var(--accent); }
footer.foot a.sig:hover { color: var(--ink); opacity: 1; }
footer.foot { padding-top: 4rem; }

/* ---------- round 5 ---------- */
.work-card .shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Counseling card link tree: on hover/focus (desktop) the three sites fan out; on touch they're always shown */
.site-links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.site-links a { font-size: .78rem; font-weight: 500; color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .7rem; background: var(--bg-2); transition: opacity .25s ease, transform .25s ease, border-color .15s ease, color .15s ease; }
.site-links a:hover { border-color: var(--accent); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .site-links a { opacity: 0; transform: translateY(6px); pointer-events: none; }
  .has-links:hover .site-links a, .has-links:focus-within .site-links a { opacity: 1; transform: none; pointer-events: auto; }
  .has-links:hover .site-links a:nth-of-type(2), .has-links:focus-within .site-links a:nth-of-type(2) { transition-delay: .05s; }
  .has-links:hover .site-links a:nth-of-type(3), .has-links:focus-within .site-links a:nth-of-type(3) { transition-delay: .1s; }
  .has-links:hover .site-links .go, .has-links:focus-within .site-links .go { display: none; }
}
@media not ((hover: hover) and (pointer: fine)) { .site-links .go { display: none; } }
.has-links { cursor: default; }
.has-links:hover { border-color: var(--line-2); }

/* ---------- round 6 ---------- */
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .plans.three { grid-template-columns: 1fr; } }
.plan-cta { margin-top: 1.4rem; justify-content: center; }
.plan ul { flex-grow: 1; }
/* Troveman band: a lesson on a phone in front of a matted print */
.tv-stage { position: relative; min-height: 560px; }
.tv-stage .tv-print { position: absolute; right: 0; top: 0; width: 64%; padding: 1.6rem; }
.tv-stage .tv-print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.tv-phone { position: absolute; left: 4%; bottom: 0; width: 46%; max-width: 280px; aspect-ratio: 390 / 844; border-radius: 34px; overflow: hidden; border: 6px solid #2a2324; background: var(--tv-bone); box-shadow: 0 40px 80px -30px rgba(70,58,60,.7); transform: rotate(-3deg); }
.tv-phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 900px) { .tv-stage { min-height: 520px; } .tv-stage .tv-print { width: 70%; padding: 1rem; } .tv-phone { width: 52%; } }
.tv-cred { margin: 1.1rem 0 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-slate) !important; line-height: 1.7; }

/* 2026-10-28 (Ezra): show the heirloom whole, at print proportions (the image is the matted print itself). */
.tv-stage .tv-print { position: absolute; right: 0; top: 0; width: 74%; padding: 0; background: none; box-shadow: none; }
.tv-stage .tv-print img { width: 100%; height: auto; aspect-ratio: 900 / 1125; object-fit: contain; border-radius: 2px; box-shadow: 0 40px 80px -36px rgba(70,58,60,.55); }
.tv-stage { min-height: 600px; }
.tv-phone { width: 40%; max-width: 250px; left: 0; }
@media (max-width: 900px) { .tv-stage { min-height: 0; aspect-ratio: 1 / 1.05; } .tv-stage .tv-print { width: 78%; } .tv-phone { width: 44%; } }
.tv-stage .tv-print { width: 68%; }
.tv-phone { width: 36%; max-width: 230px; }
@media (max-width: 900px) { .tv-stage .tv-print { width: 72%; } .tv-phone { width: 38%; bottom: -4%; } }

/* mobile pass 10-28 */
.tv-cred + .btn, .tv-cred + .cta-row { margin-top: 1.4rem; }
footer.foot a[href^="tel:"], .contact-row a[href^="sms:"], .cta-alt a { white-space: nowrap; }

.tv .tv-cred { margin-bottom: 1.6rem; }
.tv .tv-cred + .btn, .tv .tv-cred + .cta-row { margin-top: 0; }

/* ---------- client quotes (2026-10-31): credit as "First L. · role, city" ---------- */
.card-quote, .plan-quote { margin: 0 0 1.2rem; }
.card-quote blockquote, .plan-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.04rem; line-height: 1.45; color: var(--ink); }
.card-quote figcaption, .plan-quote figcaption { margin-top: .5rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-quote { margin: 1.3rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.plan-quote + .plan-cta { margin-top: 1.3rem; }
