:root {
  --ink: #161813;
  --muted: #696b63;
  --paper: #f4f0e7;
  --paper-2: #eae4d8;
  --card: rgba(255, 253, 248, 0.82);
  --line: rgba(22, 24, 19, 0.14);
  --lime: #c7f05a;
  --lime-deep: #92c41b;
  --violet: #5d43d6;
  --orange: #ff6d3a;
  --shadow: 0 22px 70px rgba(41, 38, 29, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 5%, rgba(93, 67, 214, 0.13), transparent 24rem),
    radial-gradient(circle at 4% 42%, rgba(199, 240, 90, 0.2), transparent 22rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .27;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

.topbar {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -.04em;
  text-decoration: none;
  font-size: 1.17rem;
}
.brand-accent { color: var(--violet); }
.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50% 50% 42% 58%;
  transform: rotate(-8deg);
}
.brand-mark span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); }
.topbar-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #42a83f; box-shadow: 0 0 0 5px rgba(66, 168, 63, .12); }

main, footer { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  align-items: center;
  gap: 64px;
  padding: 64px 20px 54px;
}
.eyebrow, .section-kicker, .filter-label {
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .17em;
  color: var(--muted);
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.eyebrow i { width: 27px; height: 1px; background: var(--muted); }
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 6.7vw, 6.55rem);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -.065em;
}
.hero p { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.hero-orbit { position: relative; width: 320px; height: 320px; justify-self: center; }
.orbit-ring { position: absolute; inset: 0; border: 1px solid rgba(22, 24, 19, .25); border-radius: 50%; }
.ring-one { animation: rotate 30s linear infinite; border-style: dashed; }
.ring-one::after { content: ""; position: absolute; width: 19px; height: 19px; background: var(--orange); border-radius: 50%; top: 35px; right: 45px; box-shadow: 0 0 0 9px var(--paper); }
.ring-two { inset: 54px; border-color: rgba(93,67,214,.45); animation: rotate 18s linear infinite reverse; }
.ring-two::after { content: ""; position: absolute; width: 13px; height: 13px; background: var(--lime-deep); border-radius: 50%; bottom: 4px; left: 52px; }
.orbit-core { position: absolute; inset: 112px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font: 500 2.7rem/1 Georgia, serif; }
.orbit-tag { position: absolute; padding: 7px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .63rem; font-weight: 800; letter-spacing: .12em; }
.tag-a { left: -2px; top: 90px; transform: rotate(-8deg); }
.tag-b { right: -24px; top: 152px; transform: rotate(7deg); }
.tag-c { left: 58px; bottom: 4px; transform: rotate(3deg); }
@keyframes rotate { to { transform: rotate(360deg); } }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.28); }
.metric-card { min-height: 134px; padding: 23px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-right: 1px solid var(--line); }
.metric-card:last-child { border-right: 0; }
.metric-card-accent { background: var(--lime); }
.metric-card strong { font: 500 clamp(2rem, 4vw, 3.2rem)/1 Georgia, serif; letter-spacing: -.05em; }
.metric-card > span:last-child { color: var(--muted); font-size: .78rem; margin-top: 9px; }
.metric-index { position: absolute; top: 17px; right: 18px; color: var(--muted); font-size: .64rem; font-weight: 800; }

