/* Collarful — single stylesheet, no build step.
   Design language: "RISO PRESS" — job boards descend from newspaper
   classifieds, so the UI is a two-ink risograph print system:
   · warm newsprint paper + near-black ink
   · vermillion (#D8431F) and ochre (#C99700) spot colors
   · Fraunces serif display (pairs with Noto Serif Khmer for ខ្មែរ)
   · Kantumruy Pro for UI text, Space Mono for typesetter metadata
   · letterpress buttons (hard offset shadows), hairline rules,
     halftone hero, paper grain, stamp badges, CSS-counter job numbering.
   Layout/markup contract unchanged: selectors and grids preserved. */

:root {
  --paper: #f5f0e4;
  --card: #fffcf3;
  --ink: #1c1710;
  --ink-deep: #17130c;
  --ink-soft: #4a4335;
  --muted: #6f6757;
  --line: #dcd4c0;
  --line-strong: #b9af97;
  --accent: #d8431f;
  --accent-deep: #a93312;
  --gold: #c99700;
  --gold-deep: #8f6a00;
  --cream: #f6f1e6;
  --danger: #a92818;
  --ok: #2c5e3f;
  --radius: 2px;
  --font-display: "Fraunces", "Noto Serif Khmer", "Kantumruy Pro", Georgia, serif;
  --font-ui: "Kantumruy Pro", "Noto Sans Khmer", "Khmer UI", "Leelawadee UI", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Space Mono", "Cascadia Mono", ui-monospace, "Kantumruy Pro", monospace;
  /* legacy aliases still referenced by inline styles/templates */
  --bg: #f5f0e4;
  --brand: #1c1710;
  --brand-dark: #17130c;
  --shadow: 4px 4px 0 rgba(28, 23, 16, .06);
  --shadow-lift: 6px 6px 0 rgba(28, 23, 16, .9);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
/* paper grain — one fixed decorative layer over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: multiply;
}
@media print { body::after { display: none; } }
/* Khmer script stacks glyphs vertically — give it more vertical air. */
html[lang="km"] body { line-height: 1.9; }
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3 { line-height: 1.55; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
/* component links carry their own treatment */
.btn, .chip, .badge, .logo, .side-link, .tab, .job-card, .co-card, .kpi, .pipe-item,
.lang-switch a, .nav-links a { text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 .5em; }
hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 16px 0; }
img { max-width: 100%; }
::selection { background: #f1d992; color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 1px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 640px; }
.section { padding: 44px 20px; }
.section-title { font-size: 1.5rem; display: flex; align-items: baseline; gap: 18px; }
.section-title::after { content: ""; flex: 1; border-top: 1px solid var(--line-strong); transform: translateY(-6px); }
.center .section-title::after, .section-title.center::after { display: none; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.big-emoji { font-size: 3rem; margin: 16px 0; filter: grayscale(1) contrast(1.15); }
.req { color: var(--accent); font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.salary { color: var(--gold-deep); font-family: var(--font-mono); font-weight: 700; font-size: .95em; font-feature-settings: "tnum"; }
.km { font-size: .92em; color: var(--muted); }

/* ---------- header / footer ---------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.site-header::after { content: ""; display: block; height: 1px; background: var(--ink); margin-top: 2px; opacity: .35; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-dot { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 20px; align-items: center; font-size: .92rem; }
.nav-links > a:not(.btn) {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding-bottom: 2px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 2px;
  transition: background-size .18s ease-out;
}
.nav-links > a:not(.btn):hover { background-size: 100% 2px; }
.site-footer { background: var(--ink-deep); color: #cfc7b4; margin-top: 64px; padding: 36px 0; font-size: .9rem; border-top: 4px solid var(--accent); }
.site-footer strong { font-family: var(--font-display); font-style: italic; font-size: 1.2em; color: var(--cream); }
.site-footer a { color: #d8a93c; text-decoration-color: color-mix(in srgb, #d8a93c 45%, transparent); }
.site-footer a:hover { text-decoration-color: #d8a93c; }

/* language toggle — ខ្មែរ / EN, a typesetter's switch */
.lang-switch { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.lang-switch a { padding: 3px 11px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.on { background: var(--ink); color: var(--cream); }

/* ---------- buttons / chips / badges ---------- */
/* letterpress: hard offset shadow, press down on click */
.btn {
  display: inline-block; padding: 9px 20px; border-radius: var(--radius);
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  font-size: .93rem; font-weight: 600; cursor: pointer; line-height: 1.4;
  text-decoration: none !important; font-family: inherit;
  box-shadow: 3px 3px 0 rgba(28, 23, 16, .85);
  transition: transform .1s ease-out, box-shadow .1s ease-out, background .12s, color .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(28, 23, 16, .85); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(28, 23, 16, .85); }
.btn-primary { background: var(--accent); color: var(--cream); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--card); }
.btn-danger { background: var(--card); border-color: var(--danger); color: var(--danger); box-shadow: 3px 3px 0 rgba(169, 40, 24, .5); }
.btn-danger:hover { background: #f9e7e2; box-shadow: 4px 4px 0 rgba(169, 40, 24, .5); }
.btn-sm { padding: 4px 12px; font-size: .8rem; box-shadow: 2px 2px 0 rgba(28, 23, 16, .85); }
.btn-sm:hover { box-shadow: 3px 3px 0 rgba(28, 23, 16, .85); }
.btn-block { display: block; width: 100%; text-align: center; margin: 12px 0 8px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.linklike { background: none; border: 0; color: #d8a93c; cursor: pointer; padding: 0; font: inherit; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }

.chip {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  background: var(--card); color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}
.chip-accent { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip-soft { background: transparent; color: var(--muted); border-color: var(--line); }
.chip-verified { background: #e6f2ec; color: #0e7a63; border-color: #0e7a63; }
.chip-featured { background: #f6ead2; color: #8a5a00; border-color: #8a5a00; }
.chip-link:hover { border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 rgba(28, 23, 16, .2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }

/* status stamps — --bc set inline per status */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--bc, #6f6757) 75%, var(--ink));
  background: color-mix(in srgb, var(--bc, #6f6757) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--bc, #6f6757) 60%, var(--card));
}

/* ---------- cards / notices / tables ---------- */
.card { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card-title { font-size: 1.06rem; border-bottom: 1px solid var(--line-strong); padding-bottom: 8px; margin-bottom: 14px; }
.notice { padding: 10px 14px; border-radius: var(--radius); margin: 10px 0; font-size: .9rem; border: 1px solid; border-left-width: 4px; }
.notice-ok { background: #eaf2e4; color: var(--ok); border-color: #9dbd8e; border-left-color: var(--ok); }
.notice-error { background: #f9e7e2; color: #8c2318; border-color: #dda99e; border-left-color: var(--danger); }
.notice-warn { background: #f7edd3; color: #7a5a00; border-color: #d9c78a; border-left-color: var(--gold); }
.notice-info { background: #e7ecf6; color: #274b8f; border-color: #a9bad9; border-left-color: #274b8f; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding: 8px; }
.table td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #f8f1de; }
.kv { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kv th { text-align: left; color: var(--muted); font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px 8px 0; width: 32%; vertical-align: top; white-space: nowrap; }
.kv td { padding: 7px 0; word-break: break-word; }
.kv tr + tr th, .kv tr + tr td { border-top: 1px solid var(--line); }

/* ---------- forms ---------- */
input, select, textarea {
  width: 100%; padding: 9px 12px; border-radius: var(--radius);
  border: 1.5px solid color-mix(in srgb, var(--ink) 40%, var(--paper));
  font: inherit; font-size: .95rem; background: var(--card); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
input[type="color"] { padding: 2px; height: 42px; }
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.form-row.has-error input, .form-row.has-error textarea, .form-row.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .8rem; margin: 4px 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.choice { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; cursor: pointer; }
.choice.big { font-size: 1rem; font-weight: 600; margin-bottom: 12px; display: flex; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.form-card { max-width: 760px; }

/* ---------- portal: hero / search / job cards ---------- */
/* riso print: deep ink plate, halftone dots, vermillion sun */
.hero { position: relative; color: var(--cream); padding: 80px 0 68px; overflow: hidden; background: var(--ink-deep); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(246, 241, 230, .14) 1px, transparent 1.5px);
  background-size: 13px 13px;
  -webkit-mask-image: linear-gradient(112deg, transparent 32%, #000 88%);
  mask-image: linear-gradient(112deg, transparent 32%, #000 88%);
}
.hero::after {
  content: ""; position: absolute; right: -130px; top: -150px;
  width: 470px; height: 470px; border-radius: 50%;
  background: radial-gradient(circle at 36% 36%, #e8562f, var(--accent-deep));
  box-shadow: 0 0 0 26px rgba(216, 67, 31, .16), 0 0 0 54px rgba(216, 67, 31, .07);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 550; letter-spacing: -.015em; max-width: 720px; }
.hero-sub { color: rgba(246, 241, 230, .82); margin-top: -4px; font-size: 1.08rem; max-width: 620px; }
.hero-cats { margin-top: 20px; }
.hero-cats .chip { background: transparent; color: var(--cream); border-color: rgba(246, 241, 230, .45); }
.hero-cats .chip-link:hover { border-color: var(--cream); box-shadow: 2px 2px 0 rgba(246, 241, 230, .35); color: var(--cream); }
.hero .btn { box-shadow: 3px 3px 0 rgba(246, 241, 230, .35); border-color: var(--cream); }
.hero .btn-primary { background: var(--gold); color: var(--ink-deep); border-color: var(--ink-deep); }
.hero .btn-primary:hover { background: #daa704; }
.search-bar, .filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; align-items: center; }
.search-bar input { flex: 2 1 200px; }
.filter-bar input, .filter-bar select { flex: 1 1 160px; width: auto; }
.search-bar .btn, .filter-bar .btn { flex: 0 0 auto; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 20px 0; counter-reset: job; }
.job-card {
  display: block; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 18px; color: var(--ink);
  transition: transform .12s ease-out, border-color .12s, box-shadow .12s ease-out;
}
/* classifieds numbering — pure CSS counters, no markup change */
.job-grid .job-card::before {
  counter-increment: job; content: "Nº " counter(job, decimal-leading-zero);
  display: block; font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; color: var(--muted); margin-bottom: 7px;
  border-bottom: 1px dashed var(--line); padding-bottom: 6px;
}
.job-card:hover { transform: translate(-3px, -3px); border-color: var(--ink); box-shadow: var(--shadow-lift); }
.job-card h3 { font-size: 1.12rem; margin: 2px 0 4px; }
.job-card-org { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.job-card-sub { font-size: .86rem; color: var(--muted); margin: 0 0 4px; }
.job-card-meta { display: flex; flex-direction: column; gap: 2px; font-size: .84rem; margin-top: 10px; font-feature-settings: "tnum"; }

/* ---------- portal: /jobs split pane ---------- */
.split { display: grid; grid-template-columns: minmax(300px, 2fr) 3fr; gap: 20px; align-items: start; }
.split-list .job-grid { grid-template-columns: 1fr; margin-top: 0; }
.split-list .job-card.sel { border-color: var(--ink); box-shadow: var(--shadow-lift); transform: translate(-3px, -3px); }
.split-pane {
  position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto;
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius);
  box-shadow: 7px 7px 0 rgba(28, 23, 16, .08); padding: 24px;
}
.split-pane::-webkit-scrollbar { width: 8px; }
.split-pane::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.pane-title { font-size: 1.4rem; margin: 2px 0 6px; }
.pane-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
@media (max-width: 999px) {
  .split { grid-template-columns: 1fr; }
  .split-pane { display: none !important; }
}

/* ---------- portal: companies ---------- */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
.co-card {
  display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 18px; color: var(--ink);
  transition: transform .12s ease-out, border-color .12s, box-shadow .12s ease-out;
}
.co-card:hover { transform: translate(-3px, -3px); border-color: var(--ink); box-shadow: var(--shadow-lift); }
.co-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.co-card-body { min-width: 0; }
.co-avatar {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--gold) 45%, transparent);
}
.co-open { color: var(--gold-deep); font-family: var(--font-mono); font-weight: 700; font-size: .78rem; margin-top: 5px; }
.co-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.co-head .co-avatar { width: 72px; height: 72px; font-size: 2.1rem; }
.co-head h1 { margin: 0; font-size: 1.7rem; }
.co-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .co-cols { grid-template-columns: 1fr; } }

/* ---------- portal: job view ---------- */
.job-view { display: grid; grid-template-columns: 1fr 330px; gap: 28px; }
.job-main, .job-side { min-width: 0; }
.job-view h1 { font-size: 1.9rem; font-weight: 550; }
.job-h2 { font-size: 1.15rem; margin-top: 30px; padding-left: 12px; border-left: 3px solid var(--accent); }
.job-text { font-size: .95rem; }
.sticky { position: sticky; top: 76px; }
.apply-form { margin-top: 16px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 26px 0; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em; }

/* ---------- LP (employer-branded, --accent set per page) ----------
   contract: .lp wrapper sets --accent inline; .lp-hero/.lp-org/.lp-meta/
   .lp-hem/.btn-lp are shared with branded company career pages.
   All LP colors are derived from --accent with perceptual (oklab) mixes,
   scoped to .lp — global tokens are consumed, never redefined.
   Section separation is whitespace + one tonal band; no rules, no hems. */
.lp { --lp-ink: color-mix(in oklab, var(--accent) 22%, #141109); --lp-wash: color-mix(in oklab, var(--accent) 6%, #fffcf3); --lp-mark: color-mix(in oklab, var(--accent) 85%, #141109); --lp-on-dark: color-mix(in oklab, var(--accent) 24%, #fffcf3); }
.lp ::selection { background: var(--lp-mark); color: #fffcf3; }
.lp .section { padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(64px, 9vw, 104px); }
.lp-hem { display: none; }
.lp-hero { position: relative; overflow: hidden; background-color: var(--lp-ink); background-size: cover; background-position: center; color: #fffcf3; padding: clamp(84px, 13vw, 148px) 0 clamp(64px, 10vw, 112px); text-align: left; }
.lp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90rem 42rem at 108% -28%, color-mix(in oklab, var(--accent) 34%, transparent), transparent 62%); }
.lp-hero > * { position: relative; }
.lp-org { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--lp-on-dark); }
.lp-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 700; line-height: 1.07; letter-spacing: -.022em; max-width: 21ch; margin: 20px 0 18px; text-wrap: balance; }
.lp-title { font-size: 1.12rem; line-height: 1.6; color: rgba(255, 252, 243, .82); max-width: 56ch; }
.lp-meta { color: rgba(255, 252, 243, .82); }
.lp-facts { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 8px; margin: 26px 0 38px; font-family: var(--font-mono); font-size: .84rem; font-weight: 600; font-feature-settings: "tnum"; color: rgba(255, 252, 243, .92); }
.lp-facts span + span::before { content: "·"; margin-right: 14px; color: var(--lp-on-dark); opacity: .7; }
.btn-lp { display: inline-block; padding: 15px 30px; border-radius: 12px; background: var(--accent); color: #fffcf3; border: 0; font-weight: 650; font-size: 1.02rem; letter-spacing: .01em; box-shadow: 0 10px 28px -10px color-mix(in oklab, var(--accent) 70%, transparent); transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn-lp:hover { background: color-mix(in oklab, var(--accent) 88%, #fffcf3); box-shadow: 0 14px 32px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn-lp:active { transform: translateY(1px); }
.btn-lp:focus-visible { outline: 2px solid #fffcf3; outline-offset: 3px; }
.lp-h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 14px; max-width: 26ch; text-wrap: balance; }
.lp-h2::before { content: ""; display: block; width: 30px; height: 3px; border-radius: 2px; margin-bottom: 18px; background: var(--lp-mark); }
.lp-h2 .accent { color: var(--accent); }
.lp-points { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); margin-top: clamp(36px, 5vw, 56px); }
.lp-point { display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); }
.lp-point:nth-child(even) { flex-direction: row-reverse; }
.lp-point img { width: min(44%, 460px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(20, 17, 9, .35); }
.lp-point-body { flex: 1; }
.lp-num { display: block; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .16em; color: var(--lp-mark); margin-bottom: 10px; }
.lp-point h3 { font-size: 1.35rem; font-weight: 650; letter-spacing: -.01em; margin: 0 0 10px; }
.lp-point p { max-width: 52ch; line-height: 1.65; }
.lp-band { background: var(--lp-wash); padding: clamp(64px, 9vw, 104px) 0; }
.lp-voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
.lp-voice { margin: 0; background: var(--card); border-radius: 18px; padding: 30px 28px 26px; box-shadow: 0 1px 2px rgba(20, 17, 9, .04), 0 20px 44px -28px rgba(20, 17, 9, .25); }
.lp-voice::before { content: "“"; display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: .6; color: var(--accent); margin-bottom: 14px; }
.lp-voice blockquote { margin: 0; font-size: 1.02rem; line-height: 1.7; }
.lp-voice figcaption { margin-top: 16px; font-size: .88rem; opacity: .65; }
.lp-voice figcaption::before { content: "— "; color: var(--accent); opacity: 1; }
.lp-qas { max-width: 760px; margin-top: 8px; }
.lp-qa { border: 0; background: none; margin: 0; }
.lp-qa summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; list-style: none; cursor: pointer; padding: 18px 0; font-size: 1.06rem; font-weight: 650; transition: color .15s ease; }
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; font-weight: 500; color: var(--lp-mark); flex-shrink: 0; transition: transform .25s ease; }
.lp-qa[open] summary::after { transform: rotate(45deg); }
.lp-qa summary:hover, .lp-qa[open] summary { color: var(--accent); }
.lp-qa-a { padding: 0 0 18px; max-width: 60ch; }
.lp-qa-a p { margin: 0; line-height: 1.65; }
.lp-apply-card { background: var(--card); border-radius: 22px; padding: clamp(24px, 5vw, 40px); box-shadow: 0 1px 2px rgba(20, 17, 9, .05), 0 32px 64px -40px rgba(20, 17, 9, .35); }
/* floating apply bar — JS-toggled; without JS the hero CTA + form remain reachable */
.lp-cta-bar { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 150%); width: min(620px, calc(100vw - 24px)); display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 10px 10px 20px; border-radius: 16px; background: color-mix(in oklab, var(--lp-ink) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fffcf3; box-shadow: 0 24px 48px -20px rgba(20, 17, 9, .5); opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.16, .84, .28, 1), opacity .35s ease, visibility .35s; }
.lp-cta-bar.lp-bar-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.lp-cta-bar .lp-cta-fact { font-family: var(--font-mono); font-size: .76rem; font-weight: 600; font-feature-settings: "tnum"; color: rgba(255, 252, 243, .9); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-cta-bar .btn-lp { flex-shrink: 0; padding: 11px 22px; font-size: .94rem; box-shadow: none; }
@media (max-width: 760px) {
  .lp-point, .lp-point:nth-child(even) { flex-direction: column; align-items: stretch; }
  .lp-point img { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.lp) { scroll-behavior: smooth; }
  .lp-hero .container > * { animation: lp-rise .7s cubic-bezier(.16, .84, .28, 1) backwards; }
  .lp-hero .container > :nth-child(2) { animation-delay: .08s; }
  .lp-hero .container > :nth-child(3) { animation-delay: .16s; }
  .lp-hero .container > :nth-child(4) { animation-delay: .24s; }
  .lp-hero .container > :nth-child(5) { animation-delay: .32s; }
  @keyframes lp-rise { from { opacity: 0; transform: translateY(12px); } }
  .lp-anim .lp-reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.16, .84, .28, 1), transform .7s cubic-bezier(.16, .84, .28, 1); }
  .lp-anim .lp-reveal.lp-in { opacity: 1; transform: none; }
  .lp-voices .lp-reveal:nth-child(2) { transition-delay: .08s; }
  .lp-voices .lp-reveal:nth-child(3) { transition-delay: .16s; }
}

/* ---------- dashboard ---------- */
.dash { background: var(--paper); }
.dash-wrap { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink-deep); color: #cfc7b4; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; border-right: 4px solid var(--accent); }
.sys .sidebar { border-right-color: var(--gold); }
.sidebar .logo { color: var(--cream); margin-bottom: 14px; display: block; padding: 0 10px; }
.side-link { display: block; color: #cfc7b4; padding: 8px 12px; border-radius: var(--radius); border-left: 3px solid transparent; font-size: .93rem; }
.side-link:hover { color: var(--cream); border-left-color: var(--gold); }
.side-link.active { background: var(--paper); color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.sidebar-foot { margin-top: auto; border-top: 1px dashed #4a4335; padding: 12px 10px 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-foot a { color: #d8a93c; text-decoration-color: color-mix(in srgb, #d8a93c 40%, transparent); }
.dash-main { padding: 26px 30px 60px; max-width: 1160px; }
.page-title { font-size: 1.55rem; margin-bottom: 18px; display: flex; align-items: baseline; gap: 18px; }
.page-title::after { content: ""; flex: 1; border-top: 1px solid var(--line-strong); transform: translateY(-6px); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { text-align: center; color: var(--ink); transition: transform .12s ease-out, border-color .12s, box-shadow .12s ease-out; }
.kpi:hover { border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(28, 23, 16, .9); }
.kpi-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--accent); font-feature-settings: "tnum"; line-height: 1.2; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bar-col span { font-family: var(--font-mono); font-size: .58rem; color: var(--muted); }
.bar { width: 100%; min-height: 2px; background: var(--ink); border-radius: 1px 1px 0 0; box-shadow: inset 0 3px 0 var(--gold); }

.pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pipe-item { background: var(--card); border: 1px solid var(--line-strong); border-left: 4px solid var(--bc, #6f6757); border-radius: var(--radius); padding: 10px 12px; color: var(--ink); display: flex; flex-direction: column; }
.pipe-item:hover { border-color: var(--bc); box-shadow: 3px 3px 0 color-mix(in srgb, var(--bc, #6f6757) 35%, transparent); }
.pipe-count { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; font-feature-settings: "tnum"; }

.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { display: inline; }

.job-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
/* folder tabs on an ink baseline */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 8px 15px; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 2px solid transparent; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -2px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); background: var(--card); border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--card); }

.field-row { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: var(--card); }
.field-row-head { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.field-row-actions { display: flex; gap: 6px; margin-top: 10px; }

.status-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-btns .btn { width: 100%; }
.note-form { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.note-form button { white-space: nowrap; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); font-size: .9rem; }
.timeline li:last-child { border-bottom: 0; }
.tl-icon { flex: 0 0 auto; filter: grayscale(1) contrast(1.15); }

.auth-card { max-width: 420px; margin: 48px auto; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 color-mix(in srgb, var(--gold) 35%, transparent); }
.auth-card h1 { font-size: 1.4rem; text-align: center; }

/* honeypot field on public forms — removed from view/tab order; bots fill it */
.hp { position: absolute !important; left: -6000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .job-view, .two-col { grid-template-columns: 1fr; }
  .dash-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 4px solid var(--accent); }
  .sys .sidebar { border-bottom-color: var(--gold); }
  .sidebar nav { display: flex; gap: 4px; flex-wrap: wrap; }
  .sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero::after { width: 300px; height: 300px; right: -120px; top: -110px; }
  .nav-links { gap: 12px; }
}
