/* Lifted from the live index.html <style> block by tools/build.py. */
.hero-h .lede em { font-style: normal; color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.ads .post, .bandads .post { box-shadow: 0 1px 2px rgba(10,10,10,.05), 0 12px 26px rgba(10,10,10,.08);
  transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ads .post:hover, .bandads .post:hover { transform: translateY(-3px); } }
/* the caption belongs under the work it describes, not over the studio photo */
.cr-cap { margin: 22px 0 0; font-size: 17px; line-height: 1.5; letter-spacing: -.012em; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; gap: 34px; } .ads { grid-template-columns: 1fr 1fr; gap: 12px; } }
.pressrow { padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pr-k { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.pr-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 26px; align-items: center; text-decoration: none; color: inherit; }
.pr-item img { width: 150px; height: 110px; object-fit: cover; object-position: 50% 28%; border-radius: 8px; display: block; }
.pr-m { display: block; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.pr-m b { font-weight: 500; color: var(--ink); }
.pr-h { display: block; font-size: 21px; line-height: 1.25; letter-spacing: -.016em; color: var(--ink); margin: 0 0 8px; font-weight: 500; max-width: 34ch; }
.pr-q { display: block; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.pr-item + .pr-item { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.pr-a { font-size: 14px; color: var(--ink); white-space: nowrap; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .16s var(--ease-out), color .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pr-item:hover .pr-h { color: var(--accent); } .pr-item:hover .pr-a { color: var(--accent); border-color: var(--accent); } }
@media (max-width: 760px) { .pr-item { grid-template-columns: 96px 1fr; gap: 16px; } .pr-item img { width: 96px; height: 72px; } .pr-h { font-size: 17px; } .pr-q { display: none; } .pr-a { grid-column: 2; justify-self: start; } }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 56px; align-items: center; }
.hero-grid h1 { max-width: 15ch; }
.nw { white-space: nowrap; }
.fixes { margin: 0; background: #fff; border: 1px solid rgba(10,10,10,.07); border-radius: 18px; padding: 16px 18px 18px; box-shadow: 0 1px 1px rgba(10,10,10,.03), 0 8px 20px -6px rgba(10,10,10,.08), 0 30px 64px -18px rgba(10,10,10,.16); }
.fx-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(10,10,10,.06); }
.fx-head .av { width: 30px; height: 30px; border-radius: 50%; background: #0f1115; display: grid; place-items: center; flex: none; }
.fx-head .av img { display: block; width: 18px; height: auto; }
.fx-head b { font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.fx-head > span:last-child { margin-left: auto; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fixes ol { list-style: none; counter-reset: fx; margin: 6px 0 0; padding: 0; }
.fixes li { counter-increment: fx; display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(10,10,10,.06); }
.fixes li::before { content: counter(fx); width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; display: grid; place-items: center; flex: none; }
.fixes li b { font-size: 14.5px; font-weight: 400; line-height: 1.35; color: var(--ink); flex: 1; }
.fixes li em { font-style: normal; font-size: 11.5px; color: var(--ink-2); background: var(--paper-2); border-radius: 999px; padding: 4px 9px; flex: none; }
.fx-foot { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
/* its own band, so search and the proof below read as two sections, not one */
#search { background: #f3f4f2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.demo { margin: 0; }
.demo-card { background: #fff; border: 1px solid rgba(10,10,10,.07); border-radius: 18px; box-shadow: 0 1px 1px rgba(10,10,10,.03), 0 8px 20px -6px rgba(10,10,10,.08), 0 30px 64px -18px rgba(10,10,10,.16); padding: 14px 18px 20px; }
.demo-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(10,10,10,.06); margin-bottom: 16px; }
.demo-head .av { margin-left: 0; width: 30px; height: 30px; border-radius: 50%; background: #0f1115; display: grid; place-items: center; flex: none; }
.demo-head .av img { display: block; width: 18px; height: auto; }
.demo-head b { font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.demo-head span { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-left: auto; }
.demo-ctl { font: 500 12px/1 'Geist', sans-serif; color: var(--ink-2); background: var(--paper-2); border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: background-color .2s var(--ease-out), transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .demo-ctl:hover { background: #ececea; } }
.demo-ctl:active { transform: scale(.96); }
.demo-ctl:focus-visible, .film-open:focus-visible, .film-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-body { display: flex; flex-direction: column; gap: 8px; min-height: 372px; }
.demo-body > * { margin: 0; }
.d-msg { max-width: 80%; padding: 9px 14px; border-radius: 19px; font-size: 14.5px; line-height: 1.42; letter-spacing: -.005em; }
.d-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.d-msg.osmo { align-self: flex-start; background: #f0f0ee; color: var(--ink); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.d-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #f0f0ee; border-radius: 19px; border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.d-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dt 1.2s infinite cubic-bezier(.45,0,.55,1); }
.d-typing i:nth-child(2) { animation-delay: .15s; } .d-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dt { 0%, 70%, 100% { opacity: .35; transform: none; } 35% { opacity: 1; transform: translateY(-3px); } }
.d-att { display: flex; gap: 6px; align-items: flex-end; }
.d-att { transform-origin: 0 100%; }
.d-att img { height: 92px; width: auto; border-radius: 12px; display: block; box-shadow: 0 0 0 1px rgba(10,10,10,.06), 0 4px 12px -4px rgba(10,10,10,.18); }
.d-sys { align-self: center; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px !important; }
.d-result { align-self: stretch; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); background: var(--paper-2); border: 0; border-radius: 14px; padding: 12px 14px; }
.d-result s { text-decoration: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; flex: none; }
/* steps are hidden only once the script takes over; without it the finished thread shows */
.lead .th { align-items: center; justify-content: flex-start; gap: 10px; }
.lead .th .av { margin-left: 0; width: 30px; height: 30px; border-radius: 50%; background: #0f1115; display: grid; place-items: center; flex: none; }
.lead .th .av img { display: block; width: 18px; height: auto; }
.lead .th-who { min-width: 0; margin-right: auto; }
.lead .th-who b { display: block; font-size: 13.5px; }
.lead .th-who i { display: block; font-style: normal; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.lead .lc { display: flex; align-items: flex-start; gap: 11px; background: var(--paper-2); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.lead .lc-ico { width: 28px; height: 28px; flex: none; border-radius: 7px; display: block; }
.lead .lc-t { min-width: 0; flex: 1; }
.lead .lc-t b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.lead .lc-t span { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-2); margin-top: 2px; }
.lead .lc em { font-style: normal; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .05em; color: var(--ink-3); flex: none; margin-top: 2px; }
.lead .who-l { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 5px; }
.lead .who-l.r { text-align: right; }
.lead .th button { margin-left: 10px; }
.thread .stamp2.sr { text-align: right; }
.thread .d-typing.lt { width: max-content; margin: 6px 0 8px auto; background: var(--accent); border-radius: 19px; border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.thread .d-typing.lt i { background: rgba(255,255,255,.8); }
/* bubbles grow out of their own corner with a slight settle, the way Messages does it */
.lead.run [data-step], .demo.run [data-step] { opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .3s var(--ease-out), transform .55s cubic-bezier(.32,1.28,.54,1); }
.lead.run [data-step].on, .demo.run [data-step].on { opacity: 1; transform: none; }
.run .d-typing:not(.on), .run .d-typing.off { display: none; }
@media (prefers-reduced-motion: reduce) { .run [data-step] { transition: none; transform: none; } .d-typing { display: none !important; } }
button.alt { background: none; border: 0; padding: 0; font: inherit; font-size: 14.5px; cursor: pointer; }
.film { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; }
.film::backdrop { background: rgba(7,9,8,.82); }
.film-in { position: relative; padding-top: 48px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0a0a0a; border-radius: var(--r); }
.film .micro { margin-top: 12px; color: rgba(255,255,255,.7); }
.film-close { position: absolute; top: 0; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero-grid h1 { max-width: 15ch; font-size: clamp(36px, 7.4vw, 60px); } .demo-body { min-height: 0; } }
@media (min-width: 561px) and (max-width: 1000px) { .hero-copy .alt { display: inline-block; margin: 0 0 0 20px; padding: 0; } }
.thread .att { display: flex; gap: 6px; margin: 6px 0 2px; align-items: flex-end; }
.thread .att img { height: 112px; width: auto; border-radius: 8px; display: block; box-shadow: 0 1px 2px rgba(10,10,10,.12); }
@media (max-width: 420px) { .thread .att img { height: 88px; } }
.hero-h { padding: 76px 0 54px; }
.hero-h h1 { max-width: 27ch; }
.hero-h-band { padding: 92px 0 96px; }
/* .tt carries the size and the two-tone color; this only sets the gap */
.bandline { margin: 0 0 34px; }
.bandads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
/* The photo is square and its payload is the four branded cards, which sit low
   in the frame. At 540px tall with the old 54% origin the bottom row was sliced
   in half, so half the argument for "not a template" was cropped out. */
.brand-table { position: relative; margin: 44px 0 0; height: clamp(300px, 44vw, 620px); overflow: hidden; border-radius: var(--r); box-shadow: 0 18px 44px rgba(7,9,8,.12); }
.brand-table img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 63%; }
@media (max-width: 1000px) { .hero-h { padding: 42px 0 34px; } .hero-h-band { padding: 60px 0 64px; } .bandads { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ads { grid-template-columns: 1fr; gap: 16px; } .brand-table { height: 300px; margin-top: 34px; } }
