/* ==========================================================================
   Public website
   ========================================================================== */
body.site { background: var(--paper); min-height: 100dvh; display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; }
body.site > .site-footer { margin-top: auto; }

/* ---------------- header ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 248, 252, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-tag {
  position: relative; background: var(--sun); color: var(--ink); font-size: 12.5px; font-weight: 800; padding: 4px 10px 4px 16px;
  border-radius: 4px 8px 8px 4px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.brand-tag::before { content: ''; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--paper); }
.nav { display: none; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 9px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mist); color: var(--ink); }
.nav .btn { color: #fff; margin-left: 8px; } .nav .btn:hover { background: var(--cobalt-d); color: #fff; }
.nav-toggle { display: inline-flex; }
@media (min-width: 860px) { .nav { display: flex; } .nav-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 8px var(--gutter) 20px; }
.mobile-nav.open { display: grid; gap: 4px; }
.mobile-nav a { padding: 14px 6px; font-weight: 650; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; color: #fff; border: 0; }
@media (min-width: 860px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(32px, 6vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 20px; max-width: 12ch; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14.5px; font-weight: 550; }
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta svg { color: var(--leaf); }

/* the two hanging job tags */
.tags { position: relative; display: flex; justify-content: center; gap: clamp(12px, 3vw, 28px); padding-top: 38px; min-height: 360px; }
.tags::before { content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 6px; border-radius: 6px; background: var(--ink); }
.jobtag {
  position: relative; display: block; flex: 1 1 0; max-width: 270px; text-decoration: none; color: var(--ink);
  transform-origin: 50% -38px; transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
  filter: drop-shadow(0 18px 22px rgba(16, 26, 51, 0.22));
}
.jobtag::before { /* string from the rail to the hole */
  content: ''; position: absolute; left: 50%; top: -38px; width: 2.5px; height: 56px; margin-left: -1px; background: var(--ink);
}
.jobtag-body {
  position: relative; padding: 52px 20px 22px; min-height: 290px; display: flex; flex-direction: column; gap: 10px;
  clip-path: polygon(0 28px, 28px 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  border-radius: 0 0 18px 18px;
}
.jobtag-hole { position: absolute; top: 14px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 2px 3px rgba(16, 26, 51, 0.35); z-index: 2; }
.jobtag:nth-child(odd) { transform: rotate(-3deg); } .jobtag:nth-child(even) { transform: rotate(2.5deg); margin-top: 22px; }
.tags.many { gap: clamp(8px, 1.6vw, 16px); }
.tags.many .jobtag-kind { font-size: clamp(19px, 1.9vw, 25px); overflow-wrap: break-word; }
.tags.many .jobtag-body { padding-inline: 14px; }
.jobtag:hover, .jobtag:focus-visible { transform: rotate(0deg); }
.jobtag.t0 .jobtag-body { background: var(--sun); }
.jobtag.t1 .jobtag-body { background: var(--cobalt); color: #fff; } .jobtag.t1 { color: #fff; }
.jobtag.t2 .jobtag-body { background: #0f8a6b; color: #fff; } .jobtag.t2 { color: #fff; }
.jobtag.t3 .jobtag-body { background: #d9480f; color: #fff; } .jobtag.t3 { color: #fff; }
.jobtag-kind { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 36px); line-height: 1; letter-spacing: -0.03em; }
.jobtag-count { font-size: 15px; font-weight: 600; opacity: 0.85; }
.jobtag-list { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.45; font-weight: 550; opacity: 0.9; }
.jobtag-go { margin-top: auto; font-weight: 750; display: inline-flex; gap: 8px; align-items: center; border-top: 2px dashed currentColor; padding-top: 12px; }
.jobtag-go svg { transition: transform 0.2s; } .jobtag:hover .jobtag-go svg { transform: translateX(4px); }
.hero-actions .btn { flex: 1 1 200px; }
@media (min-width: 640px) { .hero-actions .btn { flex: 0 0 auto; } }
@media (max-width: 520px) { .tags { min-height: 0; gap: 22px; padding-inline: 6px; } .jobtag-list { display: none; } .jobtag-body { min-height: 210px; } }

/* ---------------- sections ---------------- */
.section { padding: clamp(44px, 7vw, 88px) 0; }
.section.tint { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 18px; }

.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-content: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .step { grid-template-columns: 1fr; padding: 4px 28px 4px 0; border: 0; } .step + .step { padding-left: 28px; border-left: 1px solid var(--line); } }
.step-n { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.step h3 { font-size: 20px; margin-bottom: 4px; } .step p { color: var(--muted); margin: 0; }

/* vacancy rows */
.vacancy-list { display: grid; border-top: 1px solid var(--line); }
.vrow {
  display: grid; gap: 6px 20px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  grid-template-columns: 1fr auto; cursor: pointer; background: transparent; border-inline: 0; border-top: 0; text-align: left; width: 100%; font: inherit;
  transition: background 0.15s, padding 0.15s;
}
.vrow:hover { background: var(--white); padding-inline: 16px; color: var(--ink); }
.vrow-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.vrow-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14.5px; grid-column: 1; }
.vrow-meta span { display: inline-flex; align-items: center; gap: 5px; }
.vrow-side { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 12px; }
.kind { padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 800; }
.kind.t0 { background: var(--sun); color: var(--ink); } .kind.t1 { background: var(--cobalt); color: #fff; } .kind.t2 { background: #0f8a6b; color: #fff; } .kind.t3 { background: #d9480f; color: #fff; }

/* trust band */
.band { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); max-width: 20ch; }
.promises { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 800px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise svg { color: var(--sun); margin-bottom: 10px; }
.promise h3 { font-size: 19px; color: #fff; margin-bottom: 6px; }
.promise p { color: #b8c0d8; margin: 0; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; margin-top: 8px; }
.foot-grid { display: grid; gap: 32px 40px; padding: clamp(36px, 6vw, 56px) 0 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot-brand p { max-width: 36ch; margin: 12px 0 0; line-height: 1.55; }
.foot-h { font-family: var(--font-display); font-size: 16px; color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; }
.foot-col { display: grid; gap: 2px; align-content: start; }
.site-footer .foot-col a, .site-footer .foot-col span { color: var(--ink); font-weight: 550; text-decoration: none; padding: 7px 0; min-height: 36px; display: block; }
.site-footer .foot-col a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-bottom a { color: var(--muted); }

/* ---------------- page titles ---------------- */
.page-title { padding: clamp(28px, 5vw, 56px) 0 clamp(16px, 3vw, 28px); }
.page-title h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; margin-bottom: 8px; }
.page-title p { color: var(--muted); font-size: 18px; max-width: 56ch; }

/* ---------------- careers filters ---------------- */
.filters { display: grid; gap: 10px; margin-bottom: 20px; }
@media (min-width: 760px) { .filters { grid-template-columns: 1.4fr 1fr 1fr; } }
.filters .field { margin: 0; }

/* drawer for vacancy detail */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(16, 26, 51, 0.5); animation: fade 0.2s; }
.drawer-panel {
  position: absolute; background: var(--white); box-shadow: var(--shadow-2); overflow: auto;
  right: 0; top: 0; bottom: 0; width: min(560px, 100%); padding: 28px clamp(18px, 4vw, 32px) 120px; animation: slide-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (max-width: 640px) { .drawer-panel { top: 8%; width: 100%; border-radius: 22px 22px 0 0; animation-name: slide-up; } }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer-panel h2 { font-size: 30px; letter-spacing: -0.02em; margin: 14px 0 8px; }
.drawer-actions { position: sticky; bottom: -100px; margin-top: 28px; display: flex; gap: 10px; }
.prose { white-space: pre-line; color: #2b3552; }
.prose-h { font-size: 17px; margin: 24px 0 6px; }

/* ---------------- apply wizard ---------------- */
.apply-shell { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.progress {
  position: sticky; top: 68px; z-index: 40; margin: 0 0 20px; padding: 12px 0 10px;
  background: rgba(246, 248, 252, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; }
.progress-info { display: grid; min-width: 0; }
.progress-info strong { font-family: var(--font-display); font-size: clamp(16px, 2.4vw, 19px); line-height: 1.2; }
.progress-info span { color: var(--muted); font-size: 14px; font-weight: 600; }
.progress-actions { display: flex; gap: 8px; flex: none; }
.progress-actions .btn { min-height: 44px; padding: 0 18px; }
@media (max-width: 420px) { .progress-actions .btn-ghost { padding: 0 12px; } .progress-actions .btn { padding-inline: 14px; } }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-actions .btn-lg { flex: 1; }
@media (min-width: 640px) { .form-actions .btn-lg { flex: 0 0 auto; min-width: 220px; margin-left: auto; } }
.bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bar i { height: 7px; border-radius: 7px; background: var(--line); transition: background 0.3s; }
.bar i.done { background: var(--ink); } .bar i.now { background: var(--cobalt); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-1); }
.panel h2 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 6px; }
.panel > .sub { color: var(--muted); margin-bottom: 24px; }
.step-pane { display: none; } .step-pane.active { display: block; animation: fade 0.25s; }

.pick { display: grid; gap: 12px; margin-bottom: 22px; }
@media (min-width: 560px) { .pick { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.pick label { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.pick-card { display: grid; gap: 2px; padding: 18px 20px 18px 64px; border-radius: 16px; border: 2px solid var(--line); background: var(--white); position: relative; transition: all 0.15s; min-height: 92px; align-content: center; }
.pick-card::before { content: ''; position: absolute; left: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 8px 4px 4px 8px; background: var(--c); clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); }
.pick-card strong { font-family: var(--font-display); font-size: 21px; } .pick-card small { color: var(--muted); font-size: 14.5px; }
.pick label:hover .pick-card { border-color: var(--ink-3); }
.pick input:checked + .pick-card { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 4px rgba(16, 26, 51, 0.08); }
.pick input:focus-visible + .pick-card { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.pick .t0 { --c: var(--sun); } .pick .t1 { --c: var(--cobalt); } .pick .t2 { --c: #0f8a6b; } .pick .t3 { --c: #d9480f; }
.reveal { animation: fade 0.25s; }

.drop {
  border: 2px dashed #b9c3d6; border-radius: 16px; padding: 26px 18px; text-align: center; background: var(--paper); cursor: pointer; transition: all 0.15s; position: relative;
}
.drop:hover, .drop.over { border-color: var(--cobalt); background: var(--cobalt-l); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop svg { margin: 0 auto 8px; color: var(--cobalt); }
.drop strong { display: block; }
.has-error .drop { border-color: var(--rose); background: var(--rose-l); }
.filelist { display: grid; gap: 8px; margin-top: 10px; }
.fileitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); }
.fileitem .fi { color: var(--cobalt); flex: none; }
.fileitem .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fileitem small { color: var(--muted); white-space: nowrap; }
.fileitem button { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--muted); display: inline-flex; }
.fileitem button:hover { background: var(--rose-l); color: var(--rose); }

.review { display: grid; gap: 0; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.review div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .review div { grid-template-columns: 190px 1fr; gap: 16px; } }
.review div:last-child { border-bottom: 0; } .review dt { color: var(--muted); font-size: 14.5px; } .review dd { margin: 0; font-weight: 650; word-break: break-word; }
.consent { background: var(--sun-l); border: 1.5px solid #f0d37a; border-radius: 14px; padding: 16px 18px; }
.consent.has-error { border-color: var(--rose); background: var(--rose-l); }

.progress-upload { height: 8px; background: var(--mist); border-radius: 8px; overflow: hidden; margin-top: 10px; }
.progress-upload i { display: block; height: 100%; width: 0; background: var(--cobalt); transition: width 0.2s; }

.success { text-align: center; padding: clamp(10px, 3vw, 24px) 0; }
.success .badge { width: 76px; height: 76px; border-radius: 50%; background: var(--leaf-l); color: var(--leaf); display: grid; place-items: center; margin: 0 auto 18px; }
.refcode { display: inline-block; background: var(--ink); color: var(--sun); padding: 14px 24px; border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 5vw, 32px); letter-spacing: 0.02em; margin: 8px 0 18px; }

/* ---------------- application tracker ---------------- */
.status-banner { border-left: 8px solid var(--cobalt); }
.status-banner.good { border-left-color: var(--leaf); background: #f3fbf8; }
.status-banner.closed { border-left-color: var(--faint); }
.status-banner h2 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.03em; margin-bottom: 6px; }
.tracker { list-style: none; margin: 24px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.tracker::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 4px; background: var(--line); border-radius: 4px; }
.tracker li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 650; font-size: 14px; color: var(--muted); }
.tracker .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 3px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--muted); z-index: 1; }
.tracker li.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.tracker li.now .dot { background: var(--cobalt); border-color: var(--cobalt); color: #fff; box-shadow: 0 0 0 6px var(--cobalt-l); }
.status-banner.good .tracker li.now .dot { background: var(--leaf); border-color: var(--leaf); box-shadow: 0 0 0 6px var(--leaf-l); }
.tracker li.closed .dot { background: var(--faint); border-color: var(--faint); color: #fff; }
.tracker li.done, .tracker li.now, .tracker li.closed { color: var(--ink); }
.interview { border: 2px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 12px; }
.interview.next { border-color: var(--sun); background: var(--sun-l); }
.iv-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; } .iv-head svg { color: var(--ink); }
.iv-when { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 4.5vw, 30px); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 4px; }
.iv-where { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-weight: 650; }
.iv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trail { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }

/* notice blocks */
.notice { padding: 14px 16px; border-radius: 12px; background: var(--cobalt-l); color: #1c2f9b; font-weight: 550; margin-bottom: 18px; }
.notice.warn { background: var(--sun-l); color: #6b5000; } .notice.bad { background: var(--rose-l); color: #8f1f24; } .notice.good { background: var(--leaf-l); color: #0a6347; }

/* legal pages */
.legal { max-width: 740px; } .legal h2 { font-size: 24px; margin-top: 36px; } .legal li { margin-bottom: 6px; }
@media (max-width: 520px) {
  .tags.many { gap: 8px; padding-inline: 0; }
  .tags.many .jobtag-body { padding: 48px 10px 16px; min-height: 190px; }
  .tags.many .jobtag-kind { font-size: 19px; }
  .tags.many .jobtag-count { font-size: 13px; }
  .tags.many .jobtag-go { font-size: 13px; }
  .tags.many .jobtag:nth-child(even) { margin-top: 14px; }
}
