:root {
  --paper: #ffffff;
  --paper-soft: #fafaf8;
  --paper-shade: #f1eee8;
  --ink: #0f0f0f;
  --ink-soft: #2d2d2d;
  --gray: #6b6b6b;
  --gray-soft: #9a9a9a;
  --line: #e4e2dd;
  --line-soft: #efece6;
  --red: #d5211c;
  --red-deep: #a31814;
  --green-marker: rgba(156, 210, 98, 0.55);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --max: 1180px;
  --gutter: 1.75rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a, button { color: inherit; text-decoration: none; font: inherit; }
button { background: none; border: 0; cursor: pointer; }

.wrap {
  width: min(var(--max), 100% - calc(var(--gutter) * 2));
  margin-inline: auto;
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
}

.brand {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  color: var(--ink);
}

.brand .dot { color: var(--red); font-weight: 800; }

.subbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.subbar .wrap {
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
}
.subbar-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
.subbar-label::before {
  content: "\25B8";
  color: var(--red);
  margin-right: 0.55em;
  font-size: 0.8em;
  vertical-align: 0.04em;
}

.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.55rem 0.95rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--red);
  color: var(--paper);
  border: 1.5px solid var(--red);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms, border-color 180ms;
}

.top-cta:hover { background: var(--ink); border-color: var(--ink); }
.top-cta .arrow { transition: transform 220ms cubic-bezier(0.7, 0, 0.3, 1); }
.top-cta:hover .arrow { transform: translateX(4px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 5.5rem 0 6rem;
  position: relative;
}

.headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 2rem;
}

.headline .line { display: block; }

.headline .period { color: var(--red); font-weight: 800; }

/* --- Red "regret" scribble strike-out --- */
.ink-out {
  position: relative;
  display: inline-block;
  font-weight: 700;
  white-space: nowrap;
}

