/* Karya site v5 · the moving parts (an.js): the menu that opens under the bar, the capsule that names the chapter,
   the plans with their rolling prices, the questions, the rail of steps, the rolling word. All in the site's own
   ink, bone and bronze; ease-out only, nothing bounces. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── digits that roll to a new number ── */
.roll { display: inline-flex; height: 1.2em; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; overflow: hidden; vertical-align: bottom; }
.roll .rd { display: inline-block; height: 1.2em; max-width: 1em; overflow: hidden; transition: max-width .45s var(--ease-out-expo), opacity .3s var(--ease-out-quart); }
.roll .rd.off { max-width: 0; opacity: 0; }
.roll .rd b { display: block; font-weight: inherit; transform: translateY(calc(var(--d, 0) * -1.2em)); transition: transform .8s var(--ease-out-expo) calc(var(--k, 0) * 50ms); }
.roll .rd b span { display: block; height: 1.2em; text-align: center; }

/* ── the menu under the bar: one sheet that changes height as you move along the links ── */
.nav .wrap { position: relative; }
.mm { position: absolute; left: 0; right: 0; top: 100%; height: 0; overflow: hidden; visibility: hidden; background: color-mix(in srgb, var(--paper) 95%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); border-bottom: 1px solid transparent; color: var(--ink);
  transition: height .45s var(--ease-out-expo), border-color .3s, visibility 0s .45s; }
.nav.mm-on .mm { visibility: visible; border-color: rgba(195,179,153,.55); box-shadow: 0 28px 44px -32px rgba(0,0,0,.3); transition: height .45s var(--ease-out-expo), border-color .3s, visibility 0s; }
.mm-pane { position: absolute; left: 0; right: 0; top: 0; padding: 36px 0 44px; opacity: 0; pointer-events: none; transform: translateX(var(--from, 0px)); transition: opacity .22s var(--ease-out-quart), transform .45s var(--ease-out-expo); }
.mm-pane.on { opacity: 1; pointer-events: auto; transform: none; }
.mm-pane .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 80px; align-items: start; height: auto; }
.mm-lead h4 { margin: 0; font: 400 1.9rem/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.mm-lead p { max-width: 44ch; margin: 12px 0 22px; color: var(--ink-70); font-size: .9375rem; text-wrap: pretty; }
.mm-lead .go { font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.mm-lead .go:hover, .mm-list a:hover { color: var(--bronze); }
.mm-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; border-top: 1px solid var(--ink); }
.mm-list li { break-inside: avoid; }
.mm-list a { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 1.25rem/1.25 var(--serif); text-decoration: none; transition: color .18s var(--ease-out-quart); }
.mm-list a span { flex: none; padding-top: 6px; font: 500 .6875rem/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--ink-55); }
.mm-u { position: absolute; z-index: 2; left: 0; bottom: 0; width: var(--w, 0px); height: 1px; background: var(--ink); transform: translateX(var(--x, 0px)); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-out-expo), width .4s var(--ease-out-expo), opacity .2s; }
.nav.mm-on .mm-u { opacity: 1; }
.nav.mm-on::before { background: color-mix(in srgb, var(--paper) 95%, transparent); }
.nav.mm-on .brand, .nav.mm-on .links a { color: var(--ink) !important; }
@media (max-width: 900px) { .mm, .mm-u { display: none; } }

/* ── the capsule under the bar: it names the chapter you are in, and opens into the list of chapters ── */
.isl { position: fixed; left: 50%; top: 76px; z-index: 45; overflow: hidden; border-radius: 10px; background: var(--night); color: var(--bone); box-shadow: var(--lift);
  opacity: 0; pointer-events: none; transform: translate(-50%, -10px); font: 400 .875rem/1 var(--sans);
  transition: opacity .3s var(--ease-out-quart), transform .5s var(--ease-out-expo), width .5s var(--ease-out-expo), height .5s var(--ease-out-expo); }
.isl.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.isl-in { width: max-content; }
.isl-btn { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border: 0; background: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.isl-btn .n, .isl-list a span { font: 500 .6875rem/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--bone-55); }
.isl-btn .c { width: 7px; height: 7px; margin: -3px 2px 0 4px; border-right: 1px solid var(--bone-70); border-bottom: 1px solid var(--bone-70); transform: rotate(45deg); transition: transform .4s var(--ease-out-expo); }
.isl.open .isl-btn .c { transform: translateY(3px) rotate(225deg); }
.isl-list { list-style: none; margin: 0; padding: 6px 6px 8px; border-top: 1px solid var(--night-line); min-width: 220px; }
.isl-list a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 6px; color: var(--bone-70); text-decoration: none; white-space: nowrap; transition: background .18s, color .18s; }
.isl-list a:hover, .isl-list a[aria-current] { background: rgba(237,224,202,.08); color: var(--bone); }
.nav.open ~ .isl, .nav.mm-on ~ .isl { opacity: 0; pointer-events: none; }
@media print { .isl { display: none; } }

