/* Layout and type. Paper-and-ink palette, one rust accent, hairline rules instead of shadows. */
:root {
  --bg: #f3f1ea;
  --bg-2: #ebe8df;
  --surface: #fbfaf6;
  --surface-2: #eeebe3;
  --ink: #16171a;
  --ink-2: #45474d;
  --muted: #676b75;
  --line: #dcd8cc;
  --line-2: #c9c4b6;
  --accent: #c2410c;
  --accent-text: #c2410c;
  --accent-ink: #ffffff;
  --glow: rgba(194, 65, 12, 0.14);
  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.06);
  --shadow-lg: 0 18px 40px -18px rgba(20, 20, 20, 0.28);

  /* mock "screens" */
  --m-bg: #ffffff;
  --m-surface: #f4f4f2;
  --m-line: #e4e3df;
  --m-ink: #1a1b1e;
  --m-sk: #dad9d4;
  --m-sk-2: #ebeae6;

  --radius: 4px;
  --font-head: "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214; --bg-2: #18191c; --surface: #17181b; --surface-2: #1e1f23;
    --ink: #ecebe6; --ink-2: #b5b4ad; --muted: #8d8c86; --line: #2a2b2f; --line-2: #3a3b40;
    --accent: #f0703a; --accent-text: #f0703a; --accent-ink: #111214; --glow: rgba(240, 112, 58, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-lg: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    --m-bg: #1b1c20; --m-surface: #222328; --m-line: #2f3036; --m-ink: #eceae4; --m-sk: #393a41; --m-sk-2: #2a2b31;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111214; --bg-2: #18191c; --surface: #17181b; --surface-2: #1e1f23;
  --ink: #ecebe6; --ink-2: #b5b4ad; --muted: #8d8c86; --line: #2a2b2f; --line-2: #3a3b40;
  --accent: #f0703a; --accent-text: #f0703a; --accent-ink: #111214; --glow: rgba(240, 112, 58, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-lg: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --m-bg: #1b1c20; --m-surface: #222328; --m-line: #2f3036; --m-ink: #eceae4; --m-sk: #393a41; --m-sk-2: #2a2b31;
  color-scheme: dark;
}

/* ───────── base ───────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
.muted { color: var(--muted); }
main { outline: none; min-height: 70vh; overflow-x: clip; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.mono, .num, .count { font-family: var(--font-mono); }
.reveal { /* kept for markup compatibility; no entrance animation */ }

/* ───────── header ───────── */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px); background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; min-width: 0; }
.brand b { font: 600 16px/1.2 var(--font-head); letter-spacing: -0.01em; white-space: nowrap; }
.brand small { font: 400 12.5px/1.2 var(--font-mono); color: var(--muted); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; padding: 8px 11px; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav a.nav-cta { color: var(--accent-text); font-weight: 500; }
.theme-toggle { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ───────── buttons, tags ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 500 15px/1 var(--font-body); padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: transparent; color: var(--ink);
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line-2); }
.btn svg { width: 15px; height: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 400 12.5px/1 var(--font-mono); padding: 6px 8px; border-radius: 2px; border: 1px solid var(--line); color: var(--ink-2); }
.tag.cat i { width: 7px; height: 7px; border-radius: 1px; background: var(--cc); }

/* ───────── section heads ───────── */
.section { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.sec-head h2 .count { font-size: .5em; font-weight: 400; color: var(--muted); margin-left: 10px; letter-spacing: 0; vertical-align: .35em; }
.sec-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 62ch; }
.sec-head .side-link { font-size: 14.5px; color: var(--ink-2); }
.sec-head .side-link:hover { color: var(--accent-text); }

/* ───────── intro ───────── */
.intro { padding-block: clamp(40px, 7vw, 84px) clamp(32px, 5vw, 56px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.byline { font: 400 13px/1.4 var(--font-mono); color: var(--muted); margin: 0 0 22px; }
.intro h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.025em; max-width: 17ch; }
.intro .lead { font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 58ch; margin: 22px 0 0; }
.intro-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.intro-fig { margin: 0; container-type: inline-size; }
.intro-fig .mock { width: 100%; }
.intro-fig figcaption, .feature-art figcaption { margin-top: 12px; font: 400 12.5px/1.4 var(--font-mono); color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(36px, 5vw, 56px) 0 0; border-top: 1px solid var(--ink); }
.facts div { padding: 14px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font: 400 12.5px/1.3 var(--font-mono); color: var(--muted); }
.facts dd { margin: 6px 0 0; font: 600 clamp(24px, 2.6vw, 32px)/1 var(--font-head); letter-spacing: -0.02em; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--accent-text); }