.ink-out .ink-stroke {
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 0;
  bottom: 0;
  width: calc(100% + 0.08em);
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.ink-out .ink-stroke path {
  stroke: var(--red);
  stroke-width: 9;
  fill: none;
  stroke-linecap: round;
  opacity: 0.92;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: ink-draw 720ms 900ms cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

@keyframes ink-draw { to { stroke-dashoffset: 0; } }

/* --- Green highlighter behind "Rust" --- */
.hl-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  z-index: 1;
}

.hl-mark::before {
  content: "";
  position: absolute;
  left: -0.12em;
  right: -0.08em;
  top: 22%;
  bottom: 6%;
  background: var(--green-marker);
  transform: skew(-4deg) rotate(-0.8deg);
  z-index: -1;
  border-radius: 2px 6px 3px 8px;
  box-shadow:
    0 0 0 0.06em rgba(156, 210, 98, 0.25),
    inset -0.2em 0 0.3em rgba(130, 180, 80, 0.18);
  transform-origin: left center;
  animation: hl-draw 520ms 1150ms cubic-bezier(0.6, 0, 0.2, 1) both;
}

@keyframes hl-draw {
  from { transform: skew(-4deg) rotate(-0.8deg) scaleX(0); opacity: 0; }
  to   { transform: skew(-4deg) rotate(-0.8deg) scaleX(1); opacity: 1; }
}

.hero-subline {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  max-width: 36ch;
  letter-spacing: -0.01em;
}

.hero-subline sup {
  font-family: var(--mono);
  font-size: 0.55em;
  color: var(--red);
  font-weight: 600;
  vertical-align: super;
  margin-left: 0.1em;
}

.hero-footnote {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.005em;
}

.hero-footnote .star {
  color: var(--red);
  margin-right: 0.3em;
  font-family: var(--mono);
  font-weight: 600;
}

/* --- DUAL CTA ROW --- */
.cta-row {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 1rem 1.5rem 1.05rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1.5px solid;
  transition: background 180ms, color 180ms, border-color 180ms;
  white-space: nowrap;
  line-height: 1.1;
  cursor: pointer;
}

.cta .arrow { transition: transform 220ms cubic-bezier(0.7, 0, 0.3, 1); }
.cta:hover .arrow { transform: translateX(5px); }

.cta-primary {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

.cta-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.cta-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 500;
}

.cta-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================
   JOBS TABLE  (sortable, filterable, hover shade)
   ============================================ */
.jobs { padding: 4.5rem 0 1rem; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-bar .filter-summary {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.filter-bar .filter-summary strong { color: var(--ink); font-weight: 600; }
.filter-bar .filter-clear-all {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.3rem 0;
  cursor: pointer;
  display: none;
}
.filter-bar .filter-clear-all.is-visible { display: inline; }

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: auto;
  overflow: visible;
}

.jobs-table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  user-select: none;
  position: relative;
  transition: color 120ms;
  vertical-align: middle;
}

.jobs-table thead th:first-child { padding-left: 1.1rem; }
.jobs-table thead th:last-child { padding-right: 1.1rem; }

.jobs-table thead .th-row {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.jobs-table thead .th-sort {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  transition: color 120ms;
}
.jobs-table thead .th-sort:hover { color: var(--ink); }

.jobs-table thead th .sort-ind {
  display: inline-block;
  font-size: 0.75em;
  color: var(--gray-soft);
  transition: color 120ms;
}
.jobs-table thead th[data-dir="asc"]  .sort-ind,
.jobs-table thead th[data-dir="desc"] .sort-ind { color: var(--red); }
.jobs-table thead th[data-dir="asc"]  .sort-ind::before { content: "\25B2"; }
.jobs-table thead th[data-dir="desc"] .sort-ind::before { content: "\25BC"; }
.jobs-table thead th:not([data-dir])  .sort-ind::before { content: "\2195"; opacity: 0.5; }

.jobs-table thead th[data-numeric] { text-align: right; }
.jobs-table thead th[data-numeric] .th-row { float: right; }

/* ---- Filter row (always visible inputs below headers) ---- */
.jobs-table thead tr.filter-row th {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.5rem 0.7rem 0;
  vertical-align: top;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
}
.jobs-table thead tr.filter-row th:first-child { padding-left: 1.1rem; }
.jobs-table thead tr.filter-row th:last-child  { padding-right: 1.1rem; }

.f-input,
.f-trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  font: 500 0.82rem var(--sans);
  line-height: 1.2;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms, background 120ms, color 120ms;
  letter-spacing: normal;
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  margin: 0;
}

.f-input { cursor: text; }
.f-input::-webkit-search-cancel-button,
.f-input::-webkit-search-decoration { -webkit-appearance: none; }
.f-input::placeholder { color: var(--gray-soft); font-weight: 400; }
.f-input:focus,
.f-trigger:focus,
.f-input:hover,
.f-trigger:hover { outline: none; border-color: var(--ink); }

.f-trigger .f-trigger-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}
.f-trigger .f-trigger-caret {
  color: var(--gray);
  font-size: 0.85em;
  flex: 0 0 auto;
}

/* Active state */
.f-trigger.is-active,
.f-input.is-active {
  border-color: var(--red);
  color: var(--red);
}
.f-trigger.is-active .f-trigger-caret { color: var(--red); }

/* Empty cells in filter row keep alignment */
.jobs-table thead tr.filter-row th.f-empty {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gray-soft);
  letter-spacing: 0.04em;
  padding-top: 0.85rem;
}
.jobs-table thead tr.filter-row th.f-empty .f-hint {
  display: inline-block;
  padding: 0 0.65rem;
}

/* Filter popover */
.filter-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.25);
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.filter-pop[hidden] { display: none; }

/* Right-align Stack popover so it doesn't overflow the right edge */
.jobs-table thead tr.filter-row th:nth-child(6) .filter-pop,
.jobs-table thead tr.filter-row th:nth-child(7) .filter-pop { left: auto; right: 0; }

/* Filter-row th holds the trigger AND its popover; anchor relative */
.jobs-table thead tr.filter-row th { position: relative; }

