/* career drawer: the index box of clients. Uses assets/site.css tokens. */
html.cd-locked, html.cd-locked body { overflow: hidden; overscroll-behavior: none; }
.cd { position: fixed; inset: 0; z-index: 1000; overscroll-behavior: contain; touch-action: none; display: grid; place-items: center; color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-tap-highlight-color: transparent; }
.cd-scrim { position: absolute; inset: 0; background: var(--bg); opacity: 0; }

/* the stage: the box, and the plain-résumé line under it */
.cd-stage { position: relative; width: min(860px, calc(100vw - 48px)); display: flex; flex-direction: column; align-items: center; gap: 6px; transform-origin: 50% 50%; will-change: transform; }
.cd-svg { display: block; width: 100%; height: auto; max-height: calc(100svh - 150px); overflow: visible; touch-action: none; cursor: default; user-select: none; -webkit-user-select: none; }
.cd-line { margin: 0; max-width: 46em; padding: 0 8px; text-align: center; font: 400 14px/1.6 var(--sans); color: var(--muted); text-wrap: balance; }
.cd-line .nw { white-space: nowrap; }

/* the box: dark solid faces, white line-art edges (the cabinet's language) */
.cd-face { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cd-face.in { fill: #0e0e0e; stroke-opacity: .28; }
.cd-face.in2 { fill: #101010; stroke-opacity: .28; }
.cd-face.out { fill: #161616; stroke-opacity: .72; }
.cd-face.out2 { fill: #121212; stroke-opacity: .72; }
.cd-face.rim { fill: #1d1d1d; stroke-opacity: .72; }
.cd-pull { fill: #0f0f0f; stroke: var(--ink); stroke-opacity: .6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cd-pull.in { fill: #070707; stroke-opacity: .3; }
.cd-ground { fill: none; stroke: var(--ink); stroke-opacity: .1; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* folders */
.cd-f { cursor: pointer; }
.cd-body { fill: #151515; stroke: var(--ink); stroke-opacity: .5; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: stroke-opacity .18s var(--ease-out), fill .25s var(--ease-out); }
.cd-rule { stroke: var(--ink); stroke-opacity: .07; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cd-fold { stroke: var(--ink); stroke-opacity: .12; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cd-name { font: 500 12px var(--sans); letter-spacing: .005em; fill: #cfcfcf; transition: fill .18s var(--ease-out); }
.cd-f.on .cd-body { stroke-opacity: 1; fill: #1b1915; }
.cd-f.on .cd-name { fill: #fff; }
.cd-f.kbd .cd-body { stroke: var(--accent); }

/* keyboard / screen-reader mirror of the folders: present, not seen */
.cd-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }

/* close */
.cd-x { position: absolute; z-index: 3; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2), inset 0 0 0 1px #2c2c2c; cursor: pointer; opacity: 0; transition: scale var(--spring-press-dur) var(--spring-press); }
.cd-x svg { width: 14px; height: 14px; }
.cd-x:hover { color: var(--accent); }
.cd-x:active { scale: .9; }
.cd :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
.cd .cd-card:focus-visible, .cd:focus { outline: none; }

/* ---------- the open folder ---------- */
.cd-card { position: fixed; z-index: 2; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity; outline: none; touch-action: pan-x; cursor: grab; }
.cd-card.dragging { cursor: grabbing; }
.cd-card-bg { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.cd-card .cd-body { fill: #151515; stroke-opacity: .85; }
.cd-card-rules { transition: opacity var(--dur-fade-out) var(--ease-out); }
.cd-card.landed .cd-card-rules { opacity: 0; transition-duration: var(--dur-fade); }
.cd-card.sheet.landed .cd-card-rules { opacity: .45; }   /* a full-height sheet keeps its ruled paper, faintly, so the space below the words is still the folder */
.cd-tab { position: absolute; z-index: 1; left: var(--tabx); top: 0; height: var(--tabh); margin: 0; display: flex; align-items: center; padding-top: 2px; font: 500 24px/1 var(--sans); letter-spacing: -.008em; color: #fff; white-space: nowrap; }
.cd-in { position: absolute; z-index: 1; left: 0; right: 0; top: var(--tabh); bottom: 0; padding: 30px 40px 22px; display: flex; flex-direction: column; gap: 14px; opacity: 0; translate: 0 6px; transition: opacity var(--dur-fade-out) var(--ease-out), translate var(--spring-settle-dur) var(--spring-settle); }
.cd-card.landed .cd-in { opacity: 1; translate: 0 0; transition-duration: var(--dur-fade), var(--spring-settle-dur); transition-delay: 40ms; }
.cd-result { margin: 2px 0 0; display: flex; align-items: flex-end; gap: 18px; }
.cd-big { white-space: nowrap; font: 500 92px/.82 var(--sans); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-big-t { padding-bottom: 4px; max-width: 18em; font-size: 18px; line-height: 1.35; color: #d6d6d6; text-wrap: balance; }
.cd-lead { margin: 2px 0 0; font: 400 27px/1.2 var(--sans); letter-spacing: -.014em; color: var(--ink); text-wrap: balance; }
.cd-owned { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); text-wrap: pretty; max-width: 36em; }
.cd-nav { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; }
.cd-step { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--muted); font: 400 12.5px var(--mono); cursor: pointer; transition: color .18s var(--ease-out); }
.cd-step i { font-style: normal; display: inline-block; transition: transform var(--spring-press-dur) var(--spring-press); }
.cd-step:hover { color: var(--ink); }
.cd-step.prev:hover i { transform: translateX(-3px); }
.cd-step.next:hover i { transform: translateX(3px); }
.cd-grab { display: none; }

/* phone: the open folder is a bottom sheet with its tab still on top */
.cd-card.sheet .cd-tab { font-size: 19px; }
.cd-card.sheet .cd-in { padding: 22px 20px calc(14px + env(safe-area-inset-bottom)); gap: 14px; overflow: auto; touch-action: pan-y; overscroll-behavior: contain; }
.cd-card.sheet .cd-big { font-size: 68px; }
.cd-card.sheet .cd-big-t { font-size: 16px; }
.cd-card.sheet .cd-lead { font-size: 24px; }
.cd-card.sheet .cd-owned { font-size: 15.5px; }
.cd-card.sheet .cd-step span:not(.cd-logo) { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-card.sheet .cd-grab { display: block; position: absolute; top: calc(var(--tabh) + 8px); left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: #3a3a3a; }

@media (max-width: 700px) {
  .cd { place-items: center; }
  .cd-stage { width: 100vw; gap: 2px; }
  .cd-svg { max-height: none; }
  .cd-line { font-size: 13.5px; padding: 0 20px; }
  .cd-svg .cd-name { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-in, .cd-card.landed .cd-in { translate: none; transition: opacity 180ms ease; }
}

/* the client's mark: the same white tile as the hero's client row */
.cd-logo { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px #2a2a2a; }
.cd-logo img { width: 74%; height: 74%; object-fit: contain; }
.cd-logo.full img { width: 100%; height: 100%; object-fit: cover; }
.cd-tab { gap: 12px; }
.cd-card.sheet .cd-tab .cd-logo { width: 28px; height: 28px; border-radius: 7px; }
.cd-step .cd-logo.sm { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; }
.cd-lt { fill: #fff; }

/* the real drawer: the cabinet's own, in the 3D scene. No scrim: the desk stays in the room */
.cd.cd-gl { display: block; }
.cd-gl .cd-scrim { display: none; }
.cd-gl .cd-stage { position: fixed; width: max-content; max-width: calc(100vw - 48px); translate: -50% 0; opacity: 0; }
.cd-gl .cd-card-bg { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }

/* employer and years, small, above the result */
.cd-meta { margin: 0 0 -4px; font: 400 12.5px/1.3 var(--mono); letter-spacing: .02em; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.cd-site { color: var(--muted); text-decoration: none; transition: color .2s var(--ease-out); }
.cd-site:hover, .cd-site:focus-visible { color: var(--accent); }

/* the card's 3D object (objects.js) fills the space between the words and the nav */
.cd-obj { position: relative; flex: 1 1 0; min-height: 72px; margin: -6px -40px -6px; overflow: hidden; }
.cd-obj canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cd-card.sheet .cd-obj { flex: none; height: 170px; margin: 0 -20px; }
.cd-lbl { position: absolute; font: 400 12px/1.2 var(--mono); color: var(--muted); white-space: nowrap; pointer-events: none; transform: translate(-50%, -100%); opacity: 0; }
.cd-lbl.side { transform: translate(0, -50%); }
.cd-lbl.hot { color: var(--accent); }
.cd-lbl.start { transform: translate(-14px, -100%); }
