/* Hallmark · design-system: design.md · page: careers · designed-as-app
 * Loads after tokens.css + home.css (shared nav, drawer, pills, section head, footer, motion). Tokens only.
 */

/* the careers nav uses the white MAD SQUARE wordmark → ink on light paper */
.nav-logo-img[src="logo_madsquare.png"] { filter: invert(1) brightness(0); mix-blend-mode: normal; }

/* ========== Hero ========== */
.careers-hero { padding-top: calc(var(--nav-h) + var(--space-2xl)); padding-bottom: var(--space-2xl); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-brass);
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-orange); box-shadow: 0 0 0 4px var(--color-orange-halo);
  animation: hiringPulse 2.4s var(--ease-in-out) infinite;
}
@keyframes hiringPulse { 50% { box-shadow: 0 0 0 8px var(--color-orange-halo); } }
.careers-hero .hero-headline { max-width: 14ch; }
.lead-grid { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); }
.lead-grid p { font-size: var(--text-md); line-height: 1.7; color: var(--color-mute); max-width: 56ch; }
.hero-stat-row {
  margin-top: var(--space-2xl); padding-top: var(--space-lg);
  border-top: 1px solid var(--color-rule);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg);
}
.hero-stat-row > div { display: flex; flex-direction: column; gap: var(--space-2xs); }
.hsr-num { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1; }
.hsr-num .accent { color: var(--color-brass); }
.hsr-label { font-size: var(--text-sm); color: var(--color-mute); line-height: 1.45; }

/* ========== Section heads without .h-section ========== */
.section-head h2:not(.h-section) {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-h2); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 20ch; text-wrap: balance; overflow-wrap: anywhere; min-width: 0;
}

/* ========== How we work ========== */
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
.work-card {
  background: var(--color-paper-2); border-radius: var(--radius-lg);
  padding: var(--space-lg); display: flex; flex-direction: column; min-height: 320px;
  transition: background var(--dur-base) var(--ease-out), transform 600ms var(--ease-out);
}
.work-card:hover { background: var(--color-card); transform: translateY(-4px); }
.work-num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-brass); margin-bottom: var(--space-xl); }
.work-title { font-size: var(--text-xl); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--space-2xs); text-wrap: balance; }
.work-title-kr { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); margin-bottom: var(--space-md); }
.work-desc { margin-top: auto; font-size: var(--text-sm); line-height: 1.6; color: var(--color-mute); }

/* ========== Perks ========== */
.perks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); }
.perk-card {
  background: var(--color-paper-2); border-radius: var(--radius-lg);
  padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); min-height: 190px;
  transition: background var(--dur-base) var(--ease-out), transform 600ms var(--ease-out);
}
.perk-card:hover { transform: translateY(-4px); }
.perk-card:not([style]):hover { background: var(--color-card); }
.perk-icon { font-size: 26px; line-height: 1; }
.perk-title { margin-top: auto; font-family: var(--font-display); font-weight: 500; font-size: var(--text-base); letter-spacing: -0.01em; line-height: 1.3; }
.perk-title-kr { font-family: var(--font-kr); font-size: var(--text-sm); line-height: 1.5; color: var(--color-mute); padding-top: var(--space-2xs); border-top: 1px solid var(--color-rule); word-break: keep-all; }

/* ========== Open roles — the page's one dark panel ========== */
.roles-panel { background: var(--color-dark); color: var(--color-on-dark); border-radius: var(--radius-xl); padding: clamp(1.5rem, 4vw, 4rem); }
.roles .section-head h2 { color: var(--color-on-dark); }
.roles .section-head .accent { color: var(--color-brass-lt); }
.roles .eyebrow { color: var(--color-brass-lt); }
.roles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.role-card {
  background: var(--color-dark-raise); border: 1px solid var(--color-rule-dark); border-radius: var(--radius-md);
  padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs); min-height: 160px;
  transition: border-color var(--dur-base) var(--ease-out), transform 600ms var(--ease-out);
}
.role-card:hover { border-color: var(--color-brass-lt); transform: translateY(-4px); }
.role-name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.015em; }
.role-name-kr { font-size: var(--text-sm); color: var(--color-on-dark-mute); line-height: 1.5; }
.role-tag { margin-top: auto; padding-top: var(--space-sm); font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--color-brass-lt); }
.apply-banner {
  margin-top: var(--space-xl);
  background: var(--color-card); color: var(--color-ink);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); flex-wrap: wrap;
}
.apply-banner h3 { font-size: var(--text-3xl); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: var(--space-xs); }
.apply-banner h3 .accent { color: var(--color-brass); }
.apply-banner p { font-size: var(--text-base); color: var(--color-mute); }
.apply-cta {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  background: var(--color-brass); color: var(--color-on-dark);
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), transform 600ms var(--ease-spring);
}
.apply-cta:hover { background: var(--color-ink); transform: scale(1.03); }
.apply-cta > span:last-child { transition: transform var(--dur-base) var(--ease-out); }
.apply-cta:hover > span:last-child { transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }

/* ========== Responsive ========== */
@media (max-width: 1100px) { .work-grid, .perks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .lead-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .work-grid, .perks-grid, .roles-grid, .hero-stat-row { grid-template-columns: minmax(0, 1fr); }
  .work-card, .perk-card, .role-card { min-height: 0; }
  .careers-hero .hero-headline .accent { white-space: normal; }
  .careers-hero .hero-headline .accent::before, .careers-hero .hero-headline .accent::after { display: none; }
  .apply-cta { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .hero-eyebrow .pulse { animation: none; } }
