/* ==========================================================================
   Hiring — v1 "Problems worth solving" (engineering-led, editorial)
   Extends css/site.css (the shared Salla Developers chrome + component set).
   ========================================================================== */

/* ---------- hero: the CEO's own words are the visual, not a card or a stat -- */
.hero__visual .ceo-quote { margin-top: 0; }

.grid--4 > .voice-card { transition: transform .2s var(--ease); }
.grid--4 > .voice-card:hover { transform: translateY(-3px); }

/* ---------- stats band: a premium dark panel, not a plain number strip ----- */
.stats--premium {
  position: relative; overflow: hidden; border-block: 0;
  background: linear-gradient(135deg, hsl(191 78% 12%), hsl(191 60% 7%));
  padding-block: clamp(3.25rem, 6vw, 4.75rem);
}
.stats--premium::after {
  content: ""; position: absolute; width: 26rem; height: 26rem; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--secondary-400) / .2), transparent 70%);
  top: -11rem; right: -7rem; pointer-events: none;
}
.stats--premium .container { position: relative; z-index: 1; }
.stats__head { text-align: center; max-width: 34rem; margin: 0 auto 1.5rem; }
.stats__head .eyebrow { justify-content: center; margin-bottom: .75rem; color: var(--accent); }
.stats__head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: #fff; }

.stats__founded {
  display: flex; width: fit-content; align-items: center; gap: .6rem; margin: 0 auto clamp(2.25rem, 4vw, 3rem);
  padding: .6rem 1.25rem; background: hsl(0 0% 100% / .08); border: 1px solid hsl(0 0% 100% / .16);
  border-radius: var(--rounded-full); color: hsl(0 0% 100% / .88); font-weight: 700; font-size: .88rem;
}
.stats__founded .hgi { color: var(--accent); font-size: 1.05rem; }

.stats__grid { grid-template-columns: repeat(3, 1fr); }
.stat__icon {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: hsl(0 0% 100% / .08); color: var(--accent); font-size: 1.4rem; margin-bottom: 1rem;
}
.stats--premium .stat__num { color: #fff; display: inline-block; }
.stat__num.is-done { animation: statPop .55s var(--ease); }
@keyframes statPop { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.stats--premium .stat__label { color: hsl(0 0% 100% / .62); }
.stats--premium .stat + .stat::before { background: hsl(0 0% 100% / .14); }
@media (max-width: 720px) {
  .stats--premium .stats__grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats--premium .stat + .stat::before { display: none; }
}

/* ---------- role filter chips ---------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; }
.chip-btn {
  position: relative; overflow: hidden;
  font-weight: 700; font-size: .85rem; line-height: 1; font-family: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--rounded-full);
  padding: .5rem 1rem; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.chip-btn:hover { border-color: hsl(var(--primary-300)); }
.chip-btn:active { transform: translateY(1px) scale(.99); }
.chip-btn .ripple { background: hsl(var(--primary-400) / .3); }
.chip-btn.is-on .ripple { background: hsl(0 0% 100% / .35); }
.chip-btn.is-on { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }
.dark .chip-btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- open roles ------------------------------------------------------ */
/* Filtering: a plain CSS max-height/margin/padding collapse, not a JS-driven
   position animation. display:grid + gap doesn't collapse cleanly when a
   sibling is removed (the gap stays reserved and content just jumps), so the
   list is flex-column with each card owning its own spacing, and the "out"
   state shrinks every box model property that contributes height at once.
   This is a standard, well-understood technique, deliberately chosen over a
   hand-rolled FLIP reflow animation that's easy to get subtly wrong. */
.role-list { display: flex; flex-direction: column; }
.role {
  position: relative; display: grid; grid-template-columns: 1fr auto 1.4rem; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--rounded-lg);
  padding: 1.1rem 1.3rem; margin-bottom: .7rem;
  max-height: 10rem; overflow: hidden; opacity: 1;
  transition: transform .2s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease),
              opacity .3s var(--ease), max-height .3s var(--ease), margin-bottom .3s var(--ease),
              padding-top .3s var(--ease), padding-bottom .3s var(--ease), border-width .3s var(--ease);
}
.role:last-child { margin-bottom: 0; }
.role:hover { transform: translateX(3px); border-color: hsl(var(--primary-300)); box-shadow: var(--shadow-xs); text-decoration: none; }
.role.role--out {
  opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; pointer-events: none;
}
/* .role's own `display: grid` (author CSS) beats the browser's built-in
   `[hidden] { display: none }` rule even at equal specificity, since author
   styles always win over user-agent styles. Without this, `r.hidden = true`
   silently does nothing and the filtered-out card just leaves a gap. */
