/* /careers: the hub. It loads /closer/closer.css first and wears that system (paper, ink, mint,
   Cormorant Garamond, black pills). Only what the hub has of its own is here: the hero's three
   pictures, the list of open roles, and the three culture tiles. */

/* hero: two ways on, and the company in three pictures */
/* the open roles follow on the same paper, so the hero's light fades out instead of being cut off */
.hero.hub { padding-bottom: clamp(56px, 8vw, 104px); }
.hero.hub::after { content: ""; position: absolute; inset: auto 0 0 0; height: clamp(120px, 20vw, 220px); background: linear-gradient(hsl(40 30% 97% / 0), var(--bg)); pointer-events: none; }
.hero.hub .hero-in { z-index: 1; }
.hub-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; }
.hub-cta .back { display: inline-flex; align-items: center; }
.collage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr) minmax(0, 1fr); align-items: end; gap: clamp(8px, 1.6vw, 18px); width: 100%; max-width: 920px; margin-top: clamp(22px, 4vw, 44px); }
.collage::before { content: ""; position: absolute; inset: 22% -4% -7% -4%; border-radius: clamp(24px, 4vw, 48px); background: var(--mint); }
.collage figure { position: relative; border-radius: clamp(14px, 2.2vw, 26px); overflow: hidden; background: #e6e3dc; box-shadow: 0 40px 70px -40px rgba(20, 30, 25, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.05); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1, .collage .c3 { aspect-ratio: 4 / 5; }
.collage .c2 { aspect-ratio: 1 / 1.12; }
.collage .c1 { transform: rotate(-2.4deg); }
.collage .c3 { transform: rotate(2.4deg); }
@media (min-width: 900px) {
  .collage figure { animation: bob 8s ease-in-out infinite; }
  .collage .c1 { animation-name: bob1; }
  .collage .c2 { animation-delay: -2.6s; }
  .collage .c3 { animation-name: bob3; animation-delay: -5.2s; }
}
@keyframes bob1 { 0%, 100% { transform: rotate(-2.4deg); } 50% { transform: rotate(-2.4deg) translateY(-9px); } }
@keyframes bob3 { 0%, 100% { transform: rotate(2.4deg); } 50% { transform: rotate(2.4deg) translateY(-9px); } }

/* open roles: each one a wide card that is a link */
.roles-sec { padding-top: 0; scroll-margin-top: 88px; }
.roles { display: grid; gap: 14px; }
.role { position: relative; display: grid; gap: 22px; align-items: center; padding: clamp(24px, 3.4vw, 38px); border-radius: clamp(20px, 2.6vw, 28px); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform 0.45s var(--ease), box-shadow 0.45s ease, border-color 0.3s ease; }
.role:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 34px 60px -34px rgba(20, 50, 35, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.role-main { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.role-k { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }
.role h3 { font-size: clamp(2rem, 5.6vw, 2.9rem); line-height: 1; }
.role-d { max-width: 44ch; font-size: 1.04rem; color: var(--soft); }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.role-tags li { padding: 8px 14px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 13px; font-weight: 600; font-variant-numeric: lining-nums; white-space: nowrap; }
.role-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: start; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; }
.role-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.role:hover .role-go svg { transform: translateX(4px); }
.role.open { background: transparent; border-style: dashed; border-color: hsl(30 8% 76%); }
.role.open:hover { background: var(--surface); }
.role.open h3 { font-size: clamp(1.6rem, 4.4vw, 2.1rem); }
.role.open .role-go { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (min-width: 760px) {
  .role { grid-template-columns: minmax(0, 1fr) auto; }
  .role-go { justify-self: end; }
}

/* culture: three tiles, the middle one in mint */
.trio { display: grid; gap: 14px; }
.trio .tile.pic { min-height: 300px; }
.trio .tile.wide { grid-column: auto; min-height: 220px; }
.tile.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile.dark p { color: rgba(255, 255, 255, 0.72); }
.tile.dark .ico { background: rgba(255, 255, 255, 0.1); }
.tile.dark .ico svg { stroke: var(--mint-3); }
.trio .tile.pic { grid-row: auto; }
@media (min-width: 860px) {
  /* the picture takes half; the two statements share the other half */
  .trio { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
  .trio .tile { min-height: 380px; }
}

/* the open application */
.f > span i { font-style: normal; font-weight: 400; color: var(--dim); }
.apply .acts .btn { min-width: 150px; }
#apply { scroll-margin-top: 64px; }

@media (prefers-reduced-motion: reduce) {
  .collage figure { animation: none; }
  .role, .role-go svg { transition: none; }
}
