/* Kibi landing page. Ink on paper, one warm accent. The accent means "Kibi": the rider,
   the one button, and what Kibi prepared inside the product fragments. */
@font-face { font-family: "General Sans"; src: url(../fonts/general-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(../fonts/general-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(../fonts/general-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 100 900; font-display: block; }
/* Style options for the owner's config panel (?config, see site/CONFIG.md). A face is only downloaded when an option uses it. */
@font-face { font-family: "K Switzer"; src: url(../fonts/switzer.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "K Caveat"; src: url(../fonts/caveat.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "K Geist Mono"; src: url(../fonts/geist-mono-text.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "K Crimson Pro"; src: url(../fonts/crimson-pro.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "K Arimo"; src: url(../fonts/arimo.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "K Inter"; src: url(../fonts/inter.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "K Erode"; src: url(../fonts/erode.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "K Figtree"; src: url(../fonts/figtree.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "K Geist"; src: url(../fonts/geist.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "K Besley"; src: url(../fonts/besley.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "K Patrick Hand"; src: url(../fonts/patrick-hand.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f2f2f0;
  --sheet: #ffffff;
  --tint: #e6e6e3;
  --peach: #f9d0c1;
  --ink: #131311;
  --soft: #4b4b47;
  --line: rgba(19, 19, 17, .16);
  --line-2: rgba(19, 19, 17, .08);
  --accent: #f1552f;
  --accent-ink: #b8371a;
  --ride-ink: #161614;
  --ride-accent-ink: #5e1806;
  --gut: 32px;
  --r: 22px;
  --ease: cubic-bezier(.19, .8, .22, 1);
  --nav-h: 68px;
  --f-text: "General Sans", "Helvetica Neue", Arial, sans-serif;   /* type roles: the config panel swaps these; the default is the one face everywhere */
  --f-head: var(--f-text); --f-lead: var(--f-text); --f-cap: var(--f-text); --f-note: var(--f-text);
}
html[data-font="loopsii"] { --f-text: "K Switzer", "Helvetica Neue", Arial, sans-serif; --f-cap: "K Geist Mono", ui-monospace, monospace; --f-note: "K Caveat", cursive; --note-scale: 1.4; }
html[data-font="mecha"] { --f-text: "K Arimo", "Helvetica Neue", Arial, sans-serif; --f-head: "K Crimson Pro", Georgia, serif; --w-head: 400; --w-sub: 500; --trk: .45; }
html[data-font="ontora"] { --f-text: "K Inter", "Helvetica Neue", Arial, sans-serif; --trk: 1.25; }
html[data-font="tribe"] { --f-text: "K Figtree", "Helvetica Neue", Arial, sans-serif; --f-head: "K Erode", Georgia, serif; --f-cap: "K Geist", "Helvetica Neue", Arial, sans-serif; --w-head: 450; --w-sub: 500; --trk: .4; }
html[data-font="town"] { --f-text: "K Geist", "Helvetica Neue", Arial, sans-serif; --f-head: "K Besley", Georgia, serif; --f-lead: var(--f-head); --f-note: "K Patrick Hand", cursive; --note-scale: 1.25; --w-head: 400; --w-sub: 500; --w-lead: 400; --trk: .3; }
html[data-font="town"] h1, html[data-font="town"] h2 { line-height: 1.08; } html[data-font="town"] .close h2 { line-height: 1; }   /* the slab's tall ascenders need the air town.com gives them */
html[data-font] .rot .w, html[data-font] .rv .w { padding-top: .22em; margin-top: -.22em; }   /* other faces carry Lithuanian accents higher: room above, so the reveal mask never cuts them */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html:not(.lenis) { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* type */
h1, h2 { font-family: var(--f-head); font-weight: var(--w-head, 500); letter-spacing: calc(-.035em * var(--trk, 1)); text-wrap: balance; }
h1 { font-size: clamp(40px, 4.9vw, 72px); line-height: 1; }
h2 { font-size: clamp(32px, 3.9vw, 58px); line-height: 1.02; }
h3 { font-family: var(--f-head); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.12; font-weight: 500; letter-spacing: calc(-.02em * var(--trk, 1)); }
.lead { font-family: var(--f-lead); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.38; letter-spacing: -.012em; font-weight: var(--w-lead, 500); max-width: 30em; }
.hero .lead b { font-weight: 600; }

/* the one button */
.cta { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 24px; border-radius: 999px; background: var(--accent-fill, var(--accent)); color: var(--on-accent, var(--ink)); font-weight: 600; font-size: 16px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .35s var(--ease), background-color .25s; }
.cta::after { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .35s var(--ease); margin-left: -2px; }
.cta:hover { background: var(--accent-hover, #f4673f); transform: translateY(-1px); }
.cta:hover::after { transform: translateX(4px) rotate(45deg); }
.cta:active { transform: translateY(1px) scale(.985); }
.cta.small { min-height: 44px; padding: 0 18px 0 20px; font-size: 15px; }
.nav .cta { transition: transform .35s var(--ease), background-color .35s, box-shadow .35s; }
.nav .cta { background: var(--ink); color: var(--paper); transition: opacity .35s, visibility 0s, transform .35s var(--ease), background-color .25s; }
@media (max-width: 860px) { html[data-cta="hero"] .nav .cta { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, visibility 0s .25s, transform .25s; } }   /* phones: the nav button appears once the hero button has scrolled away, so it never crowds the wordmark; wider screens always show it */
.nav .cta:hover { background: #2a2a27; }

/* nav: one opaque band, so nothing shows through or collides with it */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line-2); }
.nav .bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.mark { font-family: var(--f-head); font-weight: 600; font-size: 27px; letter-spacing: -.05em; text-decoration: none; line-height: 1; display: inline-flex; gap: 3px; min-height: 44px; align-items: center; }
.mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(6px); }
.nav ul { display: flex; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 16px; font-weight: 500; text-decoration: none; border-radius: 999px; transition: background-color .25s; }
.nav li a:hover { background: var(--line-2); }

/* 1 hero */
.hero { padding-top: clamp(28px, 4.2vw, 64px); }
.hero .top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: end; padding-bottom: clamp(30px, 4vw, 60px); }
.hero h1 .fix { display: block; }
.rot { display: block; position: relative; height: 2em; transition: height .5s var(--ease); }
.rot .end { position: absolute; left: 0; top: 0; width: 100%; display: block; }
.rot .w, .rv .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .24em; margin-bottom: -.24em; }
.rot .w > span, .rv .w > span { display: inline-block; will-change: transform; }
.js .rot .end .w > span { transform: translateY(135%); }   /* no transition at rest: an ending that has left snaps back below, it never travels down through the line */
.js .rot .end.on .w > span { transform: none; transition: transform .8s var(--ease) calc(var(--n) * 45ms); }
.js .rot .end.off .w > span { transform: translateY(-135%); transition: transform .55s cubic-bezier(.6, 0, .8, .3) calc(var(--n) * 22ms); }
.hero .top { align-items: stretch; }
.hero .side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 26px; padding: calc(clamp(40px, 4.9vw, 72px) * .16) 0 calc(clamp(40px, 4.9vw, 72px) * .2); }   /* lead at the headline's cap height, button on its last baseline */
.ridebox { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }   /* full width, edge to edge */
.ride { position: relative; display: flex; justify-content: center; aspect-ratio: 576 / 248; overflow: hidden; }
.ride canvas { display: block; opacity: 0; transition: opacity .5s; align-self: start; }
.ride.is-ready canvas { opacity: 1; }
.ridectl { display: flex; justify-content: flex-start; padding-top: 12px; }
#ride-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(242, 242, 240, .9); cursor: pointer; display: grid; place-items: center; transition: background-color .25s, transform .3s var(--ease); }
#ride-toggle:hover { background: var(--sheet); transform: scale(1.05); }
#ride-toggle::before { content: ""; width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
#ride-toggle[data-state="paused"]::before { width: 0; height: 0; border: 0; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* section frame */
main > section { padding: clamp(36px, 4.5vw, 75px) 0; }
.head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: end; align-items: last baseline; margin-bottom: clamp(32px, 4vw, 64px); }
.js .rv .w > span { transform: translateY(135%); transition: transform .95s var(--ease); transition-delay: calc(var(--n) * 38ms); }
.js .rv.in .w > span { transform: none; }
.js .rl { opacity: 0; transform: translateY(16px); transition: opacity .9s ease-out .15s, transform .95s var(--ease) .15s; }
.js .rl.in { opacity: 1; transform: none; }

/* 2 jobs: a deck. One card in front, the handled ones stacked behind it. */
.head.mid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 22px; }
.head.stack { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: clamp(40px, 5vw, 80px); }
.head.stack .lead { max-width: 34em; }
.head.mid h2 { max-width: 11em; }
.head.mid .lead { max-width: 30em; text-wrap: balance; }
.deck { display: grid; gap: 22px; --peek: 18px; }
.job { position: sticky; top: calc(var(--nav-h) + 20px + 3 * var(--peek)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--sheet); border-radius: 30px; overflow: hidden; transform-origin: 50% 0; will-change: transform; box-shadow: 0 0 0 1px var(--line-2), 0 -10px 24px -14px rgba(19, 19, 17, .28); }
.job .txt { padding: 44px 52px 40px 48px; display: flex; flex-direction: column; }
.job .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: auto; padding-top: 26px; font-size: 15px; }
.job .now { color: #3d3d3a; }
.job .tools span { font-family: var(--f-cap); color: var(--soft); margin-right: 4px; }
.job .tools img { width: 22px; height: 22px; }
.job .tools b { font-weight: 600; margin-right: 10px; }
.job h3 { font-size: clamp(25px, 2.25vw, 33px); line-height: 1.06; letter-spacing: calc(-.03em * var(--trk, 1)); font-weight: var(--w-sub, 600); text-wrap: balance; }
.job .now { margin-top: 14px; font-size: 18px; line-height: 1.4; color: var(--soft); max-width: 27em; }
.job dl { margin-top: 30px; display: grid; grid-template-columns: 104px 1fr; }
.job dt, .job dd { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.job dt { font-weight: 600; }
.job dl > :nth-last-child(-n+2) { padding-bottom: 0; }
.job dt.kibi { color: var(--accent-ink); }
.job dt.kibi + dd { font-weight: 500; }
.job .frag { position: relative; background: var(--peach); overflow: hidden; --g: var(--peach); }
.job .frag::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: linear-gradient(transparent, var(--g)); pointer-events: none; }   /* the list runs on past the panel: fade it out on purpose */
.job:nth-of-type(4n+2) .frag { background: #dededa; --g: #dededa; }
.job:nth-of-type(4n+3) .frag { background: var(--ink); --g: var(--ink); }
.job:nth-of-type(4n) .frag { background: var(--peach-2, #f2a88f); --g: var(--peach-2, #f2a88f); }
.ui { position: absolute; top: 52px; left: 52px; width: min(470px, calc(100% - 76px)); background: var(--sheet); border-radius: 16px; box-shadow: 0 1px 0 rgba(19, 19, 17, .06), 0 30px 50px -30px var(--accent-shadow, rgba(90, 40, 20, .45)); font-size: 15px; line-height: 1.3; }
.ui.b { left: auto; right: 52px; top: 68px; }
.ui.c { left: 50%; margin-left: max(-235px, calc(-50% + 38px)); top: 84px; }
.ui-h { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-bottom: 1px solid var(--line-2); }
.ui-h img { width: 22px; height: 22px; }
.ui-h b { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.ui-h span { font-family: var(--f-cap); color: var(--soft); margin-left: auto; font-size: 13px; }
.ui .r { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; min-height: 62px; padding: 10px 16px 10px 18px; border-bottom: 1px solid var(--line-2); }
.ui .r img { width: 24px; height: 24px; }
.ui .r b { display: block; font-weight: 600; letter-spacing: -.01em; }
.ui .r b s { color: var(--soft); font-weight: 500; }
.ui .r span { color: #3d3d3a; font-size: 14px; }
.ui .r .dot { width: 8px; height: 8px; margin: 0 8px; border-radius: 50%; background: var(--line); }
.ui .r .kd { width: 26px; height: 24px; border-radius: 8px; background: var(--accent-fill, var(--accent)); color: var(--on-accent, var(--ink)); display: grid; place-items: center; font-weight: 600; font-size: 11px; letter-spacing: -.02em; margin-left: -1px; }
.ui .r .kd.n { background: var(--tint); color: var(--ink); font-size: 13px; }
.ui .r.k { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-tint, rgba(241, 85, 47, .06)); }
.ui .r .act { font-style: normal; font-weight: 600; font-size: 13px; color: var(--sheet); background: var(--ink); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.ui .r .meta { font-family: var(--f-cap); font-style: normal; font-size: 13px; font-weight: 600; color: var(--soft); white-space: nowrap; }

/* 3 the window, on its own stage */
.stage { background: #dfdfdb; border-radius: 34px; padding: clamp(14px, 3.4vw, 52px); }
.stage .head { margin-bottom: clamp(28px, 3.4vw, 52px); }
.head.stack h2 { max-width: 12em; }
.win { background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(19, 19, 17, .1), 0 70px 120px -50px rgba(19, 19, 17, .7), 0 30px 54px -24px rgba(19, 19, 17, .4); }
.win .bar { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); }
.win .dots { display: flex; gap: 7px; }
.win .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.win .title { font-weight: 600; font-size: 15px; letter-spacing: -.02em; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.win .title i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tint); }
.seg button { border: 0; background: none; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.win .hold { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; }
.win .hold::before { content: ""; width: 8px; height: 10px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.win .hold[data-state="paused"]::before { width: 0; height: 0; border: 0; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.win .body { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; min-height: 520px; }
.win .inbox { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.win .inbox .it { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 12px; font-size: 14px; line-height: 1.3; }
.win .inbox .it img { width: 20px; height: 20px; margin-top: 1px; }
.win .inbox .it b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .inbox .it span { color: var(--soft); font-size: 13px; }
.win .inbox .it.cur { background: var(--tint); }
.win .inbox .it.new { transition: opacity .6s, transform .7s var(--ease); }
.win .inbox .it.new.pre { opacity: 0; transform: translateY(-10px); }
.win .thread { padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mail { max-width: 560px; transition: opacity .6s, transform .7s var(--ease); }
.mail.pre { opacity: 0; transform: translateY(12px); }
.mail .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.mail .who img { width: 20px; height: 20px; }
.mail .who b { color: var(--ink); font-weight: 600; }
.mail .txt { font-size: 16px; line-height: 1.5; }
.mail.in .txt { background: var(--paper); border-radius: 4px 16px 16px 16px; padding: 16px 18px; }
.mail.out { align-self: flex-end; width: 100%; }
.mail.out .txt { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 16px; box-shadow: inset 3px 0 0 var(--accent); min-height: 150px; white-space: pre-wrap; }
.mail.out .txt .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -.15em; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mail .foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--soft); }
.send { position: relative; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; min-height: 44px; padding: 0 22px; transition: transform .25s var(--ease), background-color .3s, opacity .4s; opacity: .35; }
.send.ready { opacity: 1; }
.send.press { transform: scale(.94); }
.send.done { background: var(--tint); color: var(--ink); }
.ptr { position: absolute; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; opacity: 0; transition: transform 1.1s var(--ease), opacity .4s; z-index: 5; }
.ptr.on { opacity: 1; }
.win .srcs { border-left: 1px solid var(--line); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.win .srcs > p { font-family: var(--f-cap); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.src { background: var(--sheet); border-radius: 14px; padding: 14px; font-size: 14px; line-height: 1.35; transition: box-shadow .5s; }
.src.lit { box-shadow: 0 0 0 1.5px var(--accent); }
.src .nm { display: flex; align-items: center; gap: 9px; font-weight: 600; margin-bottom: 10px; }
.src .nm img { width: 22px; height: 22px; }
.src table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.src td { padding: 7px 8px; border-top: 1px solid var(--line-2); color: var(--soft); }
.src td:first-child { border-radius: 7px 0 0 7px; } .src td:last-child { border-radius: 0 7px 7px 0; }
.src td:last-child { text-align: right; white-space: nowrap; }
.src tr.hit td { color: var(--ink); font-weight: 600; }
.src.lit tr.hit td, .src.used tr.hit td { background: var(--accent-tint-2, rgba(241, 85, 47, .16)); border-top-color: transparent; }
.src.lit tr.hit + tr td, .src.used tr.hit + tr td { border-top-color: transparent; }
.relpos { position: relative; }

/* 4 the letter: who writes on the left, the sheet on the right */
main > section.band { margin-top: clamp(36px, 4.5vw, 75px); padding: clamp(48px, 5.4vw, 84px) 0; background: #fbe2d9; }
.letter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: stretch; }
.letter .who { display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 3.4vw, 52px); }
.letter .id { display: flex; align-items: center; gap: 16px; }
.letter .pull { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.14; letter-spacing: -.028em; font-weight: 500; color: var(--soft); max-width: 15em; margin-top: 22px; }
.letter .mono { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 600; font-size: 21px; letter-spacing: -.03em; }
.letter .id b { display: block; font-weight: 600; font-size: 19px; letter-spacing: -.015em; }
.letter .id span { color: #5a3a30; }
.sheet { background: var(--sheet); border-radius: 22px; padding: clamp(26px, 4vw, 60px); box-shadow: 0 1px 0 rgba(19, 19, 17, .08), 0 40px 70px -50px rgba(19, 19, 17, .5); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; letter-spacing: -.008em; }
.sheet .date { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; color: var(--soft); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: clamp(22px, 2.6vw, 36px); }
.sheet p { max-width: 33em; }
.sheet p + p { margin-top: 1em; }
.sheet .bye { margin-top: 1.8em; }
.sheet .bye b { font-weight: 600; font-size: 1.5em; letter-spacing: -.03em; line-height: 1.5; }

/* 5 the 30 minutes: the one dark band */
main > section.ink { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 128px) 0; --line: rgba(242, 242, 240, .22); --soft: #d0cdc4; }
main > section.band + section.ink { margin-top: clamp(36px, 4.5vw, 75px); }
main > section.ink { margin-bottom: clamp(36px, 4.5vw, 75px); }
.ruler { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--paper); }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--paper) 0 1.5px, transparent 1.5px calc(100% / 30)); opacity: .8; }
.ruler::after { content: ""; position: absolute; right: 0; top: 0; width: 1px; height: 28px; background: var(--paper); }
.ruler li { position: relative; padding: 40px 32px 0 0; }
.ruler li::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 28px; background: var(--paper); }
.scale { font-family: var(--f-head); display: grid; grid-template-columns: repeat(3, 1fr) auto; margin-bottom: 10px; font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.scale span:last-child { width: 0; white-space: nowrap; display: flex; justify-content: flex-end; }
.ruler p { color: var(--soft); margin-top: 10px; max-width: 20em; font-size: 18px; }
.ruler b { display: block; font-family: var(--f-head); font-weight: 500; font-size: clamp(21px, 2vw, 30px); line-height: 1.14; letter-spacing: calc(-.024em * var(--trk, 1)); max-width: 13em; }
.leave { margin-top: clamp(48px, 6vw, 96px); max-width: 1040px; }
.leave p.big { font-family: var(--f-head); font-size: clamp(26px, 3.3vw, 50px); line-height: 1.06; letter-spacing: calc(-.032em * var(--trk, 1)); font-weight: 500; }
.leave p.big em { font-style: normal; color: var(--accent-on-ink, var(--accent)); }
.leave p.sm { color: #d2cfc6; font-size: 18px; margin-top: 22px; max-width: 34em; }

/* 6 how we start: one line that forks at your decision */
#pradzia-kartu .head { margin-bottom: clamp(72px, 7.4vw, 112px); }
.fork { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.3fr; }
.fork > li { position: relative; padding: 34px 36px 0 0; }
.fork > li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.fork > li::after { content: ""; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.fork .f2::before { height: 7px; top: -3px; background: var(--accent); border-radius: 4px; }
.fork .f2::after { background: var(--accent); width: 17px; height: 17px; top: -8px; left: -3px; }
.fork b { display: block; font-family: var(--f-head); font-size: clamp(23px, 2.2vw, 33px); line-height: 1.08; letter-spacing: calc(-.028em * var(--trk, 1)); font-weight: 500; margin-bottom: 12px; }
.fork p { color: #33332f; max-width: 22em; font-size: 18px; }
#pradzia-kartu { padding-bottom: 0; }
.fork .f4 { padding: 0; }
.fork .f4::before, .fork .f4::after { display: none; }
.fork .f4 svg { position: absolute; left: 0; top: -51px; width: calc(100% - 6px); height: 102px; overflow: visible; }
.fork .f4 path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fork .br { position: absolute; left: 30%; font-family: var(--f-note); font-weight: 500; font-size: calc(clamp(16px, 1.3vw, 19px) * var(--note-scale, 1)); letter-spacing: -.01em; white-space: nowrap; }
.fork .br.up { top: -86px; }
.fork .br.down { top: 46px; color: var(--soft); }

/* 8 questions */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.faq .ask { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-h) + 40px); }
.faq .ask p { color: var(--soft); font-size: 18px; max-width: 20em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: clamp(20px, 1.75vw, 26px); font-weight: 600; letter-spacing: -.02em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 15px; height: 15px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; }
.faq details p { padding: 0 48px 26px 0; color: var(--soft); max-width: 36em; font-size: 18px; }

/* 9 close: the one place the accent fills the screen */
main > section.close { background: var(--accent-fill, var(--accent)); color: var(--on-accent, var(--ink)); padding: clamp(64px, 9vw, 150px) 0 clamp(36px, 4.4vw, 68px) !important; margin-top: 0; }
.close .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: end; }
.close .facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid currentColor; margin-top: clamp(28px, 4vw, 60px); }
.close .facts li { padding: 18px 20px 0 0; font-family: var(--f-head); font-size: clamp(22px, 2.5vw, 38px); font-weight: 500; letter-spacing: calc(-.03em * var(--trk, 1)); line-height: 1.05; }
.close h2 { font-size: clamp(44px, 8.6vw, 132px); line-height: .92; letter-spacing: -.05em; }
.close .lead { font-size: clamp(18px, 1.5vw, 22px); }
.close .acts { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.close .cta { background: var(--on-accent, var(--ink)); color: var(--on-accent-inv, var(--paper)); min-height: 60px; padding: 0 28px 0 30px; font-size: 18px; }
.close .cta:hover { background: var(--close-cta-hover, #2a2a27); }
.close :focus-visible { outline-color: currentColor; }
.close .alt { font-size: 19px; color: var(--on-accent, var(--ink)); font-weight: 500; }
.close .alt a { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 78% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease); display: inline-flex; min-height: 44px; align-items: center; }
.close .alt a:hover { background-size: 0 1.5px; background-position: 100% 78%; }
footer { padding: clamp(40px, 5vw, 72px) 0 34px; font-size: 15px; color: var(--soft); border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; align-items: start; }
footer .mark { font-size: 40px; }
footer .mark i { width: 11px; height: 11px; transform: translateY(9px); }
footer .say { margin-top: 10px; max-width: 18em; font-size: 17px; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
footer ul { display: grid; gap: 0; margin-top: 6px; }
footer li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 78% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
footer li a:hover { background-size: 100% 1.5px; }
footer .who b { display: block; color: var(--ink); font-weight: 600; margin-top: 14px; }
footer .legal { font-family: var(--f-cap); grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; font-size: 14px; }

/* tablet */
@media (max-width: 1080px) {
  .win .body { grid-template-columns: minmax(0, 1fr) 300px; }
  .win .inbox { display: none; }
  .nav ul { display: none; }
}
/* phone */
@media (max-width: 720px) { .ride { aspect-ratio: 256 / 226; } }
@media (max-width: 860px) {
  :root { --gut: 16px; --nav-h: 60px; }
  body { font-size: 16px; }
  .nav .bar { height: 60px; }
  .nav .cta { min-height: 44px; padding: 0 14px 0 16px; font-size: 14px; }
  .nav .cta::after { display: none; }
  .mark { font-size: 23px; }
  .hero .top, .head, .letter, .panel, .pts li { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pts li { gap: 6px; }
  .fork { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .faq, .close .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .faq .ask { position: static; }
  .fork .f4 { padding: 0 0 0 24px; min-height: 0; }
  .fork .f4::before { display: block; }
  .fork > li { padding: 0 0 0 24px; }
  .fork > li::before { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .fork .f2::before { width: 7px; left: -3px; top: 0; height: auto; }
  .fork .f4 svg { display: none; }
  .fork .br, .fork .br.down, .fork .br.up { position: static; margin-top: 8px; white-space: normal; }
  .fork > li::after { left: -5px; top: 0; }
  .fork .f2::after { left: -8px; }
  .pdoc { min-height: 0; height: 330px; }
  .doc { left: 16px; right: 16px; top: 22px; padding: 20px 20px 40px; }
  .close .acts { align-items: stretch; }
  footer .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .stage { border-radius: 22px; padding: 10px; }
  .hero .top { gap: 22px; }
  .hero .cta, .close .cta { width: 100%; justify-content: center; }
  .ridectl { padding-top: 8px; }
  .head.mid { justify-items: start; text-align: left; }
  .job { position: static; grid-template-columns: minmax(0, 1fr); border-radius: 22px; min-height: 0; transform: none !important; }
  .job .txt { padding: 24px 20px 24px; }
  .job dl { grid-template-columns: 78px 1fr; padding-top: 20px; }
  .job dt, .job dd { padding: 12px 0; font-size: 16px; }
  .job .frag { height: 300px; }
  .ui, .ui.b, .ui.c { left: 16px; right: 16px; top: 20px; width: auto; margin: 0; }
  .ui .r { grid-template-columns: 24px 1fr auto; gap: 12px; padding: 9px 12px 9px 14px; }
  .scale { display: none; }
  .win { border-radius: 16px; }
  .win .bar { height: auto; padding: 10px 10px 10px 14px; flex-wrap: wrap; gap: 10px; }
  .win .dots { display: none; }
  .seg { order: 3; width: 100%; }
  .seg button { flex: 1; padding: 0 8px; min-height: 44px; }
  .win .hold { width: 44px; height: 44px; }
  .win .body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .win .thread { padding: 18px 16px; }
  .win .srcs { border-left: 0; border-top: 1px solid var(--line); padding: 16px; }
  .ruler { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--paper); }
  .ruler::before, .ruler::after { display: none; }
  .ruler li { padding: 0 0 26px 22px; }
  .ruler li::before { width: 14px; height: 1px; top: 11px; }
  .ruler li:last-child { padding-bottom: 0; }
  .close .facts { grid-template-columns: minmax(0, 1fr); }
  .close .facts li { padding: 12px 0; border-bottom: 1px solid var(--on-accent-line, rgba(19, 19, 17, .25)); }
  .panel { border-radius: 22px; }
  .sheet { border-radius: 18px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv .w > span, .js .rl, .js .rot .end.on .w > span { transform: none; opacity: 1; }
}
@media (max-width: 370px) { .nav .cta { padding: 0 11px; font-size: 13px; letter-spacing: -.02em; } .mark { font-size: 21px; } .nav .bar { gap: 8px; } }