/* ───────── selected work ───────── */
.showcase { display: flex; flex-direction: column; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); align-items: center; }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; }
.feature-copy .num { font-size: 13px; color: var(--muted); }
.feature-copy .client { font-size: 14px; color: var(--ink-2); }
.feature-copy h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; }
.feature-copy p { margin: 0; color: var(--ink-2); }
.feature-copy ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; columns: 2; column-gap: 28px; }
.feature-copy li { break-inside: avoid; padding: 2px 0; }
.feature-copy li::marker { color: var(--pc); }
.feature-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 4px 0 0; }
.feature-stats dt { font: 400 12px/1.3 var(--font-mono); color: var(--muted); }
.feature-stats dd { margin: 3px 0 0; font: 600 22px/1 var(--font-head); }
.feature-copy .more { font-weight: 500; font-size: 15px; color: var(--ink); width: fit-content; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.feature-copy .more:hover { color: var(--accent-text); }
.feature-art { margin: 0; container-type: inline-size; }
.feature-art .panel-bg { padding: clamp(18px, 4cqw, 40px); background: color-mix(in srgb, var(--pc) 13%, var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; min-height: 300px; }
.feature-art .mock { width: 100%; max-width: 560px; }
.feature-art .mock.phone, .feature-art .mock.paper, .feature-art .mock.card-id, .feature-art .mock.ticket { width: auto; font-size: clamp(6px, 2.4cqw, 14px); }
.feature:nth-child(even) .feature-art { order: -1; }

/* ───────── index (ledger) ───────── */
.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 2px; }
.chip { font: 400 14px/1 var(--font-body); padding: 8px 10px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink-2); cursor: pointer; }
.chip .count { font-size: 12px; color: var(--ink-2); margin-left: 4px; }
.chip:hover { color: var(--ink); background: var(--surface-2); }
.chip.active { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.chip svg { display: none; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ledger li { border-bottom: 1px solid var(--line); }
.ledger-head, .ledger a { display: grid; grid-template-columns: 3.2em minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1.1fr) 8em 8.5em; gap: 16px; align-items: baseline; padding: 14px 4px; }
.ledger-head { font: 400 12px/1 var(--font-mono); color: var(--muted); padding-block: 10px; border-bottom: 1px solid var(--line); }
.ledger a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.ledger a:hover { background: var(--surface); }
.ledger a:hover .l-name b { color: var(--accent-text); }
.l-no { font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.l-name b { display: block; font: 600 16px/1.3 var(--font-head); color: var(--ink); }
.l-name small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.l-status { display: inline-flex; align-items: center; gap: 7px; font: 400 12.5px/1.3 var(--font-mono); }
.l-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--sc, var(--muted)); }
.l-year { font: 400 12.5px/1.4 var(--font-mono); }
.empty { padding: 40px 0; color: var(--muted); border-bottom: 1px solid var(--line); }

/* ───────── project cards (client pages, related) ───────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card:hover { border-color: var(--ink); }
.card:hover h3 { color: var(--accent-text); }
.card-cover { position: relative; height: 200px; overflow: hidden; container-type: inline-size; background: color-mix(in srgb, var(--pc) 13%, var(--bg-2)); border-bottom: 1px solid var(--line); }
.card-cover .mock { position: absolute; left: 9%; right: 9%; top: 30px; }
.card-cover .mock.phone, .card-cover .mock.paper, .card-cover .mock.card-id, .card-cover .mock.ticket { left: 50%; right: auto; translate: -50% 0; }
.card-cover .mock.phone, .card-cover .mock.paper { font-size: clamp(5px, 2.3cqw, 10px); }
.card-cover .mock.card-id { font-size: clamp(5px, 3.1cqw, 13px); top: 36px; }
.card-cover .mock.ticket { font-size: clamp(5px, 3cqw, 13px); top: 40px; }
.status { position: absolute; z-index: 3; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; font: 400 11.5px/1 var(--font-mono); padding: 5px 7px; border-radius: 2px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc, #16a34a); }
.card-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .client { font: 400 12.5px/1.3 var(--font-mono); color: var(--muted); }
.card-body h3 { font-size: 18px; }
.card-body p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.card-body .tags { margin-top: auto; padding-top: 8px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font: 400 12.5px/1.3 var(--font-mono); color: var(--muted); border-top: 1px solid var(--line); padding: 11px 18px; }
.card-foot .arrow svg { width: 14px; height: 14px; }

/* ───────── clients ───────── */
.client-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.client-list li { border-bottom: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: 14px minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 1.2fr) 7em; gap: 16px; align-items: baseline; padding: 14px 4px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.crow:hover { background: var(--surface); }
.crow:hover b { color: var(--accent-text); }
.crow .sw { width: 10px; height: 10px; border-radius: 2px; background: var(--lc); align-self: center; }
.crow b { font: 600 16px/1.3 var(--font-head); color: var(--ink); }
.crow small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.crow .n { font: 400 12.5px/1.4 var(--font-mono); color: var(--muted); text-align: right; }
.logo { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); flex: none; color: #fff; background: var(--lc); font: 600 15px/1 var(--font-head); }
.logo.xl { width: 88px; height: 88px; font-size: 28px; }

/* ───────── services ───────── */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--ink); }
.svc { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.svc h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.svc h3::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--cc); flex: none; }
.svc p { margin: 6px 0 10px; color: var(--ink-2); font-size: 14.5px; }
.svc .used { font-size: 13.5px; color: var(--muted); }
.svc .used a { color: var(--ink-2); }
.svc .used a:hover { color: var(--accent-text); }

/* matrix */
.matrix-wrap { overflow-x: auto; border-top: 1px solid var(--ink); margin-bottom: 48px; }
table.matrix { border-collapse: collapse; width: 100%; min-width: 1000px; font-size: 14px; }
.matrix th, .matrix td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { font: 400 12px/1.3 var(--font-mono); color: var(--muted); vertical-align: bottom; }
.matrix thead th svg { display: none; }
.matrix td:first-child, .matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--bg); z-index: 1; min-width: 220px; }
.matrix tbody tr:hover td { background: var(--surface); }
.matrix a { text-decoration: none; font-weight: 500; color: var(--ink); }
.matrix a i { display: none; }
.matrix a:hover { color: var(--accent-text); }
.matrix .sub { font-size: 12.5px; color: var(--muted); }
.tick { display: inline-block; width: 9px; height: 9px; border-radius: 1px; background: var(--cc); }
.tick svg { display: none; }

