/* careers: the title across the roof film, the ask, the path as a climb, the creed in poster type, the close over one form.
   loaded on the careers page only */
.case-careers { --accent: var(--ember); }
.nowrap { white-space: nowrap; }
/* the next scene lays an ink edge over the end of this one; the statement stays above it */
.careers-lead { z-index: 2; padding-bottom: clamp(48px, 8svh, 96px); }

/* the title fills the width like the home title; the one action waits under it */
.careers-jump { align-self: flex-start; display: inline-flex; align-items: center; gap: .7em; margin-left: 1vw; padding: 14px 30px; background: var(--fg); color: var(--ink); border-color: var(--fg); font-weight: 500; opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .9s var(--ease) 1.2s, transform 1.1s var(--ease) 1.2s, background-color .25s var(--ease), border-color .25s var(--ease); }
.careers-jump span { transition: transform .3s var(--ease); }
.is-ready .careers-jump { opacity: 1; transform: none; }
@media (hover: hover) { .careers-jump:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); } .careers-jump:hover span { transform: translateX(4px); } }

/* the two lines under the ask are claims, set at claim size */
.careers-lead .statement-body { font-size: clamp(20px, 2.3vw, 34px); line-height: 1.16; letter-spacing: -.014em; }
.careers-lead .statement-body p { max-width: 20ch; }

/* what working here is, in the master deck's feature format: who we are (six) and what you get (five) side by side under one claim, on one screen */
.careers-life { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--gap) * 4); row-gap: clamp(14px, 2svh, 40px); align-content: center; min-height: 100svh; padding: clamp(20px, 3svh, 80px) var(--gutter); background: var(--ink); }
.careers-life-head { grid-column: 1 / -1; font-size: clamp(32px, min(4.3vw, 7svh), 64px); line-height: 1; letter-spacing: -.032em; font-weight: 500; text-wrap: balance; }
/* the two groups share their rows, so a feature and the one beside it start on the same rule */
.careers-life-group { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
.careers-life-group ul { display: contents; }
.careers-life-group h3 { margin-bottom: 14px; font-size: var(--t-ui); font-weight: 400; color: var(--fg-dim); }
.careers-life-group li { display: grid; align-content: start; gap: 4px; list-style: none; padding: clamp(6px, .9svh, 14px) 0; border-top: 1px solid var(--fg-line); }
.careers-life-group h4 { font-size: clamp(20px, min(1.7vw, 2.8svh), 30px); line-height: 1.1; letter-spacing: -.02em; font-weight: 500; }
.careers-life-group li > p { max-width: 60ch; font-size: clamp(16px, min(1.16vw, 1.9svh), 20px); line-height: 1.32; color: var(--fg-dim); text-wrap: pretty; }
/* the name sits at the end of the quote's last line, so five rows still fit the screen */
.careers-life-quote { font-size: clamp(16px, min(1.16vw, 1.9svh), 20px); line-height: 1.32; text-wrap: balance; }
.careers-life-quote p { display: inline; }
.careers-life-quote footer { display: inline-block; margin-left: .6em; color: var(--fg-dim); }
/* short laptop screens: the rows tighten so the section still fits one screen */
@media (min-width: 901px) and (max-height: 800px) { .careers-life { row-gap: 10px; padding-block: 14px; } .careers-life-group li { gap: 2px; padding: 4px 0; } .careers-life-group h3 { margin-bottom: 4px; } .careers-life-group h4 { font-size: 18px; } .careers-life-group li > p, .careers-life-quote { font-size: 15px; line-height: 1.28; } }

/* the path on one screen: four steps side by side, each a rise above the last. one line runs over them as a staircase,
   from the left edge of the screen out of the right. each riser stands in the gap before its step, so no line touches the text */
.careers-path { --rise: clamp(64px, 10.5svh, 112px); --stair: rgb(243 241 236 / .5); position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-content: center; min-height: 100svh; padding: clamp(104px, 15svh, 160px) var(--gutter) clamp(88px, 13svh, 140px); background: var(--ink); }
.careers-path-head { grid-area: 1 / 1 / 2 / span 5; align-self: start; position: relative; z-index: 1; font-size: clamp(32px, 4.3vw, 64px); line-height: 1; letter-spacing: -.032em; font-weight: 500; text-wrap: balance; }
.careers-steps { grid-area: 1 / 1 / 2 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; list-style: none; }
.careers-step { --k: 0; position: relative; display: grid; align-content: start; justify-items: start; gap: clamp(12px, 1.7svh, 18px); margin-top: calc((3 - var(--k)) * var(--rise)); padding: clamp(18px, 2.6svh, 28px) clamp(16px, 2vw, 32px) 0 0; }
.careers-step::before { content: ''; position: absolute; top: 0; left: calc(-1 * var(--gap)); right: 0; height: 1px; background: var(--stair); transform-origin: 0 0; }
.careers-step:first-child::before { left: calc(-1 * var(--gutter)); }
.careers-step:last-child::before { right: calc(-1 * var(--gutter)); }
.careers-step + .careers-step::after { content: ''; position: absolute; top: 0; left: calc(-1 * var(--gap)); width: 1px; height: var(--rise); background: var(--stair); transform-origin: 0 100%; }
.careers-step h3 { font-size: clamp(26px, 2.9vw, 56px); line-height: 1; letter-spacing: -.03em; font-weight: 500; text-wrap: balance; }
.careers-step p { max-width: 30ch; font-size: clamp(16px, 1.32vw, 23px); line-height: 1.3; letter-spacing: -.008em; color: var(--fg-dim); text-wrap: pretty; }
.careers-room { --logo: 34px; --cap: 22px; grid-template-columns: repeat(4, auto); justify-content: start; gap: 14px 28px; margin-top: 8px; }
/* the climb draws once the path is on screen: a riser, then its tread, then the step that stands on it */
@media (prefers-reduced-motion: no-preference) {
  .careers-step { --at: calc(var(--k) * var(--beat, 700ms)); }
  .careers-step::before { transform: scaleX(0); transition: transform .66s var(--ease) var(--at); }
  .careers-step::after { transform: scaleY(0); transition: transform .32s var(--ease) calc(var(--at) - 280ms); }
  .careers-step > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .8s var(--ease) calc(var(--at) + 200ms), transform 1s var(--ease) calc(var(--at) + 200ms); }
  .careers-step.is-on::before, .careers-step.is-on::after, .careers-step.is-on > * { opacity: 1; transform: none; }
}

