/* Kaitu — Careers & Business (/careers) and Bespoke packages (/bespoke). Builds on site.css components. */

/* ---------- practice tints (shared by pillars, tags and the journey builder) ---------- */
:root {
  --car: #EFE2C8; --car-ink: #8A5A10;
  --bus: #EFD9CF; --bus-ink: #8E3F2A;
  --adm: #D9E6DC; --adm-ink: var(--jade);
  --res: #D8DFEA; --res-ink: var(--indigo);
  --cit: var(--seal-tint); --cit-ink: var(--seal-deep);
  --mov: var(--paper-3); --mov-ink: var(--ink-2);
}
.pillar--c { background: var(--car); }
.pillar--b { background: var(--bus); }

/* ---------- three ways to work ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-paper); border: 1px solid rgba(26,23,18,.06); display: flex; flex-direction: column; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.way:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: var(--shadow-2); }
.way::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: var(--way, var(--seal)); }
.way--local { --way: var(--jade); } .way--foreign { --way: var(--seal); } .way--remote { --way: var(--indigo); }
.way__top { display: flex; justify-content: space-between; align-items: flex-start; }
.way__glyph { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--paper-2); font-size: 2rem; color: var(--way); box-shadow: inset 0 0 0 1px rgba(26,23,18,.06); }
.way__no { font: 500 12px/1 var(--f-mono); letter-spacing: .16em; color: var(--muted); }
.way h3 { font-family: var(--f-display); font-size: 1.8rem; letter-spacing: -.02em; line-height: 1.05; margin-top: 28px; }
.way p { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.way .way__fit { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-strong); font-family: var(--f-display); font-style: italic; font-size: 1.02rem; color: var(--ink); }
.way p:not(.way__fit) { margin-bottom: 20px; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }

/* ---------- CV formats explorer ---------- */
.cvx { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cvx__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.cvx__tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 500; background: transparent; color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-spring); }
.cvx__tab:hover { border-color: var(--ink); transform: translateY(-2px); }
.cvx__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cvx__tab:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.cvx__stage { position: relative; }
.cvx__sheet { position: relative; min-height: 440px; padding: clamp(26px, 4vw, 48px); border-radius: 6px; background: #FFFDF7; box-shadow: 14px 14px 0 -2px var(--paper-3), 14px 14px 0 -1px rgba(26,23,18,.08), var(--shadow-3); transform: rotate(-1.2deg); transition: transform .8s var(--ease-out);
  background-image: linear-gradient(rgba(26,23,18,.045) 1px, transparent 1px); background-size: 100% 34px; background-position: 0 92px; }
.cvx__stage:hover .cvx__sheet { transform: rotate(0); }
.cvx__head { display: flex; gap: 16px; align-items: center; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.cvx__flag { font-size: 40px; line-height: 1; }
.cvx__head small { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cvx__head b { display: block; margin-top: 6px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -.02em; line-height: 1.05; }
.cvx__page dl { margin: 8px 0 0; }
.cvx__page dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cvx__page dt { font: 500 11px/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--seal); }
.cvx__page dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.cvx__seal { position: absolute; right: 22px; bottom: 18px; font-family: var(--f-cjk); font-weight: 900; font-size: 15px; letter-spacing: .06em; color: var(--seal); border: 2px solid var(--seal); padding: 5px 6px; border-radius: 4px; transform: rotate(-8deg); opacity: .75; writing-mode: vertical-rl; }
.cvx__note { margin-top: 30px; display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--muted); max-width: 56ch; }
.cvx__note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--seal); }
@media (max-width: 900px) { .cvx { grid-template-columns: 1fr; } .cvx__sheet { min-height: 0; } }
@media (max-width: 560px) { .cvx__page dl > div { grid-template-columns: 1fr; gap: 6px; } .cvx__sheet { padding-bottom: 64px; } }

/* ---------- business steps ---------- */
.bsteps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 6vw, 72px); counter-reset: bs; position: relative; }
.bsteps::before { content: ''; position: absolute; left: 20px; right: 20px; top: 21px; border-top: 2px dashed rgba(26,23,18,.2); }
.bstep { position: relative; padding-right: 8px; }
.bstep b { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--seal); color: #fff; font: 500 13px/1 var(--f-mono); letter-spacing: .06em; box-shadow: 0 0 0 6px var(--paper-2); }
.bstep h3 { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.1; margin-top: 20px; }
.bstep p { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.section--paper2 .hero__ctas { margin-top: 36px; }
@media (max-width: 980px) {
  .bsteps { grid-template-columns: 1fr; gap: 0; }
  .bsteps::before { left: 21px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 2px dashed rgba(26,23,18,.2); }
  .bstep { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding: 0 0 26px; }
  .bstep h3 { margin-top: 10px; } .bstep p { grid-column: 2; }
}

/* ---------- bespoke band on /careers ---------- */
.bband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; border-radius: var(--r-xl); overflow: hidden; background: var(--card); box-shadow: var(--shadow-paper); border: 1px solid rgba(26,23,18,.06); transition: box-shadow .6s var(--ease-out), transform .6s var(--ease-out); }
.bband:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); }
.bband__art { position: relative; min-height: 320px; }
.bband__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bband__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.bband__body .eyebrow { margin-bottom: 18px; }
.bband__body p { margin-top: 16px; color: var(--ink-2); max-width: 44ch; }
.bband__go { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--seal); }
.bband__go svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.bband:hover .bband__go svg { transform: translateX(4px); }
@media (max-width: 860px) { .bband { grid-template-columns: 1fr; } .bband__art { min-height: 240px; } }