.filter-pop .filter-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  font: 0.88rem var(--sans);
  color: var(--ink);
  outline: none;
  background: var(--paper);
}
.filter-pop .filter-search::placeholder { color: var(--gray-soft); }
.filter-pop .filter-search:focus { border-bottom-color: var(--red); }

.filter-pop .filter-options {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.3rem 0;
}

.filter-pop .filter-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--ink);
  transition: background 100ms;
}
.filter-pop .filter-opt:hover { background: var(--line-soft); }
.filter-pop .filter-opt input { accent-color: var(--red); cursor: pointer; }
.filter-pop .filter-opt.is-pinned {
  font-weight: 600;
}
.filter-pop .filter-divider {
  height: 1px;
  background: var(--line);
  margin: 0.25rem 0;
}
.filter-pop .filter-empty {
  padding: 0.7rem;
  color: var(--gray);
  font-size: 0.84rem;
  text-align: center;
  font-style: italic;
}

.filter-pop .filter-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.filter-pop .filter-foot button {
  background: none;
  border: 0;
  font: inherit;
  color: var(--red);
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
}
.filter-pop .filter-foot button[disabled] { color: var(--gray-soft); cursor: default; }

/* Hide rows that don't match filters */
.jobs-table tbody tr.is-filtered-out { display: none; }
.jobs-table .empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray);
  font-style: italic;
  font-size: 0.95rem;
}

.jobs-table tbody tr {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 140ms ease;
}

