:root {
    --jc-primary: #722282;
    --jc-primary-dark: #571963;
    --jc-soft: #f2e8f5;
    --jc-soft-strong: #e7d4ec;
    --jc-ink: #111218;
    --jc-body: #382d3d;
    --jc-muted: #6d6072;
    --jc-paper: #fbf9fc;
    --jc-white: #fff;
    --jc-border: #dfd4e2;
    --jc-focus: #d4a7df;
    --jc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --jc-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --jc-shadow: 0 22px 55px rgba(74, 23, 84, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.job-campus { margin: 0; color: var(--jc-body); background: var(--jc-paper); font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body.job-campus img { display: block; max-width: 100%; }
body.job-campus a { color: inherit; }
body.job-campus button,
body.job-campus input,
body.job-campus select { font: inherit; }
body.job-campus ::selection { color: var(--jc-white); background: var(--jc-primary); }
body.job-campus :is(a, button, input, select, summary):focus-visible { outline: 3px solid var(--jc-focus); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; color: var(--jc-white); background: var(--jc-primary); transform: translateY(-160%); transition: transform 180ms var(--jc-ease-out); }
.skip-link:focus { transform: translateY(0); }
.site-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; color: var(--jc-white); background: var(--jc-ink); }
.site-header__inner { min-height: 86px; display: flex; align-items: center; justify-content: center; }
.site-brand { display: inline-flex; align-items: center; gap: 20px; text-decoration: none; }
.site-brand img { width: 175px; height: 50px; object-fit: contain; }

.job-hero { position: relative; overflow: hidden; color: var(--jc-white); background: var(--jc-primary); }
.job-hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 24px 24px; mask-image: linear-gradient(90deg, #000, transparent 64%); }
.job-hero__grid { position: relative; min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 70px; padding-block: 86px 104px; }
.job-hero__copy { position: relative; z-index: 2; max-width: 680px; animation: jc-rise-in 700ms var(--jc-ease-out) both; }
.eyebrow { margin: 0 0 16px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--purple { color: var(--jc-primary); }
.job-hero h1,
.detail-hero h1 { max-width: 760px; margin: 0; font-size: clamp(46px, 5.7vw, 78px); line-height: .98; letter-spacing: -.052em; text-wrap: balance; }
.job-hero__intro { max-width: 590px; margin: 28px 0 34px; color: rgba(255,255,255,.86); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; text-wrap: pretty; }
.primary-button,
.secondary-button,
.search-button,
.login-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 6px; font-weight: 700; text-decoration: none; cursor: pointer; transition: color 180ms ease, background-color 180ms ease, transform 140ms ease; }
body.job-campus .primary-button { padding: 13px 22px; color: var(--jc-ink); background: var(--jc-white); }
.primary-button:active,
.secondary-button:active,
.search-button:active,
.login-button:active { transform: translateY(1px); }

.job-hero__visual { position: relative; width: min(100%, 470px); aspect-ratio: 1; justify-self: end; animation: jc-rise-in 700ms 80ms var(--jc-ease-out) both; }
.hero-orbit { position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; animation: jc-orbit 18s linear infinite; }
.hero-orbit::before,
.hero-orbit::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--jc-white); }
.hero-orbit::before { top: 9%; left: 8%; }
.hero-orbit::after { right: 0; bottom: 23%; background: var(--jc-focus); }
.hero-emblem { position: absolute; z-index: 2; inset: 24% 18% 22% 22%; display: grid; place-items: center; padding: 42px; background: var(--jc-white); border-radius: 50% 50% 12px 50%; box-shadow: var(--jc-shadow); }
.hero-emblem img { width: min(100%, 230px); height: auto; }
.hero-label { position: absolute; z-index: 3; padding: 9px 16px; border-radius: 6px; font-weight: 700; box-shadow: var(--jc-shadow); }
.hero-label--stage { top: 11%; right: 1%; color: var(--jc-primary-dark); background: var(--jc-soft); transform: rotate(4deg); }
.hero-label--work { bottom: 7%; left: 1%; color: var(--jc-white); background: var(--jc-ink); transform: rotate(-4deg); }
.hero-tile { position: absolute; width: 70px; aspect-ratio: 1; }
.hero-tile--line { top: 7%; left: 5%; border: 2px solid rgba(255,255,255,.5); border-radius: 50% 0 50% 50%; }
.hero-tile--arc { right: 0; bottom: 0; border-radius: 70px 0 0; background: var(--jc-primary-dark); }

.jobs-section { padding-block: 104px 120px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); align-items: end; gap: 50px; margin-bottom: 40px; }
.section-heading h2,
.offer-content > h2,
.offer-aside h2 { margin: 0; color: var(--jc-ink); font-size: clamp(34px, 4.3vw, 58px); line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; }
.section-heading > p { max-width: 44ch; margin: 0 0 4px; color: var(--jc-muted); font-size: 18px; }
.section-heading--compact { grid-template-columns: 1fr; }

