/* page basics (these used to come from the old jobs.css) */
.cr-page body { background: var(--black); color: var(--white); }
.cr-page .head__in { visibility: visible; } /* style.css hides it under .gs until the home page's fx.js reveals it */
.cr-page .head { border-bottom: 1px solid var(--rule-d); }
/* Careers page (careers.html, built by tools/build-careers.py). Loads after style.css and jobs.css (shared sub-page rules). */
:root { interpolate-size: allow-keywords; }
.cr section { position: relative; }
.cr h2 { font-size: clamp(44px, 7vw, 112px); line-height: .95; letter-spacing: -.045em; }

/* hero: full-bleed crew photo */
.cr-hero { display: grid; align-items: end; min-height: calc(100svh - var(--head-h)); overflow: clip; isolation: isolate; }
.cr-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.cr-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, rgba(11, 13, 16, .9) 0, rgba(11, 13, 16, .6) 34%, rgba(11, 13, 16, 0) 70%),
  linear-gradient(to right, rgba(11, 13, 16, .55) 0, rgba(11, 13, 16, 0) 60%); }
.cr-hero__in { padding-block: 48px 56px; text-shadow: 0 1px 18px rgba(11, 13, 16, .35); }
.cr-hero__in .btn { text-shadow: none; }
.cr-live { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.cr-live b { font-variant-numeric: tabular-nums; }
.cr-live i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.cr-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: cr-ping 1.8s ease-out infinite; }
@keyframes cr-ping { to { scale: 3.2; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cr-live i::after { animation: none; } }
.cr-hero .kw { margin-top: 18px; }
.cr-title { display: block; margin-top: 12px; margin-left: -.04em; font-size: clamp(76px, 15vw, 240px); font-weight: 700; line-height: .84; letter-spacing: -.06em; }
.cr-hero__lede { margin-top: 26px; max-width: 34ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }
.cr-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* what you'd run: cards that stack as you scroll (sticky, so it also works with no script) */
.cr-gear { padding-block: var(--sec) calc(var(--sec) * .6); }
.cr-gear__stack { margin-top: 40px; }
.cr-gear__card { position: sticky; top: calc(var(--head-h) + 20px + var(--i) * 14px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); height: min(62svh, 560px); margin-bottom: 28px; border: 1px solid var(--rule-d); border-radius: 20px; overflow: hidden; background: #14171b; transform-origin: 50% 0; }
.cr-gear__ph { overflow: hidden; }
.cr-gear__ph img { width: 100%; height: 100%; object-fit: cover; }
.cr-gear__txt { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 36px; }
.cr-gear__txt i { margin-bottom: auto; font-style: normal; font-size: 15px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cr-gear__txt b { font-size: clamp(30px, 3.6vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.cr-gear__txt > span { color: var(--dim); font-size: 18px; line-height: 1.45; text-wrap: pretty; }

/* the year: four doors, the one you point at opens */
.cr-year { padding-block: calc(var(--sec) * .6) var(--sec); }
.cr-doors { display: flex; gap: 12px; height: min(64svh, 560px); margin-top: 40px; }
.cr-door { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 16px; background: #14171b; cursor: pointer; transition: flex-grow .7s var(--out); }
.cr-door.on { flex-grow: 3.4; }
.cr-door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.08; transition: scale 1.2s var(--out), filter .6s ease; filter: saturate(.55) brightness(.6); }
.cr-door.on img { scale: 1; filter: none; }
.cr-door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 13, 16, .85) 0, rgba(11, 13, 16, 0) 55%); }
.cr-door__txt { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 4px; }
.cr-door__txt b { font-size: clamp(26px, 3vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.cr-door__txt span { max-width: 30ch; color: rgba(255, 255, 255, .88); opacity: 0; translate: 0 8px; transition: opacity .4s ease, translate .5s var(--out); white-space: nowrap; }
.cr-door.on .cr-door__txt span { opacity: 1; translate: none; transition-delay: .2s; }

/* open spots */
.cr-open { padding-block: var(--sec); border-top: 1px solid var(--rule-d); }
.cr-open__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cr-open__head p { padding-bottom: 10px; font-size: 18px; color: var(--dim); white-space: nowrap; }
.cr-open__head p b { color: var(--green); font-variant-numeric: tabular-nums; }
.cr-rows { margin-top: 40px; border-top: 1px solid var(--rule-d); }
.cr-row { border-bottom: 1px solid var(--rule-d); }
.cr-row summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 44px; align-items: center; gap: 20px; padding-block: 26px; list-style: none; cursor: pointer; transition: padding-left .5s var(--out), color .2s ease-out; }
.cr-row summary::-webkit-details-marker { display: none; }
.cr-row summary i { font-style: normal; font-size: 15px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cr-row summary b { font-size: clamp(26px, 4.2vw, 64px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.cr-row summary em { font-style: normal; font-size: 16px; font-weight: 500; color: var(--green); white-space: nowrap; }
.cr-row__plus { position: relative; width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 50%; transition: rotate .5s var(--out), background-color .2s ease-out, border-color .2s ease-out; }
.cr-row__plus::before, .cr-row__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; }
.cr-row__plus::after { rotate: 90deg; }
.cr-row[open] .cr-row__plus { rotate: 45deg; background: var(--white); border-color: var(--white); color: var(--black); }
@media (hover: hover) { .cr-row summary:hover { padding-left: 16px; color: var(--green); } .cr-row summary:hover i, .cr-row summary:hover em { color: inherit; } }
.cr-row::details-content { block-size: 0; overflow: clip; transition: block-size .6s var(--out), content-visibility .6s allow-discrete; }
.cr-row[open]::details-content { block-size: auto; }
.cr-row__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; gap: 32px 48px; padding: 6px 0 40px 76px; }
.cr-row__body h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--dim); }
.cr-row__body ul { margin-top: 12px; }
.cr-row__body li { position: relative; padding: 5px 0 5px 22px; font-size: 18px; line-height: 1.4; }
.cr-row__body li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
/* a photo of the work follows the pointer over the list (mouse only, switched on by the script) */
.cr-peek { position: fixed; z-index: 30; left: 0; top: 0; width: 300px; height: 360px; margin: -180px 0 0 28px; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; scale: .8; transition: opacity .3s ease, scale .5s var(--out); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.cr-peek.on { opacity: 1; scale: 1; }
.cr-peek img { width: 100%; height: 100%; object-fit: cover; }

/* apply: four answers on the left, the text message they write on the right */
.cr-apply { padding-block: var(--sec); border-top: 1px solid var(--rule-d); }
.cr-apply__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.cr-form .lede { margin-top: 20px; max-width: 36ch; color: var(--dim); }
.cr-f { margin-top: 34px; }
.cr-f legend, .cr-f > label { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 600; color: var(--dim); }
.cr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-chips label { position: relative; cursor: pointer; }
.cr-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cr-chips span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 17px; font-weight: 500; transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out, scale .12s ease-out; }
.cr-chips label:hover span { border-color: var(--white); }
.cr-chips label:active span { scale: .97; }
.cr-chips input:checked + span { background: var(--white); border-color: var(--white); color: var(--black); font-weight: 600; }
.cr-chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.cr-f input[type=text] { width: 100%; max-width: 440px; min-height: 56px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 6px; background: none; color: var(--white); font: 500 19px/1 var(--font); transition: border-color .18s ease-out; }
.cr-f input[type=text]:focus { outline: none; border-color: var(--green); }
.cr-f.bad input[type=text] { border-color: #FF8A7A; }
.cr-err { margin-top: 8px; color: #FF8A7A; font-size: 16px; }
.cr-send { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 12px; }
.cr-msg { margin-bottom: 8px; padding: 22px 20px 24px; border: 1px solid var(--rule-d); border-radius: 22px; background: #14171b; }
.cr-msg__to { padding-bottom: 14px; border-bottom: 1px solid var(--rule-d); font-size: 15px; color: var(--dim); text-align: center; }
.cr-msg__bubble { width: fit-content; max-width: 92%; margin: 20px 0 0 auto; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: #2E7A3D; color: var(--white); font-size: 18px; line-height: 1.4; text-wrap: pretty; transform-origin: 100% 100%; }
.cr-send__note { font-size: 15px; line-height: 1.45; color: var(--dim); text-align: center; text-wrap: pretty; }

@media (max-width: 980px) {
  .cr-gear__card { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: min(70svh, 560px); }
  .cr-gear__txt { padding: 22px 24px 26px; }
  .cr-gear__txt i { margin-bottom: 0; }
  .cr-doors { flex-direction: column; height: auto; }
  .cr-door { flex: none; height: 96px; transition: height .6s var(--out); }
  .cr-door.on { height: 300px; }
  .cr-door__txt span { white-space: normal; }
  .cr-row summary { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 16px; padding-block: 22px; }
  .cr-row summary i { display: none; }
  .cr-row summary em { grid-column: 1; grid-row: 2; }
  .cr-row__plus { grid-column: 2; grid-row: 1 / span 2; }
  .cr-row__body { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 0 32px; }
  .cr-apply__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cr-send { position: static; }
}
@media (max-width: 640px) {
  .cr-hero__btns { display: grid; }
  .cr-open__head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .cr-open__head p { padding: 0; }
}

/* nothing open: api.php puts this where the rows go */
.cr-none { padding: 36px 0; border-bottom: 1px solid var(--rule-d); color: var(--dim); font-size: 20px; }