/* ── the plans: two tabs joined to one dark sheet, four sizes, and prices that roll between month and year ── */
#pr { margin-top: 56px; }
.pr-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pr-tabs { position: relative; display: flex; }
.pr-tabs button { position: relative; z-index: 1; height: 46px; padding: 0 24px; border: 0; background: none; color: var(--ink-70); font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .3s var(--ease-out-quart); }
.pr-tabs button[aria-selected="true"] { color: var(--bone); }
.pr-neck { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0px); border-radius: 10px 10px 0 0; background: var(--night); transform: translateX(var(--x, 0px)); transition: transform .5s var(--ease-out-expo), width .5s var(--ease-out-expo); }
.pr-neck::before, .pr-neck::after { content: ""; position: absolute; bottom: 0; width: 10px; height: 10px; transition: opacity .3s; }
.pr-neck::before { right: 100%; background: radial-gradient(circle at 0 0, transparent 9.5px, var(--night) 10px); }
.pr-neck::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent 9.5px, var(--night) 10px); }
.pr[data-p="you"] .pr-neck::before { opacity: 0; }
.pr-sw { position: relative; display: flex; margin-bottom: 8px; padding: 3px; border: 1px solid var(--line-2); border-radius: 6px; transition: opacity .3s; }
.pr[data-p="firm"] .pr-sw { opacity: 0; pointer-events: none; }
.pr-sw button { position: relative; z-index: 1; height: 28px; padding: 0 14px; border: 0; background: none; color: var(--ink-70); font: 500 .75rem/1 var(--sans); cursor: pointer; transition: color .3s; }
.pr-sw button[aria-pressed="true"] { color: var(--paper); }
.pr-sw i { position: absolute; left: 0; top: 3px; bottom: 3px; width: var(--w, 0px); border-radius: 4px; background: var(--ink); transform: translateX(var(--x, 0px)); transition: transform .4s var(--ease-out-expo), width .4s var(--ease-out-expo); }
.pr-box { overflow: hidden; border-radius: 10px; background: var(--night); color: var(--bone); transition: border-radius .4s var(--ease-out-quart); }
.pr[data-p="you"] .pr-box { border-top-left-radius: 0; }
.pr-panel[hidden] { display: none; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 36px 8px 28px; }
.plan { display: flex; flex-direction: column; padding: 0 24px; border-left: 1px solid var(--night-line); }
.plan:first-child { border-left: 0; }
.plan .pn { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font: 500 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.plan .pn em { font: italic 400 1rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--bone-70); }
.plan .pf { min-height: 2.9em; margin: 12px 0 0; color: var(--bone-70); font-size: .875rem; line-height: 1.45; text-wrap: pretty; }
.plan .pp { margin: 22px 0 0; font: 400 3.4rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.plan .pp sup { margin-right: 2px; font-size: .45em; vertical-align: .9em; color: var(--bone-70); }
.plan .per { position: relative; margin: 8px 0 0; color: var(--bone-55); font-size: .8125rem; }
.plan .per span { display: inline-block; transition: opacity .25s, transform .4s var(--ease-out-expo); }
.plan .per .y { position: absolute; opacity: 0; transform: translateY(6px); } .pr[data-bill="y"] .plan .per .m { position: absolute; opacity: 0; transform: translateY(-6px); } .pr[data-bill="y"] .plan .per .y { position: static; opacity: 1; transform: none; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; border-top: 1px solid var(--night-line); font-size: .875rem; color: var(--bone-70); }
.plan li { padding: 10px 0; border-bottom: 1px solid var(--night-line); line-height: 1.4; }
.plan li:first-child { color: var(--bone); }
.plan .btn { margin-top: auto; justify-content: center; }
.pr-every { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin: 0; padding: 20px 32px 24px; border-top: 1px solid var(--night-line); color: var(--bone-70); font-size: .875rem; }
.pr-every b { font: 500 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone); }
.pr-save { position: absolute; right: calc(100% + 12px); top: 50%; margin-top: -10px; white-space: nowrap; line-height: 14px; padding: 3px 7px; border-radius: 4px; background: var(--bronze); color: var(--bone); font-size: .6875rem; letter-spacing: .04em; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--ease-out-expo); }
.pr[data-bill="y"] .pr-save { opacity: 1; transform: none; }
.firm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 40px 32px 36px; }
.firm h3 { margin: 0; font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--serif); } .firm h3 em { color: var(--bone-70); }
.firm p { margin: 14px 0 26px; max-width: 46ch; color: var(--bone-70); text-wrap: pretty; }
.firm ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-line); }
.firm li { padding: 16px 0; border-bottom: 1px solid var(--night-line); color: var(--bone-70); font-size: .9375rem; } .firm li b { display: block; margin-bottom: 4px; font: 400 1.25rem/1.2 var(--serif); color: var(--bone); }
.pr-note { max-width: 78ch; margin: 18px 0 0; color: var(--ink-55); font-size: .8125rem; line-height: 1.55; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .plan:nth-child(odd) { border-left: 0; } .firm { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 620px) { .pr-top { flex-direction: column-reverse; align-items: flex-start; } .pr-tabs button { padding: 0 16px; }
  .plans { grid-template-columns: minmax(0, 1fr); padding: 28px 0 20px; } .plan { padding: 0 20px; border-left: 0; } .plan + .plan { padding-top: 32px; border-top: 1px solid var(--night-line); } .plan .pf { min-height: 0; }
  .pr-every { padding: 18px 20px 22px; } .firm { padding: 28px 20px; } }

/* ── the questions: each answer opens out of its question, and the two become one card ── */
.faq { gap: 8px; border-top: 0; margin-top: 48px; }
.faq .qa { padding: 0 24px; border: 1px solid var(--line-2); border-radius: 10px; transition: background .35s var(--ease-out-quart), border-color .35s var(--ease-out-quart); }
.faq .qa[open]:not(.closing) { background: var(--paper-2); border-color: var(--ink); }
.faq .qa.closing summary::after { transform: none; }
.faq .qa-a { overflow: hidden; }
@media (max-width: 620px) { .faq .qa { padding: 0 16px; } .faq summary h3 { font-size: 1.3rem; } }

/* ── the rail of steps: a bead draws the line as you scroll, and each step lights as the bead reaches it ── */
.cases .bead { display: none; }
.cases.rail { display: block; }
.cases.rail .stick { position: static; max-width: 780px; margin-bottom: 72px; }
.cases.rail ol { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 28px; padding-top: 46px; border-top: 0; }
.cases.rail ol::before, .cases.rail ol::after { content: ""; position: absolute; left: 0; top: 10px; }
.cases.rail ol::before { right: 0; border-top: 1px dashed var(--line-2); }
.cases.rail ol::after { width: calc(var(--p, 0) * 100%); border-top: 1px solid var(--ink); }
.cases.rail .bead { display: block; position: absolute; top: 6px; left: calc(var(--p, 0) * 100% - 4.5px); width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.cases.rail li { display: block; padding: 0; border: 0; opacity: .3; transition: opacity .6s var(--ease-out-quart); }
.cases.rail li.on { opacity: 1; }
.cases.rail li::before { display: block; margin-bottom: 14px; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease-out-quart), transform .6s var(--ease-out-expo); }
.cases.rail li.on::before { opacity: 1; transform: none; }
.cases.rail h3 { font-size: 1.35rem; } .cases.rail p { font-size: .875rem; line-height: 1.55; }

/* ── the rolling word: the first word of the line turns through a list as you scroll; the rest stays put ── */
.wr { height: 10.8em; margin-top: 120px; padding: 4.8em 0 0; overflow: hidden; font: 400 clamp(1.7rem, 4.2vw, 3.4rem)/1.2 var(--serif); letter-spacing: -.01em;
  -webkit-mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); }