/* ───────── project page ───────── */
.d-hero { padding: clamp(24px, 4vw, 44px) 0 clamp(32px, 5vw, 56px); }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 28px; }
.d-hero .client { font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.d-hero .client a { color: var(--ink-2); }
.d-hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin: 12px 0 14px; letter-spacing: -0.025em; }
.d-hero p.tagline { font-size: clamp(16.5px, 1.4vw, 18.5px); max-width: 56ch; margin: 0; color: var(--ink-2); }
.d-art { margin: 0; container-type: inline-size; padding: clamp(16px, 4cqw, 36px); background: color-mix(in srgb, var(--pc) 13%, var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; }
.d-art .mock { width: 100%; }
.d-art .mock.phone { width: 15em; font-size: clamp(6px, 2.6cqw, 15px); }
.d-art .mock.paper { width: 26em; font-size: clamp(6px, 2.5cqw, 15px); }
.d-art .mock.card-id { width: 24em; font-size: clamp(6px, 3.4cqw, 19px); }
.d-art .mock.ticket { width: 25em; font-size: clamp(6px, 3.3cqw, 18px); }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--ink); }
.meta div { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.meta div span { display: block; font: 400 12px/1 var(--font-mono); color: var(--muted); margin-bottom: 6px; }
.meta div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.meta a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.meta a:hover { color: var(--accent-text); }
.numbers-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers-band div { padding: 16px 16px 16px 0; }
.numbers-band div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.numbers-band b { display: block; font: 600 clamp(24px, 2.6vw, 32px)/1 var(--font-head); letter-spacing: -0.02em; }
.numbers-band span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.d-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); padding: 44px 0 20px; align-items: start; }
.d-body h2 { font-size: 22px; margin-bottom: 14px; }
.overview p { color: var(--ink-2); margin: 0 0 14px; font-size: 16.5px; max-width: 68ch; }
.overview p:first-of-type { font-size: 18.5px; color: var(--ink); line-height: 1.55; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.module { padding: 16px 0 10px; border-top: 1px solid var(--line); }
.module h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.module h3 .ic { display: none; }
.module h3::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--cc, var(--pc)); flex: none; }
.module ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.module li { padding: 3px 0; }
.module li svg { display: none; }
.side { display: flex; flex-direction: column; gap: 0; position: sticky; top: 80px; border-top: 1px solid var(--ink); }
.panel { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.panel h4 { font: 400 12px/1 var(--font-mono); color: var(--muted); margin-bottom: 10px; letter-spacing: 0; }
.panel ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.panel li { padding: 2px 0; }
.related { padding: 32px 0 8px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px 0 40px; border-top: 1px solid var(--line); margin-top: 24px; }
.pager a { text-decoration: none; padding: 4px 0; }
.pager span { display: block; font: 400 12.5px/1.3 var(--font-mono); color: var(--muted); margin-bottom: 6px; }
.pager b { font: 600 18px/1.3 var(--font-head); }
.pager a:hover b { color: var(--accent-text); }
.pager a.next { text-align: right; }

/* stack */
.stack-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.stack-groups .panel { border-top: 1px solid var(--line); border-bottom: 0; }
.stack-groups .panel h4 { color: var(--ink); font: 600 15px/1.3 var(--font-head); }

/* ───────── contact ───────── */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.contact h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; }
.contact p { color: var(--ink-2); font-size: 17px; max-width: 52ch; margin: 14px 0 0; }
.contact .email { display: inline-block; margin-top: 22px; font: 500 clamp(19px, 2.3vw, 28px)/1.3 var(--font-head); color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact .email:hover { color: var(--accent-text); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); font-size: 14.5px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font: 400 12.5px/1.6 var(--font-mono); color: var(--muted); }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--accent-text); }

.footer { border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-top: 22px; padding-bottom: 26px; }


/* ───────── MOCK UI SCREENS ─────────
   All sizes are in em; font-size follows the nearest container width. */
.mock { font-size: clamp(5px, 1.9cqw, 12px); color: var(--m-ink); font-family: var(--font-body); line-height: 1.3; text-align: left; }
.mock * { box-sizing: border-box; }
.sk { display: block; height: .7em; border-radius: .35em; background: var(--m-sk); }
.sk.s2 { background: var(--m-sk-2); }
.sk.pc { background: color-mix(in srgb, var(--pc) 70%, transparent); }
.sk.t { height: 1.2em; }