/* the people who took the path, one slide each: a face out of the dark with the name across the shirt and, right beside
   it as Bending Spoons sets theirs, where they started, what they did, where they are now, then their own words, with the
   buttons under them. the photos are lit on black and their black is the page ink; the mask fades the shirt where the frame
   cuts it, so no photo has an edge */
.careers-story { --face: calc(100svh * 768 / 1364); --foot: 4.5svh; position: relative; background: var(--ink); }
.careers-story-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline: 0; }
.careers-story-track::-webkit-scrollbar { display: none; }
.careers-story-slide { position: relative; flex: 0 0 100%; min-width: 0; height: 100svh; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
/* without script the slides scroll side by side. careers.js stacks them in one cell and only moves forward: who comes next
   pushes in from the right as the slide on screen leaves to the left, and the last hands back to the first the same way */
/* clip, not hidden: a hidden track is still a scroll container, and its snap would follow the slide sent back to the right */
.careers-story-track.is-live { display: grid; overflow: clip; touch-action: pan-y; }
.careers-story-track.is-live .careers-story-slide { grid-area: 1 / 1; visibility: hidden; transform: translateX(100%); }
.careers-story-track.is-live .careers-story-slide:is(.is-current, .is-leaving) { visibility: visible; }
.careers-story-track.is-live .careers-story-slide.is-current { transform: none; }
.careers-story-track.is-live .careers-story-slide.is-leaving { transform: translateX(-100%); }
.careers-story-face { position: absolute; top: 0; left: var(--gutter); height: 100%; aspect-ratio: 768 / 1364; container-type: size; }
.careers-story-portrait { --fade: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(#000 86%, transparent); position: absolute; inset: 0; margin: 0; overflow: hidden; -webkit-mask: var(--fade); -webkit-mask-composite: source-in; mask: var(--fade); mask-composite: intersect; }
.careers-story-portrait img, .careers-story-portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.careers-story-portrait img { object-fit: cover; }
.careers-story-portrait canvas { pointer-events: none; }
/* careers.js prints each face in the hero's type as its slide arrives, then the photo develops out of it */
.careers-story-portrait.is-armed img { opacity: 0; filter: blur(14px); transform: scale(1.03); }
.careers-story-portrait.is-resolved img { opacity: 1; filter: none; transform: none; transition: opacity 1.1s var(--ease), filter 1.5s var(--ease), transform 1.8s var(--ease); }
.careers-story-portrait.is-resolved canvas { opacity: 0; transition: opacity 1s var(--ease) .2s; }
.careers-story-name { position: absolute; left: 0; right: 0; bottom: 4.5cqh; font-size: 24cqh; line-height: .8; letter-spacing: -.06em; font-weight: 500; text-align: center; }
.careers-story-copy { --left: calc(var(--gutter) + var(--face) + clamp(32px, 4.4vw, 80px)); position: absolute; left: var(--left); bottom: calc(var(--foot) + clamp(64px, 10svh, 96px)); width: min(36rem, calc(100% - var(--left) - var(--gutter))); }
.careers-story-body { display: grid; gap: .5em; font-size: clamp(18px, 1.46vw, 25px); line-height: 1.3; letter-spacing: -.008em; color: var(--fg-dim); text-wrap: pretty; }
.careers-story-turn { margin-top: .5em; font-size: clamp(30px, 3.1vw, 56px); line-height: 1; letter-spacing: -.03em; font-weight: 500; color: var(--fg); text-wrap: balance; }
.careers-story-quote { margin-top: clamp(32px, 6svh, 64px); padding-top: clamp(16px, 2.4svh, 24px); border-top: 1px solid rgb(243 241 236 / .5); }
.careers-story-quote p { max-width: 30ch; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.24; letter-spacing: -.012em; font-weight: 500; text-wrap: balance; }
.careers-story-quote footer { margin-top: 12px; font-size: var(--t-ui); color: var(--fg-dim); }
.careers-story-nav { position: absolute; left: calc(var(--gutter) + var(--face) + clamp(32px, 4.4vw, 80px)); bottom: var(--foot); display: flex; gap: 8px; }
.careers-story-nav .box { display: inline-flex; align-items: center; gap: .45em; padding: 10px 18px; background: none; color: var(--fg); font: inherit; font-size: var(--t-ui); cursor: pointer; }
.careers-story-track:focus-visible .careers-story-slide.is-current { outline: 1px solid var(--fg-line); outline-offset: -12px; }
/* a slide's words arrive a beat after it. reduced motion swaps the slides in place */
@media (prefers-reduced-motion: no-preference) {
  /* the curve of the page's film transition, its other move the width of the screen */
  .careers-story-track.is-live .careers-story-slide:is(.is-current, .is-leaving) { transition: transform .8s cubic-bezier(.32, .72, 0, 1); }
  .careers-story-track.is-live .careers-story-copy { transition: opacity .7s var(--ease), transform 1s var(--ease); }
  .careers-story-track.is-live .careers-story-slide:not(.is-current) .careers-story-copy { opacity: 0; transform: translateX(40px); }
}

/* the creed at poster size, one value a line, and the one sentence that filters */
.careers-values { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-content: end; min-height: 100svh; padding: 14svh var(--gutter) 16svh; background: var(--ink); }
.careers-creed { grid-column: 1 / -1; display: grid; font-size: clamp(56px, 12.6vw, 200px); line-height: .88; letter-spacing: -.048em; font-weight: 500; }
.careers-creed > span { display: block; padding-bottom: .04em; }
.careers-filter { grid-column: 7 / -1; max-width: 22ch; margin-top: clamp(40px, 8svh, 88px); font-size: var(--t-title); line-height: 1.14; letter-spacing: -.012em; font-weight: 500; text-wrap: balance; }


/* the close opens the form's scene, so the last line is the invitation and the form is right under it */
.careers-close { grid-column: 1 / -1; margin-bottom: clamp(72px, 14svh, 140px); font-size: clamp(44px, 8.6vw, 140px); line-height: .92; letter-spacing: -.045em; font-weight: 500; }
/* the form: ruled fields the size of the page's own type, on plain ink */
.careers-apply { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: clamp(96px, 18svh, 200px) var(--gutter) clamp(96px, 16svh, 180px); background: var(--ink); scroll-margin-top: 40px; }
.apply-copy { grid-column: 1 / span 5; position: sticky; top: clamp(96px, 15svh, 150px); display: grid; gap: clamp(14px, 2svh, 22px); }
.apply-copy .scene-head { position: static; grid-column: auto; font-size: clamp(32px, 3.8vw, 58px); line-height: .96; letter-spacing: -.032em; text-shadow: none; }
.apply-note { max-width: 22ch; font-size: var(--t-lead); line-height: 1.24; color: var(--fg-dim); }
.apply-form, .apply-state { grid-column: 7 / -1; }
.apply-field { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 22px 0 24px; border: 0; border-top: 1px solid var(--fg-line); transition: border-color .35s var(--ease); }
.apply-field > span, .apply-field > legend { padding: 0; font-size: var(--t-ui); color: var(--fg-dim); transition: color .35s var(--ease); }
.apply-field > legend { float: left; width: 100%; margin-bottom: 14px; }
.apply-field small { margin-left: .5em; font-size: .86em; opacity: .7; }
.apply-field input:not([type="radio"]) { width: 100%; padding: 2px 0; border: 0; border-radius: 0; outline: 0; background: none; color: var(--fg); caret-color: var(--ember); font: inherit; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.2; letter-spacing: -.016em; font-weight: 500; }
.apply-field input::placeholder { color: rgb(243 241 236 / .24); font-weight: 400; }
.apply-field:focus-within { border-top-color: var(--fg); }
.apply-field:focus-within > span, .apply-field:focus-within > legend { color: var(--fg); }
/* chrome paints its own autofill background over a dark field */
.apply-field input:-webkit-autofill { -webkit-text-fill-color: var(--fg); box-shadow: 0 0 0 100px var(--ink) inset; caret-color: var(--ember); }
.apply-teams > div { clear: both; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.apply-team { position: relative; cursor: pointer; }
.apply-team input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.apply-team span { display: block; margin-left: -1px; padding: 18px 12px; border: 1px solid var(--fg-line); text-align: center; font-size: clamp(18px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -.01em; font-weight: 500; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease); }
.apply-team input:checked + span { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.apply-team input:focus-visible + span { outline: 1px solid currentColor; outline-offset: 4px; }
.apply-team:active span { transform: scale(.97); }
@media (hover: hover) { .apply-team:hover input:not(:checked) + span { border-color: var(--fg); } }
.apply-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.apply-send { padding-top: 34px; border-top: 1px solid var(--fg-line); }
.apply-send .box { width: 100%; padding: 22px 24px; background: var(--fg); color: var(--ink); border-color: var(--fg); font: inherit; font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.01em; cursor: pointer; }
@media (hover: hover) { .apply-send .box:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); } }
.apply-form { transition: opacity .35s var(--ease); }
.apply-form.is-busy { opacity: .5; pointer-events: none; }
.apply-form[hidden], .apply-state[hidden], .apply-state [hidden] { display: none; }
.apply-state { display: grid; justify-items: start; gap: clamp(14px, 2svh, 22px); padding-top: 22px; border-top: 1px solid var(--fg); }
.apply-state h3 { font-size: clamp(40px, 6vw, 96px); line-height: .96; letter-spacing: -.032em; font-weight: 500; }
.apply-state p { max-width: 32ch; font-size: var(--t-lead); line-height: 1.3; }
.apply-state .apply-detail { font-size: var(--t-ui); color: var(--fg-dim); }
.apply-state .apply-detail:empty { display: none; }
.apply-state .box { margin-top: 12px; background: none; color: var(--fg); font: inherit; font-size: var(--t-ui); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .apply-state:not([hidden]) > * { animation: settle 1s var(--ease) backwards; }
  .apply-state:not([hidden]) > :nth-child(2) { animation-delay: .1s; }
  .apply-state:not([hidden]) > :nth-child(n + 3) { animation-delay: .2s; }
}


/* the operator is drawn on the page ink: no film black under it, and of the film's shade only the band that keeps the nav legible */
.operator { background: none; }
.case-careers .opening-shade { background: linear-gradient(to bottom, rgb(8 9 11 / .72), rgb(8 9 11 / 0) 12%); }