.wr-line { display: flex; justify-content: center; align-items: flex-start; gap: .28em; margin: 0; white-space: nowrap; }
.wr-win { display: inline-block; height: 1.2em; text-align: right; }
.wr-list { display: block; transform: translateY(calc(var(--f, 0) * -1.2em)); will-change: transform; }
.wr-list span { display: block; height: 1.2em; color: color-mix(in srgb, var(--ink) 20%, transparent); transition: color .25s var(--ease-out-quart); }
.wr-list span.on { color: var(--ink); }
.wr-rest em { color: var(--ink-70); }
@media (max-width: 700px) { .wr { height: 9.6em; } .wr-line { flex-direction: column; align-items: center; gap: 0; } .wr-win { text-align: center; clip-path: inset(-12em -50vw 0 -50vw); } }

@media (prefers-reduced-motion: reduce) { .roll .rd, .roll .rd b, .mm, .mm-pane, .mm-u, .isl, .pr-neck, .pr-sw i, .cases.rail li, .cases.rail li::before, .wr-list span { transition: none; } }

/* ── air: the homepage's sections stand further apart, and the four plans sit in one quiet row ── */
@media (min-width: 901px) { .air > section + section:not(.mb) { padding-top: 184px; } .air .shead { margin-bottom: 72px; } }
.pstrip { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) auto; gap: 0 32px; align-items: end; margin-top: 88px; padding: 28px 0 30px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pstrip .label { margin-bottom: 12px; } .ps-h p:not(.label) { margin: 0; max-width: 26ch; color: var(--ink-70); font-size: .9375rem; line-height: 1.45; }
.pstrip > a { display: block; padding-left: 20px; border-left: 1px solid var(--line); text-decoration: none; transition: color .18s var(--ease-out-quart); }
.pstrip > a > b { display: block; margin-bottom: 10px; font: 500 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-70); }
.ps-p { display: flex; align-items: baseline; font: 400 2.5rem/1 var(--serif); white-space: nowrap; } .ps-p sup { margin-right: 2px; font-size: .45em; align-self: flex-start; color: var(--ink-55); }
.ps-p i { margin-left: 8px; font: 400 .8125rem/1 var(--sans); color: var(--ink-55); }
.pstrip > a:hover { color: var(--bronze); }
.ps-a { display: flex; flex-direction: column; gap: 8px; } .ps-a .btn { justify-content: center; }
@media (max-width: 1100px) { .pstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; } .ps-h, .ps-a { grid-column: 1 / -1; } .ps-a { flex-direction: row; } .pstrip > a:first-of-type { padding-left: 0; border-left: 0; } }
@media (max-width: 620px) { .pstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; } .pstrip > a:nth-of-type(odd) { padding-left: 0; border-left: 0; } .ps-a { flex-direction: column; } }

/* ── Why Karya, one interface at a time: three tabs joined to one sheet; the argument left, the thing to try right ── */
.wt { margin-top: 56px; overflow-x: auto; scrollbar-width: none; } .wt::-webkit-scrollbar { display: none; }
.wt button { flex: none; display: inline-flex; align-items: center; gap: 10px; }
.wt button span { font: 500 .6875rem/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; opacity: .6; }
.wt .pr-neck { border-radius: 8px 8px 0 0; background: var(--ink); } .wt .pr-neck::before, .wt .pr-neck::after { display: none; }
.wt button[aria-selected="true"] { color: var(--paper); }
.whyk .wk3.gen3.tabbed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; }
.wk3.gen3.tabbed > .gcard { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0 88px; align-items: start; padding: 44px 44px 48px; border-radius: 0 10px 10px 10px;
  visibility: hidden; opacity: 0; pointer-events: none; transform: none; transition: none; }
.wk3.gen3.tabbed > .gcard.cur { visibility: visible; opacity: 1; pointer-events: auto; }
.gen3.tabbed .gbar { display: none; }
.gen3.tabbed .gl h3 { margin-top: 0; font-size: clamp(30px, 3vw, 42px); } .gen3.tabbed .gl > p { max-width: 46ch; }
.gen3.tabbed .gl .essay { display: inline-block; margin-top: 28px; }
.gen3.tabbed .gr > :first-child { margin-top: 0; }
@media (max-width: 960px) { .wk3.gen3.tabbed > .gcard { grid-template-columns: minmax(0, 1fr); gap: 28px 0; padding: 26px 18px 24px; border-radius: 0 0 10px 10px; } .wk3.gen3.tabbed > .gcard:not(.cur) { display: none; }
  .wt button { padding: 0 16px; } }

/* ── the bento: five tiles, one large; a picture above, its name on a band of paper below (never over the subject) ── */
.bento { position: relative; margin-top: 8px; }
.bt { position: absolute; overflow: hidden; margin: 0; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line);
  transition: left .8s var(--ease-out-expo), top .8s var(--ease-out-expo), width .8s var(--ease-out-expo), height .8s var(--ease-out-expo), border-color .3s; }
