@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..600&family=Instrument+Sans:wght@400;500&display=swap");
/* ===== shared section head ===== */
.shead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-5); align-items: end; }
.shead__main { grid-column: span 8; display: flex; flex-direction: column; gap: var(--s-5); }
.shead__h { font-family: var(--serif); font-size: var(--t-section); line-height: 1.08; letter-spacing: -0.025em; }
.shead__h em { color: inherit; }
.shead__aside { grid-column: 9 / span 4; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }
@media (max-width: 60rem) { .shead__main, .shead__aside { grid-column: 1 / -1; } }

/* ===== 1 · hero: a doorway drawn in code ===== */
.gx { position: relative; height: 190vh; background: var(--paper); }
.gx__pin { position: sticky; top: var(--hd-h); height: calc(100svh - var(--hd-h)); overflow: hidden; display: grid; align-items: center; }
.gx__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* stepping through: the light closes to the dark of the next room */
.gx__pin::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--paper); pointer-events: none; opacity: calc((var(--gp, 0) - .72) * 4); }
.gx .btn--line { background: rgba(5, 4, 7, .7); }
.gx__in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s-5); padding-block: var(--s-8);
  transform: translateY(calc(var(--gp, 0) * -80px)); opacity: calc(1 - var(--gp, 0) * 2.6); }
.gx__kick { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.gx__h { font-family: var(--serif); font-weight: 400; font-size: clamp(2.75rem, 4.6vw + 1rem, 6rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 11ch; }
.gx__lead { color: var(--ink-2); font-size: 1.125rem; line-height: 1.6; max-width: 30rem; }
.gx__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2); }
.gx__cue { position: absolute; left: var(--gutter); bottom: var(--s-6); z-index: 1; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); opacity: calc(1 - var(--gp, 0) * 8); }
.gx__cue i { width: 1px; height: 24px; background: linear-gradient(var(--muted), transparent); }
/* the words keep clear of the doorway light */
.gx__in::before { content: ""; position: absolute; inset: -10% auto -10% calc(var(--gutter) * -1); width: min(760px, 70vw); z-index: -1; background: radial-gradient(closest-side, rgba(5, 4, 7, .78), rgba(5, 4, 7, 0)); pointer-events: none; }
@media (max-width: 60rem) {
  .gx { height: 170vh; }
  .gx__pin { align-items: start; }
  .gx__in { padding-top: var(--s-7); }
  .gx__in::before { width: 120vw; }
}
@media (max-width: 40rem) {
  .gx__h { font-size: 2.75rem; }
  .gx__lead { font-size: 1.0625rem; }
  .gx__ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .gx { height: auto; } .gx__pin { position: relative; top: auto; height: calc(100svh - var(--hd-h)); } }

/* ===== 1 · hero: live build =====
   Base styles are the finished state (no JS, reduced motion). With .lb--run, build.js stages it:
   write (code types) → wireframe → style (per component, on scroll) → live (counters) → ship (suite). */
.lb { --bp: #79B4C4; --kn-cream: #F4EEE8; --kn-ink: #24171A; --kn-mut: #6E5E60; --kn-wine: #6E1F3B; --kn-cop: #A8794F;
  position: relative; border-bottom: 1px solid var(--rule); }
.lb--run { height: 300vh; }
.lb__pin { position: relative; }
.lb--run .lb__pin { position: sticky; top: var(--hd-h); height: calc(100svh - var(--hd-h)); overflow: hidden; display: grid; align-items: center; }
.lb__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-8); align-items: center; padding-block: var(--s-7); }
.lb__copy { display: flex; flex-direction: column; gap: var(--s-5); }
.lb__kick { font-size: .875rem; color: var(--muted); }
.lb__h { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 2.4vw + 1rem, 3.375rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 13ch; }
.lb__lead { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 34rem; }
.lb__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2); }

