/* =========================================================
   Career page only. Shared pieces live in style.css.
   ========================================================= */

/* ---------- Sections ---------- */
.section { padding-top: 64px; }
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: 28px; margin: 0; letter-spacing: -0.01em; }
.sub { color: var(--accent); margin: 0; font-weight: 500; }

/* ---------- Big highlight numbers (used on every role) ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .big {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat .small { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- Xylem rotation track ----------
   An ordered list (<ol>) laid out as three columns. The line joining
   the stops is a pseudo-element (::before) drawn behind the cards. */
.track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0 60%, var(--line) 60%);
}

.stop {
  position: relative;
  padding: 28px 22px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
/* the dot sitting on the line above each card */
.stop::before {
  content: "";
  position: absolute;
  top: -21px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.stop.done::before { background: var(--accent); }

.stop-num {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stop-num em { font-style: normal; color: var(--accent); }
.stop h3 { margin: 0; font-size: 20px; }

/* City for each rotation, with a small map-pin drawn in CSS */
.place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
}
.place::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 50% 0;   /* a circle with one sharp corner... */
  transform: rotate(-45deg);       /* ...turned so the point faces down: a pin */
  background: var(--accent);
}
.stop.next .place { color: var(--muted); }
.stop.next .place::before { background: var(--muted); }
.stop p { margin: 0; color: var(--muted); }
.stop .stat { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* The current rotation gets a brighter edge */
.stop.now { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

/* The future rotation is a dashed outline, waiting to be filled in */
.stop.next { background: transparent; border-style: dashed; }
.stop.next::before { border-color: var(--line); }
.stop.next .big { color: var(--muted); }

/* ---------- Leadership role card (sits under the rotation track) ---------- */
.lead-card {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.lead-head h3 { margin: 8px 0 8px; font-size: 22px; }
.lead-note { margin: 0; color: var(--muted); }
.lead-stats { display: flex; gap: 32px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.lead-stats .big { font-size: 32px; }
.lead-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lead-cols h4 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead-cols ul { margin: 0; padding-left: 18px; color: var(--text); }
.lead-cols li { margin-bottom: 6px; }
.lead-cols li::marker { color: var(--accent); }

/* ---------- Recognition row (under the leadership card) ---------- */
.award {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
/* The "Gold" badge is a hexagon, cut from a square with clip-path,
   so it matches the honeycomb pattern at the top of the page. */
.medal {
  flex-shrink: 0;
  width: 58px;
  height: 66px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1a1405;
  background: linear-gradient(160deg, #f6d77a, #d4a72c);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.award h3 { margin: 6px 0 6px; font-size: 19px; }
.award p { margin: 0; color: var(--muted); max-width: 80ch; }

/* ---------- Before Xylem cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
}
.card .stat { margin-bottom: 18px; }
.card h3 { margin: 0; font-size: 20px; }
.card .role { color: var(--accent); margin: 2px 0 10px; font-weight: 500; font-size: 15px; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Education, languages, skills ---------- */
.extras {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 24px 0 96px;
  border-top: 1px solid var(--line);
  margin-top: 72px;
}
.block { padding-top: 32px; }
.block .label { margin: 0 0 16px; }

.school { padding: 12px 0; border-top: 1px solid var(--line); }
.school:first-of-type { border-top: none; padding-top: 0; }
.school h3 { font-size: 17px; margin: 0; }
.school p { margin: 2px 0 0; color: var(--muted); }

.lang {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.lang:first-of-type { border-top: none; padding-top: 0; }
.lang .level { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 13px; color: var(--accent); }
.pill {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #0b0c0f;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 2px;
}
.lang-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.lang-note a { color: var(--accent); }

.skills-label { margin-top: 32px !important; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
}

/* ---------- Phones ---------- */
@media (max-width: 800px) {
  .section { padding-top: 40px; }
  .section-head h2 { font-size: 24px; }
  /* the track turns vertical: line runs down the left side */
  .track { grid-template-columns: 1fr; gap: 16px; padding-left: 22px; }
  .track::before { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--accent) 0 60%, var(--line) 60%); }
  .stop { margin-top: 0; }
  .stop::before { top: 26px; left: -23px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .lead-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .lead-cols { grid-template-columns: 1fr; gap: 16px; }
  .award { align-items: flex-start; padding: 18px; gap: 16px; }
  .medal { width: 46px; height: 52px; font-size: 11px; }
  .extras { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
}