.search-panel { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 248, .7); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.search-box { min-height: 58px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; padding: 0 16px; background: #fffdf8; transition: border .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(93,67,214,.09); }
.search-box svg, .filter-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--ink); }
.search-box input::placeholder { color: #999990; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; color: var(--muted); font: 600 .68rem/1 ui-monospace, monospace; padding: 6px 7px; }
.filter-button { min-width: 132px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 15px; background: var(--ink); color: #fff; font-weight: 750; }
.filter-button span { min-width: 21px; height: 21px; display: grid; place-items: center; background: var(--lime); color: var(--ink); border-radius: 50%; font-size: .7rem; }
.quick-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 27px; padding-top: 20px; }
.filter-group { display: grid; gap: 9px; }
.chip-row, .segmented { display: flex; flex-wrap: wrap; gap: 7px; }
.chip, .segmented button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 12px; color: var(--muted); font-size: .78rem; font-weight: 700; transition: .18s ease; }
.chip:hover, .segmented button:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.segmented { padding: 3px; border-radius: 999px; background: var(--paper-2); gap: 0; }
.segmented button { border: 0; padding: 7px 11px; }
.segmented button.active { background: #fffdf8; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.toggle-control { margin-left: auto; padding-bottom: 6px; display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 750; cursor: pointer; }
.toggle-control input { position: absolute; opacity: 0; }
.toggle-track { width: 42px; height: 24px; border-radius: 999px; background: #cbc7be; padding: 3px; transition: background .2s; }
.toggle-track span { display: block; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: transform .2s; }
.toggle-control input:checked + .toggle-track { background: var(--violet); }
.toggle-control input:checked + .toggle-track span { transform: translateX(18px); }
.advanced-filters { margin-top: 21px; padding-top: 19px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.advanced-filters[hidden] { display: none; }
.advanced-filters label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.advanced-filters input, .advanced-filters select, .sort-control select { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 11px; background: #fffdf8; color: var(--ink); padding: 0 11px; outline: none; }
.advanced-filters input:focus, .advanced-filters select:focus { border-color: var(--violet); }
.clear-button { min-height: 43px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--muted); white-space: nowrap; }

.results-section { padding: 72px 0 110px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 23px; }
.results-heading h2 { margin: 8px 0 0; font: 500 clamp(2rem, 4vw, 3.35rem)/1 Georgia, serif; letter-spacing: -.045em; }
.sort-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .76rem; }
.sort-control select { width: auto; min-width: 210px; }
.sync-progress { margin-bottom: 18px; border-radius: 15px; border: 1px solid rgba(93,67,214,.2); background: rgba(93,67,214,.07); padding: 14px 17px; }
.sync-progress-copy { display: flex; align-items: center; gap: 9px; font-size: .78rem; }
.sync-progress-copy > span:last-child { color: var(--muted); margin-left: auto; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(93,67,214,.22); border-top-color: var(--violet); border-radius: 50%; animation: rotate .8s linear infinite; }
.progress-track { margin-top: 10px; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(93,67,214,.15); }
.progress-track span { display: block; height: 100%; width: 5%; background: var(--violet); transition: width .5s ease; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.job-card { min-height: 324px; position: relative; display: flex; flex-direction: column; padding: 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: transform .2s ease, box-shadow .2s ease, border .2s ease; }
.job-card:hover { transform: translateY(-3px); border-color: rgba(22,24,19,.3); box-shadow: 0 17px 40px rgba(38,34,25,.1); }
.job-card::after { content: ""; width: 100px; height: 100px; position: absolute; top: -65px; right: -50px; border: 1px solid var(--line); border-radius: 50%; transition: transform .3s; }
.job-card:hover::after { transform: scale(1.2); }
.job-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.company-lockup { min-width: 0; display: flex; align-items: center; gap: 10px; }
.company-logo { flex: 0 0 auto; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: var(--paper-2); color: var(--violet); font: 800 .78rem/1 ui-monospace, monospace; text-transform: uppercase; }
.company-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 800; }
.source-name { display: block; color: var(--muted); font-size: .64rem; font-weight: 650; text-transform: capitalize; margin-top: 3px; }
.fresh-badge, .level-badge { flex: 0 0 auto; display: inline-flex; align-items: center; border-radius: 999px; font-size: .62rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.fresh-badge { padding: 6px 8px; background: var(--lime); }
.job-card h3 { margin: 26px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.skills-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 17px 0; }
.skill-tag { padding: 5px 7px; border-radius: 6px; background: var(--paper-2); color: #55574f; font-size: .64rem; font-weight: 700; }
.job-bottom { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.level-wrap { min-width: 0; }
.level-badge { padding: 0; color: var(--violet); }
.experience-copy { display: block; color: var(--muted); font-size: .65rem; margin-top: 4px; }
.apply-link { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; text-decoration: none; font-size: 1rem; transition: background .2s, transform .2s; }
.apply-link:hover { background: var(--violet); transform: rotate(-8deg); }
.skeleton { min-height: 324px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(105deg, rgba(255,255,255,.34) 30%, rgba(255,255,255,.8) 45%, rgba(255,255,255,.34) 60%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -150%; } }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-mark { width: 57px; height: 57px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); font: 500 1.5rem Georgia, serif; }
.empty-state h3 { margin: 19px 0 8px; font: 500 1.8rem Georgia, serif; }
.empty-state p { max-width: 520px; margin: auto; color: var(--muted); line-height: 1.6; }
.empty-state button, .load-more { margin-top: 22px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; padding: 11px 17px; font-weight: 750; }
.load-more { display: block; min-width: 260px; margin: 28px auto 0; }
.load-more[hidden] { display: none; }
.load-more:hover, .empty-state button:hover { background: var(--ink); color: #fff; }
.load-more:disabled { opacity: .5; cursor: wait; }

footer { min-height: 150px; padding: 30px 0 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 30px; color: var(--muted); font-size: .75rem; }
.footer-brand { color: var(--ink); }
footer p { max-width: 520px; line-height: 1.6; }
footer a { font-weight: 750; text-underline-offset: 4px; }

.job-modal { width: min(760px, calc(100% - 28px)); max-height: min(86vh, 900px); padding: 0; overflow: auto; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; background: #fffdf8; box-shadow: 0 40px 100px rgba(0,0,0,.25); }
.job-modal::backdrop { background: rgba(20,19,16,.58); backdrop-filter: blur(6px); }
.modal-close { position: sticky; z-index: 2; top: 16px; float: right; margin: 16px 16px 0 0; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fffdf8; font-size: 1.4rem; }
.modal-body { padding: 54px 46px 46px; }
.modal-eyebrow { color: var(--violet); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.modal-body h2 { max-width: 630px; margin: 14px 0 9px; font: 500 clamp(2rem, 6vw, 3.4rem)/.98 Georgia, serif; letter-spacing: -.05em; }
.modal-company { color: var(--muted); }
.modal-facts { margin: 24px 0; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; background: var(--paper); border-radius: 14px; }
.modal-facts span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: .72rem; }
.modal-description { white-space: pre-wrap; color: #484a43; font-size: .89rem; line-height: 1.72; }
.modal-apply { position: sticky; bottom: 0; margin-top: 28px; display: block; padding: 15px; border-radius: 13px; background: var(--ink); color: white; text-align: center; text-decoration: none; font-weight: 800; box-shadow: 0 -10px 35px #fffdf8; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: 360px; padding: 12px 15px; border-radius: 12px; background: var(--ink); color: white; font-size: .78rem; box-shadow: var(--shadow); transform: translateY(90px); opacity: 0; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
  .hero-orbit { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .advanced-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 650px) {
  .topbar, main, footer { width: min(100% - 24px, 1240px); }
  .topbar { height: 68px; }
  .topbar-meta { max-width: 150px; justify-content: flex-end; text-align: right; font-size: .67rem; }
  .hero { padding: 54px 5px 40px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero p { font-size: .96rem; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 115px; padding: 17px; }
  .metric-card strong { font-size: 2.1rem; }
  .search-panel { padding: 13px; border-radius: 17px; }
  .search-row { grid-template-columns: 1fr 52px; }
  .filter-button { min-width: 52px; width: 52px; font-size: 0; }
  .filter-button span { display: none; }
  .quick-filters { align-items: flex-start; gap: 19px; }
  .filter-group { width: 100%; }
  .toggle-control { margin-left: 0; }
  .advanced-filters { grid-template-columns: 1fr; }
  .results-section { padding-top: 54px; }
  .results-heading { align-items: flex-start; gap: 20px; }
  .sort-control { display: grid; gap: 4px; }
  .sort-control select { min-width: 135px; max-width: 150px; font-size: .7rem; }
  .jobs-grid { grid-template-columns: 1fr; }
  .job-card { min-height: 300px; }
  .sync-progress-copy { flex-wrap: wrap; }
  .sync-progress-copy > span:last-child { width: 100%; margin-left: 23px; }
  footer { grid-template-columns: 1fr; align-items: start; }
  footer p { grid-column: auto; grid-row: auto; }
  .modal-body { padding: 54px 22px 28px; }
  kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
