/* Careers page. Uses the tokens, nav, buttons and footer from hero.css. */

.careers { color: var(--ink); }
.careers section { width: min(1436px, calc(100% - 32px)); margin: 0 auto; }
.c-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #8a837e; }
.c-h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; color: var(--ink-input); }
.c-lead { margin: 12px 0 0; max-width: 620px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; }
.c-sec { padding: clamp(72px, 9vw, 120px) 0; }
.c-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }

/* ---------- Hero ---------- */
.c-hero {
  position: relative; overflow: hidden;
  margin-top: 27px !important; padding: clamp(56px, 7vw, 96px) 24px;
  border-radius: 12px; background: var(--panel); text-align: center;
}
.c-hero__title { margin: 0 auto; max-width: 820px; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink-input); } /* same as the home hero title */
.c-hero__sub { margin: 18px auto 0; max-width: 600px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; }
.c-hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.c-hero .btn { height: 40px; padding-left: 18px; font-family: var(--font-ui); font-size: 14px; }
.c-hero .btn--outline { display: inline-flex; border-color: var(--ink-input); color: var(--ink-input); }
.c-hero .btn--outline:hover { background: rgba(43, 38, 39, 0.05); }

/* ---------- Open roles ---------- */
.c-roles { display: flex; flex-direction: column; gap: 12px; }
.c-role { border: 1px solid #ece6e1; border-radius: 12px; background: #fff; transition: border-color 150ms ease, box-shadow 150ms ease; }
.c-role:hover { border-color: #ddd5ce; }
.c-role[open] { border-color: #ddd5ce; box-shadow: 0 18px 40px -24px rgba(43, 38, 39, 0.25); }
.c-role__sum { display: flex; align-items: center; gap: 20px; padding: 18px 20px; cursor: pointer; list-style: none; }
.c-role__sum::-webkit-details-marker { display: none; }
.c-role__sum:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
.c-role__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--panel); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.c-role__avatar img { width: 82px; height: 82px; max-width: none; transform: translateY(14px); }
.c-role__main { flex: 1; min-width: 0; }
.c-role__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2vw, 24px); line-height: 1.3; color: var(--ink-input); }
.c-role__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.c-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--panel); font-size: 12.5px; font-weight: 500; color: #5b5552; white-space: nowrap; }
.c-role__toggle { flex: none; width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--panel); transition: background-color 150ms ease; }
.c-role__sum:hover .c-role__toggle { background: #e8e1db; }
.c-role__toggle svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-input); stroke-width: 1.8; stroke-linecap: round; transition: transform 200ms ease; }
.c-role[open] .c-role__toggle svg { transform: rotate(45deg); }

.c-role__body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 48px; padding: 4px 20px 24px 96px; }
.c-role__pitch { grid-column: 1 / -1; margin: 0; max-width: 760px; font-size: 16px; line-height: 1.65; color: var(--ink-input); }
.c-role__body h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8a837e; }
.c-role__body ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; }
.c-role__body li { margin-bottom: 6px; }
.c-role__body li::marker { color: #b5aca5; }
.c-role__apply { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; }
.c-role__apply .btn { height: 40px; padding-left: 18px; font-family: var(--font-ui); font-size: 14px; }
.c-role__note { font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .c-sec__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .c-role__body { grid-template-columns: minmax(0, 1fr); padding: 0 20px 24px; }
}
@media (max-width: 600px) {
  .careers section { width: calc(100% - 40px); }
  .c-hero { margin-top: 12px !important; padding-left: 20px; padding-right: 20px; }
  .c-role__sum { gap: 14px; padding: 16px; align-items: flex-start; }
  .c-role__avatar { width: 44px; height: 44px; }
  .c-role__avatar img { width: 66px; height: 66px; transform: translateY(11px); }
  .c-role__body { padding: 0 16px 20px; }
}
