/* Careers: TNC's own resume, a sheet of paper on the library desk */
.desk { width: min(100% - 32px, 860px); }
.desk > .eyebrow { margin-bottom: 12px; font: 600 13px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #e7c98a; }
.desk > h1 { max-width: 12em; animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.cv { width: auto; --ink: #22201c; --soft: #6b6558; --line: rgba(34, 32, 28, .16); position: relative; margin: 44px 0 0; padding: clamp(28px, 6vw, 64px); border-radius: 3px; background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 30%), #f6efe0; color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .06); transform: rotate(-.4deg); animation: sheet .9s .1s cubic-bezier(.2, .8, .2, 1) both; }
.cv::before { content: ""; position: absolute; left: 50%; top: -14px; width: 120px; height: 28px; margin-left: -60px; background: rgba(231, 201, 138, .55); transform: rotate(2deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
@keyframes sheet { from { opacity: 0; transform: translateY(40px) rotate(1.5deg); } }
.cv a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding: 0 0 28px; border-bottom: 2px solid var(--ink); }
.cv-head h2 { font: 400 clamp(56px, 9vw, 92px)/.9 var(--serif); letter-spacing: .02em; }
.role { margin-top: 10px; font-size: 17px; color: var(--soft); }
.contact { display: grid; grid-template-columns: auto auto; gap: 6px 16px; align-content: start; font-size: 15px; }
.contact dt { font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); padding-top: 2px; }
.contact dd { margin: 0; }
.cv-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.cv-row h3 { font: 600 12px/1.9 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.cv-row p { margin-top: 0; font-size: 17px; line-height: 1.55; }
.cv-row .lead { font: 400 clamp(22px, 2.6vw, 27px)/1.3 var(--serif); }
.jobs { list-style: none; padding: 0; display: grid; gap: 18px; }
.jobs li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
.when { font-size: 13px; font-weight: 600; color: #0f4a30; padding-top: 5px; }
.jobs b { font: 400 25px/1.1 var(--serif); }
.jobs b span { font: 500 19px var(--arabic, serif); margin-left: 8px; }
.jobs p { margin-top: 4px; color: var(--soft); font-size: 16px; }
.skills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { padding: 7px 14px; border: 1px solid var(--ink); border-radius: 99px; font-size: 15px; font-weight: 500; }
.skills .locked { border-style: dashed; color: var(--soft); }
.skills small { font-size: 12px; }
.ways { padding-left: 18px; display: grid; gap: 8px; font-size: 17px; line-height: 1.45; }
.turn { border-bottom: 0; }
.apply { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cta, .print { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: 99px; font: 600 16px var(--sans); text-decoration: none !important; cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.cta { background: var(--ink); color: #f6efe0; border: 0; }
.cta.soon { background: none; color: var(--soft); border: 1px dashed var(--soft); cursor: default; }
.print { background: none; border: 1px solid var(--ink); color: var(--ink); }
.cta:not(.soon):hover, .print:hover { transform: translateY(-2px); }
.sign { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font: italic 400 30px var(--serif); text-align: right; }
.sign span { display: block; font: 400 14px var(--sans); color: var(--soft); }
.nav a.here { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 820px) {
  .cv { transform: none; padding: 24px 20px; }
  .cv-row { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .jobs li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .when { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .cv, .desk > h1 { animation: none; } }
@media print {
  body { background: #fff !important; }
  body > header, .desk > .eyebrow, .desk > h1, .apply { display: none; }
  .cv { margin: 0; box-shadow: none; transform: none; animation: none; }
  .cv::before { display: none; }
}

/* Application form, typed onto the resume */
.application { display: grid; gap: 14px; margin-top: 22px; }
.application .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.application label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
.application input, .application select, .application textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: rgba(34, 32, 28, .05); color: var(--ink); font: 400 17px/1.5 "Courier Prime", "Courier New", monospace; }
.application textarea { resize: vertical; }
.application input:focus-visible, .application select:focus-visible, .application textarea:focus-visible { outline: 2px solid #2f4a3e; outline-offset: 2px; }
.application .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.application .consent { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.application .consent input { width: 20px; min-height: 20px; height: 20px; flex: none; accent-color: #2f4a3e; }
.application .cta { border: 0; }
.application .cta:disabled { opacity: .5; cursor: progress; }
.form-note { min-height: 1.4em; font-size: 15px; color: #9b2c22; }
.sent { margin-top: 20px; padding: 18px 20px; border-left: 4px solid #2f4a3e; background: rgba(47, 74, 62, .08); }
.sent b { font: 400 26px var(--serif); }
.sent p { margin-top: 4px !important; }
@media (max-width: 820px) { .application .two { grid-template-columns: minmax(0, 1fr); } }
@media print { .application, .sent { display: none !important; } }

/* Open positions: each a typed posting on paper that opens to its description and form */
.positions { display: grid; gap: 14px; margin-top: 36px; }
.posting { position: relative; border-radius: 3px; background: #f6efe0; color: #22201c; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); animation: sheet .7s cubic-bezier(.2, .8, .2, 1) both; }
.posting:nth-child(2) { animation-delay: .06s; }
.posting:nth-child(3) { animation-delay: .12s; }
.posting-head { display: grid; width: 100%; gap: 6px; padding: 24px clamp(22px, 4vw, 40px); border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.posting-head::after { content: "+"; position: absolute; right: clamp(22px, 4vw, 40px); top: 22px; font: 300 32px var(--sans); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.posting-head[aria-expanded="true"]::after { transform: rotate(45deg); }
.posting-title { padding-right: 40px; font: 400 clamp(28px, 4vw, 38px)/1.1 var(--serif); }
.posting-meta { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6b6558; }
.posting-body { padding: 0 clamp(22px, 4vw, 40px) 30px; border-top: 1px dashed rgba(34, 32, 28, .25); }
.posting-body .summary { margin-top: 20px; font: 400 21px/1.4 var(--serif); }
.posting-body h3 { margin-top: 24px; font: 600 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #6b6558; }
.posting-body ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; font: 16px/1.55 "Courier Prime", "Courier New", monospace; }
.posting.empty { padding: 28px clamp(22px, 4vw, 40px); }
.posting.empty b { font: 400 28px var(--serif); }
.posting.empty p { margin-top: 6px; color: #6b6558; }
.careers-page .application { --ink: #22201c; --soft: #6b6558; margin-top: 12px; }
.careers-page .sent { color: #22201c; }

/* One question at a time: a thin progress line, the question typed large, its answer under it */
.careers-page .application { position: relative; gap: 0; margin-top: 18px; padding: 26px 0 0; }
.steps-bar { height: 3px; border-radius: 99px; background: rgba(34, 32, 28, .1); overflow: hidden; }
.steps-bar span { display: block; height: 100%; width: 0; background: #2f4a3e; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.step-count { margin-top: 12px; font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #6b6558; }
.step { display: none; gap: 12px; margin-top: 14px; }
.step.now { display: grid; animation: step-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(var(--from, 28px)); } }
.step.shake { animation: step-shake .36s; }
@keyframes step-shake { 25% { transform: translateX(-7px); } 60% { transform: translateX(5px); } }
.application .step > label:first-child { font: 400 clamp(26px, 3.6vw, 34px)/1.15 var(--serif); color: #22201c; }
.step small { font-size: 15px; color: #6b6558; }
.application .step input:not([type="checkbox"]), .application .step textarea { min-height: 56px; padding: 12px 4px; background: none; font-size: 21px; }
.application .step textarea { font-size: 18px; line-height: 1.55; background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(70, 90, 130, .12) 27px 28px); }
.review { display: flex; flex-wrap: wrap; gap: 8px; }
.review span { padding: 6px 12px; border-radius: 99px; background: rgba(34, 32, 28, .06); font: 15px "Courier Prime", "Courier New", monospace; overflow-wrap: anywhere; }
.application .step .consent { margin-top: 6px; font-size: 15px; color: #22201c; }
.careers-page .application .apply { align-items: center; margin-top: 18px; }
.application .back { min-height: 48px; padding: 0 20px; border: 1px solid rgba(34, 32, 28, .3); border-radius: 99px; background: none; color: #22201c; font: 600 16px var(--sans); cursor: pointer; }
.application .back:hover { border-color: #22201c; }
.application [hidden] { display: none !important; }
.key-hint { font-size: 14px; color: #6b6558; }
.careers-page .form-note { min-height: 1.4em; margin-top: 10px; }
@media (hover: none) { .key-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .step.now, .step.shake { animation: none; } .steps-bar span { transition: none; } }
@keyframes sheet { from { opacity: 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) { .posting { animation: none; } }
.careers-mail { margin-top: 28px; font-size: 16px; color: rgba(243, 230, 204, .8); }
.careers-mail a { color: #f3e6cc; text-decoration: underline; text-underline-offset: 4px; }

/* Open roles as sticky notes on the desk; an opened note grows into a full sheet */
.careers-page .positions { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; margin-top: 40px; align-items: start; }
.careers-page .posting { position: relative; border-radius: 2px 2px 14px 2px; background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 40%), var(--tone, #ffe58a); color: #2a2418; box-shadow: 0 1px 1px rgba(0, 0, 0, .1), 0 18px 30px rgba(0, 0, 0, .35); transform: rotate(var(--tilt, 0deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; animation: note-in .6s calc(var(--i, 0) * 80ms) cubic-bezier(.2, .9, .3, 1.2) both; }
.careers-page .posting::before { content: ""; position: absolute; left: 50%; top: -12px; width: 86px; height: 26px; margin-left: -43px; background: rgba(255, 255, 255, .45); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); transform: rotate(calc(var(--tilt, 0deg) * -1.5)); }
.careers-page .posting::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 0 0 14px 0; background: linear-gradient(135deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .1) 50%); }
.careers-page .posting:not(.open):hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 2px 2px rgba(0, 0, 0, .1), 0 28px 44px rgba(0, 0, 0, .4); }
.careers-page .posting-head { min-height: 230px; align-content: start; padding: 34px 26px 24px; }
.careers-page .posting-head::after { display: none; }
.careers-page .posting-title { padding: 0; font: 700 clamp(34px, 3.4vw, 42px)/1 "Caveat", cursive; letter-spacing: 0; color: #2a2418; }
.careers-page .posting-meta { margin-top: 8px; color: rgba(42, 36, 24, .65); }
.posting-open { margin-top: 26px; display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--sans); color: #2a2418; }
.posting-open::after { content: "→"; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.careers-page .posting:hover .posting-open::after { transform: translateX(4px); }
.careers-page .posting.open { grid-column: 1 / -1; transform: none; border-radius: 4px; }
.careers-page .posting.open .posting-head { min-height: 0; padding-bottom: 8px; }
.careers-page .posting.open .posting-open { display: none; }
.careers-page .posting-body { border-top: 1.5px dashed rgba(42, 36, 24, .25); padding: 0 26px 30px; }
.careers-page .posting-body h3, .careers-page .posting-body .summary { color: #2a2418; }
.careers-page .positions.has-open .posting:not(.open) { opacity: .55; }
.careers-page .positions.has-open .posting:not(.open):hover { opacity: 1; }
.careers-page .application input, .careers-page .application textarea { background: rgba(255, 255, 255, .45); }
.careers-page .posting.empty { grid-column: 1 / -1; transform: none; }
.careers-page .posting.empty::before { display: none; }
@keyframes note-in { from { opacity: 0; transform: translateY(30px) rotate(calc(var(--tilt, 0deg) * 3)) scale(.9); } }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 820px) { .careers-page .positions { grid-template-columns: minmax(0, 1fr); gap: 22px; } .careers-page .posting-head { min-height: 170px; } }
@media (prefers-reduced-motion: reduce) { .careers-page .posting { animation: none; } }

/* Rubber-stamp filters: inked, a little crooked, and they thunk down when pressed */
.stamps { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 30px; }
.stamp { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px; border: 3px solid currentColor; border-radius: 8px; background: none; color: rgba(231, 201, 138, .78); font: 700 17px "Courier Prime", "Courier New", monospace; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transform: rotate(var(--r, -2deg)); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0), 0 0 0 0 transparent; transition: color .25s, transform .3s cubic-bezier(.2, .8, .2, 1); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -0.8 1.45'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -0.8 1.45'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stamp::before { content: ""; position: absolute; inset: 3px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .7; }
.stamp small { font: 700 13px "Courier Prime", monospace; letter-spacing: 0; opacity: .8; }
.stamp:hover { color: #f0d79e; transform: rotate(0deg) scale(1.04); }
.stamp[aria-pressed="true"] { color: #ff6f57; text-shadow: 0 0 12px rgba(255, 111, 87, .25); }
.stamp.thunk { animation: thunk .42s cubic-bezier(.2, 1.4, .4, 1); }
.stamp.thunk::after { content: ""; position: absolute; inset: -8px; border-radius: 14px; border: 2px solid currentColor; opacity: 0; animation: ink .5s ease-out; }
@keyframes thunk { 0% { transform: rotate(var(--r)) scale(1.35) translateY(-10px); } 55% { transform: rotate(var(--r)) scale(.92); } 100% { transform: rotate(var(--r)) scale(1); } }
@keyframes ink { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
.careers-page .posting.filtered { display: none; }
/* Notes peel off and stick back on as the filter changes */
::view-transition-old(*):only-child { animation: note-peel .35s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(*):only-child { animation: note-stick .5s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes note-peel { to { opacity: 0; transform: translateY(-40px) rotate(-8deg) scale(.85); } }
@keyframes note-stick { from { opacity: 0; transform: translateY(40px) rotate(6deg) scale(.85); } }
@media (prefers-reduced-motion: reduce) { .stamp.thunk, .stamp.thunk::after { animation: none; } }