/* the build rail: five steps, the current one lit */
.lb__rail { position: relative; display: flex; gap: var(--s-5); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted-2); }
.lb__rail::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: calc(var(--p, 1) * 100%); background: var(--ink-2); }
.lb__rail li { display: flex; gap: 6px; transition: color var(--dur) var(--ease-out); }
.lb__rail span { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.lb__rail li.is-done { color: var(--ink-2); }
.lb__rail li.is-on { color: var(--ink); }
.lb__rail li.is-on span { color: var(--wine-text); }
.lb__hint { display: none; align-items: center; gap: 10px; font-size: .8125rem; color: var(--muted); transition: opacity .3s var(--ease-out); }
.lb--run .lb__hint { display: inline-flex; }
.lb__hint i { width: 1px; height: 22px; background: linear-gradient(var(--muted), transparent); }
.lb.is-moving .lb__hint { opacity: 0; }

/* the bench: editor, app, and the two products that ship beside it */
.lb__bench { position: relative; height: clamp(460px, 64vh, 620px); transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.lb__bench > * { transition: transform .7s var(--ease-out), opacity .5s var(--ease-out); }
.lb__tabs i, .lb__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 242, 247, .14); }

/* editor */
.lb__ed { position: absolute; left: 0; top: 2%; width: 66%; z-index: 1; border-radius: 14px; background: #0C0A0E; border: 1px solid rgba(244, 242, 247, .08); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); overflow: hidden; }
.lb__tabs { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-bottom: 1px solid rgba(244, 242, 247, .06); }
.lb__tab { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding: 4px 10px; border-radius: 6px; background: rgba(244, 242, 247, .05); }
.lb__replay { margin-left: auto; border: 0; background: none; padding: 4px 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); border-radius: 6px; opacity: 0; transition: opacity var(--dur), color var(--dur), background var(--dur); }
.lb--run.is-typed .lb__replay { opacity: 1; }
.lb__replay:hover { color: var(--ink); background: rgba(244, 242, 247, .06); }
.lb__code { margin: 0; white-space: normal; padding: 14px 0 12px; font-family: var(--mono); font-size: 12px; line-height: 1.75; color: #B9B5C6; counter-reset: ln; overflow: hidden; }
.lb__code .ln { display: block; position: relative; padding: 0 16px 0 44px; white-space: pre; overflow: hidden; transition: background .25s var(--ease-out); }
.lb__code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 30px; text-align: right; color: #4E4A5A; }
.lb--run .lb__code .ln > * , .lb--run .lb__code .ln { }
.lb__code b { font-weight: 400; }
.lb__code .k { color: #E9849C; } .lb__code .g { color: #E2BE96; } .lb__code .a { color: #9FA6C9; } .lb__code .s { color: #A9CF9A; } .lb__code .f { color: #F4F2F7; }
.lb__code .ln.is-hot { background: rgba(226, 190, 150, .08); box-shadow: inset 2px 0 0 #E2BE96; }
/* typing: build.js reveals each line char by char via --w */
.lb--run .lb__code .ln { clip-path: inset(0 calc(100% - 44px - var(--w, 0) * 1ch) 0 0); }
.lb--run.is-typed .lb__code .ln { clip-path: none; }
.lb__caret { display: inline-block; width: 7px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: #E9849C; }
.lb__status { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-top: 1px solid rgba(244, 242, 247, .06); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lb__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--st-live); }
.lb__status em { margin-left: auto; font-style: normal; color: var(--muted-2); }
.lb[data-stage="0"] .lb__status i { background: var(--st-soon); }
.lb[data-stage="1"] .lb__status i { background: var(--bp); }

/* the app: KlesiaNexus home, finished state */
.lb__app { position: absolute; right: 0; top: 13%; width: 64%; z-index: 2; border-radius: 14px; overflow: hidden; background: var(--kn-cream); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .95), 0 0 0 1px rgba(244, 242, 247, .06); transition: transform .7s var(--ease-out), background-color .5s var(--ease-out); }
.lb__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #EBE3DB; transition: background-color .5s var(--ease-out); }
.lb__app .lb__bar i { background: #D3C6BA; }
.lb__bar span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: #7A6A62; }
.lb__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 11px; font-weight: 500; color: #1F6B42; opacity: 1; transition: opacity .4s var(--ease-out); }
.lb__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2F8A57; }
.lb__scr { display: grid; gap: 10px; padding: 16px; color: var(--kn-ink); font-family: "Instrument Sans", var(--sans); transition: background-color .5s var(--ease-out), color .5s var(--ease-out); }
.lb__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lb__brand { font-family: "Fraunces", Georgia, serif; font-size: 15px; font-weight: 600; }
.lb__church { font-size: 11px; color: var(--kn-mut); }
.lb__nav { display: flex; gap: 4px; margin-top: 10px; font-size: 11px; color: var(--kn-mut); }
.lb__nav span { padding: 3px 8px; border-radius: 6px; }
.lb__nav .is-on { background: var(--kn-wine); color: #fff; }
.lb__hello { margin-top: 12px; font-family: "Fraunces", Georgia, serif; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; }
.lb__wk, .lb__st, .lb__list { background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(36, 23, 26, .06); }
.lb__wk { padding: 12px 14px; }
.lb__k { font-size: 11px; font-weight: 500; color: var(--kn-cop); }
.lb__sum { margin-top: 4px; font-size: 12.5px; line-height: 1.5; }
.lb__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lb__st { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.lb__st b { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lb__st span { font-size: 11px; color: var(--kn-mut); }
.lb__list { padding: 12px 14px; }
.lb__list ul { display: grid; gap: 6px; margin-top: 6px; }
.lb__list li { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.lb__list li i { position: relative; flex: 0 0 14px; height: 14px; border-radius: 50%; background: #2F8A57; transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.lb__list li i::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: opacity .3s; }

/* --- staged states (only with build.js) --- */
.lb--run .lb__app .c { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), background-color .45s var(--ease-out), box-shadow .45s var(--ease-out), outline-color .45s var(--ease-out); }
.lb--run .lb__app .t { transition: color .4s var(--ease-out), background-color .4s var(--ease-out); }
/* before the code is written: an empty window */
.lb--run:not(.is-typed) .lb__app .c:not(.lb__scr) { opacity: 0; transform: translateY(6px); }
.lb--run .lb__app .lb__hd { transition-delay: calc(var(--i, 0) * 60ms); }
/* wireframe: blueprint outlines, text as bars, component names */
.lb--run .lb__app:has(.lb__scr:not(.is-style)) { background: #0B1217; }
.lb--run .lb__app:has(.lb__scr:not(.is-style)) .lb__bar { background: #0F1920; }
.lb--run .lb__app:has(.lb__scr:not(.is-style)) .lb__bar span { color: var(--bp); }
.lb--run .lb__scr:not(.is-style) { color: var(--bp); background-image: linear-gradient(rgba(121, 180, 196, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(121, 180, 196, .07) 1px, transparent 1px); background-size: 16px 16px; }
.lb--run .c:not(.is-style):not(.lb__scr) { position: relative; background: transparent; box-shadow: none; outline: 1px dashed rgba(121, 180, 196, .55); outline-offset: -1px; }
.lb--run .c:not(.is-style):not(.lb__scr)::before { content: attr(data-name); position: absolute; right: 6px; top: -9px; padding: 0 4px; background: #0B1217; font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--bp); }
.lb--run .c:not(.is-style) .t { color: transparent; background: rgba(121, 180, 196, .16); border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lb--run .c:not(.is-style) .lb__nav .is-on { background: transparent; }
.lb--run .c:not(.is-style) .lb__list li i { background: transparent; box-shadow: inset 0 0 0 1px rgba(121, 180, 196, .55); }
.lb--run .c:not(.is-style) .lb__list li i::after { opacity: 0; }
.lb--run .lb__stats:not(.is-style) .lb__st { outline: 1px dashed rgba(121, 180, 196, .35); outline-offset: -1px; background: transparent; box-shadow: none; }
/* styled but not yet live: checks open, no live badge */
.lb--run:not(.is-live) .lb__live { opacity: 0; }
.lb--run:not(.is-live) .lb__list li i { background: transparent; box-shadow: inset 0 0 0 1.5px #CDBFB3; }
.lb--run:not(.is-live) .lb__list li i::after { opacity: 0; }
.lb--run.is-live .lb__list li:nth-child(2) i { transition-delay: .12s; } .lb--run.is-live .lb__list li:nth-child(3) i { transition-delay: .24s; }
.lb__app .c.is-hot { outline: 2px solid rgba(226, 190, 150, .9) !important; outline-offset: 2px !important; }

/* shipped: the editor steps back, KlesiaVerse and KlesiaCast arrive */
.lb__kv { position: absolute; right: -2%; bottom: 0; width: 50%; z-index: 3; border-radius: 12px; overflow: hidden; background: #F4F2FA; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(244, 242, 247, .06); }
.lb__kv .lb__bar { background: #E7E3F3; } .lb__kv .lb__bar i { background: #C6C0DE; } .lb__kv .lb__bar span { color: #5D5880; }
.lb__kc { position: absolute; left: 21%; bottom: 3%; width: 17%; z-index: 4; padding: 5px; border-radius: 22px; background: #0F0B0E; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(244, 242, 247, .08); }
.lb__kc img { border-radius: 17px; }
.lb--run:not(.is-suite) .lb__kv { opacity: 0; transform: translate(18%, 8%); }
.lb--run:not(.is-suite) .lb__kc { opacity: 0; transform: translateY(30%); }
.lb--run.is-suite .lb__kc { transition-delay: .12s; }
.lb.is-suite .lb__ed, .lb:not(.lb--run) .lb__ed { transform: translate(-4%, -4%) scale(.9); opacity: .32; }
.lb.is-suite .lb__app, .lb:not(.lb--run) .lb__app { transform: translate(-16%, -8%) scale(.92); }
.lb__note { position: absolute; left: 0; bottom: -40px; font-size: .75rem; color: var(--muted-2); }

/* phones and tablets: no pin, a short automatic build, no shipped extras on the smallest screens */
@media (max-width: 60rem) {
  .lb--run { height: auto; }
  .lb--run .lb__pin { position: relative; top: auto; height: auto; overflow: visible; }
  .lb__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-7); padding-block: var(--s-7) var(--s-8); }
  .lb__h { max-width: 16ch; }
  .lb__hint { display: none !important; }
  /* the bench becomes a flow: editor on top, the app overlapping its lower half */
  .lb__bench { height: auto; transform: none; display: flex; flex-direction: column; padding-bottom: var(--s-6); }
  .lb__bench > * { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .lb__ed { width: 100%; max-height: 236px; }
  .lb__ed .lb__status { position: absolute; left: 0; right: 0; bottom: 0; background: #0C0A0E; }
  .lb__app { width: 90%; margin: -96px 0 0 auto; }
  .lb__kv { display: none; }
  .lb__kc { position: absolute; left: auto; right: -2%; bottom: 8px; width: 30%; max-width: 170px; }
  .lb.is-suite .lb__ed, .lb:not(.lb--run) .lb__ed { transform: none; opacity: .4; }
  .lb.is-suite .lb__app, .lb:not(.lb--run) .lb__app { transform: translateX(-6%); }
  .lb__note { position: static; margin-top: var(--s-4); }
}
@media (max-width: 40rem) {
  .lb__h { font-size: 2.25rem; }
  .lb__ctas .btn { flex: 1 1 auto; }
  .lb__rail { gap: var(--s-3); font-size: .75rem; flex-wrap: wrap; }
  .lb__code { font-size: 11px; }
  .lb__app { width: 94%; }
  .lb__scr { padding: 12px; gap: 8px; }
  .lb__hello { font-size: 21px; }
  .lb__st b { font-size: 18px; }
  .lb__church { display: none; }
}
.st--client { color: #E3C27A; }

/* ===== 2 · product portfolio ===== */
.port { padding-block: var(--section); border-bottom: 1px solid var(--rule); }
.suite { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-top: var(--s-8); padding-block: var(--s-5); border-bottom: 1px solid var(--rule); }
.suite__t { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; }
.suite__h { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.suite__t .mono { color: var(--muted); font-size: 12px; }
.suite__r { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.week { display: flex; gap: 6px; }
.week li { font-family: var(--mono); font-size: 12px; padding: 8px 10px; background: var(--paper-3); border-bottom: 2px solid; }
.week--kn { border-color: var(--kn-sw); }
.week--kc { border-color: var(--kc-sw); }
.week--kv { border-color: var(--kv-sw); }

.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.pp { --bg: var(--paper-2); --ink-p: var(--ink); --mut: var(--muted); --rul: var(--rule); --acc: var(--ink); --chip: var(--ink); --chip-bg: transparent;
  background: var(--bg); color: var(--ink-p); border-radius: var(--radius-panel); overflow: hidden; display: flex; flex-direction: column; }
.pp--kn { --bg: var(--kn-bg); --ink-p: var(--kn-ink); --mut: #6E5E60; --rul: var(--kn-rule); --acc: var(--kn-acc); --chip: #1F6B42; --chip-bg: #E1EEE5; }
.pp--kc { --bg: var(--kc-bg); --ink-p: var(--kc-ink); --mut: #B8A48E; --rul: var(--kc-rule); --acc: var(--kc-acc); --chip: var(--kc-acc); --chip-bg: rgba(242, 196, 126, .12); border: 1px solid var(--kc-rule); }
.pp--kv { --bg: var(--kv-bg); --ink-p: var(--kv-ink); --mut: #A3A6E4; --rul: var(--kv-rule); --acc: var(--kv-acc); --chip: #D4D4FD; --chip-bg: rgba(152, 152, 245, .16); border: 1px solid var(--kv-rule); }
.pp--ly { --bg: var(--ly-bg); --ink-p: var(--ly-ink); --mut: #C4A797; --rul: var(--ly-rule); --acc: var(--ly-acc); grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); }
.pp__head { padding: var(--s-6) var(--s-6) 0; display: flex; flex-direction: column; gap: var(--s-3); }
.pp__top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.pp__mark { width: 44px; height: 44px; object-fit: contain; }
.chip { font-family: var(--mono); font-size: 11px; color: var(--chip); background: var(--chip-bg); padding: 7px 11px; border-radius: 6px; }
.chip--solid { color: var(--ly-bg); background: var(--ly-acc); }
.pp__name { font-family: var(--serif); font-size: var(--t-h3); line-height: 1; margin-top: 6px; }
.pp__name a { text-decoration: none; }
.pp__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.pp__name--lg { font-size: clamp(2.5rem, 2vw + 1.6rem, 3.5rem); }
.pp__desc { font-size: 1rem; line-height: 1.5; color: var(--mut); }
.pp--kn .pp__desc { color: var(--kn-muted); }
.pp--kc .pp__desc { color: var(--kc-muted); }
.pp--kv .pp__desc { color: var(--kv-muted); }
.pp__vis { position: relative; margin: var(--s-5) var(--s-6) 0; aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .2); flex-shrink: 0; }
.pp__vis img { width: 100%; height: 100%; object-fit: cover; }
.pp__vis--bleed { margin-right: 0; border-radius: 12px 0 0 12px; box-shadow: 0 18px 40px -18px rgba(36, 23, 26, .35); background: #fff; }
.pp__vis--bleed img { width: 175%; max-width: none; height: auto; object-fit: initial; }
.pp__tag { position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-p); background: color-mix(in srgb, var(--bg) 82%, transparent); padding: 6px 9px; border-radius: 6px; }
.pp__facts { margin: auto var(--s-6) 0; padding: var(--s-5) 0 var(--s-6); font-size: .875rem; }
.pp__facts > div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-3); padding: 11px 0; border-top: 1px solid var(--rul); }
.pp__facts > div:last-child { border-bottom: 1px solid var(--rul); }
.pp__facts dt { font-family: var(--mono); font-size: 12px; color: var(--mut); padding-top: 2px; }
.pp__facts dd { margin: 0; }
.pp__facts a { color: var(--acc); display: inline-block; padding-block: 4px; margin-block: -4px; }
.pp--kn .pp__facts a { color: var(--kn-acc); }

/* Lydiahem: wide panel */
.pp--ly .pp__head { grid-column: span 7; padding: var(--s-7) 0 var(--s-7) var(--s-7); }
.pp__aud { color: #D9B49E; font-size: 11px; }
.pp__more { color: var(--ly-ink); margin-top: auto; align-self: flex-start; }
.pp--ly .pp__facts { grid-column: span 5; margin: var(--s-7) var(--s-7) var(--s-7) 0; padding: 0; align-self: start; }
.pp--ly .pp__facts > div { grid-template-columns: 1fr; gap: 4px; }
.pp__placeholder { grid-column: span 4; margin: var(--s-6) var(--s-6) var(--s-6) 0; border: 1px dashed #6E5549; border-radius: 14px; background: #33251F; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 280px; text-align: center; padding: var(--s-5); }
.pp__placeholder span { font-family: var(--serif); font-style: italic; font-size: 2.875rem; color: #F3E3DA; }
.pp__placeholder small { font-size: 12px; color: #C9A592; }

@media (max-width: 75rem) and (min-width: 40.0625rem) {
  .pgrid { grid-template-columns: 1fr; }
  .pgrid .pp:not(.pp--ly) { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: var(--s-6); }
  .pgrid .pp:not(.pp--ly) .pp__head { grid-column: 1; }
  .pgrid .pp:not(.pp--ly) .pp__facts { grid-column: 1; margin-top: var(--s-4); }
  .pgrid .pp__vis { grid-column: 2; grid-row: 1 / span 2; margin: var(--s-6) var(--s-6) var(--s-6) 0; aspect-ratio: auto; min-height: 320px; }
  .pgrid .pp__vis--bleed { margin-right: 0; }
}
@media (max-width: 60rem) {
  .pp--ly { grid-template-columns: 1fr; }
  .pp--ly .pp__head { grid-column: 1; padding: var(--s-6) var(--s-6) 0; }
  .pp--ly .pp__facts { grid-column: 1; margin: var(--s-5) var(--s-6) var(--s-6); }
  .pp--ly .pp__facts > div { grid-template-columns: 120px 1fr; }
  .pp__placeholder { grid-column: 1; margin: var(--s-5) var(--s-6) var(--s-6); min-height: 180px; }
  .pp__more { margin-top: var(--s-2); }
}
@media (max-width: 40rem) {
  .pgrid { grid-template-columns: 1fr; gap: var(--s-4); }
  .pp__head { padding: var(--s-5) var(--s-5) 0; }
  .pp__vis { margin: var(--s-5) var(--s-5) 0; }
  .pp__vis--bleed { margin-right: 0; }
  .pp__facts { margin: auto var(--s-5) 0; padding-bottom: var(--s-5); }
  .pp__facts > div { grid-template-columns: 96px 1fr; }
  .pp--ly .pp__head { padding: var(--s-5) var(--s-5) 0; }
  .pp--ly .pp__facts { margin: var(--s-5); }
  .pp--ly .pp__facts > div { grid-template-columns: 96px 1fr; }
  .pp__placeholder { margin: var(--s-5); }
  .week li { padding: 7px 6px; }
  .suite__r { width: 100%; justify-content: space-between; gap: var(--s-4); }
}

/* phones: the four product cards stack one over another as you scroll */
@media (max-width: 40rem) {
  .pgrid > .pp { position: sticky; top: calc(var(--hd-h) + 12px + var(--k, 0) * 10px); box-shadow: 0 -18px 40px -12px rgba(0, 0, 0, .75); }
  /* each church card fits the screen exactly, so nothing hides under the next one; the screenshot takes what is left */
  .pgrid > .pp:not(.pp--ly) { height: calc(100svh - var(--hd-h) - 24px - var(--k, 0) * 10px); }
  .pgrid > .pp:not(.pp--ly) .pp__desc { font-size: .9375rem; }
  .pgrid > .pp:not(.pp--ly) .pp__facts { margin-top: 0; padding-block: var(--s-4); }
  .pgrid > .pp:not(.pp--ly) .pp__facts > div { padding: 8px 0; }
  .pgrid > .pp:nth-child(2) { --k: 1; } .pgrid > .pp:nth-child(3) { --k: 2; } .pgrid > .pp:nth-child(4) { --k: 3; }
  .pgrid > .pp:not(.pp--ly) .pp__vis { flex: 1 1 0; aspect-ratio: auto; min-height: 120px; margin-bottom: var(--s-4); }
  .pgrid > .pp--ly { align-content: start; }
}

/* ===== 3 · AI (ivory) ===== */
.ai { background: var(--ivory); color: var(--ivory-ink); padding-block: var(--section); }
.ai .eyebrow { color: var(--ivory-muted); }
.ai .shead__h em { color: inherit; }
.ai__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-7); }
.ai__t { grid-column: span 5; display: flex; flex-direction: column; gap: var(--s-5); }
.ai__t > p:last-child { color: var(--ivory-muted); font-size: 1.0625rem; line-height: 1.55; max-width: 28em; }
.ai__list { grid-column: 7 / span 6; }
.ai__group { font-size: 12px; margin-bottom: var(--s-3); }
.ai__group--soon { margin-top: var(--s-6); }
.ai__group--now { color: #1F6B42; }
.ai__group--soon { color: #8A4B0B; }
.ai__row { display: grid; grid-template-columns: 150px 1fr 130px; gap: var(--s-4); align-items: baseline; padding: 22px 0; border-top: 1px solid var(--ivory-ink); }
.ai__row + .ai__row { border-top-color: var(--ivory-rule); }
.ai__name { font-size: 1.0625rem; font-weight: 500; }
.ai__what { color: #4A3F40; line-height: 1.5; }
.ai__st { font-size: 12px; text-align: right; }
.ai__st--now { color: #1F6B42; }
.ai__st--pilot { color: #2A2AB8; }
.ai__st--soon { color: #8A4B0B; }
.ai__note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--ivory-rule); color: var(--ivory-muted); font-size: .9375rem; }
@media (max-width: 60rem) {
  .ai__t, .ai__list { grid-column: 1 / -1; }
  .ai__row { grid-template-columns: 1fr auto; }
  .ai__what { grid-column: 1 / -1; grid-row: 2; }
}

/* ===== 4 · client project ===== */
.client { padding-block: var(--section); }
.client__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-7); align-items: center; }
.client__t { grid-column: span 5; display: flex; flex-direction: column; gap: var(--s-5); }
.facts-dark { margin: 0; }
.facts-dark > div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-3); padding: 13px 0; border-top: 1px solid var(--rule); font-size: .9375rem; }
.facts-dark > div:last-child { border-bottom: 1px solid var(--rule); }
.facts-dark dt { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.facts-dark dd { margin: 0; }
.client__ctas { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.client__shots { grid-column: 7 / span 6; margin: 0; position: relative; aspect-ratio: 6 / 5; }
.client__desk { position: absolute; left: 0; top: 5%; width: 86%; border-radius: 6px; border: 1px solid var(--rule); }
.client__phone { position: absolute; right: 0; top: 24%; width: 27%; border-radius: 18px; border: 1px solid var(--rule); }
.client__shots figcaption { position: absolute; left: 0; bottom: 0; font-size: 12px; color: var(--muted-2); }
@media (max-width: 60rem) {
  .client__t, .client__shots { grid-column: 1 / -1; }
  .client__shots { order: -1; }
}

/* ===== 5 · how we build + studio ===== */
.build { padding-block: var(--section); border-top: 1px solid var(--rule); }
.build__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-6); }
.build__t { grid-column: span 5; display: flex; flex-direction: column; gap: var(--s-5); }
.build__r { grid-column: 7 / span 6; }
.principles li { display: grid; grid-template-columns: 56px 1fr; padding: 20px 0; border-top: 1px solid var(--rule); }
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principles .mono { color: var(--muted); padding-top: 4px; }
.principles p { font-size: 1.125rem; color: var(--ink-2); }
.principles b { color: var(--ink); font-weight: 500; }
.studio { margin-top: var(--s-6); display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); background: var(--paper-2); padding: 28px 32px; border-radius: 16px; border: 1px solid rgba(244, 242, 247, .06); flex-wrap: wrap; }
.studio__h { font-size: 1.25rem; margin-top: 8px; }
.studio__p { font-size: .9375rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 60rem) {
  .build__t, .build__r { grid-column: 1 / -1; }
  .studio { padding: 24px 20px; }
}

/* ===== product films: a Watch button on each card opens one pop-up player ===== */
.pp__watch { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; z-index: 2; transition: background var(--dur), color var(--dur); }
.pp__watch span { font-size: 9px; }
.pp__watch::after { content: ""; position: absolute; inset: -600px -600px -12px -12px; } /* the whole picture is the tap target */
.pp__watch:hover, .pp__watch:focus-visible { background: var(--wine); color: #fff; }
.theater { width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--ink); overflow: hidden; }
.theater::backdrop { background: rgba(10, 6, 7, .82); backdrop-filter: blur(6px); }
.theater[open] { animation: theater-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes theater-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.theater__bar { display: flex; align-items: center; gap: var(--s-4); padding: 10px 10px 10px 18px; }
.theater__t { font-family: var(--serif); font-size: 1.375rem; line-height: 1.1; margin-right: auto; }
.theater__x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink); cursor: pointer; }
.theater__x svg { width: 20px; height: 20px; }
.theater__x:hover { background: var(--wine); color: #fff; }
.theater video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 140px); aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.theater__note { padding: 10px 18px 14px; font-size: .8125rem; color: var(--muted-2); }
@media (prefers-reduced-motion: reduce) { .theater[open] { animation: none; } }
@media (max-width: 40rem) { .theater__more { display: none; } .theater__t { font-size: 1.125rem; } }
.xh__note { grid-area: stage; align-self: end; justify-self: end; font-size: .8125rem; color: var(--muted-2, var(--muted)); }
@media (max-width: 60rem) { .xh__note { grid-area: auto; justify-self: start; margin-top: calc(var(--s-3) * -1); } body .xh__grid { grid-template-areas: "copy" "stage" "note" "layers"; } .xh__note { grid-area: note; } }

