/* ============================================================
   Careers — corporate layout. Builds on krung.css + page-base.css + contact.css
   (form fields, select, .ct-btn, success/error states).
   Split hero with photo collage · brand strip · why S&T (sticky intro + perks) ·
   teams · open positions table · hiring steps · apply (navy aside + form).
   ============================================================ */

.cr {
    --blue: #005bac;
    --navy: #0b2545;
    --line: rgba(13, 35, 64, .1);
    --soft: #f4f7fb;
    padding: clamp(118px, 11vw, 150px) 0 clamp(70px, 8vw, 110px);
}

.cr-wrap {
    max-width: calc(1240px + 2 * var(--pad));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* shared type */
.cr-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}
.cr-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }

.cr-h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; color: var(--ink); }
.cr-body { font-size: 15.5px; line-height: 1.7; color: var(--muted); }

.cr-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: clamp(32px, 3.6vw, 52px);
}
.cr-head > div { max-width: 640px; }
.cr-head > .cr-body { max-width: 380px; padding-bottom: 4px; }

.cr-why, .cr-teams, .cr-roles, .cr-process, .cr-apply { margin-top: clamp(90px, 10vw, 150px); }

/* load-in for hero pieces (body.ready comes from about.js) */
.cr-in { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--d, 0s), transform 1.1s var(--out) var(--d, 0s); }
.ready .cr-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero */
.cr-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.cr-h1 {
    margin-bottom: 26px;
    font-size: clamp(40px, 4.6vw, 66px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.05em;
    color: var(--ink);
}
.cr-h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.cr-h1 .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--out) .15s; }
.cr-h1 .ln + .ln > span { transition-delay: .27s; }
.ready .cr-h1 .ln > span { transform: none; }
.cr-h1 em { font-style: normal; color: var(--blue); }

.cr-lead { max-width: 520px; margin-bottom: 34px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: var(--muted); }

.cr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.cr-textlink {
    position: relative;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.cr-textlink::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform-origin: left; transition: transform .5s var(--out); }
.cr-textlink:hover { color: var(--blue); }
.cr-textlink:hover::after { transform: scaleX(.4); }

.cr-facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0;
    margin: clamp(40px, 4.5vw, 60px) 0 0;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.cr-facts div { padding: 0 clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line); }
.cr-facts div:first-child { padding-left: 0; border-left: 0; }
.cr-facts dt { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cr-facts dd { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* photo collage */
.cr-hero-media { position: relative; margin: 0 0 0 auto; width: 100%; max-width: 560px; padding: 0 0 56px 56px; }
.cr-hero-main { display: block; aspect-ratio: 1 / 1.08; overflow: hidden; border-radius: 6px; background: #dfe8f2; }
.cr-hero-main img { width: 100%; height: 100%; object-fit: cover; object-position: 46% center; transition: transform 1.6s var(--out); }
.cr-hero-media:hover .cr-hero-main img { transform: scale(1.03); }
.cr-hero-inset {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 6px;
    background: #dfe8f2;
    box-shadow: 0 24px 50px -24px rgba(11, 37, 69, .35);
}
.cr-hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.cr-hero-media::before {
    content: '';
    position: absolute;
    right: -18px;
    top: -18px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(rgba(0, 91, 172, .35) 1.2px, transparent 1.4px);
    background-size: 12px 12px;
    z-index: -1;
}

.cr-hiring {
    position: absolute;
    right: -22px;
    top: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 16px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 20px 44px -20px rgba(11, 37, 69, .4);
}
.cr-hiring b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.cr-hiring span:last-child { font-size: 12.5px; color: var(--muted); }
.cr-hiring-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1f9d55; }
.cr-hiring-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #1f9d55; animation: crPing 2s ease-out infinite; }
@keyframes crPing { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

/* ---------------------------------------------------------------- brand strip */
.cr-brands { display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); margin-top: clamp(60px, 7vw, 100px); }
.cr-brands > p { flex: none; max-width: 150px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--light); }
.cr-brands ul {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0;
    padding: 26px 0 26px clamp(24px, 4vw, 60px);
    list-style: none;
    border-left: 1px solid var(--line);
}
.cr-brands img { display: block; height: 30px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .4s, opacity .4s; }
.cr-brands li:hover img { filter: none; opacity: 1; }

/* ---------------------------------------------------------------- why S&T */
.cr-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.cr-why-intro { position: sticky; top: 120px; }
.cr-why-intro .cr-h2 { margin-bottom: 20px; }
.cr-why-intro .cr-body { max-width: 440px; }
.cr-why-img { display: block; margin-top: 34px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #dfe8f2; }
.cr-why-img img { width: 100%; height: 100%; object-fit: cover; }

.cr-perk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cr-perk { padding: 34px 30px 34px 0; border-bottom: 1px solid var(--line); }
.cr-perk:nth-child(2n) { padding: 34px 0 34px 30px; border-left: 1px solid var(--line); }
.cr-perk-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #eaf2fb;
    color: var(--blue);
    transition: background-color .35s, color .35s;
}
.cr-perk-ico .ico { width: 21px; height: 21px; }
.cr-perk:hover .cr-perk-ico { background: var(--blue); color: #fff; }
.cr-perk h3 { margin-bottom: 8px; font-size: 17.5px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.cr-perk p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ---------------------------------------------------------------- teams */
.cr-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.cr-team {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .35s, box-shadow .5s var(--out), transform .6s var(--out);
}
.cr-team:hover { border-color: rgba(0, 91, 172, .3); box-shadow: 0 28px 50px -30px rgba(11, 37, 69, .35); transform: translateY(-4px); }
.cr-team-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe8f2; }
.cr-team-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.cr-team:hover .cr-team-img img { transform: scale(1.05); }
.cr-team-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.cr-team-count { margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.cr-team h3 { margin-bottom: 10px; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; color: var(--ink); }
.cr-team p { margin-bottom: 22px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cr-team-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink); transition: color .3s, gap .4s var(--out); }
.cr-team-link .ico { width: 15px; height: 15px; }
.cr-team:hover .cr-team-link { color: var(--blue); gap: 12px; }

/* ---------------------------------------------------------------- open positions */
.cr-count {
    display: inline-grid;
    place-items: center;
    vertical-align: super;
    min-width: 40px;
    height: 28px;
    margin-left: 6px;
    padding: 0 9px;
    border-radius: 6px;
    background: #eaf2fb;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--blue);
}

.cr-table { border-top: 1.5px solid var(--ink); }
.cr-tr {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, .85fr) 120px;
    gap: 24px;
    align-items: center;
}
.cr-th { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--light); }