.job-search { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(210px, .7fr) auto; align-items: end; gap: 16px; padding: 22px; border: 1px solid var(--jc-border); border-radius: 12px; background: var(--jc-white); box-shadow: 0 16px 45px rgba(50, 21, 56, .06); }
.field-group { display: grid; gap: 8px; }
.field-group label { color: var(--jc-ink); font-size: 14px; font-weight: 700; }
.field-control { position: relative; }
.field-control svg { position: absolute; top: 50%; left: 16px; color: var(--jc-primary); transform: translateY(-50%); pointer-events: none; }
.field-control input { padding-left: 48px; }
.field-group :is(input, select) { width: 100%; min-height: 52px; border: 1px solid #cfc2d3; border-radius: 6px; padding: 12px 15px; color: var(--jc-ink); background: var(--jc-white); }
.field-group :is(input, select)::placeholder { color: #776a7c; opacity: 1; }
.field-group :is(input, select):focus { border-color: var(--jc-primary); }
.search-button,
.login-button { padding: 13px 24px; color: var(--jc-white); background: var(--jc-primary); }
.results-summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px 12px; }
.results-summary p { margin: 0; color: var(--jc-muted); }
.results-summary strong { color: var(--jc-ink); font-variant-numeric: tabular-nums; }
.results-summary a { color: var(--jc-primary); font-weight: 700; text-underline-offset: 4px; }

.job-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.job-list--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.job-card { position: relative; min-height: 312px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--jc-border); border-radius: 12px; background: var(--jc-white); animation: jc-rise-in 600ms var(--jc-ease-out) both; }
.job-card:nth-child(2) { animation-delay: 60ms; }
.job-card:nth-child(3) { animation-delay: 120ms; }
.job-card:nth-child(4) { animation-delay: 180ms; }
.job-card__identity { display: flex; align-items: center; gap: 16px; }
.job-card__identity img,
.job-card__monogram { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: contain; }
.job-card__identity img { padding: 8px; border: 1px solid var(--jc-border); background: var(--jc-white); }
.job-card__monogram { display: grid; place-items: center; color: var(--jc-primary); background: var(--jc-soft); font-size: 26px; font-weight: 800; }
.job-card__type { display: inline-block; margin-bottom: 2px; color: var(--jc-primary); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.job-card__identity p { margin: 0; color: var(--jc-muted); font-size: 15px; }
.job-card h3 { margin: 30px 0 34px; color: var(--jc-ink); font-size: clamp(22px, 2.4vw, 29px); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.job-card h3 a { text-decoration: none; }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; }
.job-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--jc-border); color: var(--jc-muted); font-size: 13px; }
.arrow-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; color: var(--jc-primary); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.arrow-link svg { transition: transform 180ms var(--jc-ease-out); }

.empty-state { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 34px; padding: 50px; border-radius: 12px; color: var(--jc-body); background: var(--jc-soft); }
.empty-state > span { color: var(--jc-primary); font-size: 100px; font-weight: 800; line-height: 1; }
.empty-state h3 { margin: 0 0 8px; color: var(--jc-ink); font-size: 26px; }
.empty-state p { margin: 0 0 22px; }
body.job-campus .secondary-button { padding: 12px 20px; color: var(--jc-white); background: var(--jc-primary); }