.mock.browser, .mock.paper, .mock.card-id, .mock.ticket {
  background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 1em; box-shadow: var(--shadow-lg); overflow: hidden;
}
.chrome { display: flex; align-items: center; gap: .45em; padding: .8em 1em; border-bottom: 1px solid var(--m-line); background: var(--m-surface); }
.chrome > span { width: .75em; height: .75em; border-radius: 50%; background: #ff5f57; }
.chrome > span:nth-child(2) { background: #febc2e; }
.chrome > span:nth-child(3) { background: #28c840; }
.chrome em { margin-left: 1em; flex: 1; max-width: 26em; font: normal 500 .85em/1 var(--font-mono); color: color-mix(in srgb, var(--m-ink) 55%, transparent); background: var(--m-bg); border: 1px solid var(--m-line); border-radius: .6em; padding: .5em .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { position: relative; }

/* site */
.m-site .m-nav { display: flex; align-items: center; gap: 1.4em; padding: 1.1em 1.6em; }
.m-site .m-nav b { font: 700 1.15em/1 var(--font-head); margin-right: auto; color: var(--pc); }
.m-site .m-nav .sk { width: 3.6em; height: .55em; }
.m-site .m-nav .btn-s { width: 5em; height: 1.7em; border-radius: .5em; background: var(--m-ink); }
.m-site .m-hero { padding: 2.2em 1.6em 1.6em; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.6em; align-items: center; }
.m-site .m-h1 { font: 700 2em/1.05 var(--font-head); letter-spacing: -0.03em; margin-bottom: .6em; }
.m-site .m-h1 span { color: var(--pc); }
.m-site .m-hero .sk { margin-bottom: .55em; }
.m-site .m-btns { display: flex; gap: .6em; margin-top: 1.2em; }
.m-site .m-btns i { height: 2.2em; width: 7em; border-radius: .6em; background: var(--pc); }
.m-site .m-btns i + i { background: transparent; border: 1px solid var(--m-line); width: 5.5em; }
.m-site .m-visual { aspect-ratio: 1 / .85; border-radius: 1em; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--pc) 80%, #fff), color-mix(in srgb, var(--pc) 70%, #000)); position: relative; overflow: hidden; }
.m-site .m-visual::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: .25em solid rgba(255,255,255,.35); }
.m-site .m-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em; padding: 0 1.6em 1.6em; }
.m-site .m-cols div { border: 1px solid var(--m-line); border-radius: .8em; padding: .9em; display: flex; flex-direction: column; gap: .45em; }
.m-site .m-cols div i { width: 1.8em; height: 1.8em; border-radius: .5em; background: color-mix(in srgb, var(--pc) 25%, transparent); margin-bottom: .2em; }

/* corporate */
.m-corp { padding: 1.6em; }
.m-corp .m-h1 { font: 700 1.9em/1.05 var(--font-head); letter-spacing: -0.03em; max-width: 12em; margin: .9em 0 .5em; }
.m-corp .brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; margin-top: 1.4em; }
.m-corp .brands div { border: 1px solid var(--m-line); border-radius: .8em; padding: 1em .8em; font: 600 .85em/1.2 var(--font-head); display: flex; flex-direction: column; gap: .6em; }
.m-corp .brands div i { width: 2em; height: 2em; border-radius: .6em; }

/* dashboard */
.m-dash { display: grid; grid-template-columns: 11em 1fr; min-height: 22em; }
.m-dash aside { background: var(--m-surface); border-right: 1px solid var(--m-line); padding: 1.1em .9em; display: flex; flex-direction: column; gap: .5em; }
.m-dash aside b { font: 700 1em/1 var(--font-head); margin-bottom: .8em; display: flex; align-items: center; gap: .5em; }
.m-dash aside b i { width: 1.3em; height: 1.3em; border-radius: .35em; background: var(--pc); }
.m-dash aside .item { display: flex; align-items: center; gap: .55em; padding: .45em .55em; border-radius: .45em; font-size: .85em; color: color-mix(in srgb, var(--m-ink) 65%, transparent); }
.m-dash aside .item i { width: .9em; height: .9em; border-radius: .25em; background: var(--m-sk); flex: none; }
.m-dash aside .item.on { background: color-mix(in srgb, var(--pc) 16%, transparent); color: var(--m-ink); font-weight: 600; }
.m-dash aside .item.on i { background: var(--pc); }
.m-main { padding: 1.2em 1.3em; display: flex; flex-direction: column; gap: 1em; }
.m-main .top { display: flex; justify-content: space-between; align-items: center; }
.m-main .top b { font: 700 1.25em/1 var(--font-head); }
.m-main .top i { width: 6em; height: 1.8em; border-radius: .5em; background: var(--pc); }
.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.m-tiles div { border: 1px solid var(--m-line); border-radius: .7em; padding: .7em .8em; }
.m-tiles small { display: block; font-size: .72em; color: color-mix(in srgb, var(--m-ink) 55%, transparent); margin-bottom: .3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tiles b { font: 700 1.35em/1 var(--font-head); }
.m-chart { display: flex; align-items: flex-end; gap: .45em; height: 6.5em; padding: .7em; border: 1px solid var(--m-line); border-radius: .7em; }
.m-chart i { flex: 1; border-radius: .25em .25em 0 0; background: color-mix(in srgb, var(--pc) 35%, transparent); }
.m-chart i.hi { background: var(--pc); }
.m-rows { display: flex; flex-direction: column; gap: .5em; }
.m-rows div { display: grid; grid-template-columns: 1.4em 1fr .6fr 4em; gap: .8em; align-items: center; }
.m-rows div > i:first-child { width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--m-sk); }
.m-rows .pill-s { height: 1.3em; border-radius: 1em; background: color-mix(in srgb, #22c55e 25%, transparent); }
.m-rows .pill-s.w { background: color-mix(in srgb, #f59e0b 28%, transparent); }

/* invoice (paper) */
.mock.paper { padding: 1.6em 1.6em 1.8em; width: 26em; position: relative; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1em; border-bottom: .15em solid var(--m-ink); }
.inv-head b { font: 700 1.35em/1 var(--font-head); letter-spacing: .02em; display: block; }
.inv-head small { font: 500 .78em/1.5 var(--font-mono); color: color-mix(in srgb, var(--m-ink) 55%, transparent); }
.inv-head .logo { width: 2.6em; height: 2.6em; border-radius: .7em; background: var(--pc); display: grid; place-items: center; color: #fff; font: 700 .9em/1 var(--font-head); }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; padding: 1em 0; font-size: .8em; }
.inv-meta .sk { margin-top: .4em; }
.inv-table { font-size: .8em; }
.inv-table .r { display: grid; grid-template-columns: 1fr 3em 6em; gap: .8em; padding: .55em 0; border-bottom: 1px solid var(--m-line); align-items: center; }
.inv-table .r.h { font-weight: 600; color: color-mix(in srgb, var(--m-ink) 55%, transparent); font-size: .9em; text-transform: uppercase; letter-spacing: .05em; }
.inv-table .r span:last-child, .inv-tot span:last-child { text-align: right; font-family: var(--font-mono); }
.inv-tot { margin-left: auto; width: 60%; font-size: .82em; padding-top: .6em; }
.inv-tot div { display: flex; justify-content: space-between; padding: .3em 0; }
.inv-tot div.g { border-top: .12em solid var(--m-ink); margin-top: .3em; padding-top: .55em; font-weight: 700; font-size: 1.12em; }
.inv-words { font-size: .72em; font-style: italic; color: color-mix(in srgb, var(--m-ink) 60%, transparent); margin-top: .8em; padding: .55em .7em; background: var(--m-surface); border-radius: .4em; }
.stamp { position: absolute; right: 1.6em; top: 5.6em; transform: rotate(-12deg); font: 700 1.2em/1 var(--font-head); letter-spacing: .12em; color: #16a34a; border: .17em solid #16a34a; border-radius: .35em; padding: .3em .55em; opacity: .85; }

/* calendar */
.m-cal { padding: 1.1em 1.2em 1.3em; }
.m-cal .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9em; }
.m-cal .top b { font: 700 1.2em/1 var(--font-head); }
.m-cal .legend { display: flex; gap: .8em; font-size: .72em; }
.m-cal .legend span { display: flex; align-items: center; gap: .35em; }
.m-cal .legend i { width: .7em; height: .7em; border-radius: .2em; }
.m-cal .days, .m-cal .cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35em; }
.m-cal .days span { font: 600 .68em/1 var(--font-mono); text-transform: uppercase; color: color-mix(in srgb, var(--m-ink) 50%, transparent); padding: 0 .3em .5em; }
.m-cal .cells > div { min-height: 4.4em; border: 1px solid var(--m-line); border-radius: .45em; padding: .3em; display: flex; flex-direction: column; gap: .25em; }
.m-cal .cells small { font-size: .65em; color: color-mix(in srgb, var(--m-ink) 50%, transparent); }
.m-cal .post { font-size: .6em; font-weight: 600; padding: .3em .4em; border-radius: .35em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* chat & phone */
.mock.phone {
  width: 15em; aspect-ratio: 9 / 19; border-radius: 2.2em; padding: .55em; background: #0b0c10; box-shadow: var(--shadow-lg), inset 0 0 0 .15em #2a2d36; position: relative;
}
.mock.phone .notch { position: absolute; top: 1em; left: 50%; translate: -50% 0; width: 4.2em; height: 1.15em; border-radius: 1em; background: #000; z-index: 3; }
.mock.phone .screen { height: 100%; border-radius: 1.75em; overflow: hidden; background: var(--m-bg); display: flex; flex-direction: column; }
.chat-head { padding: 2.6em 1em .8em; display: flex; align-items: center; gap: .6em; background: var(--m-surface); border-bottom: 1px solid var(--m-line); }
.chat-head i { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--pc); display: grid; place-items: center; color: #fff; font: 700 .85em/1 var(--font-head); font-style: normal; }
.chat-head b { font-size: .95em; display: block; }
.chat-head small { font-size: .7em; color: #22c55e; }
.chat-body { flex: 1; padding: .9em .8em; display: flex; flex-direction: column; gap: .55em; font-size: .78em; }
.bub { max-width: 82%; padding: .6em .8em; border-radius: 1em; background: var(--m-surface); border: 1px solid var(--m-line); }
.bub.me { align-self: flex-end; background: #06c755; color: #fff; border: 0; border-bottom-right-radius: .3em; }
.bub.bot { border-bottom-left-radius: .3em; }
.bub.card { padding: 0; overflow: hidden; }
.bub.card div { padding: .6em .8em; }
.bub.card strong { display: block; font-size: 1.05em; }
.bub.card .ok { background: color-mix(in srgb, var(--pc) 15%, transparent); color: var(--pc); font-weight: 700; }
.typing { display: flex; gap: .3em; padding: .7em .9em; width: fit-content; }
.typing i { width: .5em; height: .5em; border-radius: 50%; background: color-mix(in srgb, var(--m-ink) 40%, transparent); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }

/* video (tiktok) */
.vid { position: relative; height: 100%; background: radial-gradient(120% 70% at 50% 30%, color-mix(in srgb, var(--pc) 85%, #fff 0%), #0b0c10 85%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 3em .9em 1em; }
.vid .scene { position: absolute; inset: 22% 14% 34%; border-radius: 1em; background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.25); }
.vid .scene::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3em; height: 3em; translate: -50% -50%; border-radius: 50%; background: rgba(255,255,255,.85); clip-path: polygon(38% 28%, 38% 72%, 74% 50%); }
.vid .hook { position: relative; z-index: 1; align-self: center; font: 700 1.3em/1.1 var(--font-head); text-align: center; background: #fff; color: #0b0c10; padding: .35em .6em; border-radius: .4em; text-transform: uppercase; letter-spacing: -.01em; }
.vid .side { position: absolute; right: .7em; bottom: 5.5em; display: flex; flex-direction: column; gap: .9em; align-items: center; }
.vid .side i { width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.vid .side i svg { width: 1.2em; height: 1.2em; }
.vid .side small { font-size: .6em; margin-top: -.6em; }
.vid .vcap { position: relative; z-index: 1; font-size: .72em; max-width: 78%; }
.vid .vcap b { display: block; font-size: 1.1em; margin-bottom: .25em; }
.vid .bar { height: .25em; background: rgba(255,255,255,.25); border-radius: 1em; margin-top: .8em; overflow: hidden; }
.vid .bar::after { content: ""; display: block; width: 40%; height: 100%; background: #fff; animation: prog 6s linear infinite; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
.live-badge { position: absolute; top: 3em; left: .9em; display: flex; gap: .4em; align-items: center; z-index: 2; }
.live-badge b { background: #fe2c55; color: #fff; font: 700 .7em/1 var(--font-body); padding: .35em .5em; border-radius: .3em; }
.live-badge span { background: rgba(0,0,0,.4); color: #fff; font-size: .65em; padding: .35em .5em; border-radius: .3em; }
.runway { position: absolute; left: 30%; right: 30%; top: 26%; bottom: 30%; background: linear-gradient(to top, rgba(255,255,255,.28), rgba(255,255,255,.02)); clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%); }
.walker { position: absolute; left: 50%; bottom: 32%; translate: -50% 0; width: 1.6em; height: 3.2em; border-radius: .8em .8em .3em .3em; background: #fff; box-shadow: 0 0 1.4em #fde047; animation: walk 3s ease-in-out infinite; }
@keyframes walk { 0% { bottom: 32%; scale: 1; } 100% { bottom: 62%; scale: .6; } }
.gifts { position: absolute; left: .8em; bottom: 4.4em; display: flex; flex-direction: column; gap: .4em; z-index: 2; }
.gifts span { font-size: .62em; background: rgba(0,0,0,.45); color: #fff; padding: .45em .65em; border-radius: 1em; display: flex; gap: .4em; align-items: center; width: fit-content; }
.gifts span i { width: .9em; height: .9em; border-radius: 50%; background: #fde047; }
.gifts span.vip i { background: #f472b6; }

/* seo */
.m-seo { padding: 1.2em 1.3em 1.4em; display: grid; grid-template-columns: 10em 1fr; gap: 1.2em; }
.ring { width: 10em; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pc) 0 92%, var(--m-sk-2) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: .9em; border-radius: 50%; background: var(--m-bg); }
.ring div { position: relative; text-align: center; }
.ring b { display: block; font: 700 2.6em/1 var(--font-head); }
.ring small { font-size: .72em; color: color-mix(in srgb, var(--m-ink) 55%, transparent); }
.issues { display: flex; flex-direction: column; gap: .45em; font-size: .78em; }
.issues > b { font: 700 1.2em/1 var(--font-head); margin-bottom: .3em; }
.issues div { display: grid; grid-template-columns: .7em 1fr auto; gap: .6em; align-items: center; padding: .5em .6em; border: 1px solid var(--m-line); border-radius: .5em; }
.issues div i { width: .7em; height: .7em; border-radius: 50%; }
.issues em { font-style: normal; font-size: .82em; font-weight: 600; padding: .25em .5em; border-radius: .35em; }
.issues em.fix { background: color-mix(in srgb, #22c55e 18%, transparent); color: #16a34a; }
.issues em.rev { background: color-mix(in srgb, #f59e0b 20%, transparent); color: #d97706; }
.m-seo .spark { grid-column: 1 / -1; border: 1px solid var(--m-line); border-radius: .7em; padding: .6em .8em; display: flex; align-items: center; gap: 1em; }
.m-seo .spark small { font-size: .72em; color: color-mix(in srgb, var(--m-ink) 55%, transparent); white-space: nowrap; }
.m-seo .spark svg { flex: 1; height: 3em; }

/* crm */
.m-crm { padding: 1.1em 1.2em 1.3em; }
.m-crm .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9em; }
.m-crm .top b { font: 700 1.2em/1 var(--font-head); }
.m-crm .stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }
.m-crm .stage { background: var(--m-surface); border-radius: .7em; padding: .6em; display: flex; flex-direction: column; gap: .45em; min-height: 15em; }
.m-crm .stage > small { font: 600 .68em/1 var(--font-mono); text-transform: uppercase; color: color-mix(in srgb, var(--m-ink) 55%, transparent); display: flex; justify-content: space-between; }
.m-crm .lead { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: .5em; padding: .5em; display: flex; flex-direction: column; gap: .35em; }
.m-crm .lead .who { display: flex; gap: .4em; align-items: center; }
.m-crm .lead .who i { width: 1.3em; height: 1.3em; border-radius: 50%; flex: none; }
.m-crm .flag { font-size: .58em; font-weight: 700; padding: .2em .4em; border-radius: .3em; width: fit-content; background: var(--m-sk-2); }

/* platform (agents) */
.m-plat { padding: 1.2em 1.3em 1.4em; }
.m-plat .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1em; }
.m-plat .top b { font: 700 1.2em/1 var(--font-head); }
.m-plat .top span { font: 500 .72em/1 var(--font-mono); color: #16a34a; display: flex; gap: .4em; align-items: center; }
.m-plat .top span::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #22c55e; }
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.agent { border: 1px solid var(--m-line); border-radius: .8em; padding: .8em; display: flex; flex-direction: column; gap: .5em; }
.agent .who { display: flex; align-items: center; gap: .6em; }
.agent .who i { width: 2.3em; height: 2.3em; border-radius: .7em; display: grid; place-items: center; color: #fff; font: 700 .8em/1 var(--font-head); font-style: normal; flex: none; }
.agent .who b { font-size: .9em; display: block; }
.agent .who small { font-size: .68em; color: color-mix(in srgb, var(--m-ink) 55%, transparent); }
.agent .msg { font-size: .7em; padding: .5em .6em; background: var(--m-surface); border-radius: .5em; }
.agent .act { display: flex; gap: .4em; }
.agent .act span { font-size: .62em; font-weight: 600; padding: .35em .6em; border-radius: .4em; background: var(--m-ink); color: var(--m-bg); }
.agent .act span + span { background: transparent; color: var(--m-ink); border: 1px solid var(--m-line); }

/* member card / ticket */
.mock.card-id { width: 24em; aspect-ratio: 1.586; padding: 1.3em 1.4em; display: flex; flex-direction: column; justify-content: space-between; color: #fff; position: relative;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--pc) 60%, #fff 10%), transparent 60%), linear-gradient(140deg, color-mix(in srgb, var(--pc) 85%, #000), #07080c);
  border-color: rgba(255,255,255,.12);
}
.mock.card-id::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 .4em, transparent .4em 1em); pointer-events: none; }
.card-id .top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-id .top b { font: 700 1.05em/1.15 var(--font-head); letter-spacing: .02em; }
.card-id .top small { display: block; font: 500 .62em/1.4 var(--font-mono); opacity: .7; letter-spacing: .1em; text-transform: uppercase; }
.card-id .emblem { width: 2.6em; height: 2.6em; border-radius: 50%; border: .15em solid rgba(255,255,255,.7); display: grid; place-items: center; font: 700 .9em/1 var(--font-serif); font-style: italic; }
.card-id .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; }
.card-id .who { display: flex; align-items: center; gap: .8em; }
.card-id .who i { width: 3em; height: 3em; border-radius: .7em; background: rgba(255,255,255,.2); flex: none; }
.card-id .who b { display: block; font-size: .95em; }
.card-id .who small { font: 500 .62em/1.5 var(--font-mono); opacity: .75; letter-spacing: .08em; }
.qr { display: grid; grid-template-columns: repeat(11, 1fr); width: 4.8em; aspect-ratio: 1; padding: .3em; background: #fff; border-radius: .4em; gap: 0; flex: none; }
.qr i { background: #0b0c10; }
.qr i.o { background: transparent; }

.mock.ticket { width: 25em; display: grid; grid-template-columns: 1fr 7.8em; padding: 0; }
.ticket .main { padding: 1.3em 1.4em; display: flex; flex-direction: column; gap: .5em; border-right: .15em dashed var(--m-line); position: relative; }
.ticket .main small { font: 600 .65em/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--pc); }
.ticket .main b { font: 700 1.3em/1.1 var(--font-head); }
.ticket .main .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; margin-top: .4em; font-size: .72em; }
.ticket .main .row span { display: block; color: color-mix(in srgb, var(--m-ink) 50%, transparent); font-size: .85em; text-transform: uppercase; letter-spacing: .06em; }
.ticket .main .row strong { font-size: 1.05em; }
.ticket .main .ok { margin-top: .5em; font-size: .7em; font-weight: 700; color: #16a34a; display: flex; gap: .4em; align-items: center; }
.ticket .main .ok::before { content: "✓"; width: 1.4em; height: 1.4em; border-radius: 50%; background: color-mix(in srgb, #22c55e 20%, transparent); display: grid; place-items: center; }
.ticket .stub { padding: 1em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; background: color-mix(in srgb, var(--pc) 10%, var(--m-bg)); }
.ticket .stub .qr { width: 5.6em; }
.ticket .stub small { font: 600 .6em/1 var(--font-mono); letter-spacing: .1em; }

/* lodge dashboard */
.m-lodge { padding: 1.2em 1.3em 1.4em; display: flex; flex-direction: column; gap: .9em; }
.m-lodge .top { display: flex; align-items: center; gap: .8em; }
.m-lodge .top .emblem { width: 2.6em; height: 2.6em; border-radius: .7em; background: var(--pc); display: grid; place-items: center; color: #fff; font: italic 400 1.1em/1 var(--font-serif); }
.m-lodge .top b { font: 700 1.15em/1.1 var(--font-head); display: block; }
.m-lodge .top small { font-size: .72em; color: color-mix(in srgb, var(--m-ink) 55%, transparent); }
.m-lodge .meet { border-radius: .8em; padding: .9em 1em; color: #fff; background: linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 50%, #000)); display: flex; justify-content: space-between; align-items: center; }
.m-lodge .meet small { display: block; font-size: .68em; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.m-lodge .meet b { font: 700 1.1em/1.2 var(--font-head); }
.m-lodge .meet span { font-size: .7em; font-weight: 700; background: rgba(255,255,255,.18); padding: .45em .7em; border-radius: .5em; }
.m-lodge .split { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.m-lodge .box { border: 1px solid var(--m-line); border-radius: .7em; padding: .7em .8em; font-size: .78em; }
.m-lodge .box > small { display: block; color: color-mix(in srgb, var(--m-ink) 55%, transparent); font-size: .85em; margin-bottom: .5em; }
.m-lodge .prog { height: .55em; border-radius: 1em; background: var(--m-sk-2); overflow: hidden; margin: .5em 0 .3em; }
.m-lodge .prog i { display: block; height: 100%; width: 78%; background: var(--pc); border-radius: 1em; }
.m-lodge .att { display: flex; gap: .25em; margin-top: .3em; }
.m-lodge .att i { width: 1.5em; height: 1.5em; border-radius: 50%; border: .12em solid var(--m-bg); margin-left: -.45em; }
.m-lodge .att i:first-child { margin-left: 0; }

/* discord */
.m-disc { display: grid; grid-template-columns: 3.4em 1fr; min-height: 21em; background: #1e1f24; color: #e7e8ea; }
.m-disc .rail { background: #16171b; padding: .8em .6em; display: flex; flex-direction: column; gap: .6em; align-items: center; }
.m-disc .rail i { width: 2.2em; height: 2.2em; border-radius: .8em; background: #2b2d33; }
.m-disc .rail i:first-child { background: #5865f2; }
.m-disc .rail i.g { background: var(--pc); }
.m-disc .feed { padding: 1em 1.1em; display: flex; flex-direction: column; gap: .7em; font-size: .8em; }
.m-disc .feed .hd { font-weight: 700; color: #9da0a8; font-size: .85em; border-bottom: 1px solid #2b2d33; padding-bottom: .6em; }
.m-disc .msg { display: grid; grid-template-columns: 2.4em 1fr; gap: .7em; }
.m-disc .msg > i { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--pc); }
.m-disc .msg b { color: #fff; font-size: .95em; }
.m-disc .msg b em { font-style: normal; font-size: .7em; background: #5865f2; padding: .1em .35em; border-radius: .25em; margin-left: .4em; vertical-align: middle; }
.m-disc .embed { margin-top: .4em; border-left: .3em solid var(--pc); background: #2b2d33; border-radius: .3em; padding: .7em .8em; }
.m-disc .embed strong { display: block; font-size: 1em; margin-bottom: .5em; }
.m-disc .slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.m-disc .slots span { font-size: .72em; background: #1e1f24; border-radius: .3em; padding: .4em .5em; display: flex; gap: .4em; align-items: center; }
.m-disc .slots span i { width: .6em; height: .6em; border-radius: 50%; }
.m-disc .btns { display: flex; gap: .4em; margin-top: .6em; }
.m-disc .btns span { font-size: .7em; padding: .4em .7em; border-radius: .3em; background: #248046; font-weight: 600; }
.m-disc .btns span + span { background: #4e5058; }


/* trading */
.m-trade { display: grid; grid-template-columns: minmax(0, 1fr) 13em; min-height: 21em; }
.m-trade .chart { padding: 1em 1.1em; display: flex; flex-direction: column; gap: .7em; border-right: 1px solid var(--m-line); }
.m-trade .top { display: flex; justify-content: space-between; align-items: center; gap: .6em; }
.m-trade .top b { font: 600 1.1em/1 var(--font-head); }
.m-trade .top span { font: 500 .7em/1 var(--font-mono); padding: .35em .5em; border-radius: .3em; background: var(--m-surface); border: 1px solid var(--m-line); }
.m-trade .candles { flex: 1; display: flex; align-items: stretch; gap: .28em; min-height: 11em; position: relative; border-bottom: 1px solid var(--m-line); }
.m-trade .candles i { flex: 1; position: relative; }
.m-trade .candles i::before { content: ""; position: absolute; left: 50%; width: 1px; translate: -50% 0; top: var(--wt); bottom: var(--wb); background: var(--c); }
.m-trade .candles i::after { content: ""; position: absolute; left: 0; right: 0; top: var(--bt); bottom: var(--bb); background: var(--c); border-radius: .1em; }
.m-trade .limit { position: absolute; left: 0; right: 0; top: 18%; border-top: 1px dashed #dc2626; }
.m-trade .limit em { position: absolute; right: 0; top: -1.5em; font: 500 .62em/1 var(--font-mono); font-style: normal; color: #dc2626; }
.m-trade .log { display: flex; flex-direction: column; gap: .35em; font: .66em/1.3 var(--font-mono); color: color-mix(in srgb, var(--m-ink) 70%, transparent); }
.m-trade .log span b { color: var(--m-ink); font-weight: 500; margin-right: .6em; }
.m-trade aside { padding: 1em; display: flex; flex-direction: column; gap: .75em; background: var(--m-surface); font-size: .78em; }
.m-trade aside > b { font: 600 1.15em/1 var(--font-head); }
.m-trade .rl small { display: flex; justify-content: space-between; color: color-mix(in srgb, var(--m-ink) 60%, transparent); }
.m-trade .rl small em { font-style: normal; font-family: var(--font-mono); color: var(--m-ink); }
.m-trade .rl .bar { height: .45em; border-radius: 1em; background: var(--m-sk-2); margin-top: .35em; overflow: hidden; }
.m-trade .rl .bar i { display: block; height: 100%; background: var(--pc); }
.m-trade .ok { margin-top: auto; font-weight: 600; color: #16a34a; }
.m-trade .ovr { text-align: center; font-weight: 600; padding: .5em; border-radius: .4em; border: 1px solid var(--m-line); background: var(--m-bg); }

/* ───────── responsive ───────── */
@media (max-width: 980px) {
  .intro-grid, .d-grid, .feature, .contact { grid-template-columns: 1fr; }
  .feature .feature-art, .feature:nth-child(even) .feature-art { order: -1; }
  .feature:first-child { padding-top: 0; }
  .d-body { grid-template-columns: 1fr; }
  .side { position: static; }
  .intro-fig { max-width: 620px; }
}
@media (max-width: 760px) {
  .ledger-head { display: none; }
  .ledger a { grid-template-columns: 2.4em minmax(0, 1fr); grid-template-areas: "no name" "no client" "no status"; gap: 4px 12px; }
  .l-no { grid-area: no; }
  .l-name { grid-area: name; }
  .l-client { grid-area: client; font-size: 13.5px; }
  .l-status { grid-area: status; }
  .l-cats, .l-year { display: none; }
  .crow { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .crow .svc-col { display: none; }
  .svc-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .brand small { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 14px; }
  .grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .feature-copy ul { columns: 1; }
  .meta { grid-template-columns: 1fr 1fr; }
  .m-trade { grid-template-columns: 1fr; }
  .m-trade .chart { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}