.cr-job { position: relative; padding: 28px 20px; border-bottom: 1px solid var(--line); transition: background-color .35s; }
.cr-job::before { content: ''; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--blue); transform: scaleY(0); transition: transform .45s var(--out); }
.cr-job:hover { background: var(--soft); }
.cr-job:hover::before { transform: none; }
.cr-job-title h3 { margin-bottom: 6px; font-size: 18.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.cr-job-title p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cr-td { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.cr-td .ico { flex: none; width: 15px; height: 15px; color: var(--blue); }

.cr-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: background-color .3s, border-color .3s, color .3s;
}
.cr-apply-btn .ico { width: 15px; height: 15px; transition: transform .4s var(--out); }
.cr-apply-btn:hover, .cr-job:hover .cr-apply-btn { background: var(--blue); border-color: var(--blue); color: #fff; }
.cr-job:hover .cr-apply-btn .ico { transform: translateX(3px); }

.cr-empty { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---------------------------------------------------------------- hiring steps */
.cr-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.cr-step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.cr-step::before { content: ''; position: absolute; left: 0; top: -1px; width: 48px; height: 2px; background: var(--blue); transition: width .7s var(--out); }
.cr-step:hover::before { width: 100%; }
.cr-step-no { display: block; margin-bottom: 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.cr-step h3 { margin-bottom: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.cr-step p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ---------------------------------------------------------------- apply */
.cr-apply {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
    gap: 0;
    scroll-margin-top: 100px;
    overflow: hidden;
    border-radius: 10px;
    padding-left: 0;
    padding-right: 0;
    max-width: 1240px;
    width: calc(100% - 2 * var(--pad));
    border: 1px solid var(--line);
}

.cr-apply-aside {
    position: relative;
    padding: clamp(32px, 3.6vw, 52px);
    background: var(--navy);
    color: rgba(255, 255, 255, .75);
    isolation: isolate;
}
.cr-apply-aside::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 40px rgba(255, 255, 255, .025), 0 0 0 80px rgba(255, 255, 255, .02);
    z-index: -1;
}
.cr-apply-aside .cr-eyebrow { color: #7fb8ff; }
.cr-apply-aside h2 { margin-bottom: 14px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; color: #fff; }
.cr-apply-aside > p { margin-bottom: 34px; font-size: 15px; line-height: 1.65; }
.cr-apply-aside h3 { margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.cr-check { display: grid; gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; font-size: 14.5px; }
.cr-check li { line-height: 1.5; display: flex; align-items: flex-start; gap: 12px; }
.cr-check .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%; background: rgba(127, 184, 255, .16); color: #7fb8ff; stroke-width: 2.4; }

.cr-contact { display: grid; gap: 10px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.cr-contact span { font-size: 13px; }
.cr-contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; word-break: break-all; }
.cr-contact a .ico { flex: none; width: 16px; height: 16px; color: #7fb8ff; }
.cr-contact a:hover { color: #7fb8ff; }

.cr-form-card { padding: clamp(28px, 3.6vw, 52px); background: #fff; }
.cr-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cr-form-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.cr-form-head p { font-size: 13px; color: var(--light); }

/* squarer, bordered fields on this page */
.cr-form-card .ct-field input,
.cr-form-card .ct-field textarea,
.cr-form-card .ct-select select { border: 1px solid rgba(13, 35, 64, .16); border-radius: 6px; background: #fff; }
.cr-form-card .ct-field input:hover,
.cr-form-card .ct-field textarea:hover,
.cr-form-card .ct-select select:hover { border-color: rgba(13, 35, 64, .3); }
.cr-form-card .ct-field input:focus,
.cr-form-card .ct-field textarea:focus,
.cr-form-card .ct-select select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 91, 172, .12); }
.cr-form-card .ct-select .ico { width: 16px; height: 16px; }
.cr-form-card .ct-error { border-radius: 6px; }

.ct-field .cr-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1.5px dashed rgba(0, 91, 172, .32);
    border-radius: 6px;
    background: #fafcfe;
    cursor: pointer;
    transition: border-color .25s, background-color .25s;
}
.cr-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cr-drop:hover, .cr-drop.is-over { border-color: var(--blue); background: #f1f7fd; }
.cr-drop.has-file { border-style: solid; border-color: rgba(31, 157, 85, .5); }
.cr-drop.has-file .cr-drop-ico { background: #1f9d55; color: #fff; }
.cr-drop-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; background: #eaf2fb; color: var(--blue); transition: background-color .25s, color .25s; }
.cr-drop-ico .ico { width: 20px; height: 20px; }
.cr-drop-text { font-size: 14px; color: var(--muted); }
.cr-drop-text b { color: var(--ink); font-weight: 600; word-break: break-all; }
.cr-drop-text small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--light); }

.cr-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 6px; }
.cr-submit small { font-size: 12.5px; color: var(--light); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .cr-th { display: none; }
    .cr-job { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
    .cr-job-title { flex: 1 1 100%; margin-bottom: 4px; }
    .cr-job > [role="cell"]:last-child { margin-left: auto; }
    .cr-apply-btn { width: auto; padding: 10px 18px; }
}
@media (max-width: 1000px) {
    .cr-hero { grid-template-columns: 1fr; }
    .cr-hero-media { margin: 0; max-width: 620px; }
    .cr-hiring { right: 16px; }
    .cr-why { grid-template-columns: 1fr; }
    .cr-why-intro { position: static; }
    .cr-team-grid { grid-template-columns: 1fr 1fr; }
    .cr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .cr-apply { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .cr-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cr-brands { flex-direction: column; align-items: flex-start; gap: 6px; }
    .cr-brands > p { max-width: none; }
    .cr-brands ul { flex-wrap: wrap; justify-content: flex-start; gap: 22px 34px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); width: 100%; }
    .cr-brands img { height: 24px; }
}

@media (max-width: 600px) {
    .cr-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cr-facts div { padding: 0 12px; }
    .cr-hero-media { padding: 0 0 40px 28px; }
    .cr-hiring { right: 12px; top: 14px; padding: 11px 14px; }
    .cr-perk-grid { grid-template-columns: 1fr; }
    .cr-perk, .cr-perk:nth-child(2n) { padding: 28px 0; border-left: 0; }
    .cr-team-grid { grid-template-columns: 1fr; }
    .cr-steps { grid-template-columns: 1fr; }
    .cr-job { padding: 24px 4px; }
    .cr-job > [role="cell"]:last-child { flex: 1 1 100%; margin-left: 0; }
    .cr-apply { width: calc(100% - 2 * var(--pad)); }
}

@media (prefers-reduced-motion: reduce) {
    .cr-in, .cr-h1 .ln > span { opacity: 1; transform: none; transition: none; }
    .cr-hiring-dot::after { animation: none; }
}
.cr-h1 .ln + .ln + .ln > span { transition-delay: .39s; }