.site-footer { padding-top: 70px; color: rgba(255,255,255,.78); background: var(--jc-ink); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; padding-bottom: 60px; }
.site-footer__inner img { width: 175px; height: 50px; object-fit: contain; }
.site-footer__inner p { max-width: 480px; margin: 22px 0 0; }
.site-footer__links { display: grid; align-content: start; gap: 12px; }
.site-footer__links a { min-height: 44px; display: flex; align-items: center; color: var(--jc-white); font-weight: 700; text-underline-offset: 4px; }
.site-footer__bottom { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

.detail-hero { position: relative; overflow: hidden; padding-block: 48px 74px; color: var(--jc-white); background: var(--jc-primary); }
.detail-hero::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 360px; height: 360px; border: 60px solid rgba(255,255,255,.08); border-radius: 50%; }
.back-link { position: relative; z-index: 2; min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.82); font-weight: 700; text-decoration: none; }
.back-link--dark { color: var(--jc-primary); }
.detail-hero__content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; margin-top: 56px; }
.detail-hero h1 { font-size: clamp(42px, 5.2vw, 70px); }
.detail-hero time { display: block; margin-top: 24px; color: rgba(255,255,255,.72); }
.detail-company { width: 180px; display: grid; justify-items: center; gap: 14px; padding: 22px; color: var(--jc-ink); text-align: center; background: var(--jc-white); border-radius: 12px; box-shadow: var(--jc-shadow); }
.detail-company img,
.detail-company__monogram { width: 104px; height: 104px; object-fit: contain; border-radius: 50%; }
.detail-company img { padding: 10px; border: 1px solid var(--jc-border); }
.detail-company__monogram { display: grid; place-items: center; color: var(--jc-primary); background: var(--jc-soft); font-size: 44px; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 72px; padding-block: 90px 110px; }
.offer-content > h2 { margin-bottom: 34px; font-size: clamp(32px, 4vw, 50px); }
.offer-content__text { max-width: 72ch; color: #342b37; font-size: 17px; line-height: 1.85; white-space: normal; overflow-wrap: anywhere; }
.offer-content__text > :first-child { margin-top: 0; }
.offer-content__text > :last-child { margin-bottom: 0; }
.offer-content__text :is(p, ul, ol, blockquote, pre) { margin-block: 0 1.35em; }
.offer-content__text :is(ul, ol) { padding-left: 1.5em; }
.offer-content__text :is(h2, h3, h4) { margin: 1.6em 0 .65em; color: var(--jc-ink); line-height: 1.2; letter-spacing: -.02em; }
.offer-content__text h2 { font-size: 30px; }
.offer-content__text h3 { font-size: 24px; }
.offer-content__text h4 { font-size: 20px; }
.offer-content__text a { color: var(--jc-primary); font-weight: 700; text-underline-offset: 3px; }
.offer-content__text blockquote { padding: 14px 20px; border-left: 4px solid var(--jc-primary); background: var(--jc-soft); }
.offer-content__text pre { overflow-x: auto; padding: 18px; border-radius: 6px; background: var(--jc-soft); }
.offer-aside { position: sticky; top: 28px; padding: 28px; border-radius: 12px; background: var(--jc-soft); }
.offer-aside h2 { margin-bottom: 22px; font-size: 26px; }
.offer-aside dl { margin: 0 0 26px; }
.offer-aside dl div { padding-block: 14px; border-bottom: 1px solid #d9c8de; }
.offer-aside dt { color: var(--jc-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.offer-aside dd { margin: 3px 0 0; color: var(--jc-ink); font-weight: 700; }
.offer-aside .secondary-button { width: 100%; }
.related-section { padding-block: 90px 110px; background: var(--jc-soft); }
.related-section .job-card { border-color: transparent; }

.login-page { min-height: 100dvh; overflow-x: hidden; }
.login-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, .88fr) minmax(520px, 1.12fr); }
.login-brand { position: relative; overflow: hidden; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 52px clamp(36px, 5vw, 78px) 64px; color: var(--jc-white); background: var(--jc-primary); }
.login-brand::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 24px 24px; mask-image: linear-gradient(#000, transparent 72%); }
.login-brand__logo,
.login-brand__copy { position: relative; z-index: 2; }
.login-brand__logo { align-self: flex-start; }
.login-brand__logo img { width: 210px; height: 60px; object-fit: contain; }
.login-brand__copy { max-width: 570px; margin-block: auto; padding-block: 80px; animation: jc-rise-in 700ms var(--jc-ease-out) both; }
.login-brand__copy h2 { margin: 0 0 24px; font-size: clamp(38px, 4.5vw, 66px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.login-brand__copy > p:last-child { max-width: 50ch; margin: 0; color: rgba(255,255,255,.82); font-size: 18px; }
.login-brand__shapes span { position: absolute; z-index: 1; }
.login-brand__shapes span:nth-child(1) { right: -70px; bottom: -80px; width: 280px; height: 280px; border: 45px solid rgba(255,255,255,.1); border-radius: 50%; }
.login-brand__shapes span:nth-child(2) { right: 80px; top: 16%; width: 56px; height: 56px; border-radius: 50% 0 50% 50%; background: var(--jc-focus); }
.login-brand__shapes span:nth-child(3) { left: 0; bottom: 0; width: 110px; height: 110px; border-radius: 0 100% 0 0; background: var(--jc-primary-dark); }
.login-panel { min-height: 100%; display: flex; flex-direction: column; padding: 44px clamp(32px, 7vw, 110px); background: var(--jc-paper); }
.login-panel__inner { width: min(100%, 500px); margin: auto; padding-block: 64px; animation: jc-rise-in 700ms 80ms var(--jc-ease-out) both; }
.login-panel h1 { margin: 0; color: var(--jc-ink); font-size: clamp(38px, 4vw, 58px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.login-intro { margin: 18px 0 32px; color: var(--jc-muted); font-size: 17px; }
.login-form { display: grid; gap: 22px; }
.login-form .field-group :is(input, select) { min-height: 56px; background: var(--jc-white); }
.login-button { width: 100%; margin-top: 6px; }
.login-help { margin: 24px 0 0; color: var(--jc-muted); font-size: 13px; text-align: center; }
.form-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 26px; padding: 14px 16px; border-left: 4px solid #a1293d; color: #721f2e; background: #f9e7ea; }
.form-alert svg { flex: 0 0 auto; margin-top: 2px; }

@keyframes jc-rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes jc-orbit { to { transform: rotate(360deg); } }

@media (hover: hover) and (pointer: fine) {
    body.job-campus .primary-button:hover { color: var(--jc-white); background: var(--jc-ink); }
    .search-button:hover,
    body.job-campus .secondary-button:hover,
    .login-button:hover { background: var(--jc-primary-dark); }
    .job-card { transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--jc-ease-out); }
    .job-card:hover { border-color: var(--jc-primary); box-shadow: var(--jc-shadow); transform: translateY(-4px); }
    .job-card:hover .arrow-link svg { transform: translateX(4px); }
}

@media (max-width: 980px) {
    .job-hero__grid { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding-block: 70px 82px; }
    .job-hero__visual { width: min(100%, 440px); justify-self: center; }
    .job-search { grid-template-columns: 1fr 1fr; }
    .search-button { grid-column: 1 / -1; }
    .job-list--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: 1fr; gap: 52px; }
    .offer-aside { position: static; }
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { min-height: 380px; padding-bottom: 48px; }
    .login-brand__copy { margin: 64px 0 0; padding: 0; }
    .login-brand__copy > p:last-child { display: none; }
    .login-panel { min-height: auto; }
}

@media (max-width: 720px) {
    .site-shell { width: min(100% - 32px, 1180px); }
    .site-header__inner { min-height: 76px; }
    .site-brand img { width: 147px; height: 42px; }
    .job-hero__grid { padding-block: 56px 70px; }
    .job-hero h1 { font-size: clamp(40px, 12vw, 58px); }
    .job-hero__visual { max-width: 360px; }
    .hero-label { font-size: 13px; }
    .jobs-section { padding-block: 74px 90px; }
    .section-heading { grid-template-columns: 1fr; gap: 16px; }
    .job-search { grid-template-columns: 1fr; padding: 18px; }
    .search-button { grid-column: auto; }
    .results-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
    .job-list,
    .job-list--related { grid-template-columns: 1fr; }
    .job-card { min-height: 290px; padding: 24px; }
    .empty-state { grid-template-columns: 1fr; padding: 32px 24px; }
    .empty-state > span { font-size: 72px; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 34px; }
    .site-footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding-block: 18px; }
    .detail-hero { padding-block: 32px 58px; }
    .detail-hero__content { grid-template-columns: 1fr; gap: 34px; margin-top: 34px; }
    .detail-company { width: 100%; grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
    .detail-company img,
    .detail-company__monogram { width: 76px; height: 76px; }
    .detail-layout { width: min(100% - 32px, 1180px); padding-block: 66px 84px; }
    .related-section { padding-block: 70px 88px; }
    .login-brand { display: none; }
    .login-brand__logo img { width: 175px; height: 50px; }
    .login-brand__copy { margin-top: 56px; }
    .login-brand__copy h2 { font-size: clamp(36px, 10vw, 48px); }
    .login-panel { padding: 28px 24px; }
    .login-panel__inner { padding-block: 58px 40px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .job-hero__copy,
    .job-hero__visual,
    .job-card,
    .login-brand__copy,
    .login-panel__inner { animation: jc-fade-in 150ms ease both; }
    .hero-orbit { animation: none; }
    .job-card,
    .arrow-link svg { transition: none; }
}
@keyframes jc-fade-in { from { opacity: 0; } to { opacity: 1; } }