.bento.still .bt { transition: none; }
.bt-pic { position: absolute; inset: 0 0 52px 0; overflow: hidden; transition: inset .8s var(--ease-out-expo); }
.bt.focus .bt-pic { bottom: 0; }
.bt-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out-expo); }
.bt:not(.focus):hover .bt-pic img { transform: scale(1.06); } .bt:not(.focus):hover { border-color: var(--ink); }
.bt-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px; background: var(--paper-2); }
.bt-cap h3 { margin: 0; font: 400 1.25rem/52px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt.thin .bt-cap h3 { font-size: 1.05rem; }
.bt-k, .bt-d, .bt-go { display: none; }
.bt.focus .bt-cap { right: auto; left: 20px; bottom: 20px; width: min(430px, calc(100% - 40px)); padding: 24px 26px 26px; border-radius: 8px; }
.bt.focus .bt-cap h3 { font: 400 clamp(2rem, 3.2vw, 2.9rem)/1.05 var(--serif); letter-spacing: -.01em; white-space: normal; }
.bt.focus .bt-k, .bt.focus .bt-d, .bt.focus .bt-go { display: block; animation: bt-in .6s var(--ease-out-expo) .25s both; }
.bt-k { margin: 0 0 14px; font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); }
.bt-d { margin: 12px 0 18px; color: var(--ink-70); font-size: .9375rem; line-height: 1.5; text-wrap: pretty; }
.bt-go { width: max-content; font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.bt-go:hover { color: var(--bronze); }
.bt-hit { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; } .bt.focus .bt-hit { display: none; }
.bt-hit:focus-visible { outline-offset: -4px; }
/* a small tile says it opens: the same mark as the KChat tiles, filled in when you point at it */
.bt-hit::after { content: "⤢"; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--paper-2) 88%, transparent); color: var(--ink); font: 400 .95rem/1 var(--sans); transition: background .3s var(--ease-out-quart), color .3s var(--ease-out-quart), border-color .3s; }
.bt:hover .bt-hit::after, .bt-hit:focus-visible::after { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* while it plays by itself, the large tile shows how long until the next one takes its place */
.bt-run { display: none; }
.bento.auto .bt.focus .bt-run { display: block; position: absolute; left: 26px; right: 26px; bottom: 12px; height: 1px; background: var(--line); }
.bento.auto .bt.focus .bt-run::after { content: ""; position: absolute; inset: 0; background: var(--ink-55); transform-origin: left; animation: bt-run 5.2s linear both; }
.bento.off .bt.focus .bt-run::after, .bento:hover .bt.focus .bt-run::after { animation-play-state: paused; }
@keyframes bt-run { from { transform: scaleX(0); } }
@keyframes bt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .bt, .bt-pic, .bt-pic img { transition: none; } .bt.focus .bt-k, .bt.focus .bt-d, .bt.focus .bt-go { animation: none; } }

/* ── fog over the large pictures: the page's own paper, soft-edged, lifting from the bottom (--f runs 0 to 1) ── */
.plate.fogged { position: relative; }
.plate .fog { position: absolute; inset: -1px; z-index: 3; pointer-events: none; background: var(--paper); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to top, transparent calc(var(--f, 0) * 150% - 50%), #000 calc(var(--f, 0) * 150%)); mask-image: linear-gradient(to top, transparent calc(var(--f, 0) * 150% - 50%), #000 calc(var(--f, 0) * 150%)); }
.plate.clear .fog { display: none; }
.plate.fogged > .bk-pic { transform: scale(calc(1.06 - var(--f, 0) * .06)); }

/* ── the bead rail on a row of points ── */
.kbeats .bead { display: none; }
.kbeats.beads { position: relative; counter-reset: b; }
.kbeats.beads::before, .kbeats.beads::after { content: ""; position: absolute; left: 0; top: 0; }
.kbeats.beads::before { right: 0; border-top: 1px dashed var(--line-2); }
.kbeats.beads::after { width: calc(var(--p, 0) * 100%); border-top: 1px solid var(--ink); }
.kbeats.beads .bead { display: block; position: absolute; top: -4px; left: calc(var(--p, 0) * 100% - 4.5px); width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.kbeats.beads > div { padding-top: 30px; border-top: 0; opacity: .3; transition: opacity .6s var(--ease-out-quart); }
.kbeats.beads > div.on { opacity: 1; }
.kbeats.beads > div::before { counter-increment: b; content: counter(b, decimal-leading-zero); display: block; margin-bottom: 14px; font: 400 1.1rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink-55);
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease-out-quart), transform .6s var(--ease-out-expo); }
.kbeats.beads > div.on::before { opacity: 1; transform: none; }

/* ── the split-flap board ── */
.flap { display: inline-flex; flex-wrap: wrap; gap: 3px; font: 500 20px/1 var(--code) !important; font-style: normal !important; cursor: pointer; perspective: 400px; }
.flap .fl { position: relative; display: inline-grid; place-items: center; width: 1.3em; height: 1.75em; border-radius: 4px; background: var(--night); color: var(--bone); overflow: hidden; }
.flap .fl.sp { background: none; width: .6em; }
.flap .fl::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); }
.flap .fl b { font-weight: 500; transform-origin: 50% 50%; }
.flap .fl.go b { animation: fl-flip .07s linear; }
@keyframes fl-flip { from { transform: rotateX(80deg); opacity: .4; } to { transform: none; opacity: 1; } }

.whyk .wr { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .kbeats.beads > div, .kbeats.beads > div::before { transition: none; } }

/* ── the four points on the dark sheet, one open at a time ── */
.quad.acc { grid-template-columns: minmax(0, 1fr); align-content: start; }
.quad.acc > div, .quad.acc > div:nth-child(even) { padding: 0; border-left: 0; border-top: 1px solid var(--night-line); opacity: .5; transition: opacity .5s var(--ease-out-quart), border-color .5s var(--ease-out-quart); }
.quad.acc > div.on { opacity: 1; border-top-color: var(--bone-55); } .quad.acc > div:hover { opacity: 1; }
.quad.acc .qh { display: flex; align-items: baseline; gap: 20px; width: 100%; padding: 22px 0 20px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.quad.acc .qh .qn { flex: none; margin: 0; } .quad.acc .qh h4 { font-size: 1.6rem; }
.quad.acc .qh::after { content: "+"; margin-left: auto; font: 300 1.4rem/1 var(--sans); color: var(--bone-55); transition: transform .4s var(--ease-out-expo); } .quad.acc > div.on .qh::after { transform: rotate(45deg); }
.quad.acc div.qp { padding: 0 !important; border: 0 !important; }
.quad.acc .qp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out-expo); } .quad.acc > div.on .qp { grid-template-rows: 1fr; }
.quad.acc .qp p { min-height: 0; overflow: hidden; margin: 0; padding-left: 38px; max-width: 52ch; } .quad.acc .qp p::after { content: ""; display: block; height: 24px; }
@media (prefers-reduced-motion: reduce) { .quad.acc .qp, .quad.acc > div { transition: none; } }