.role[hidden] { display: none; }
.role__title { font-weight: 700; color: var(--heading); }
.role__meta { font-size: .84rem; color: var(--text-muted); white-space: nowrap; }
.role__go { font-size: 1.05rem; color: hsl(var(--primary-400)); text-align: right; transition: transform .18s var(--ease); }
.dark .role__go { color: var(--accent); }
.role:hover .role__go { transform: translateX(3px); }
.role-empty { margin-top: 1rem; font-size: .92rem; color: var(--text-muted); }
@media (max-width: 640px) {
  .role { grid-template-columns: 1fr; gap: .3rem; }
  .role__go { display: none; }
}

/* ---------- origin story --------------------------------------------------- */
.story__text { max-width: 46rem; }
.story__text h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin-top: .6rem; }
.story__text > p { margin-top: 1.1rem; font-size: 1.03rem; color: var(--text-muted); }

/* ---------- premium CEO pull-quote ------------------------------------------ */
.ceo-quote {
  position: relative; overflow: hidden; margin: 1.75rem 0 0; max-width: 40rem;
  padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--rounded-xl);
  background: linear-gradient(120deg, hsl(191 80% 10%), hsl(178 55% 16%), hsl(200 70% 12%), hsl(191 80% 10%));
  background-size: 300% 300%;
  animation: ceoQuoteGradient 9s ease-in-out infinite;
  box-shadow: 0 24px 50px -20px hsl(191 60% 10% / .55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), animation-duration .3s;
}
.ceo-quote:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 64px -18px hsl(191 60% 10% / .7);
  animation-duration: 3.5s;
}
@keyframes ceoQuoteGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.ceo-quote__mark {
  position: absolute; top: -1.2rem; left: 1.3rem; font: 800 7rem/1 Georgia, 'Times New Roman', serif;
  color: hsl(0 0% 100% / .07); pointer-events: none;
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.ceo-quote:hover .ceo-quote__mark { transform: scale(1.08) rotate(-3deg); color: hsl(0 0% 100% / .11); }
.ceo-quote p {
  position: relative; margin: 0; font-size: clamp(1.1rem, 2.1vw, 1.35rem); font-weight: 600;
  line-height: 1.5; color: #fff; max-width: 34rem;
}
.ceo-quote footer { position: relative; display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; }
.ceo-quote__avatar {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: inline-grid; place-items: center;
  font-weight: 800; font-size: .9rem; color: var(--accent); background: hsl(0 0% 100% / .12);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.ceo-quote:hover .ceo-quote__avatar { transform: scale(1.1) rotate(-6deg); background: hsl(0 0% 100% / .18); }
.ceo-quote cite { display: block; font-style: normal; font-weight: 700; color: #fff; font-size: .95rem; }
.ceo-quote__role { display: block; font-size: .82rem; color: hsl(0 0% 100% / .55); margin-top: .1rem; }

/* ---------- hiring process: a vertical timeline + real prep tips, not the
   homepage's horizontal numbered-circle .steps grid ------------------------- */
.process-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .process-layout { grid-template-columns: 1fr; } }

.process-timeline { list-style: none; position: relative; margin: 0; padding: 0; }
.process-timeline::before {
  content: ""; position: absolute; left: 1.1rem; top: .2rem; bottom: .2rem; width: 2px; background: var(--border-soft);
}
.process-timeline li {
  position: relative; padding-left: 3.2rem; padding-bottom: 1.9rem;
  transition: transform .2s var(--ease);
}
.process-timeline li:last-child { padding-bottom: 0; }
.process-timeline li:hover { transform: translateX(5px); }
.process-timeline__n {
  position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  background: hsl(var(--primary)); color: #fff; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dark .process-timeline__n { background: var(--accent); color: var(--accent-ink); }
.process-timeline li:hover .process-timeline__n { transform: scale(1.15); box-shadow: 0 0 0 6px hsl(var(--primary-400) / .2); }
.process-timeline h3 { font-size: 1.05rem; transition: color .2s var(--ease); }
.process-timeline li:hover h3 { color: hsl(var(--primary-400)); }
.dark .process-timeline li:hover h3 { color: var(--accent); }
.process-timeline p { margin-top: .35rem; font-size: .92rem; color: var(--text-muted); }

.process-prep {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--rounded-xl);
  padding: 1.6rem 1.7rem; box-shadow: var(--shadow-xs);
}
.process-prep h3 { font-size: 1.05rem; margin-bottom: 1.1rem; }
.process-prep ul { list-style: none; display: grid; gap: 1rem; margin: 0; padding: 0; }
.process-prep li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.process-prep li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .4rem; height: .4rem; border-radius: 50%; background: hsl(var(--primary-400)); }
.dark .process-prep li::before { background: var(--accent); }
.process-prep li strong { color: var(--heading); }

/* ---------- a soft caption after a grid, not a warning --------------------- */
.section__caption { margin-top: 1.75rem; font-size: .9rem; color: var(--text-muted); text-align: center; }

/* ---------- bento grid (varied card sizes, used for values + perks) -------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(9.5rem, auto); gap: 1.15rem; }
.bento__a { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.bento__a h3 { font-size: 1.3rem; }
.bento__a p { font-size: 1rem; margin-top: .7rem; }
.bento__b { grid-column: span 2; }
.bento__c, .bento__d { grid-column: span 1; }
.bento__e, .bento__f { grid-column: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__a, .bento__b, .bento__e, .bento__f { grid-column: span 2; }
  .bento__a { grid-row: span 1; }
  .bento__c, .bento__d { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* ---------- perks: same bento mechanism as values, mirrored arrangement so
   the two sections don't read as the same layout with different words ------ */
.bento--perks {
  grid-template-areas:
    "e e a a"
    "c d a a"
    "b b f f";
}
.bento--perks > .bento__a { grid-area: a; display: flex; flex-direction: column; justify-content: center; }
.bento--perks > .bento__b { grid-area: b; }
.bento--perks > .bento__c { grid-area: c; }
.bento--perks > .bento__d { grid-area: d; }
.bento--perks > .bento__e { grid-area: e; }
.bento--perks > .bento__f { grid-area: f; }
@media (max-width: 900px) {
  .bento--perks {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "e e" "a a" "c d" "b b" "f f";
  }
}
@media (max-width: 560px) {
  .bento--perks { grid-template-areas: none; }
}

/* ---------- testimonials (all visible at once, no interaction needed) ------ */
.voice-card {
  margin: 0; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--rounded-xl);
  padding: clamp(1.25rem, 2.5vw, 1.5rem); box-shadow: var(--shadow-xs);
}
.voice-card__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.voice-card__avatar {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-grid; place-items: center;
  font-weight: 800; font-size: .8rem; color: #fff;
  background: linear-gradient(135deg, hsl(var(--primary-400)), hsl(191 78% 22%));
}
.voice-card__name { display: block; font-weight: 700; color: var(--heading); font-size: .88rem; }
.voice-card__role { display: block; font-size: .76rem; color: var(--text-muted); margin-top: .05rem; }
.voice-card p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--heading); }
.voice-card p::before { content: "\201C"; }
.voice-card p::after { content: "\201D"; }
