/* /careers/: a plain scrolling page in the site's rounded screen. Same tokens as site.css. */
.cr-wrap { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #333 transparent; --edge: max(var(--g), calc(50% - 640px)); }
@media (prefers-reduced-motion: reduce) { .cr-wrap { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.cr-hero { position: relative; min-height: max(640px, calc(100vh - 2 * var(--frame))); display: flex; flex-direction: column; justify-content: center; padding: 120px var(--edge) 80px; overflow: hidden; }
.cr-hero .glow { z-index: 0; -webkit-mask-image: linear-gradient(#000 55%, transparent 98%); mask-image: linear-gradient(#000 55%, transparent 98%); }
.cr-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; }
.cr-bar .logo { left: var(--edge); }
.cr-home { position: absolute; right: var(--edge); top: 36px; height: 42px; font-size: 14px; }
.cr-hero-in { position: relative; z-index: 2; }
.cr-kicker { color: var(--orange); display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.cr-kicker i, .cr-ok::before { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.cr-big { font: 700 clamp(42px, 6.4vw, 104px)/.92 var(--sans); letter-spacing: -.055em; }
.cr-big .ln { display: block; overflow: hidden; padding: .02em 0 .08em; }
.cr-big .ln > span { display: inline-block; }
.cr-big em { color: var(--orange); font-size: 1.1em; }
.cr-side { margin-top: 34px; max-width: 470px; }
.cr-side p { font: 400 17px/1.55 var(--sans); color: #8f8f8f; }
.cr-side p b { color: #fff; font-weight: 500; }
.cr-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* the pen tool: a live bezier with anchors and handles */
.cr-pen { position: absolute; right: calc(var(--edge) - 40px); top: 50%; width: min(46vw, 640px); height: auto; transform: translateY(-46%); z-index: 3; overflow: visible; pointer-events: none; }
.cr-pen .hit { fill: transparent; pointer-events: all; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.cr-pen.drag, .cr-pen.drag .hit { cursor: grabbing; }
.cr-pen .hk, .cr-pen .an { transform-box: fill-box; transform-origin: center; }
.cr-pen.live .curve { stroke-dasharray: none; transition: none; }
.cr-pen.live .h, .cr-pen.live .hk, .cr-pen.live .an { transition: transform .25s var(--ease), opacity .3s; transition-delay: 0s; }
.cr-pen .hk.hot { transform: scale(1.6); fill: var(--orange); }
.cr-pen .an.hot { transform: scale(1.35); }
.cr-pen-tip { position: absolute; z-index: 3; right: var(--edge); top: calc(50% + .27 * min(46vw, 640px)); display: flex; align-items: center; gap: 8px; color: #8a8a8a; pointer-events: none; opacity: 0; transition: opacity .6s; }
.cr-pen.live ~ .cr-pen-tip { opacity: 1; }
.cr-pen-tip i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--orange); }
.cr-pen-tip.gone { opacity: 0 !important; }
.cr-pen .curve { fill: none; stroke: #f2f2f2; stroke-width: 2.2; stroke-linecap: round; }
.cr-pen .h { fill: none; stroke: var(--orange); stroke-width: 1.1; opacity: .85; }
.cr-pen .hk { fill: var(--ink); stroke: var(--orange); stroke-width: 1.4; }
.cr-pen .an { fill: #fff; stroke: #fff; stroke-width: 1.4; }
.cr-pen .an.sel { fill: var(--orange); stroke: var(--orange); }
.cr-pen .curve { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.2s var(--ease); }
.cr-pen.on .curve { stroke-dashoffset: 0; }
.cr-pen .h, .cr-pen .hk, .cr-pen .an { opacity: 0; transition: opacity .6s; }
.cr-pen.on .an { opacity: 1; transition-delay: 1.1s; }
.cr-pen.on .h { opacity: .85; transition-delay: 1.6s; }
.cr-pen.on .hk { opacity: 1; transition-delay: 1.6s; }

/* ---------- sections ---------- */
.cr-sec { padding: 110px var(--edge) 0; }
.cr-head { display: grid; grid-template-columns: 54px 1fr minmax(0, 420px); align-items: baseline; gap: 0 18px; padding-top: 22px; border-top: 1px solid #222; margin-bottom: 40px; }
.cr-head .mono { color: var(--orange); }
.cr-head h2 { font: 600 clamp(28px, 3.2vw, 44px)/1.02 var(--sans); letter-spacing: -.04em; }
.cr-head p { font: 400 16px/1.55 var(--sans); color: #8f8f8f; }
.cr-dim { color: #7a7a7a; }
.cr-dim a { color: #cfcfcf; text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }
.cr-dim a:hover { color: var(--orange); }

/* ---------- job card ---------- */
.cr-job { border-radius: 26px; background: var(--dither), #141414; border: 1px solid rgba(255,255,255,.08); padding: clamp(22px, 3.4vw, 46px); }
.cr-job-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cr-job-top .mono { margin-bottom: 12px; }
.cr-job h3 { font: 600 clamp(30px, 3.8vw, 54px)/1 var(--sans); letter-spacing: -.045em; }
.cr-job h3 em { color: var(--orange); font-size: 1.06em; }
.cr-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 34px 0 10px; border-radius: 16px; overflow: hidden; background: #262626; border: 1px solid #262626; }
.cr-facts > div { background: #101010; padding: 16px 18px; }
.cr-facts dt { color: #6f6f6f; margin-bottom: 8px; }
.cr-facts dd { font: 500 15.5px/1.3 var(--sans); letter-spacing: -.01em; }
.cr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; padding-top: 34px; }
.cr-cols h4 { color: #8a8a8a; margin-bottom: 16px; }
.cr-cols ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cr-cols li { position: relative; padding-left: 22px; font: 400 16px/1.5 var(--sans); color: #d9d9d9; }
.cr-cols li::before { content: ''; position: absolute; left: 1px; top: .62em; width: 7px; height: 7px; border-radius: 1.5px; background: var(--orange); }
.cr-cols ul.cr-tags { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.cr-tags li { padding: 8px 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #cfcfcf; }
.cr-tags li::before { display: none; }

/* ---------- work: justified rows, every piece shown whole (flex-grow = aspect ratio, so heights match) ---------- */
.cr-work { display: flex; flex-direction: column; gap: 14px; }
.cr-wrow { display: flex; gap: 14px; }
.cr-wrow figure { position: relative; flex: var(--ar) 1 0; aspect-ratio: var(--ar); min-width: 0; border-radius: 18px; overflow: hidden; background: #161616; }
.cr-wrow img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.cr-wrow figure:hover img { transform: scale(1.03); }
.cr-wrow figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 9px; background: rgba(11,11,11,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #ddd; font-size: 9.5px; }

/* ---------- steps ---------- */
.cr-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cr-steps li { padding: 22px 22px 26px; border-radius: 20px; background: #131313; border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 10px; }
.cr-steps .mono { color: var(--orange); }
.cr-steps b { font: 600 21px/1.15 var(--sans); letter-spacing: -.03em; margin-top: 18px; }
.cr-steps p { font: 400 15px/1.5 var(--sans); color: #8f8f8f; }

/* ---------- apply ---------- */
.cr-apply-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cr-note { position: sticky; top: 40px; }
.cr-note .cr-note-big { color: #fff; font: 600 clamp(26px, 2.6vw, 36px)/1.08 var(--sans); letter-spacing: -.04em; margin-bottom: 22px; }
.cr-note-big em { color: var(--orange); font-size: 1.1em; }
.cr-note > p { font: 400 16px/1.55 var(--sans); color: #a4a4a4; }
.cr-note ul { list-style: none; margin: 16px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.cr-note li { position: relative; padding-left: 22px; font: 400 15px/1.5 var(--sans); color: #d0d0d0; }
.cr-note li::before { content: ''; position: absolute; left: 1px; top: .6em; width: 7px; height: 7px; border-radius: 1.5px; background: var(--orange); }
.cr-panel { border-radius: 26px; background: var(--dither), rgba(22,22,22,.9); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); padding: clamp(20px, 3vw, 38px); }
.cr-form { display: flex; flex-direction: column; gap: 26px; }
.cr-group { border: 0; display: flex; flex-direction: column; gap: 18px; }
.cr-group + .cr-group { margin-top: 10px; }
.cr-group legend { color: var(--orange); margin-bottom: 20px; padding: 0; width: 100%; display: flex; align-items: center; gap: 14px; }
.cr-group legend::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.cr-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.cr-f { display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.cr-f > label, .cr-f .lbl { font: 500 14px var(--sans); color: #e6e6e6; letter-spacing: -.005em; }
.cr-f label i, .cr-f .lbl i { font-style: normal; color: #6f6f6f; font-weight: 400; margin-left: 6px; }
.cr-f input:not([type=radio]):not([type=checkbox]):not([type=file]), .cr-f textarea, .cr-f select { width: 100%; padding: 13px 15px; border-radius: 14px; background: #121212; border: 1px solid rgba(255,255,255,.09); color: #fff; font: 400 15.5px/1.4 var(--sans); outline: 0; transition: border-color .25s, background .25s; }
.cr-f textarea { resize: vertical; min-height: 116px; }
.cr-f select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
.cr-f select option { background: #161616; }
.cr-f ::placeholder { color: #575757; }
.cr-f input:focus, .cr-f textarea:focus, .cr-f select:focus { border-color: rgba(237,73,35,.65); background: #151515; }
.cr-f.bad input, .cr-f.bad textarea, .cr-f.bad .cr-drop { border-color: #e5484d; }
.err { color: #ff6b6b; font: 500 12.5px/1.3 var(--sans); min-height: 0; }
.err:empty { display: none; }
.count { position: absolute; right: 2px; top: 1px; color: #5f5f5f; font: 500 11px var(--mono); }

/* chips (radio / checkbox) */
.cr-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cr-chips label { position: relative; cursor: pointer; }
.cr-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-chips span { display: inline-block; padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.13); color: #cfcfcf; font: 500 14px var(--sans); transition: background .2s, border-color .2s, color .2s, transform .3s var(--ease); }
.cr-chips label:hover span { border-color: rgba(237,73,35,.6); color: #fff; }
.cr-chips input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.cr-chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.cr-f.bad .cr-chips span { border-color: rgba(229,72,77,.6); }

/* file drop */
.cr-drop { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.2); background: #121212; cursor: pointer; transition: border-color .25s, background .25s; position: relative; }
.cr-drop:hover, .cr-drop.over { border-color: var(--orange); background: rgba(237,73,35,.06); }
.cr-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-drop:focus-within { border-color: var(--orange); }
.cr-drop .ic { width: 40px; height: 40px; border-radius: 11px; background: #1d1d1d; display: grid; place-items: center; flex: none; }
.cr-drop svg { width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cr-drop .dtx { font: 400 14.5px var(--sans); color: #9a9a9a; }
.cr-drop .dtx b { color: #fff; font-weight: 500; }
.cr-drop .dtx u { color: var(--orange); text-underline-offset: 3px; }
.cr-drop.has { border-style: solid; border-color: rgba(62,207,110,.45); }
.cr-drop.has .ic svg { stroke: #3ecf6e; }
.cr-drop.has .dtx { display: none; }
.cr-drop .file { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.cr-drop .file[hidden] { display: none; }
.cr-drop .file b { font: 500 14.5px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.cr-drop .rm { width: 30px; height: 30px; border-radius: 9px; background: #222; color: #bbb; font-size: 18px; line-height: 1; flex: none; position: relative; z-index: 1; }
.cr-drop .rm:hover { background: #333; color: #fff; }

/* consent */
.cr-consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font: 400 14px/1.5 var(--sans); color: #a9a9a9; position: relative; }
.cr-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-consent .box { width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); flex: none; margin-top: 1px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.cr-consent input:checked + .box { background: var(--orange); border-color: var(--orange); }
.cr-consent input:checked + .box::after { content: ''; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.cr-consent input:focus-visible + .box { outline: 2px solid var(--orange); outline-offset: 2px; }
.cr-consent.bad .box { border-color: #e5484d; }
.cr-consent-err { margin-top: -16px; }

.cr-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.cr-submit .pill { height: 52px; padding: 0 28px; font-size: 16px; position: relative; }
.cr-submit .cr-dim { font: 400 13.5px var(--sans); }
.cr-submit .sp { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: crspin .8s linear infinite; }
.cr-form.busy .cr-submit .sp { display: inline-block; }
.cr-form.busy .cr-submit .pill { pointer-events: none; opacity: .85; }
@keyframes crspin { to { transform: rotate(360deg); } }
.cr-fail { padding: 14px 16px; border-radius: 14px; background: rgba(237,73,35,.08); border: 1px solid rgba(237,73,35,.35); font: 400 14.5px/1.5 var(--sans); color: #f1c3b5; }
.cr-fail a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* sent */
.cr-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px 0 8px; outline: 0; }
.cr-done[hidden] { display: none; }
.cr-tick { width: 56px; height: 56px; border-radius: 16px; background: var(--orange); display: grid; place-items: center; margin-bottom: 8px; }
.cr-tick svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: crtick .7s .25s var(--ease) forwards; }
@keyframes crtick { to { stroke-dashoffset: 0; } }
.cr-ok { color: #3ecf6e; display: flex; align-items: center; gap: 8px; }
.cr-ok::before { content: ''; background: #3ecf6e; }
.cr-done h3 { font: 600 clamp(28px, 3vw, 40px)/1.05 var(--sans); letter-spacing: -.04em; }
.cr-done h3 em { color: var(--orange); display: block; font-size: 1.08em; margin-top: 4px; }
.cr-done > p { font: 400 16px/1.55 var(--sans); color: #9a9a9a; max-width: 460px; }
.cr-done > p b { color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.cr-done .pill { margin-top: 10px; }
.cr-form[hidden] { display: none; }

/* ---------- footer ---------- */
.cr-foot { margin: 120px var(--edge) 0; padding: 34px 0 44px; border-top: 1px solid #222; display: flex; flex-direction: column; gap: 22px; }
.cr-foot-big { font: 600 clamp(22px, 2.4vw, 32px)/1.15 var(--sans); letter-spacing: -.035em; color: #9a9a9a; }
.cr-foot-big a { color: #fff; transition: color .25s; }
.cr-foot-big a:hover { color: var(--orange); }
.cr-foot .mono { color: #6f6f6f; line-height: 1.9; }
.cr-foot .mono a { color: #aaa; } .cr-foot .mono a:hover { color: var(--orange); }

/* reveal on scroll */
.js .cr-rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .cr-rv.in { opacity: 1; transform: none; }

/* ---------- tablet + phone ---------- */
@media (max-width: 1080px) {
  .cr-facts { grid-template-columns: repeat(3, 1fr); }
  .cr-steps { grid-template-columns: 1fr 1fr; }
  .cr-apply-grid { grid-template-columns: 1fr; }
  .cr-note { position: static; }
  .cr-pen { opacity: .5; }
}
@media (max-width: 760px) {
  .cr-hero { padding: 124px var(--g) 8px; justify-content: flex-start; min-height: 0; }
  .cr-bar .logo { top: 29px; height: 31px; }
  .cr-home { top: 22px; height: 40px; padding: 0 15px; font-size: 13px; }
  .cr-pen { position: relative; right: auto; top: auto; transform: none; width: 100%; height: auto; margin: 44px 0 0; opacity: 1; order: 2; }  /* below the buttons */
  .cr-pen-tip { position: static; order: 3; margin-top: 14px; }
  .cr-big { font-size: clamp(38px, 11.4vw, 60px); }
  .cr-side p { font-size: 16px; }
  .cr-sec { padding-top: 80px; }
  .cr-head { grid-template-columns: 40px 1fr; margin-bottom: 28px; }
  .cr-head p { grid-column: 1 / -1; margin-top: 12px; }
  .cr-job { border-radius: 20px; }
  .cr-job-top .pill { width: 100%; justify-content: center; }
  .cr-facts { grid-template-columns: 1fr 1fr; }
  .cr-facts > div:last-child { grid-column: 1 / -1; }
  .cr-cols { grid-template-columns: 1fr; gap: 34px; }
  .cr-cols li { font-size: 15.5px; }
  .cr-wrow { flex-wrap: wrap; gap: 10px; }
  .cr-work { gap: 10px; }
  .cr-wrow figure { border-radius: 14px; }
  .cr-wrow figure.wide { flex-basis: 100%; }
  .cr-wrow figcaption { left: 8px; bottom: 8px; padding: 5px 8px; border-radius: 7px; font-size: 8.5px; letter-spacing: .06em; white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
  .cr-steps { grid-template-columns: 1fr; }
  .cr-steps b { margin-top: 8px; }
  .cr-row2 { grid-template-columns: 1fr; }
  .cr-panel { border-radius: 20px; padding: 20px 16px; }
  .cr-submit .pill { width: 100%; justify-content: center; }
  .cr-foot { margin-top: 90px; }
}
