/* Chấm Ca — "thẻ bấm giờ": giấy kem, mực nâu cà phê, một màu gạch cho hành động. */
:root {
  --paper: #F4EEE4;
  --paper-2: #EDE5D8;
  --card: #FBF8F3;
  --ink: #2A221C;
  --ink-2: #66584B;
  --ink-3: #8A7C6E;
  --line: rgba(42, 34, 28, .09);
  --brick: #B04E2A;
  --brick-ink: #FFF8F2;
  --brick-soft: rgba(176, 78, 42, .1);
  --sage: #4E7259;
  --sage-soft: rgba(78, 114, 89, .13);
  --wood: #9A6B43;
  --shadow: 0 1px 2px rgba(42, 34, 28, .05), 0 12px 32px -18px rgba(42, 34, 28, .22);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
  --r: 14px;
  --sbw: 264px;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #16120F;
  --paper-2: #1E1915;
  --card: #221C17;
  --ink: #F2E9DD;
  --ink-2: #BCAE9F;
  --ink-3: #94877A;
  --line: rgba(242, 233, 221, .09);
  --brick: #E07A4F;
  --brick-ink: #1B120C;
  --brick-soft: rgba(224, 122, 79, .14);
  --sage: #93BA9E;
  --sage-soft: rgba(147, 186, 158, .14);
  --wood: #C99A6E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.calm { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .32 0 0 0 0 .25 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.serif { font-family: var(--serif); font-optical-sizing: auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--brick); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), background .25s var(--ease), color .25s; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--paper-2) 70%, var(--ink) 8%); }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--brick); color: var(--brick-ink); }
.btn.pri:hover { background: color-mix(in srgb, var(--brick) 88%, #000); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.icon { width: 44px; min-height: 44px; padding: 0; }
.btn.danger { background: #A33A2A; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 0; color: var(--brick); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; min-height: 44px; }

/* ---------- avatars ---------- */
.av { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; flex: none; font: 600 calc(var(--s) * .36)/1 var(--sans); letter-spacing: .02em; color: var(--ink); background: var(--avc, #E6D9C6); }
.av[data-t="1"] { --avc: #DCE4D6; } .av[data-t="2"] { --avc: #EFD6C8; } .av[data-t="3"] { --avc: #E9DEC9; } .av[data-t="4"] { --avc: #D9D6E0; } .av[data-t="5"] { --avc: #E5D2BC; }
[data-theme="dark"] .av { --avc: #3A3029; color: var(--ink); }
[data-theme="dark"] .av[data-t="1"] { --avc: #2F3A31; } [data-theme="dark"] .av[data-t="2"] { --avc: #45302A; } [data-theme="dark"] .av[data-t="4"] { --avc: #34323C; }
.av.sm { --s: 32px; } .av.lg { --s: 64px; } .av.xl { --s: 88px; }
.stack { display: flex; }
.stack .av { --s: 44px; box-shadow: 0 0 0 3px var(--card); margin-right: -6px; }
.stack .more { margin-left: 16px; font-size: 14px; color: var(--ink-2); align-self: center; }

.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { color: var(--sage); background: var(--sage-soft); }
.pill.warn { color: var(--brick); background: var(--brick-soft); }
.pill.plain::before { display: none; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ================= APP SHELL ================= */
#app-root { position: relative; z-index: 1; }
.app { display: grid; grid-template-columns: var(--sbw) 1fr; min-height: 100vh; }
.sb { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: 28px 18px 22px; background: var(--paper-2); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { font: 600 21px/1.1 var(--serif); display: block; white-space: nowrap; }
.brand small { font-size: 13px; color: var(--ink-2); }
.brsw { display: grid; gap: 4px; }
.brsw .kicker { padding: 0 10px 6px; }
.bro { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; font-size: 15px; color: var(--ink-2); transition: background .2s; }
.bro img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.bro .all { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--card); }
.bro:hover { background: var(--card); color: var(--ink); }
.bro[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.nav { display: grid; gap: 2px; }
.nav .kicker { padding: 12px 12px 4px; }
.nav a { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; position: relative; transition: background .2s, color .2s; }
.nav a:hover { background: var(--card); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--card); font-weight: 600; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -18px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brick); }
.nav .ct { margin-left: auto; font-size: 13px; color: var(--brick); font-weight: 700; }
.sb-foot { margin-top: auto; display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.me b { display: block; font-size: 15px; } .me small { color: var(--ink-2); font-size: 13px; }
.sb-foot .back { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-size: 14px; border-radius: 12px; }
.sb-foot .back:hover { background: var(--card); color: var(--ink); }

.col { min-width: 0; display: flex; flex-direction: column; }
.tb { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 14px 40px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tb .mb-brand { display: none; }
.kbtn { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px 0 16px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 15px; cursor: pointer; width: min(380px, 100%); box-shadow: var(--shadow); }
.kbtn kbd { margin-left: auto; font: 600 13px var(--sans); padding: 3px 8px; border-radius: 7px; background: var(--paper-2); color: var(--ink-2); }
.tb .sp { flex: 1; }
.tbtn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: background .2s, transform .2s var(--ease); }
.tbtn:hover { background: var(--card); color: var(--ink); }
.tbtn:active { transform: scale(.94); }
.tbtn.txt { width: auto; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.tbtn[aria-pressed="true"] { color: var(--brick); }
.main { padding: 8px 40px 80px; max-width: 1320px; width: 100%; outline: none; }

/* page head */
.ph { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 20px 0 32px; }
.ph h1 { font: 500 clamp(30px, 3.2vw, 40px)/1.1 var(--serif); letter-spacing: -.01em; }
.ph p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.ph .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.card { background: var(--card); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.card h2 { font: 500 22px/1.25 var(--serif); }
.card .sub { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

/* view enter animation */
.enter > * { animation: up .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- TODAY ---------- */
.band { position: relative; border-radius: 20px; overflow: hidden; height: 260px; margin: 16px 0 28px; color: #FBF5EC; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: kb 1.6s var(--ease) both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1.04); } }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 17, 12, .78) 0%, rgba(24, 17, 12, .35) 55%, rgba(24, 17, 12, .05)); }
.band .tx { position: absolute; z-index: 1; left: 40px; bottom: 34px; right: 40px; }
.band .kicker { color: rgba(251, 245, 236, .82); }
.band h1 { font: 500 clamp(32px, 3.6vw, 44px)/1.08 var(--serif); margin-top: 10px; }
.band p { margin-top: 8px; font-size: 16px; color: rgba(251, 245, 236, .86); }
.tgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
.focus { display: flex; flex-direction: column; gap: 22px; padding: 32px; }
.big { font: 400 clamp(56px, 6vw, 80px)/.95 var(--serif); letter-spacing: -.02em; }
.big small { font-size: .4em; color: var(--ink-3); letter-spacing: 0; }
.focus .lead { font-size: 17px; color: var(--ink-2); max-width: 42ch; }
.bar { position: relative; height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--sage); transform-origin: left; animation: grow .9s var(--ease) .2s both; }
@keyframes grow { from { transform: scaleX(0); } }
.focus .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.todo ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.todo li { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.todo li + li { box-shadow: 0 -1px 0 var(--line); }
.todo .t { flex: 1; min-width: 0; }
.todo .t b { display: block; font-weight: 600; font-size: 15px; }
.todo .t span { font-size: 14px; color: var(--ink-2); }
.todo .a { display: flex; gap: 6px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 24px 12px; color: var(--ink-2); }
.empty img { width: 140px; height: 96px; object-fit: cover; border-radius: 12px; }
.cost .big { font-size: 56px; margin-top: 18px; }
.meter { position: relative; height: 12px; border-radius: 99px; background: var(--paper-2); margin: 26px 0 12px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--ink); animation: grow .9s var(--ease) .3s both; transform-origin: left; }
.meter em { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--brick); }
.meter em span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font: 600 13px var(--sans); color: var(--brick); white-space: nowrap; font-style: normal; }
.brs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.brc { text-align: left; padding: 0; border: 0; overflow: hidden; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s; }
.brc:hover { transform: translateY(-4px); }
.brc .im { aspect-ratio: 16 / 10; overflow: hidden; }
.brc img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.brc:hover img { transform: scale(1.05); }
.brc .bd { padding: 22px 24px 24px; display: grid; gap: 6px; }
.brc h3 { font: 500 22px/1.2 var(--serif); }
.brc .ad { font-size: 14px; color: var(--ink-2); }
.brc .on { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 15px; }

/* ---------- SCHEDULE ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.bar-ctl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.wk { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.wk b { font: 500 18px var(--serif); min-width: 170px; text-align: center; }
.board { display: grid; grid-template-columns: 150px repeat(7, minmax(0, 1fr)); background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.board .hd { padding: 20px 10px 16px; text-align: center; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.board .hd b { display: block; font: 500 24px/1 var(--serif); margin-top: 4px; }
.board .hd span { font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.board .hd em { display: block; font-style: normal; font-size: 13px; margin-top: 8px; color: var(--ink-3); }
.board .hd em.warn { color: var(--brick); font-weight: 600; }
.board .hd.today b { color: var(--brick); }
.board .rl { padding: 18px 16px; box-shadow: 0 1px 0 var(--line); }
.board .rl b { display: block; font: 500 17px var(--serif); }
.board .rl span { font-size: 13px; color: var(--ink-2); }
.cell { padding: 10px 6px; display: flex; flex-direction: column; gap: 4px; min-height: 96px; box-shadow: 0 1px 0 var(--line), -1px 0 0 var(--line); transition: background .2s; }
.cell.today { background: color-mix(in srgb, var(--brick) 4%, transparent); }
.cell.over { background: var(--brick-soft); }
.chip { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px 4px 4px; border-radius: 10px; border: 0; background: transparent; cursor: grab; font-size: 14px; font-weight: 500; text-align: left; transition: background .15s, transform .2s var(--ease), box-shadow .2s; width: 100%; min-width: 0; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { background: var(--paper-2); }
.chip.drag { opacity: .4; }
.chip.x { box-shadow: inset 0 0 0 1.5px var(--brick); }
.chip .av { --s: 30px; }
.add { min-height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; opacity: 0; display: grid; place-items: center; transition: opacity .2s, background .2s; }
.cell:hover .add, .add:focus-visible { opacity: 1; }
.add:hover { background: var(--paper-2); color: var(--ink); }
.pubnote { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 16px 22px; border-radius: 14px; background: var(--brick-soft); color: var(--ink); font-size: 15px; }
.daypick { display: none; }
.daylist { display: none; }

/* ---------- LIST ROWS ---------- */
.tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--ink-2); min-width: 340px; }
.field input { border: 0; background: transparent; outline: none; width: 100%; font-size: 15px; color: var(--ink); min-height: 44px; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 18px; scrollbar-width: none; }
.dates button { flex: none; display: grid; justify-items: center; gap: 2px; width: 68px; padding: 10px 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; color: var(--ink-2); font-size: 13px; font-weight: 600; transition: background .2s; }
.dates button b { font: 500 24px/1.1 var(--serif); color: var(--ink); }
.dates button:hover { background: var(--card); }
.dates button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.dates button[aria-pressed="true"] b { color: var(--paper); }
.list { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; }
.lrow { text-decoration: none; color: inherit; display: grid; grid-template-columns: minmax(220px, 1.6fr) 1fr 1fr 110px 150px; align-items: center; gap: 16px; min-height: 72px; padding: 10px 18px; border-radius: 12px; width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: 15px; transition: background .2s; }
.lrow + .lrow { box-shadow: 0 -1px 0 var(--line); }
.lrow:hover { background: var(--paper-2); box-shadow: none; }
.lrow:hover + .lrow { box-shadow: none; }
.lrow .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lrow .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .who small { display: block; color: var(--ink-2); font-size: 14px; }
.lrow .m { color: var(--ink-2); }
.lrow .r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.lrow .st { justify-self: end; }
.lhead { display: grid; grid-template-columns: minmax(220px, 1.6fr) 1fr 1fr 110px 150px; gap: 16px; padding: 14px 18px 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.lhead .r { text-align: right; } .lhead .st { text-align: right; }

/* skeleton */
.sk { border-radius: 12px; background: linear-gradient(100deg, var(--paper-2) 30%, color-mix(in srgb, var(--paper-2) 60%, var(--card)) 50%, var(--paper-2) 70%); background-size: 300% 100%; animation: sh 1.3s linear infinite; }
@keyframes sh { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skrow { display: flex; gap: 14px; align-items: center; padding: 14px 18px; }

/* ---------- PAY ---------- */
.payhead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-bottom: 28px; }
.payhead .focus .big { font-size: clamp(44px, 4.6vw, 64px); }
.payhead .meta { display: flex; gap: 32px; flex-wrap: wrap; color: var(--ink-2); font-size: 15px; }
.payhead .meta b { display: block; color: var(--ink); font: 500 22px var(--serif); }
.hbars { display: grid; gap: 22px; margin-top: 22px; }
.hb { display: grid; gap: 8px; }
.hb .l { display: flex; justify-content: space-between; font-size: 15px; }
.hb .l b { font-variant-numeric: tabular-nums; }
.hb .t { height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.hb .t i { display: block; height: 100%; border-radius: 99px; background: var(--wood); transform-origin: left; animation: grow .9s var(--ease) both; }
.prow { grid-template-columns: minmax(220px, 1.6fr) 1fr 120px 170px; }
.phead { grid-template-columns: minmax(220px, 1.6fr) 1fr 120px 170px; }

/* payslip — like a real printed slip */
.slip-wrap { display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: 32px; align-items: start; }
.slip { position: relative; background: #FFFDF8; color: #2A221C; padding: 52px 56px 48px; border-radius: 4px; box-shadow: 0 2px 4px rgba(42, 34, 28, .06), 0 30px 60px -30px rgba(42, 34, 28, .35); font-size: 15px; animation: slipin .6s var(--ease) both; }
@keyframes slipin { from { opacity: 0; transform: translateY(26px) rotate(-.6deg); } }
.slip::before, .slip::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 8px 6px, var(--paper) 5px, transparent 5.5px) 0 0 / 16px 12px repeat-x; }
.slip::before { top: -6px; } .slip::after { bottom: -6px; }
.slip .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 22px; border-bottom: 2px solid #2A221C; }
.slip .top img { width: 44px; height: 44px; border-radius: 10px; }
.slip .co b { display: block; font: 600 17px var(--serif); }
.slip .co span { font-size: 13px; color: #6B5D50; display: block; }
.slip .ttl { text-align: right; }
.slip .ttl h2 { font: 500 28px/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.slip .ttl span { display: block; margin-top: 8px; font-size: 14px; color: #6B5D50; }
.slip .emp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px dashed rgba(42, 34, 28, .3); }
.slip .emp span { display: block; font-size: 13px; color: #6B5D50; }
.slip .emp b { font-weight: 600; font-size: 15px; }
.slip .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 26px 0; }
.slip h3 { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6B5D50; margin-bottom: 10px; }
.ln { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.ln span { white-space: nowrap; }
.ln i { flex: 1; border-bottom: 1.5px dotted rgba(42, 34, 28, .35); transform: translateY(-4px); min-width: 12px; }
.ln b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ln.tot { border-top: 1px solid rgba(42, 34, 28, .2); margin-top: 8px; padding-top: 12px; }
.ln small { display: block; color: #8A7C6E; font-size: 13px; }
.slip .net { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 24px 0; border-top: 2px solid #2A221C; border-bottom: 1px dashed rgba(42, 34, 28, .3); }
.slip .net span { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6B5D50; }
.slip .net b { color: #2A221C; font: 500 46px/1 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.slip .words { padding-top: 12px; font-style: italic; color: #5B4E42; font-family: var(--serif); font-size: 16px; }
.slip .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; text-align: center; font-size: 14px; color: #6B5D50; }
.slip .sign b { display: block; margin-top: 46px; color: #2A221C; font-weight: 600; }
.stamp { position: absolute; left: 24%; bottom: 64px; z-index: 2; padding: 10px 18px; border: 3px double #B04E2A; color: #B04E2A; font: 700 22px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-11deg); border-radius: 8px; opacity: .88; mix-blend-mode: multiply; text-align: center; animation: stamp .5s var(--spring) .35s both; }
.stamp small { display: block; font-size: 12px; letter-spacing: .08em; margin-top: 4px; font-weight: 600; }
.stamp.draft { color: #6B5D50; border-color: #6B5D50; }
@keyframes stamp { from { opacity: 0; transform: rotate(-11deg) scale(1.6); } }
.slip-side { display: grid; gap: 16px; position: sticky; top: 90px; }

/* ---------- KIOSK ---------- */
.kiosk { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); min-height: 640px; margin-top: 16px; }
.kiosk .ph-side { position: relative; color: #FBF5EC; }
.kiosk .ph-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kiosk .ph-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 17, 12, .1), rgba(24, 17, 12, .78)); }
.kiosk .clk { position: absolute; left: 40px; bottom: 40px; right: 40px; z-index: 1; }
.kiosk .clk b { display: block; font: 400 clamp(72px, 8vw, 112px)/.9 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.kiosk .clk span { display: block; margin-top: 12px; font-size: 17px; color: rgba(251, 245, 236, .86); }
.kiosk .clk .seg { margin-top: 22px; background: rgba(24, 17, 12, .45); }
.kiosk .clk .seg button { color: rgba(251, 245, 236, .85); }
.kiosk .clk .seg button[aria-pressed="true"] { background: #FBF5EC; color: #2A221C; }
.pad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 44px 40px; }
.pad h2 { font: 500 28px/1.2 var(--serif); text-align: center; }
.pad .hint { color: var(--ink-2); text-align: center; font-size: 15px; }
.dots { display: flex; gap: 18px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-3); transition: background .2s, box-shadow .2s, transform .25s var(--spring); }
.dots i.on { background: var(--ink); box-shadow: none; transform: scale(1.1); }
.dots.err { animation: shake .45s var(--ease); }
.dots.err i { box-shadow: inset 0 0 0 2px var(--brick); }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.keys { display: grid; grid-template-columns: repeat(3, 80px); gap: 14px; }
.keys button { height: 80px; border-radius: 50%; border: 0; background: var(--paper-2); font: 400 32px var(--serif); cursor: pointer; transition: transform .18s var(--ease), background .2s; display: grid; place-items: center; }
.keys button:hover { background: color-mix(in srgb, var(--paper-2) 80%, var(--ink) 8%); }
.keys button:active { transform: scale(.93); background: var(--ink); color: var(--paper); }
.keys button.fn { background: transparent; font: 600 14px var(--sans); color: var(--ink-2); }
.demo-pins { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.demo-pins button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 999px; border: 0; background: var(--paper-2); cursor: pointer; font-size: 14px; }
.demo-pins .av { --s: 32px; }
.scan { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.scan .av { --s: 150px; font-size: 52px; }
.scan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan circle { fill: none; stroke: var(--sage); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transform: rotate(-90deg); transform-origin: center; animation: ring 1.3s var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.ticket { width: min(360px, 100%); background: #FFFDF8; color: #2A221C; border-radius: 6px; padding: 26px 28px; position: relative; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .4); animation: slipin .5s var(--spring) both; }
.ticket .kind { font: 700 14px var(--sans); letter-spacing: .16em; color: #B04E2A; }
.ticket .tm { font: 400 64px/1 var(--serif); margin: 8px 0 10px; font-variant-numeric: tabular-nums lining-nums; }
.ticket p { color: #5B4E42; font-size: 15px; }
.ticket b { color: #2A221C; }

/* ---------- STAFF ---------- */
.brgroup { margin-bottom: 36px; }
.brgroup .gh { position: relative; height: 112px; border-radius: 16px 16px 0 0; overflow: hidden; color: #FBF5EC; }
.brgroup .gh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brgroup .gh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 17, 12, .72), rgba(24, 17, 12, .1)); }
.brgroup .gh div { position: absolute; z-index: 1; left: 26px; bottom: 20px; }
.brgroup .gh h2 { font: 500 26px/1.1 var(--serif); }
.brgroup .gh span { font-size: 14px; color: rgba(251, 245, 236, .85); }
.brgroup .list { border-radius: 0 0 18px 18px; }
.srow { grid-template-columns: minmax(220px, 1.6fr) 1fr 1fr 130px; }

/* ---------- FLOOR ---------- */
.stage { position: relative; height: min(66vh, 620px); border-radius: 22px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.stage > img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: opacity .6s; }
.stage.ready > img.poster { opacity: 0; }
.stage .wait { position: absolute; left: 24px; bottom: 24px; z-index: 2; padding: 12px 18px; border-radius: 999px; background: var(--card); font-size: 14px; color: var(--ink-2); }
.stage.ready .wait { display: none; }
.fl-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.fl-labels { position: absolute; inset: 0; pointer-events: none; }
.fl-lab { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 14px; cursor: pointer; opacity: .55; transition: opacity .3s; white-space: nowrap; }
.fl-lab.on { opacity: 1; }
.fl-lab .no { display: none; }
.fl-lab b { font: 600 15px var(--serif); }
.fl-lab .ct { color: var(--ink-2); }
.onlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.onlist span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 16px 4px 4px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); font-size: 15px; }
#tip { position: fixed; z-index: 90; pointer-events: none; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 14px; max-width: 260px; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(24, 17, 12, .38); animation: fade .25s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 81; top: 12px; right: 12px; bottom: 12px; width: min(500px, calc(100vw - 24px)); background: var(--card); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); display: flex; flex-direction: column; animation: din .45s var(--ease) both; overflow: hidden; }
@keyframes din { from { transform: translateX(40px); opacity: 0; } }
.drawer .dh { display: flex; align-items: center; gap: 14px; padding: 22px 24px 8px; }
.drawer .dh h2 { font: 500 26px/1.15 var(--serif); flex: 1; }
.drawer .db { padding: 12px 28px 24px; overflow-y: auto; flex: 1; display: grid; gap: 22px; align-content: start; }
.drawer .df { padding: 18px 24px; display: flex; gap: 10px; justify-content: flex-end; box-shadow: 0 -1px 0 var(--line); }
.drawer .df .l { margin-right: auto; }
.dphoto { margin: -12px -28px 0; height: 180px; position: relative; }
.dphoto img { width: 100%; height: 100%; object-fit: cover; }
.dphoto .av { position: absolute; left: 28px; bottom: -32px; box-shadow: 0 0 0 5px var(--card); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.kv span { display: block; font-size: 13px; color: var(--ink-2); }
.kv b { font-weight: 600; }
.fl { display: grid; gap: 8px; }
.fl label { font-weight: 600; font-size: 14px; }
.fl input, .fl select, .fl textarea { min-height: 50px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--paper-2); font-size: 16px; color: var(--ink); width: 100%; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.fl textarea { padding: 14px 16px; min-height: 90px; resize: vertical; }
.fl input:focus, .fl select:focus, .fl textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brick); }
.fl .err { color: var(--brick); font-size: 14px; font-weight: 500; }
.fl.bad input, .fl.bad select, .fl.bad textarea { box-shadow: inset 0 0 0 2px var(--brick); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tl { position: relative; height: 56px; border-radius: 12px; background: var(--paper-2); }
.tl i { position: absolute; top: 10px; height: 14px; border-radius: 99px; background: var(--ink-3); opacity: .45; }
.tl b { position: absolute; bottom: 10px; height: 14px; border-radius: 99px; background: var(--sage); }
.tl span { position: absolute; top: -22px; font-size: 13px; color: var(--ink-2); transform: translateX(-50%); }
.hist { display: grid; gap: 12px; font-size: 14px; color: var(--ink-2); }
.hist div { padding-left: 14px; box-shadow: inset 2px 0 0 var(--line); }
.hist b { color: var(--ink); }
.modal { position: fixed; z-index: 82; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); background: var(--card); border-radius: 20px; padding: 30px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); animation: pop .35s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.modal h2 { font: 500 25px/1.2 var(--serif); }
.modal p { color: var(--ink-2); margin-top: 10px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; }
.pal { position: fixed; z-index: 82; left: 50%; top: 14vh; transform: translateX(-50%); width: min(620px, calc(100vw - 24px)); background: var(--card); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; animation: fade .25s var(--ease) both; }
.pal .in { display: flex; align-items: center; gap: 12px; padding: 8px 22px; box-shadow: 0 1px 0 var(--line); color: var(--ink-2); }
.pal .in input { flex: 1; border: 0; outline: none; background: transparent; font-size: 18px; min-height: 58px; color: var(--ink); }
.pal ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.pal li button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 6px 14px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; font-size: 15px; }
.pal li button small { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.pal li button.act, .pal li button:hover { background: var(--paper-2); }
.pal .gl { padding: 10px 14px 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.pal .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); }
#toasts { position: fixed; z-index: 95; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); animation: tin .45s var(--spring) both; pointer-events: auto; }
.toast svg { color: #9FD0AC; }
.toast.out { animation: tout .3s var(--ease) forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes tout { to { opacity: 0; transform: translateY(10px); } }

.tabbar { display: none; }
.concept { margin-top: 56px; padding-top: 24px; box-shadow: 0 -1px 0 var(--line); font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.concept a { color: var(--ink); font-weight: 600; }

/* ================= LANDING ================= */
.ld { position: relative; z-index: 1; }
.ln-nav { position: fixed; z-index: 40; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 28px; padding: 18px clamp(20px, 4vw, 56px); color: #FBF5EC; transition: background .4s var(--ease), color .4s, padding .4s var(--ease); }
.ln-nav.solid { background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.ln-nav .brand { color: inherit; padding: 0; }
.ln-nav .brand small { color: inherit; opacity: .75; }
.ln-nav .links { display: flex; gap: 6px; margin-left: auto; }
.ln-nav .links a { min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 500; font-size: 15px; text-decoration: none; border-radius: 999px; opacity: .9; }
.ln-nav .links a:hover { opacity: 1; background: rgba(127, 110, 90, .14); }
.ln-nav .tbtn { color: inherit; }
.ln-nav .tbtn:hover { background: rgba(127, 110, 90, .16); color: inherit; }
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; color: #FBF5EC; background: #1B140F; }
.hero .bg { position: absolute; inset: -6% 0 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; animation: kbh 2.8s var(--ease) both; }
@keyframes kbh { from { transform: scale(1.14); filter: brightness(.6); } to { transform: scale(1.02); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 10, .5) 0%, rgba(20, 14, 10, .05) 34%, rgba(20, 14, 10, .25) 58%, rgba(20, 14, 10, .88) 100%); }
.hero .in { position: absolute; z-index: 1; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: clamp(32px, 6vh, 64px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero h1 { font: 400 clamp(64px, 11.5vw, 188px)/.86 var(--serif); letter-spacing: -.035em; }
.hero h1 span { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 span i { display: block; font-style: normal; animation: rise 1.1s var(--ease) both; }
.hero h1 span:nth-child(2) i { font-style: italic; animation-delay: .12s; padding-left: .55em; }
@keyframes rise { from { transform: translateY(105%); } }
.hero .lead { max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: rgba(251, 245, 236, .9); margin-top: 28px; animation: up .9s var(--ease) .5s both; }
.hero .cta { display: flex; gap: 22px; align-items: center; margin-top: 30px; animation: up .9s var(--ease) .65s both; flex-wrap: wrap; }
.hero .cta .link { color: #FBF5EC; }
.punch { width: 280px; background: #FFFDF8; color: #2A221C; border-radius: 4px; padding: 20px 22px 18px; transform: rotate(3deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); animation: card 1.1s var(--spring) .8s both; position: relative; }
@keyframes card { from { opacity: 0; transform: translateY(40px) rotate(9deg); } }
.punch::before { content: ""; position: absolute; left: 50%; top: 10px; width: 36px; height: 8px; margin-left: -18px; border-radius: 6px; background: #E6DCCD; }
.punch .k { font: 700 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8A7C6E; margin-top: 10px; }
.punch .rows { margin-top: 10px; display: grid; gap: 4px; font-size: 14px; }
.punch .rows div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(42, 34, 28, .2); font-variant-numeric: tabular-nums; }
.punch .rows div b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.punch .rows div.now b { color: #B04E2A; }
.punch .nm { margin-top: 12px; font: 500 17px var(--serif); }
.sec { padding: clamp(96px, 14vh, 160px) clamp(20px, 4vw, 56px); position: relative; }
.wrap { max-width: 1280px; margin: 0 auto; }
.eyebrow { font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.h2 { font: 400 clamp(40px, 5.6vw, 84px)/1 var(--serif); letter-spacing: -.025em; margin-top: 18px; }
.h2 em { font-style: italic; color: var(--brick); }
.intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.intro p { font-size: 19px; line-height: 1.65; color: var(--ink-2); }
/* story */
.story { position: relative; height: 420vh; }
.story .pin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: 80px clamp(20px, 4vw, 56px) 40px; max-width: 1440px; margin: 0 auto; }
.chapters { position: relative; min-height: 440px; }
.chap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.chap.on { opacity: 1; transform: none; pointer-events: auto; }
.chap .time { font: 300 clamp(80px, 9vw, 136px)/.9 var(--serif); letter-spacing: -.04em; font-variant-numeric: lining-nums; color: var(--ink); }
.chap h3 { font: 500 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); margin-top: 22px; }
.chap p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin-top: 14px; max-width: 42ch; }
.chap .mimg { display: none; }
.prog { display: flex; gap: 8px; margin-top: 34px; }
.prog i { height: 3px; width: 40px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.prog i b { position: absolute; inset: 0; background: var(--brick); transform-origin: left; transform: scaleX(var(--p, 0)); }
.device { position: relative; aspect-ratio: 16 / 10.4; border-radius: 18px; background: #1E1814; padding: 10px; box-shadow: 0 50px 90px -40px rgba(42, 34, 28, .55); }
.device .scr { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: var(--paper); }
.device .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); }
.device .scr img.on { clip-path: inset(0 0 0 0); z-index: 1; }
.device .scr img.was { clip-path: inset(0 0 0 0); }
.phone { position: absolute; right: -4%; bottom: -10%; width: 26%; aspect-ratio: 390 / 844; border-radius: 30px; background: #1E1814; padding: 7px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); transition: transform .9s var(--ease), opacity .6s; z-index: 3; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.phone.off { transform: translateY(40px); opacity: 0; }
/* numbers */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 72px; }
.nums div { padding-top: 22px; box-shadow: 0 -1.5px 0 var(--ink); }
.nums b { display: block; font: 400 clamp(52px, 5.4vw, 80px)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.nums span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 16px; max-width: 24ch; }
/* full-bleed photo with reveal */
.bleed { position: relative; height: 92vh; min-height: 560px; overflow: hidden; color: #FBF5EC; }
.bleed .ph { position: absolute; inset: -10% 0; margin: 0; }
.bleed .ph img { width: 100%; height: 100%; object-fit: cover; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 10, .82), rgba(20, 14, 10, .25) 60%, rgba(20, 14, 10, .1)); }
.bleed .q { position: absolute; z-index: 1; left: clamp(20px, 4vw, 56px); bottom: clamp(48px, 10vh, 110px); max-width: 860px; }
.bleed blockquote { margin: 0; font: 400 clamp(32px, 3.8vw, 58px)/1.12 var(--serif); letter-spacing: -.015em; }
.bleed blockquote::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; color: #E9A27F; }
.bleed cite { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-style: normal; font-size: 16px; color: rgba(251, 245, 236, .88); }
.bleed cite b { color: #FBF5EC; display: block; font-size: 17px; }
.rv { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
.rv.in { clip-path: inset(0 0 0 0); }
.fu { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.fu.in { opacity: 1; transform: none; }
/* branches */
.brrow { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; margin-top: 64px; align-items: start; }
.brrow figure { margin: 0; }
.brrow .im { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; }
.brrow figure:first-child .im { aspect-ratio: 4 / 4.4; }
.brrow figure:nth-child(2) { margin-top: 90px; }
.brrow figure:nth-child(3) { margin-top: 30px; }
.brrow img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.brrow .in img { transform: scale(1); }
.brrow figcaption { margin-top: 18px; }
.brrow figcaption b { display: block; font: 500 24px var(--serif); }
.brrow figcaption span { color: var(--ink-2); font-size: 15px; }
/* features in mocks */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 110px; }
.feat.flip > :first-child { order: 2; }
.feat h3 { font: 400 clamp(32px, 3.4vw, 52px)/1.05 var(--serif); letter-spacing: -.02em; }
.feat p { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin-top: 20px; max-width: 44ch; }
.feat ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.feat li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.feat li svg { color: var(--brick); margin-top: 3px; }
.mock { position: relative; border-radius: 14px; overflow: hidden; background: #1E1814; padding: 8px; box-shadow: 0 50px 90px -40px rgba(42, 34, 28, .5); transition: transform .5s var(--ease); }
.mock img { border-radius: 8px; width: 100%; }
.mock .glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%); background-size: 250% 100%; background-position: 120% 0; transition: background-position .9s var(--ease); }
.mock:hover .glare { background-position: -20% 0; }
.mock.paper { background: transparent; padding: 0; box-shadow: none; overflow: visible; }
.mock.paper img { border-radius: 4px; box-shadow: 0 40px 70px -30px rgba(42, 34, 28, .45); transform: rotate(-2deg); }
.phone-solo { width: min(320px, 70%); margin: 0 auto; aspect-ratio: 390 / 844; border-radius: 38px; background: #1E1814; padding: 9px; box-shadow: 0 50px 90px -40px rgba(42, 34, 28, .6); }
.phone-solo img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
/* voices */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.voice { padding: 36px; background: var(--card); border-radius: 6px; }
.voice p { font: 400 23px/1.4 var(--serif); }
.voice footer { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 15px; color: var(--ink-2); }
.voice footer b { display: block; color: var(--ink); }
/* pricing — like a café menu board */
.menu { margin-top: 64px; background: #241C16; color: #F2E9DD; border-radius: 6px; padding: clamp(32px, 5vw, 72px); position: relative; overflow: hidden; }
[data-theme="dark"] .menu { background: #2C231C; }
.menu::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(242, 233, 221, .18); border-radius: 3px; pointer-events: none; }
.menu .mh { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.menu .mh h3 { font: 400 italic clamp(30px, 3vw, 44px) var(--serif); }
.menu .mh span { color: rgba(242, 233, 221, .7); font-size: 15px; }
.plan { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; padding: 34px 0; border-bottom: 1px dashed rgba(242, 233, 221, .22); position: relative; }
.plan:last-of-type { border-bottom: 0; }
.plan .nm { display: flex; align-items: baseline; gap: 14px; }
.plan .nm b { font: 500 clamp(26px, 2.4vw, 34px) var(--serif); }
.plan .nm i { flex: 1; border-bottom: 2px dotted rgba(242, 233, 221, .3); min-width: 40px; transform: translateY(-6px); }
.plan .pr { font: 400 clamp(30px, 2.8vw, 42px) var(--serif); font-variant-numeric: lining-nums; text-align: right; }
.plan .pr small { display: block; font: 400 14px var(--sans); color: rgba(242, 233, 221, .65); }
.plan p { color: rgba(242, 233, 221, .75); font-size: 16px; max-width: 60ch; }
.plan .tag { display: inline-block; margin-left: 4px; padding: 4px 12px; border-radius: 999px; background: #E07A4F; color: #1B120C; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.menu .mf { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; color: rgba(242, 233, 221, .75); font-size: 15px; }
.menu .btn.pri { background: #E07A4F; color: #1B120C; }
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.faq details { padding: 24px 0; box-shadow: 0 1px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 500 21px/1.3 var(--serif); min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 30px var(--sans); color: var(--brick); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.final { position: relative; min-height: 88vh; display: grid; place-items: end start; overflow: hidden; color: #FBF5EC; padding: clamp(40px, 8vh, 96px) clamp(20px, 4vw, 56px); }
.final .ph { position: absolute; inset: -10% 0; margin: 0; }
.final .ph img { width: 100%; height: 100%; object-fit: cover; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 14, 10, .85), rgba(20, 14, 10, .2) 70%); }
.final .tx { position: relative; z-index: 1; }
.final h2 { font: 400 clamp(56px, 9vw, 150px)/.9 var(--serif); letter-spacing: -.035em; }
.final h2 em { font-style: italic; }
.final p { font-size: 19px; margin: 24px 0 32px; max-width: 46ch; color: rgba(251, 245, 236, .88); }
.foot { padding: 72px clamp(20px, 4vw, 56px) 40px; background: var(--paper-2); }
.foot .g { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.foot ul a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }
.foot .big-n { font: 400 clamp(64px, 14vw, 220px)/.8 var(--serif); letter-spacing: -.05em; margin-top: 64px; color: var(--ink); opacity: .92; }
.foot .note { margin-top: 32px; padding-top: 22px; box-shadow: 0 -1px 0 var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-2); }
.foot .note a { color: var(--ink); font-weight: 600; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  :root { --sbw: 232px; }
  .main, .tb { padding-left: 28px; padding-right: 28px; }
  .lrow, .lhead { grid-template-columns: minmax(200px, 1.6fr) 1fr 1fr 100px 130px; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sb { display: none; }
  .tb .mb-brand { display: flex; }
  .tb .mb-brand img { width: 34px; height: 34px; }
  .tb .mb-brand b { font-size: 19px; }
  .tb .mb-brand small { display: none; }
  .kbtn { width: 44px; padding: 0; justify-content: center; }
  .kbtn span, .kbtn kbd { display: none; }
  .main { padding: 4px 20px 120px; }
  .tb { padding: 10px 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; min-height: 56px; padding-top: 7px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-3); border-radius: 12px; }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--brick); font-weight: 600; }
  .tgrid, .payhead { grid-template-columns: 1fr; gap: 20px; }
  .brs { grid-template-columns: 1fr; gap: 20px; }
  .brc { display: grid; grid-template-columns: 120px 1fr; }
  .brc .im { aspect-ratio: auto; height: 100%; }
  .brc .bd { padding: 16px 18px; }
  .band { height: 220px; margin-top: 8px; }
  .band .tx { left: 24px; right: 24px; bottom: 24px; }
  .board { display: none; }
  .daypick { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
  .daypick button { flex: 1; min-width: 44px; display: grid; justify-items: center; padding: 8px 0; border: 0; border-radius: 14px; background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
  .daypick button b { font: 500 21px var(--serif); color: var(--ink); }
  .daypick button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .daypick button[aria-pressed="true"] b { color: var(--paper); }
  .daylist { display: grid; gap: 16px; }
  .daylist .card { padding: 20px; }
  .daylist h3 { display: flex; justify-content: space-between; font: 500 19px var(--serif); margin-bottom: 8px; }
  .daylist h3 span { font: 400 14px var(--sans); color: var(--ink-2); }
  .daylist .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .daylist .add { opacity: 1; justify-content: start; padding: 0 8px; display: flex; gap: 6px; font-size: 14px; color: var(--ink-2); min-height: 44px; }
  .wk { margin-left: 0; width: 100%; justify-content: space-between; }
  .wk b { min-width: 0; font-size: 16px; }
  .lhead { display: none; }
  .lrow, .prow, .srow { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 12px; }
  .lrow .m { display: none; }
  .lrow .m.keep { display: block; grid-column: 1; padding-left: 54px; font-size: 14px; margin-top: -4px; }
  .lrow .st { grid-column: 2; grid-row: 1; }
  .lrow .r { grid-column: 2; grid-row: 2; font-size: 14px; }
  .slip-wrap { grid-template-columns: 1fr; }
  .slip-side { position: static; order: -1; display: flex; flex-wrap: wrap; }
  .kiosk { grid-template-columns: 1fr; min-height: 0; }
  .kiosk .ph-side { min-height: 360px; }
  .kiosk .clk { left: 24px; bottom: 24px; }
  .kiosk .clk b { font-size: 72px; }
  .pad { padding: 32px 16px; }
  .keys { grid-template-columns: repeat(3, 76px); }
  .keys button { height: 76px; }
  .stage { height: 62vh; }
  .ph { margin: 14px 0 24px; }
  .ph .acts { margin-left: 0; }
  .field { min-width: 0; flex: 1; }
  /* landing */
  .ln-nav .links { display: none; }
  .ln-nav .demo { margin-left: auto; }
  .hero .in { grid-template-columns: 1fr; }
  .punch { display: none; }
  .hero h1 span:nth-child(2) i { padding-left: 0; }
  .intro, .faq { grid-template-columns: 1fr; gap: 28px; }
  .story { height: auto; }
  .story .pin { position: static; height: auto; grid-template-columns: 1fr; padding: 40px 20px; }
  .story .device, .story .phone, .prog { display: none; }
  .chapters { min-height: 0; display: grid; gap: 72px; }
  .chap { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .chap .mimg { display: block; margin-top: 26px; border-radius: 12px; overflow: hidden; background: #1E1814; padding: 6px; }
  .chap .mimg img { border-radius: 8px; }
  .chap .time { font-size: 72px; }
  .nums { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .brrow { grid-template-columns: 1fr; }
  .brrow figure:nth-child(n) { margin-top: 0; }
  .brrow .im, .brrow figure:first-child .im { aspect-ratio: 4 / 3; }
  .feat { grid-template-columns: 1fr; margin-top: 80px; }
  .feat.flip > :first-child { order: 0; }
  .voices { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; }
  .plan .pr { text-align: left; }
  .plan .nm i { display: none; }
  .foot .g { grid-template-columns: 1fr 1fr; }
  .foot .g > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .tb [data-act="calm"] { display: none; }
  .ln-nav { gap: 6px; padding-left: 16px; padding-right: 12px; }
  .ln-nav .brand small { display: none; }
  .ln-nav .demo { padding: 0 16px; }
  .ln-nav .dl { display: none; }
  .ln-nav .brand { flex: none; }
  .kiosk .clk b { font-size: 64px; }
  .kiosk .clk .seg button { padding: 0 12px; font-size: 14px; }
  .slip { padding: 36px 22px 32px; font-size: 14px; }
  .slip .top { flex-direction: column; }
  .slip .ttl { text-align: left; }
  .slip .ttl h2 { font-size: 24px; }
  .slip .emp { grid-template-columns: 1fr 1fr; }
  .slip .cols { grid-template-columns: 1fr; gap: 22px; }
  .slip .net b { font-size: 34px; }
  .stamp { left: 14%; bottom: 60px; font-size: 16px; }
  .kv { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation-name: dup; }
  @keyframes dup { from { transform: translateY(60px); opacity: 0; } }
  .hero .cta .btn { width: 100%; }
  .bleed blockquote { font-size: 30px; }
  .daylist .chips { grid-template-columns: 1fr; }
  .payhead .meta { gap: 20px; }
  .focus { padding: 24px; }
  .card { padding: 22px; }
}
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
html.calm .rv { clip-path: none; } html.calm .fu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .rv { clip-path: none; } .fu { opacity: 1; transform: none; }
}

/* print: only the payslip */
@media print {
  body::before, .sb, .tb, .tabbar, .slip-side, .ph, .concept, #toasts { display: none !important; }
  .app { display: block; } .main { padding: 0; }
  .slip { box-shadow: none; animation: none; }
  .slip::before, .slip::after { display: none; }
  body { background: #fff; }
}