/* ── the guarantees on a split-flap board (wide screens; below that the chips show as before) ── */
.board { display: none; }
@media (min-width: 1000px) { .board { display: block; margin: 40px auto 0; width: max-content; padding: 22px 24px 16px; border-radius: 10px; background: var(--night); cursor: pointer; }
  .board .flap { flex-wrap: nowrap; gap: 2px; font-size: 19px !important; } .board .flap .fl { background: #26231f; } .board .flap .fl.sp { width: 1.3em; background: #201e1a; }
  .board-n { margin: 14px 0 0; font: 500 .6875rem/1 var(--sans); letter-spacing: .12em; color: var(--bone-55); text-align: right; }
  .chips.boarded { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* ── the writing as an expanding strip ── */
.xs { display: flex; gap: 12px; height: 480px; margin-top: 40px; }
.xs-p { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); text-decoration: none; transition: flex-grow .8s var(--ease-out-expo), border-color .3s; }
.xs-p.on { flex-grow: 3.6; border-color: var(--line-2); }
.xs-p img { position: absolute; left: 0; top: 0; width: 100%; max-width: none; height: calc(100% - 96px); object-fit: cover; transition: height .8s var(--ease-out-expo); }
.xs-p.on img { height: calc(100% - 196px); }
.xs-cap { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; padding: 16px 18px 0; overflow: hidden; background: var(--paper-2); transition: height .8s var(--ease-out-expo), padding .8s var(--ease-out-expo); }
.xs-p.on .xs-cap { height: 196px; padding: 22px 26px 0; }
.xs-n { margin: 0 0 8px; font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--ink-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xs-cap h3 { margin: 0; font: 400 1.15rem/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: font-size .6s var(--ease-out-expo); }
.xs-p.on h3 { font-size: 1.9rem; line-height: 1.12; -webkit-line-clamp: 2; }
.xs-d, .xs-go { opacity: 0; transition: opacity .25s var(--ease-out-quart); }
.xs-p.on .xs-d, .xs-p.on .xs-go { opacity: 1; transition: opacity .5s var(--ease-out-quart) .3s; }
.xs-d { margin: 10px 0 14px; max-width: 52ch; color: var(--ink-70); font-size: .9375rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xs-go { display: inline-block; font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.xs-p:hover .xs-go { color: var(--bronze); }
/* a closed panel says it opens (the same mark as the bento and the KChat tiles) */
.xs-p::after { content: "⤢"; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--paper-2) 88%, transparent); color: var(--ink); font: 400 .95rem/1 var(--sans); transition: opacity .3s var(--ease-out-quart), background .3s, color .3s; }
.xs-p.on::after { opacity: 0; } .xs-p:not(.on):hover::after { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 761px) { .xs-p.on .xs-cap { height: 222px; } .xs-p.on img { height: calc(100% - 222px); } .xs-p.on .xs-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; } }
@media (max-width: 760px) { .xs { flex-direction: column; height: auto; } .xs-p { flex: none; height: 150px; transition: height .8s var(--ease-out-expo); } .xs-p.on { height: 420px; }
  .xs-cap { height: 78px; } .xs-p img { height: calc(100% - 78px); } .xs-d { white-space: normal; } .xs-p.on .xs-cap { height: 210px; } .xs-p.on img { height: calc(100% - 210px); } }
@media (prefers-reduced-motion: reduce) { .xs-p, .xs-p img, .xs-cap, .xs-cap h3 { transition: none; } }

/* ── Context's answer, live ── */
.panel.live { position: relative; }
.panel.live .pq .caret { display: inline-block; width: 1px; height: 1.15em; margin-left: 2px; background: var(--bone); vertical-align: -.2em; } .panel.live .pq.done .caret { display: none; }
.panel.live > .pr { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out-quart), transform .7s var(--ease-out-expo), border-color .6s var(--ease-out-quart), background .4s var(--ease-out-quart); }
.panel.live > .pr.in { opacity: 1; transform: none; border-left-color: var(--bone-55); }
.pbead { position: absolute; left: 28px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bone); opacity: 0; transition: top .7s var(--ease-out-expo), opacity .3s; }
.panel.live.go .pbead { opacity: 1; }

/* ── Decision Engineering, done by the visitor ── */
.dx { margin-top: 24px; padding: 44px; border-radius: 10px; background: var(--night); color: var(--bone); }
.dx-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--night-line); }
.dx .label { color: var(--bone-70); } .dx-top h3 { margin: 0; font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.01em; } .dx-top h3 em { color: var(--bone-70); }
.dx-count { display: flex; gap: 36px; margin: 0; font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-55); white-space: nowrap; }
.dx-count span { display: grid; gap: 10px; } .dx-count b { font: 400 2.6rem/1 var(--serif); letter-spacing: 0; color: var(--bone); } .dx.found .dx-count span:last-child b { color: #c9a77a; }
.dx-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; padding-top: 32px; min-height: 470px; }
.dx-k { margin: 0 0 18px; min-height: 2.9em; font: italic 400 1.2rem/1.4 var(--serif); color: var(--bone-70); }
.dx-pile { display: grid; gap: 8px; }
.dx-part { position: relative; display: block; width: 100%; padding: 15px 18px 16px; border: 1px solid var(--night-line); border-radius: 8px; background: #24211d; color: var(--bone); text-align: left; cursor: pointer;
  transform: translateY(calc(var(--k) * (-100% - 8px) + var(--k) * 5px)) rotate(var(--r)); transition: transform .9s var(--ease-out-expo) calc(var(--k) * 70ms), border-color .3s, background .3s, opacity .4s; }
