/* INFLUDEO Careers hub
   Builds on blog.css (palette, type, story/video cards, join-team CTA). */

/* Hero */
.careers-hero h1 {
  max-width: 12em;
  margin-top: 0;
}

/* The hero lead is followed by actions, so blog.css's p:last-child rule misses it. */
.careers-hero h1 + p {
  max-width: 38em;
  margin-top: clamp(28px, 4vw, 52px);
  color: var(--ink-2);
  font-size: clamp(17px, 1.4vw, 20px);
}

.careers-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 52px);
}

.careers-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 24px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.careers-btn:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--black);
}

.careers-btn.line {
  background: transparent;
  color: var(--black);
}

.careers-btn.line:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* Shared section rhythm */
.careers-section {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(80px, 10vw, 144px);
}

.careers-culture,
.careers-talk {
  background: var(--warm);
}

.careers-head h2 {
  max-width: 14em;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(36px, 5.4vw, 80px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.careers-lead {
  max-width: 38em;
  margin-top: clamp(20px, 2.6vw, 32px);
  color: var(--ink-2);
  font-size: clamp(17px, 1.4vw, 20px);
}

.careers-subtitle {
  margin-top: clamp(72px, 9vw, 120px);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.careers-subtitle + .video-grid {
  margin-top: clamp(28px, 3vw, 40px);
}

/* Why: editorial question rows */
.why-list,
.dna-list,
.lead-rows,
.talk-contacts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list {
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
}

.why-list li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding-block: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.why-business {
  grid-column: 1 / 5;
  font-family: var(--en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.why-list p {
  grid-column: 5 / 13;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

/* Culture: same copy as the landing, careers layout */
.culture-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.culture-sub h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.culture-sub span,
.dna-list .n,
.lead-rows .n,
.lead-rows .kw {
  color: var(--ink-3);
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.dna-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(18px, 2vw, 28px);
  margin-top: clamp(28px, 3vw, 40px);
}

.dna-list h4,
.lead-rows h4 {
  margin: 10px 0 0;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.dna-list p,
.lead-rows p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.lead-rows li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.lead-rows .n {
  grid-column: 1 / 2;
  padding-top: 0.55em;
}

.lead-rows h4 {
  grid-column: 2 / 6;
  margin-top: 0;
}

.lead-rows div {
  grid-column: 6 / 13;
}

.lead-rows p {
  max-width: 36em;
}

/* Hiring recognition */
.hiring-note {
  max-width: 40em;
  margin-top: clamp(28px, 3vw, 40px);
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 4px solid var(--orange);
}

.hiring-note p {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.7;
}

.hiring-note .read-link:hover,
.hiring-note .read-link:focus-visible {
  color: var(--orange);
}

/* Stories reuse the blog cards */
.careers-stories .story-grid {
  margin-top: clamp(40px, 5vw, 72px);
}

/* Roles CTA uses the blog join-team panel */
.careers-roles .eyebrow {
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
}

/* Talk */
.talk-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 64px);
}

.talk-contacts li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.talk-contacts span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}

.talk-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-family: var(--en);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.talk-contacts a:hover,
.talk-contacts a:focus-visible {
  color: var(--orange);
}

@media (max-width: 1024px) {
  .dna-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  /* Keep each approved headline line intact on phones. */
  .careers-hero h1 {
    font-size: clamp(36px, 11vw, 72px);
  }

  .why-list li,
  .lead-rows li {
    display: block;
  }

  .why-list p {
    margin-top: 10px;
  }

  .lead-rows h4 {
    margin-top: 8px;
  }

  .lead-rows div {
    margin-top: 10px;
  }

  .dna-list,
  .talk-contacts {
    grid-template-columns: 1fr;
  }
}

/* Video titles sit under the h3 subtitle, so they are h4 with the blog's h3 look. */
.careers-stories .video-story h4 {
  margin: 20px 0 0;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

/* Section backgrounds alternate: Culture, Hiring, Quote and Talk sit on warm. */
.careers-hiring,
.careers-quote {
  background: var(--warm);
}

/* Working: environment, welfare and connection */
.working-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(18px, 2vw, 28px);
  margin-top: clamp(56px, 7vw, 96px);
}

/* Group heads: heavy black rule + label + large title, distinct from the thin item rows. */
.working-head {
  position: relative;
  padding-top: 20px;
  padding-bottom: clamp(20px, 2.4vw, 28px);
  border-top: 3px solid var(--black);
}

.working-head h3 {
  margin-top: 14px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.working-meta {
  position: absolute;
  top: 22px;
  right: 0;
  color: var(--ink-3);
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.working-list li:first-child {
  border-top: 1px solid var(--line);
}

.working-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.working-list li {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.working-list h4 {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.working-list p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Founder quote: centred pull quote that leads into the centred Roles CTA. */
.careers-quote figure {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.careers-quote blockquote {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

/* A short orange rule marks the quote (the site's fonts draw “ as slanted bars). */
.careers-quote blockquote::before {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto clamp(28px, 3vw, 40px);
  background: var(--orange);
  content: "";
}

.careers-quote figcaption {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 3.4vw, 44px);
  text-align: left;
}

/* 300px source shown as a 72px circle: sharp at 2x, no upscaling. */
.quote-photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
}

.quote-by {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  line-height: 1.35;
}

.quote-by > span:last-child {
  color: var(--ink-3);
  font-family: var(--en);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .working-groups {
    grid-template-columns: 1fr;
  }

  .working-group {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: clamp(18px, 2vw, 28px);
    align-items: start;
  }
}

@media (max-width: 700px) {
  .working-group {
    display: block;
  }
}

/* Hiring: recognition copy beside the award badge */
.hiring-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.hiring-badge {
  width: clamp(180px, 20vw, 287px);
  height: auto;
}

@media (max-width: 700px) {
  .hiring-layout {
    grid-template-columns: 1fr;
  }

  .hiring-badge {
    grid-row: 1;
    width: 168px;
  }
}
