/* Layout: dark canopy hero with live time-zone panel, then a cream ledger of roles,
   a founder letter and a short hiring sequence. Brand palette from PathSynch guidelines. */
:root {
  --ink: #02060A;          /* Dark Base */
  --canopy: #0C1A13;       /* hero ground, brand green pushed toward Dark Base */
  --canopy-2: #142a1e;
  --pine: #3A6746;         /* Brand Green */
  --pine-deep: #2C5137;
  --pine-wash: #E4ECDF;
  --sun: #FFC700;          /* Highlight Yellow */
  --sun-deep: #E0AE00;
  --paper: #FDF9EF;        /* Light Neutral */
  --paper-2: #F6F0E0;
  --card: #FFFDF7;
  --line: #E5DCC7;
  --line-dark: rgba(253, 249, 239, 0.14);
  --text: #15201A;
  --muted: #59655C;
  --on-dark: #F3EFE3;
  --on-dark-muted: #A9B7AC;
  --danger: #A8321F;
  --danger-wash: #FBE9E4;
  --ok: #2F7A4A;

  --font: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);

  --radius: 10px;
  --wrap: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pine-deep); text-underline-offset: 3px; }
a:hover { color: var(--pine); }
h1, h2, h3, h4 { line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.01em; }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pine); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 0.9375rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-deep); color: var(--ink); }
.btn-ghost-dark { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--on-dark-muted); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---- Top bar ---- */
.topbar { background: var(--canopy); color: var(--on-dark); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; background: #1F2B26; }
.brand span { font-size: 1.0625rem; }
.brand em { font-style: normal; color: var(--on-dark-muted); font-weight: 500; margin-left: 2px; }
.topnav { display: flex; gap: 22px; align-items: center; }
.topnav a { color: var(--on-dark-muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.brand { white-space: nowrap; }
.topnav a:hover { color: #fff; }
@media (max-width: 640px) { .topnav a.hide-sm { display: none; } .topnav { gap: 14px; } }
@media (max-width: 420px) { .topnav a.hide-xs { display: none; } .brand em { display: none; } }

/* ---- Hero ---- */
.hero { background: var(--canopy); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -55% 35%; height: 120%;
  background: radial-gradient(closest-side, rgba(58, 103, 70, .55), rgba(58, 103, 70, 0));
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: 48px; align-items: end; padding-block: 56px 64px; }
.hero .eyebrow { color: var(--sun); }
.hero h1 { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.035em; margin-top: 14px; max-width: 14ch; }
.hero h1 .accent { color: var(--sun); }
.hero p.lede { margin-top: 20px; font-size: var(--step-1); color: var(--on-dark-muted); max-width: 54ch; line-height: 1.55; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 44px; } }

/* Time-zone panel */
.clock {
  border: 1px solid var(--line-dark); border-radius: 14px; padding: 18px 20px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
}
.clock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.clock-head .mono { color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; color: var(--on-dark-muted); }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6b7a70; }
.status-dot.open::before { background: #5fd38a; box-shadow: 0 0 0 3px rgba(95, 211, 138, .18); }
.clock-rows { margin-top: 10px; display: grid; }
.clock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-dark); }
.clock-row:first-child { border-top: 0; }
.clock-row .city { font-weight: 700; }
.clock-row .zone { display: block; font-family: var(--mono); font-size: .72rem; color: var(--on-dark-muted); }
.clock-row .time { font-family: var(--mono); font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: #fff; }
.clock-row .time small { font-size: .75rem; color: var(--on-dark-muted); margin-left: 6px; }
.clock-foot { margin-top: 8px; font-size: .8125rem; color: var(--on-dark-muted); }
.clock-foot strong { color: var(--on-dark); font-weight: 600; }

/* ---- Sections ---- */
section.block { padding-block: 72px; }
section.block + section.block { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--step-3); font-weight: 900; }
.section-head p { color: var(--muted); max-width: 52ch; }
@media (max-width: 640px) { section.block { padding-block: 48px; } }

/* Filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font: 600 .875rem/1 var(--font); cursor: pointer;
}
.chip .n { font-family: var(--mono); font-weight: 500; color: var(--muted); margin-left: 6px; font-size: .78rem; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--paper); }
.chip[aria-pressed="true"] .n { color: var(--on-dark-muted); }

/* Role ledger */
.roles { border-top: 2px solid var(--text); }
.role {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 22px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: background-color .15s;
}
.role:hover { background: var(--paper-2); }
.role:hover .role-go { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.role-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.role h3 { font-size: var(--step-2); font-weight: 800; }
.role .summary { margin-top: 6px; color: var(--muted); max-width: 70ch; }
.role .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.role .meta span { font-family: var(--mono); font-size: .78rem; }
.role .meta span + span::before { content: "/"; margin-right: 16px; color: var(--line); }
.role-go {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center;
  color: var(--text); transition: background-color .15s, border-color .15s;
}
.role-go svg { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font: 700 .72rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.pill-sun { background: var(--sun); color: var(--ink); }
.pill-dept { background: var(--pine-wash); color: var(--pine-deep); }
.pill-closed { background: var(--danger-wash); color: var(--danger); }
@media (max-width: 640px) { .role { grid-template-columns: minmax(0, 1fr); } .role-go { display: none; } }

.empty, .notice { padding: 28px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--card); }
.skeleton { height: 108px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--paper) 0%, var(--paper-2) 50%, var(--paper) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Founder letter */
.letter { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.letter figure { margin: 0; }
.letter img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 12px; background: var(--paper-2); }
.letter blockquote { margin: 16px 0 0; font-size: var(--step-1); line-height: 1.6; display: grid; gap: 14px; max-width: 60ch; }
.letter .sig { margin-top: 22px; display: flex; flex-direction: column; }
.letter .sig strong { font-size: 1.0625rem; }
.letter .sig span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 760px) { .letter { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 22px; } .letter img { aspect-ratio: 1 / 1; max-height: 340px; } }

/* How we work */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--text); }
.pillar { padding: 22px 22px 6px 0; }
.pillar + .pillar { padding-left: 22px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillar:nth-child(3) { padding-left: 0; border-left: 0; } .pillar { padding-bottom: 18px; } }
@media (max-width: 520px) { .pillars { grid-template-columns: minmax(0, 1fr); } .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Hiring steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--canopy); color: var(--on-dark); border-radius: 14px; padding: 22px 20px 24px; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; color: var(--sun); }
.steps h3 { margin-top: 18px; font-size: 1.1875rem; font-weight: 800; }
.steps p { margin-top: 8px; color: var(--on-dark-muted); font-size: .9375rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 28px 36px; color: var(--muted); font-size: .875rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { color: var(--muted); }

/* ---- Job page ---- */
.job-hero { background: var(--canopy); color: var(--on-dark); }
.job-hero .wrap { padding-block: 28px 40px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.back:hover { color: #fff; }
.job-hero .row { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.job-hero .eyebrow { color: var(--sun); }
.job-hero h1 { margin-top: 10px; font-size: var(--step-4); font-weight: 900; letter-spacing: -0.035em; max-width: 18ch; }
.job-hero .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--on-dark-muted); }
.job-hero .meta span { font-family: var(--mono); font-size: .8125rem; }
.job-hero .meta span + span::before { content: "/"; margin-right: 16px; color: var(--line-dark); }
.job-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.job-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 56px; padding-block: 48px 24px; align-items: start; }
@media (max-width: 900px) { .job-body { grid-template-columns: minmax(0, 1fr); gap: 28px; } .job-body aside { order: -1; } }

.prose { max-width: 68ch; }
.prose h2, .prose h3 { font-size: var(--step-2); font-weight: 800; margin: 36px 0 12px; }
.prose h3 + *, .prose h2 + * { margin-top: 0; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.25em; display: grid; gap: 8px; }
.prose li::marker { color: var(--pine); }
.prose ol li::marker { font-family: var(--mono); font-size: .85em; }

.facts { position: sticky; top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts dl { margin: 0; padding: 6px 20px; }
.facts .fact { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts .fact:first-child { border-top: 0; }
.facts dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; }
.facts .cta { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.facts .cta .btn { width: 100%; }

.shift { background: var(--pine-wash); padding: 16px 20px; border-top: 1px solid var(--line); }
.shift h3 { font-size: .75rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pine-deep); font-weight: 600; }
.shift-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-top: 10px; align-items: baseline; }
.shift-row .who { font-weight: 600; }
.shift-row .who small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.shift-row .hrs { font-family: var(--mono); font-size: .875rem; font-variant-numeric: tabular-nums; text-align: right; }
.shift-row .hrs small { display: block; color: var(--muted); font-size: .72rem; }
.ruler { margin-top: 14px; position: relative; height: 34px; }
.ruler .track { position: absolute; left: 0; right: 0; top: 8px; height: 10px; border-radius: 6px; background: rgba(58, 103, 70, .16); }
.ruler .on { position: absolute; top: 8px; height: 10px; border-radius: 6px; background: var(--pine); }
.ruler .ticks { position: absolute; left: 0; right: 0; top: 22px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .65rem; color: var(--muted); }
.ruler .cap { position: absolute; top: -8px; font-family: var(--mono); font-size: .65rem; color: var(--pine-deep); white-space: nowrap; }

.closed-banner { margin-top: 20px; display: inline-flex; gap: 10px; align-items: center; background: var(--danger-wash); color: var(--danger); padding: 10px 14px; border-radius: 10px; font-weight: 600; }

/* ---- Apply form ---- */
.apply { padding-block: 24px 80px; }
.apply-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px; max-width: 860px; }
@media (max-width: 640px) { .apply-card { padding: 22px 18px; border-radius: 14px; } }
.apply-card > h2 { font-size: var(--step-3); font-weight: 900; }
.apply-card > p.sub { margin-top: 8px; color: var(--muted); }
fieldset { border: 0; margin: 28px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); min-width: 0; }
legend { padding: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pine); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 14px; }
.grid2 .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .9375rem; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { color: var(--muted); font-size: .8125rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(58, 103, 70, .18); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .drop { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8125rem; font-weight: 600; }
.counter { justify-self: end; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 500; cursor: pointer; }
.radios input { accent-color: var(--pine); width: 18px; height: 18px; }
.drop {
  position: relative; display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; background: #fff; cursor: pointer;
}
.drop:hover, .drop.drag { border-color: var(--pine); background: var(--pine-wash); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--pine-wash); display: grid; place-items: center; color: var(--pine-deep); }
.drop .ico svg { width: 20px; height: 20px; }
.drop .txt { min-width: 0; }
.drop .txt strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.drop .txt span { color: var(--muted); font-size: .8125rem; }
.or { text-align: center; font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: .9375rem; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--pine); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-error { margin-top: 18px; background: var(--danger-wash); color: var(--danger); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.progress { color: var(--muted); font-size: .9375rem; }
.success { text-align: left; }
.success .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; }
.success .tick svg { width: 26px; height: 26px; }
.success h2 { margin-top: 18px; font-size: var(--step-3); font-weight: 900; }
.success p { margin-top: 10px; color: var(--muted); max-width: 56ch; }
.success .btn { margin-top: 22px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; z-index: 50; }