.dx-part:disabled { cursor: default; opacity: 1; color: var(--bone); }
.dx.apart .dx-part { transform: none; }
.dx-part small { display: block; margin-bottom: 6px; font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-55); }
.dx-part b { font: 400 1.25rem/1.25 var(--serif); }
.dx:not(.apart) .dx-part small, .dx:not(.apart) .dx-part b { opacity: 0; } .dx-part small, .dx-part b { transition: opacity .5s var(--ease-out-quart) .3s; }
.dx-part i { position: absolute; right: 16px; top: 18px; width: 7px; height: 7px; border-right: 1px solid var(--bone-55); border-bottom: 1px solid var(--bone-55); transform: rotate(-45deg); opacity: 0; transition: opacity .3s; }
.dx.apart .dx-part i { opacity: 1; }
.dx.apart .dx-part:hover, .dx-part.on { border-color: var(--bone-55); background: #2c2823; } .dx-part.seen:not(.on) { opacity: .6; }
.dx:not(.apart) .dx-pile { height: 84px; } .dx-go { margin-top: 28px; } .dx.apart .dx-go { display: none; }
.dx-dir ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dx-row { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr) 28px; gap: 4px 18px; align-items: baseline; padding: 18px 18px 18px 0; border-top: 1px solid var(--night-line); opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease-out-quart), transform .7s var(--ease-out-expo); }
.dx-row.in { opacity: 1; transform: none; }
.dx-tag { font: 500 .6875rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-55); }
.dx-row b { font: 400 1.45rem/1.2 var(--serif); background: linear-gradient(currentColor, currentColor) 0 55% / 0 1px no-repeat; transition: background-size .6s var(--ease-out-expo), color .5s; }
.dx-row em { grid-column: 2; max-width: 52ch; font-style: normal; font-size: .9375rem; line-height: 1.5; color: var(--bone-70); display: grid; grid-template-rows: 0fr; opacity: 0; transition: opacity .5s var(--ease-out-quart) .2s; }
.dx-row.tested em { display: block; opacity: 1; }
.dx-row.cut b { background-size: 100% 1px; color: var(--bone-55); } .dx-row.cut em { color: var(--bone-55); }
.dx-v { grid-column: 3; grid-row: 1; justify-self: end; width: 18px; height: 18px; opacity: 0; transition: opacity .4s; } .dx-row.tested .dx-v { opacity: 1; }
.dx-row.cut .dx-v { background: linear-gradient(45deg, transparent 46%, var(--bone-55) 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--bone-55) 46% 54%, transparent 54%); }
.dx-row.hold .dx-v, .dx-row.win .dx-v { border-right: 1.5px solid var(--bone); border-bottom: 1.5px solid var(--bone); width: 8px; height: 14px; transform: rotate(40deg); margin-right: 5px; } .dx-row.win .dx-v { border-color: #c9a77a; }
.dx-row.win { padding-left: 18px; border: 1px solid #c9a77a; border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px; } .dx-row.win b { color: #e6c79a; font-size: 1.75rem; } .dx-row.win .dx-tag { color: #c9a77a; } .dx-row.win em { color: var(--bone); }
.dx-pay { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; margin-top: 24px; transition: opacity .9s var(--ease-out-quart), transform .9s var(--ease-out-expo); }
.dx-pay .dnote { margin: 0; } .dx-pay.wait { opacity: .0; transform: translateY(16px); height: 0; margin: 0; overflow: hidden; }
.dx-acts { margin-top: 32px; }
@media (max-width: 900px) { .dx { padding: 26px 20px; } .dx-top { flex-direction: column; align-items: flex-start; } .dx-body { grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 0; } .dx-row { grid-template-columns: minmax(0, 1fr) 28px; } .dx-tag { grid-column: 1 / -1; } .dx-row em { grid-column: 1; } .dx-v { grid-column: 2; grid-row: 2; }
  .dx-pay { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .dx-part, .dx-row, .dx-row b, .dx-pay { transition: none; } }

/* ── the term wall ── */
.tw { margin-top: 56px; }
.tw-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; } .tw-h .label { margin: 0; }
.tw-nav, .gl-pill { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 6px; }
.tw-nav button, .gl-pill button { width: 30px; height: 28px; border: 0; border-radius: 4px; background: none; color: inherit; font: 400 .9rem/1 var(--sans); cursor: pointer; transition: background .18s; } .tw-nav button:hover, .gl-pill button:hover { background: var(--mist); }
.tw-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.tw-c { position: relative; height: 96px; overflow: hidden; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tw-c span { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 12px; text-align: center; font: 400 1.25rem/1.15 var(--serif); }
.tw-c span.in { animation: tw-in .7s var(--ease-out-expo) both; } .tw-c span.out { animation: tw-out .55s var(--ease-out-quart) both; }
@keyframes tw-in { from { opacity: 0; transform: translateX(var(--from, 22px)); } }
@keyframes tw-out { to { opacity: 0; transform: translateX(var(--to, -22px)); filter: blur(6px); } }
@media (max-width: 760px) { .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tw-c { height: 76px; } .tw-c span { font-size: 1.1rem; } }

/* ── where our clients are ── */
.globe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; margin-top: 56px; color: var(--ink); }
.gl-t h3 { margin: 0; font: 400 clamp(1.7rem, 2.8vw, 2.4rem)/1.12 var(--serif); letter-spacing: -.01em; } .gl-t h3 em { display: block; color: var(--ink-70); }
.gl-pill { margin-top: 28px; } .gl-pill b { min-width: 124px; text-align: center; font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.gl-s { margin: 16px 0 0; color: var(--ink-55); font-size: .875rem; }
.globe canvas { display: block; cursor: grab; touch-action: pan-y; } .globe canvas:active { cursor: grabbing; }
@media (max-width: 900px) { .globe { grid-template-columns: minmax(0, 1fr); gap: 24px; } .globe canvas { margin: 0 auto; } }

/* ── the feature dial ── */
.fd { position: relative; margin-top: 24px; --R: clamp(250px, 30vw, 430px); }
.fd-stage { position: relative; height: clamp(560px, 82vh, 780px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; overflow: hidden; }
.fd-dial { position: relative; height: 100%; }
.fd-ring { position: absolute; left: calc(var(--R) * -.42); top: 50%; width: 0; height: 0; transition: transform 1s var(--ease-out-expo); }
.fd-ring::before { content: ""; position: absolute; left: calc(var(--R) * -1 + 26px); top: calc(var(--R) * -1 + 26px); width: calc(var(--R) * 2 - 52px); height: calc(var(--R) * 2 - 52px); border: 1px solid var(--line-2); border-radius: 50%; }
.fd-l { position: absolute; left: 0; top: 0; margin-top: -.5em; transform-origin: 0 50%; transform: rotate(var(--a)) translateX(var(--R)); white-space: nowrap; font: 400 clamp(1.15rem, 1.9vw, 1.7rem)/1 var(--serif);
  color: var(--ink); opacity: calc(.62 - var(--far, 1) * .5); transition: opacity .6s var(--ease-out-quart), color .4s; }
.fd-l.on { opacity: 1; }
.fd-t { position: absolute; left: 0; top: 0; width: 16px; height: 1px; background: var(--line-2); transform-origin: 0 50%; transform: rotate(var(--a)) translateX(calc(var(--R) - 48px)); }
.fd-pt { position: absolute; left: calc(var(--R) * .58 - 34px); top: 50%; width: 18px; height: 1px; background: var(--bronze); }
.fd-txt { padding-left: 24px; border-left: 1px solid var(--line); }
.fd-txt > :not(.fd-ctl) { opacity: 0; transform: translateY(10px); } .fd-txt.in > :not(.fd-ctl) { opacity: 1; transform: none; transition: opacity .5s var(--ease-out-quart), transform .7s var(--ease-out-expo); } .fd-txt.in > :nth-child(2) { transition-delay: .05s; } .fd-txt.in > :nth-child(3) { transition-delay: .1s; } .fd-txt.in > :nth-child(4) { transition-delay: .15s; }
.fd-n { margin: 0 0 18px; font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--ink-55); }
.fd-txt h3 { margin: 0; font: 400 clamp(2rem, 3.6vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.fd-d { max-width: 40ch; margin: 16px 0 22px; color: var(--ink-70); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
.fd-s { display: inline-block; margin: 0; padding: 6px 9px; border-radius: 4px; background: var(--mist); font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; } .fd-s.soon { background: var(--bronze); color: var(--bone); }
.fd-l { cursor: pointer; } .fd-l:not(.on):hover { opacity: .85; }
.fd-ctl { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.fd-b { width: 40px; height: 40px; flex: none; border: 1px solid var(--line-2); border-radius: 6px; background: none; color: var(--ink); font: 400 1rem/1 var(--sans); cursor: pointer; transition: border-color .3s var(--ease-out-quart), background .3s var(--ease-out-quart); }
.fd-b:hover { border-color: var(--ink); } .fd-b:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.fd-run { position: relative; width: 120px; height: 1px; background: var(--line-2); }
.fd-run i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.fd-run.go i { animation: fd-run 3.8s linear both; } .fd.off .fd-run.go i, .fd:hover .fd-run.go i { animation-play-state: paused; }
.fd.held .fd-run { visibility: hidden; }
@keyframes fd-run { to { transform: scaleX(1); } }
@media (max-width: 760px) { .fd { --R: 210px; } .fd-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46% 54%; align-items: start; } .fd-ring { left: -70px; } .fd-pt { left: 90px; } .fd-txt { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ── the contact page: the form in three steps, the select that opens out of its button, and the toasts ── */
.cf { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 88px; align-items: start; }
.cf-steps { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.cf-steps li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font: 400 1.35rem/1.2 var(--serif); color: var(--ink-55); transition: color .4s var(--ease-out-quart); }
.cf-steps li span { font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; font-variant-numeric: tabular-nums; } .cf-steps li.on { color: var(--ink); } .cf-steps li.done { color: var(--ink-70); text-decoration: line-through; text-decoration-thickness: 1px; }
.cf-note { margin: 24px 0 0; max-width: 34ch; color: var(--ink-55); font-size: .875rem; }
.cf-form { position: relative; padding: 40px 44px 36px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper-2); overflow: hidden; }
.cf-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); } .cf-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transition: transform .7s var(--ease-out-expo); }
.cf-step { display: none; margin: 0; padding: 0; border: 0; min-width: 0; } .cf-step.on { display: block; }
.cf-step legend { padding: 0; margin-bottom: 26px; font: 400 2rem/1.1 var(--serif); letter-spacing: -.01em; }
.fl { position: relative; display: block; margin-bottom: 18px; }
.fl input, .fl textarea { width: 100%; padding: 26px 0 10px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: none; color: var(--ink); font: 400 1.0625rem/1.4 var(--sans); outline: none; resize: vertical; transition: border-color .3s; }
.fl input:focus, .fl textarea:focus { border-bottom-color: var(--ink); }
.fl span { position: absolute; left: 0; top: 24px; color: var(--ink-55); font-size: 1.0625rem; pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease-out-expo), color .3s; }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span, .fl textarea:focus + span, .fl textarea:not(:placeholder-shown) + span { transform: translateY(-20px) scale(.72); color: var(--ink-70); }
.msel { position: relative; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); transition: border-color .3s; } .msel.open { border-color: var(--ink); }
.msel-b { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 16px 13px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.msel-b small { font: 500 .6875rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); } .msel-b b { grid-column: 1; font: 400 1.3rem/1.25 var(--serif); color: var(--ink-55); } .msel.set .msel-b b { color: var(--ink); }
.msel-b i { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 8px; height: 8px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); transition: transform .4s var(--ease-out-expo); } .msel.open .msel-b i { transform: translateY(3px) rotate(225deg); }
.msel-l { list-style: none; margin: 0; padding: 0 6px; height: 0; overflow: hidden; outline: none; transition: height .5s var(--ease-out-expo); }
.msel-l li { padding: 11px 10px; border-radius: 6px; font: 400 1.15rem/1.2 var(--serif); cursor: pointer; } .msel-l li:first-child { margin-top: 2px; border-top: 0; } .msel-l li:last-child { margin-bottom: 6px; }
.msel-l li:hover, .msel-l li.hi, .msel-l li[aria-selected="true"] { background: var(--mist); }
.cf-sum { margin: 0; border-top: 1px solid var(--line-2); } .cf-sum div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cf-sum dt { font: 500 .6875rem/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); } .cf-sum dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cf-err { min-height: 1.4em; margin: 14px 0 0; color: #8a3b24; font-size: .875rem; }
.cf-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
#cfNext { min-width: 104px; justify-content: center; transition: min-width .5s var(--ease-out-expo), background .3s, color .3s; } #cfNext i { display: none; width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; }
#cfNext.load .t { display: none; } #cfNext.load i { display: block; animation: cf-spin .8s linear infinite; } #cfNext.done { pointer-events: none; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; max-width: min(380px, calc(100vw - 40px)); padding: 13px 10px 13px 16px; border-radius: 10px; background: var(--night); color: var(--bone); font-size: .9375rem; line-height: 1.4; box-shadow: var(--lift); pointer-events: auto;
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .35s var(--ease-out-quart), transform .5s var(--ease-out-expo); } .toast.in { opacity: 1; transform: none; } .toast.out { opacity: 0; transform: translateX(16px); }
.toast button { flex: none; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--bone-70); font-size: 1.1rem; line-height: 1; cursor: pointer; } .toast button:hover { background: rgba(237,224,202,.1); }
@media (max-width: 900px) { .cf { grid-template-columns: minmax(0, 1fr); gap: 36px; } .cf-form { padding: 30px 20px 24px; } .cf-sum div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .fl span, .msel-l, .cf-bar i, .toast { transition: none; } #cfNext.load i { animation: none; } }

/* ── booking a call: one dark sheet, four steps ── */
.bk { margin-top: 56px; padding: 0 44px 40px; border-radius: 10px; background: var(--night); color: var(--bone); overflow: hidden; }
.bk-trail { display: flex; gap: 0; list-style: none; margin: 0 -44px; padding: 0 44px; border-bottom: 1px solid var(--night-line); counter-reset: t; }
.bk-trail li { counter-increment: t; position: relative; padding: 20px 28px 18px 0; margin-right: 28px; font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-55); transition: color .4s; }
.bk-trail li::before { content: counter(t, decimal-leading-zero) "  "; white-space: pre; opacity: .7; } .bk-trail li.on { color: var(--bone); } .bk-trail li.done { color: var(--bone-70); }
.bk-trail li.on::after { content: ""; position: absolute; left: 0; right: 28px; bottom: -1px; height: 1px; background: var(--bone); }
.bk-body { padding-top: 36px; min-height: 380px; } .bk-wait { margin: 0; color: var(--bone-70); font: italic 400 1.2rem/1.4 var(--serif); } .bk-wait a, .bk-mail a { color: inherit; }
.bk-sample { display: inline-block; margin: 0 0 24px; padding: 7px 10px; border-radius: 4px; background: var(--bronze); color: var(--bone); font: 500 .75rem/1.3 var(--sans); }
.bk-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bk-type { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px; border: 1px solid var(--night-line); border-radius: 10px; background: #24211d; color: var(--bone); text-align: left; cursor: pointer; transition: border-color .3s, background .3s, transform .5s var(--ease-out-expo); }
.bk-type:hover { border-color: var(--bone-55); background: #2c2823; transform: translateY(-2px); }
.bk-type > span, .bk-k { font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-55); } .bk-type b { font: 400 2rem/1.1 var(--serif); letter-spacing: -.01em; } .bk-type em { font-style: normal; color: var(--bone-70); line-height: 1.5; text-wrap: pretty; }
.bk-type i { margin-top: 14px; font: 500 .75rem/1 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.bk-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.bk-mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; } .bk-mh b { font: 400 1.5rem/1 var(--serif); }
.bk-mh button { width: 34px; height: 32px; border: 1px solid var(--night-line); border-radius: 6px; background: none; color: var(--bone); cursor: pointer; } .bk-mh button:disabled { opacity: .3; cursor: default; } .bk-mh button:not(:disabled):hover { border-color: var(--bone-55); }
.bk-wd, .bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .bk-wd span { padding-bottom: 8px; text-align: center; font: 500 .6875rem/1 var(--sans); letter-spacing: .08em; color: var(--bone-55); }
.bk-d { aspect-ratio: 1; border: 1px solid transparent; border-radius: 6px; background: rgba(237,224,202,.07); color: var(--bone); font: 400 .9375rem/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s, border-color .2s; }
.bk-d:disabled { background: none; color: rgba(237,224,202,.25); cursor: default; } .bk-d:not(:disabled):hover { border-color: var(--bone-55); } .bk-d.on { background: var(--bone); color: var(--night); }
.bk-times .bk-k { margin: 6px 0 18px; } .bk-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 296px; overflow-y: auto; }
.bk-slot { height: 42px; border: 1px solid var(--night-line); border-radius: 6px; background: none; color: var(--bone); font: 400 .9375rem/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s, border-color .2s, color .2s; } .bk-slot:hover { background: var(--bone); border-color: var(--bone); color: var(--night); }
.bk-tz { margin: 16px 0 0; color: var(--bone-55); font-size: .8125rem; }
.bk-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 28px; }
.bk-sum { display: grid; gap: 6px; margin: 0 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--night-line); } .bk-sum b { font: 400 1.9rem/1.1 var(--serif); } .bk-sum span { color: var(--bone-70); }
.bk-form { max-width: 620px; } .bk .fl input, .bk .fl textarea { color: var(--bone); border-bottom-color: var(--night-line); } .bk .fl input:focus, .bk .fl textarea:focus { border-bottom-color: var(--bone); } .bk .fl span { color: var(--bone-55); }
.bk .fl input:focus + span, .bk .fl input:not(:placeholder-shown) + span, .bk .fl textarea:focus + span, .bk .fl textarea:not(:placeholder-shown) + span { color: var(--bone-70); }
.bk-err { margin: 16px 0 0; color: #e0a58f; font-size: .875rem; }
.bk-done h3 { margin: 14px 0 0; font: 400 clamp(2rem, 4vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.01em; } .bk-done h3 em { color: var(--bone-70); } .bk-done p:last-child { max-width: 52ch; margin: 18px 0 0; color: var(--bone-70); }
.bk-mail { margin: 22px 0 0; color: var(--ink-70); font-size: .9375rem; }
@media (max-width: 900px) { .bk { padding: 0 20px 28px; } .bk-trail { margin: 0 -20px; padding: 0 20px; overflow-x: auto; } .bk-trail li { white-space: nowrap; margin-right: 16px; padding-right: 16px; } .bk-types, .bk-pick { grid-template-columns: minmax(0, 1fr); gap: 28px; } .bk-type b { font-size: 1.6rem; } }

/* ── fixes from the phone pass ── */
.cf-nav [hidden], .bk-nav [hidden] { display: none; }
.flap .fl b { display: block; margin: 0; color: var(--bone) !important; font: inherit !important; letter-spacing: 0 !important; text-transform: none; }
@media (max-width: 760px) { .bt:not(.focus) .bt-cap { padding: 0 12px; } .bt:not(.focus) .bt-cap h3 { display: flex; align-items: center; height: 52px; font-size: 1rem; line-height: 1.12; white-space: normal; }
  .pr-save { right: auto; left: calc(100% + 10px); } }

/* ── fixes from the night pass: the capsule gets an edge on the dark page; light bronze labels take dark type ── */
.night .isl { border: 1px solid var(--line-2); }
.night .pr-save, .night .bk-sample, .night .fd-s.soon { color: #171512; }
.night .cf-err { color: #e0a58f; }