/* ---------- CTA with two actions ---------- */
.cta__pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.cta__pair .btn { margin-top: 0; }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.55); }
.btn--outline-light::before { background: var(--paper); }
.btn--outline-light:hover { --fg: var(--ink); }

/* ---------- /bespoke: the five practices ---------- */
.practices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.practice { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 210px; padding: 22px; border-radius: var(--r-lg); background: var(--tint); color: var(--ink); box-shadow: var(--shadow-paper); transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-out); }
.practice:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow-2); }
.practice__glyph { font-size: 2.4rem; color: var(--tint-ink); line-height: 1; }
.practice b { margin-top: auto; font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; letter-spacing: -.02em; }
.practice small { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.practice::after { content: '→'; position: absolute; right: 20px; top: 20px; font-size: 18px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .5s var(--ease-out); }
.practice:hover::after { opacity: 1; transform: none; }
.practice--adm, .tag--adm, .need--adm { --tint: var(--adm); --tint-ink: var(--adm-ink); }
.practice--res, .tag--res, .need--res { --tint: var(--res); --tint-ink: var(--res-ink); }
.practice--cit, .tag--cit, .need--cit { --tint: var(--cit); --tint-ink: var(--cit-ink); }
.practice--car, .tag--car, .need--car { --tint: var(--car); --tint-ink: var(--car-ink); }
.practice--bus, .tag--bus, .need--bus { --tint: var(--bus); --tint-ink: var(--bus-ink); }
.tag--kai { --tint: transparent; --tint-ink: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag--mov, .need--mov { --tint: var(--mov); --tint-ink: var(--mov-ink); }
@media (max-width: 1080px) { .practices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .practices { grid-template-columns: 1fr 1fr; } .practice { min-height: 170px; padding: 18px; } .practice b { font-size: 1.3rem; } }

/* ---------- /bespoke: composer ---------- */
.composer { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.composer > * { min-width: 0; }
.composer__form { padding: clamp(20px, 3vw, 34px); display: grid; gap: 30px; }
.composer fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.composer__label { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding: 0; }
.composer__presets > div { display: flex; flex-wrap: wrap; gap: 8px; }
.mini { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-strong); font-size: 13px; color: var(--ink-2); background: transparent; transition: background .3s, border-color .3s, color .3s; }
.mini:hover, .mini[aria-pressed="true"] { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--paper); }
.mini:focus-visible, .counter button:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }

.members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.member { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .3s, background .3s, box-shadow .3s; min-width: 0; }
.member > span:nth-child(2), .member > span:nth-child(3):not(.counter) { min-width: 0; }
.member b { display: block; font-weight: 500; font-size: var(--fs-sm); }
.member small { display: block; font-size: 12px; color: var(--muted); }
.member input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.member__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2); font-family: var(--f-cjk); font-weight: 900; font-size: 1.1rem; color: var(--ink-2); transition: background .3s, color .3s, transform .5s var(--ease-spring); }
.member--on, .member:has(input:checked), .member--count.is-on { border-color: var(--ink); background: var(--card); box-shadow: var(--shadow-1); }
.member--on .member__ic, .member:has(input:checked) .member__ic, .member--count.is-on .member__ic { background: var(--seal); color: #fff; transform: rotate(-6deg); }
.member--on { cursor: default; }
.member:focus-within { outline: 2px solid var(--seal); outline-offset: 2px; }
.member--count { grid-column: 1 / -1; cursor: default; }
.member--count > span:nth-child(2) { flex: 1; }
.counter { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.counter button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background .3s, color .3s; }
.counter button:hover { background: var(--ink); color: var(--paper); }
.counter button:disabled { opacity: .3; pointer-events: none; }
.counter output { min-width: 26px; text-align: center; font-family: var(--f-display); font-size: 1.3rem; }

.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.need { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .3s, background .3s, transform .4s var(--ease-spring); min-width: 0; }
.need:hover { border-color: rgba(26,23,18,.4); }
.need input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.need__glyph { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--tint); color: var(--tint-ink); font-family: var(--f-cjk); font-weight: 900; transition: transform .5s var(--ease-spring); }
.need b { display: block; font-weight: 500; font-size: var(--fs-sm); line-height: 1.3; }
.need small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.need > span:last-child { min-width: 0; }
.need:has(input:checked) { border-color: var(--tint-ink); background: var(--tint); }
.need:has(input:checked) .need__glyph { background: var(--tint-ink); color: #fff; transform: rotate(-8deg) scale(1.05); }
.need:focus-within { outline: 2px solid var(--seal); outline-offset: 2px; }
.composer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* the journey card and its cut-paper road */
.composer__form { position: sticky; top: 96px; }
.jrny { padding: clamp(20px, 3vw, 34px); }
.jrny__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.jrny__head .eyebrow { margin-bottom: 10px; }
.jrny__sum { font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.3; letter-spacing: -.01em; max-width: 36ch; }
.jrny__stats { display: flex; gap: 16px; flex: none; }
.jrny__stats span { display: grid; justify-items: center; font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.jrny__stats b { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; letter-spacing: -.03em; color: var(--seal); line-height: 1; margin-bottom: 6px; }

.road { --lane: 96px; position: relative; margin-top: 24px; }
.road__svg { position: absolute; left: 0; top: 0; width: var(--lane); height: 100%; overflow: visible; pointer-events: none; }
.road__edge { fill: none; stroke: #BBA985; stroke-width: 36; stroke-linecap: round; stroke-linejoin: round; }
.road__bed { fill: none; stroke: #DCCFB6; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.road__dash { fill: none; stroke: var(--card); stroke-width: 3; stroke-dasharray: 10 12; stroke-linecap: round; }
.road__stops { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
.stop { position: relative; padding-left: var(--lane); min-height: 64px; }
.stop__node { position: absolute; top: 14px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--seal); color: #fff; display: grid; place-items: center; font: 500 12px/1 var(--f-mono); box-shadow: 0 0 0 5px var(--card), 0 4px 10px -2px rgba(26,23,18,.35); z-index: 1; }
.stop--end .stop__node { background: var(--ink); font-family: var(--f-cjk); font-weight: 900; font-size: 15px; }
.stop__card { padding: 16px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid rgba(26,23,18,.07); box-shadow: var(--shadow-1); transform-origin: 0 50%; }
.stop__card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.15; }
.stop__card > p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.stop__items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.stop__items li { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); }
.stop__items li > span:last-child { min-width: 0; }
.stop__items em { font-style: normal; color: var(--muted); font-size: 12px; }
.tag { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: 11px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.stop__items .tag { min-width: 84px; justify-content: center; }
.stop__empty { margin-top: 10px !important; font-size: 13px; color: var(--muted); font-style: italic; font-family: var(--f-display); }
.jrny__foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 18px; justify-items: start; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; }
.jrny__note { font-size: 12px; color: var(--muted); }
@media (max-width: 1080px) { .composer { grid-template-columns: 1fr; } .composer__form { position: static; } }
@media (max-width: 560px) {
  .road { --lane: 58px; }
  .road__bed { stroke-width: 22; } .road__edge { stroke-width: 27; }
  .stop__node { width: 34px; height: 34px; margin-left: -17px; }
  .composer__row { grid-template-columns: 1fr; }
  .members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member:not(.member--count) { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .needs { grid-template-columns: 1fr 1fr; }
  .need { flex-direction: column; gap: 8px; padding: 12px; }
  .member small, .need small { display: none; }
  .jrny__head { flex-direction: column; }
  .stop__items li { flex-direction: column; gap: 4px; }
  .stop__items .tag { min-width: 0; }
  .jrny__foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .way, .practice, .bband, .cvx__sheet, .need, .member__ic, .need__glyph { transition: none; } }

/* timeline copy wraps in a <div> (as on /admissions): keep it in the text column on phones */
@media (max-width: 760px) {
  .careers-page .tl-item, .bespoke-page .tl-item { grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; row-gap: 14px; }
  .careers-page .tl-item > div, .bespoke-page .tl-item > div { grid-column: 2; min-width: 0; }
}
/* six cards per section here, so they sit tighter on phones */
@media (max-width: 560px) {
  .careers-page .levels { gap: 10px; }
  .careers-page .level { min-height: 0; padding: 22px 22px 24px; }
  .careers-page .level h3 { margin-top: 14px; font-size: 1.45rem; }
  .careers-page .level__bg { font-size: 4.6rem; right: 14px; left: auto; top: 10px; position: absolute; }
}
@media (max-width: 560px) {
  .careers-page .dest-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .careers-page .dest { padding: 14px 12px; gap: 10px; align-items: flex-start; }
  .careers-page .dest > div { min-width: 0; overflow-wrap: anywhere; }
  .careers-page .dest b { font-size: 14px; line-height: 1.25; }
  .careers-page .dest small { display: block; margin-top: 2px; line-height: 1.35; }
  .careers-page .dest span { font-size: 20px; }
}
@media (max-width: 400px) { .member--count .member__ic { display: none; } }