.jobs-table tbody tr:hover { background: var(--line-soft); }
.jobs-table tbody tr:focus-visible {
  background: var(--line-soft);
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.jobs-table tbody td {
  padding: 1rem 0.9rem;
  vertical-align: middle;
  color: var(--ink-soft);
}

.jobs-table tbody td:first-child { padding-left: 1.1rem; }
.jobs-table tbody td:last-child { padding-right: 1.1rem; }

.jobs-table .col-role {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.005em;
  min-width: 18ch;
}

.jobs-table .col-company { font-weight: 500; color: var(--ink); white-space: nowrap; }

.jobs-table .col-location { color: var(--ink-soft); white-space: nowrap; }

.jobs-table .col-from,
.jobs-table .col-to {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.jobs-table .col-from { text-align: right; padding-right: 0.3rem; }
.jobs-table .col-to   { text-align: left;  padding-left: 0.3rem; }
.jobs-table .col-dash {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--gray-soft);
  text-align: center;
  width: 1ch;
  padding-left: 0;
  padding-right: 0;
  font-variant-numeric: tabular-nums;
}
.jobs-table thead th.col-dash-head {
  width: 1ch;
  padding-left: 0;
  padding-right: 0;
}
.jobs-table thead th[data-sort="from"] .th-row { justify-content: flex-end; }
.jobs-table thead th[data-sort="to"] .th-row   { justify-content: flex-start; }

.jobs-table .col-stack {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.01em;
}

.jobs-table .col-posted {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.jobs-table tbody tr:hover .col-role { color: var(--red); }

/* --- "your role here" placeholder row (pinned, not sortable) --- */
.jobs-table tr.row-placeholder {
  background: var(--paper-soft);
}
.jobs-table tr.row-placeholder td { border-top: 1px dashed var(--red); border-bottom: 1px dashed var(--red); }
.jobs-table tr.row-placeholder + tr td { border-top: 0; }
.jobs-table tr.row-placeholder .col-role { color: var(--red); }
.jobs-table tr.row-placeholder .col-company,
.jobs-table tr.row-placeholder .col-location,
.jobs-table tr.row-placeholder .col-stack,
.jobs-table tr.row-placeholder .col-posted {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.jobs-table tr.row-placeholder .col-from,
.jobs-table tr.row-placeholder .col-to { color: var(--red); }

/* ============================================
   MODAL (native <dialog>)
   ============================================ */
.modal {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(720px, calc(100% - 2rem));
  max-height: 88vh;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 30px 80px -20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(15, 15, 15, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.modal[open] {
  animation: modal-pop 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.modal[open]::backdrop {
  animation: fade-in 220ms ease;
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.modal-head {
  padding: 1.6rem 1.8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.modal-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.modal-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-right: 2.5rem;
}

.modal-meta {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.modal-meta .company { font-weight: 600; color: var(--ink); }
.modal-meta .sep { color: var(--gray-soft); margin: 0 0.5em; }
.modal-meta .tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gray);
  border-radius: 50%;
  transition: background 140ms, color 140ms;
}

.modal-close:hover { background: var(--line-soft); color: var(--ink); }

.modal-body {
  padding: 1.4rem 1.8rem 1.6rem;
  overflow-y: auto;
}

.modal-body p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.modal-section {
  margin-top: 1.4rem;
}

.modal-section h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.modal-section ul {
  list-style: none;
  padding: 0;
}

.modal-section li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.modal-section li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 600;
}

.modal-section .kv {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.modal-section .kv span { font-family: var(--mono); }

.modal-foot {
  padding: 1.1rem 1.8rem 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--paper-soft);
}

.modal-sample-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.02em;
}
.modal-sample-note .dot { color: var(--red); margin-right: 0.4em; }

.modal-foot-actions {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.modal-foot .cta {
  padding: 0.7rem 1.1rem 0.75rem;
  font-size: 0.9rem;
}

/* ============================================
   CHEEKY CLOSE
   ============================================ */
.close {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.close-line {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 34ch;
  letter-spacing: -0.015em;
}

.close-line strong {
  font-weight: 600;
  color: var(--red);
}

.close-cta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ============================================
   FOOT
   ============================================ */
.foot {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--gray);
  letter-spacing: 0.02em;
}

.foot a:hover { color: var(--red); }

.foot-left {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.foot-mark {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.foot-mark .dot { color: var(--red); font-weight: 800; }

.foot-right {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
}

/* ============================================
   ENTRY ANIMATIONS  (hero only — no list animations)
   ============================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.headline      { animation: rise 820ms 80ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-subline  { animation: rise 700ms 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-footnote { animation: fade 700ms 820ms ease both; }
.cta-row       { animation: rise 700ms 950ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 820px) {
  :root { --gutter: 1.1rem; }

  .hero { padding: 3.5rem 0 4.5rem; }
  .headline { font-size: clamp(2.6rem, 12vw, 4.6rem); }

  .cta-row { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .cta { justify-content: center; }

  .jobs { padding-top: 3rem; }
  .jobs-table { font-size: 0.88rem; }
  .jobs-table thead th { padding: 0.55rem 0.5rem; font-size: 0.62rem; }
  .jobs-table tbody td { padding: 0.85rem 0.5rem; }
  .jobs-table thead th:first-child,
  .jobs-table thead tr.filter-row th:first-child,
  .jobs-table tbody td:first-child { padding-left: 0.8rem; }
  .jobs-table thead th:last-child,
  .jobs-table thead tr.filter-row th:last-child,
  .jobs-table tbody td:last-child { padding-right: 0.8rem; }
  .jobs-table .col-stack,
  .jobs-table thead th[data-sort="stack"] { display: none; }
  .jobs-table .col-location,
  .jobs-table thead th[data-sort="location"] { display: none; }
  .jobs-table .col-role { font-size: 0.95rem; min-width: 0; }
  .jobs-table .col-from,
  .jobs-table .col-to,
  .jobs-table .col-dash { font-size: 0.78rem; }
  .jobs-table .col-posted { font-size: 0.72rem; }

  .modal { width: calc(100% - 1.4rem); }
  .modal-head { padding: 1.2rem 1.2rem 1rem; }
  .modal-body { padding: 1rem 1.2rem 1.3rem; }
  .modal-foot { padding: 1rem 1.2rem 1.2rem; }

  .close { padding: 4rem 0; }
  .close-cta-row { flex-direction: column; align-items: stretch; }

  .foot .wrap { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
