.we { max-width: 1180px; margin: 0 auto; }

.tabs {
  display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px);
  margin: clamp(20px, 5vh, 48px) 0 clamp(40px, 8vh, 88px);
}
.tabs button {
  font-family: "KC Mono", monospace; font-weight: 700; font-size: 13px; text-transform: uppercase;
  padding: 8px 2px; color: var(--ink-soft); position: relative;
  transition: color .35s var(--ease-out);
}
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform .5s var(--ease-out);
}
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.panel { animation: panel-in .7s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- work: chronological, minimal ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; }
.timeline li {
  display: grid; grid-template-columns: 170px minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 40px;
  padding: 26px 0;
}
.timeline li + li { border-top: 1px solid rgba(27, 23, 20, .09); }
.when { font-family: "KC Mono", monospace; font-size: 12px; color: var(--ink-soft); padding-top: 5px; }
.timeline h3 {
  margin: 0; font-family: "KC Serif", "Times New Roman", serif; font-weight: 400;
  font-size: 21px; line-height: 1.25; text-wrap: balance;
}
.org { margin: 6px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.what { margin: 0; font-family: "KC Serif", "Times New Roman", serif; font-size: 15px; line-height: 1.6; color: #3a332d; padding-top: 2px; }
.what .note { font-style: italic; color: var(--ink-soft); }

@media (max-width: 760px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .when { padding: 0; }
  .what { margin-top: 6px; }
}

/* ---------- education: same list as work, graduation photo top right ---------- */
.edu { display: grid; grid-template-columns: minmax(0, 1fr) min(240px, 22vw); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1180px; margin: 0 auto; }
.edu .timeline { max-width: none; margin: 0; }
.grad { margin: 26px 0 0; }
.grad img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 760px) {
  .edu { grid-template-columns: 1fr; }
  .grad { order: -1; justify-self: end; width: 44vw; margin: 0 0 8px; }
}

/* ---------- work timeline strip: edge to edge, skinny, a point per role placed by its start date ---------- */
.strip {
  position: relative; width: 100vw; margin: 0 0 clamp(40px, 7vh, 72px) calc(50% - 50vw);
  height: clamp(210px, 30vh, 300px); overflow: hidden; color: #f3eee6; background: #111;
  font-family: "KC Mono", monospace; font-size: 9.5px; line-height: 1.25; text-transform: uppercase; letter-spacing: .04em;
}
.strip-inner { position: relative; height: 100%; min-width: 100%; }
.strip-pics { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
/* cropped from the top and bottom only: the middle of each picture always stays in view */
.strip-pics img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.strip-pics img + img { border-left: 1px solid rgba(243, 238, 230, .18); }
.strip-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.08) 35%, rgba(0,0,0,.22) 50%, rgba(0,0,0,.08) 65%, rgba(0,0,0,.3)); pointer-events: none; }
.strip-head { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: 12px; margin: 0; display: flex; justify-content: space-between; }
.strip-line { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: 52%; height: 1px; margin: 0; padding: 0; list-style: none; background: rgba(243, 238, 230, .85); }
.strip-line li { position: absolute; left: var(--x); top: 0; }
.strip-line a { position: absolute; left: 0; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 8px 10px; outline-offset: 2px; cursor: pointer; }
.strip-line i { width: 8px; height: 8px; margin-top: -8px; border-radius: 50%; background: #f3eee6; box-shadow: 0 0 0 0 rgba(243, 238, 230, .35); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.strip-line span { display: block; width: 10ch; text-align: center; text-wrap: balance; transition: transform .35s var(--ease-out), opacity .35s; transform-origin: 50% 0; }
.strip-line b { display: block; font-weight: 400; opacity: .7; margin-top: 2px; }
/* every other label sits above the line so neighbours never collide */
.strip-line .up a { flex-direction: column-reverse; top: auto; bottom: 0; padding: 10px 8px 4px; }
.strip-line .up i { margin: 0 0 -8px; }
.strip-line .up span { transform-origin: 50% 100%; }
/* pointing at a role (mouse or trackpad, set in work.js): its point swells with a halo, its title grows
   and stays large for as long as the pointer rests on it, and the others step back */
.strip-line.has-hover a:not(.is-hover) span { opacity: .4; }
.strip-line a.is-hover { z-index: 3; }
.strip-line a.is-hover i { transform: scale(2.1); box-shadow: 0 0 0 7px rgba(243, 238, 230, .3); }
.strip-line a.is-hover span { transform: scale(1.55); font-weight: 700; }
.strip-line a:focus-visible i { transform: scale(2.1); box-shadow: 0 0 0 7px rgba(243, 238, 230, .3); }
.strip-line a:focus-visible span { transform: scale(1.55); }
@media (max-width: 760px) {
  /* phones: the whole timeline fits the screen width, with compact labels alternating above and below */
  .strip { height: 300px; font-size: 7.5px; letter-spacing: 0; }
  .strip-line { left: 14px; right: 14px; }
  .strip-head { left: 14px; right: 14px; }
  .strip-line span { width: 7.5ch; }
  .strip-line a { padding: 4px 2px 8px; gap: 5px; }
  .strip-line .up a { padding: 8px 2px 4px; }
  .strip-line i { width: 7px; height: 7px; margin-top: -7px; }
  .strip-line .up i { margin: 0 0 -7px; }
  /* the long logistics title leans left of its point so it clears its 2025 neighbour */
  .strip-line a[href="#job-logistics"] span { transform: translateX(-32%); }
}

/* the job you jump to lights up for a moment */
.timeline li.flash { animation: job-flash 2.2s var(--ease-out); }
@keyframes job-flash { 0%, 30% { background: rgba(203, 189, 166, .38); } 100% { background: transparent; } }
.timeline li { scroll-margin-top: calc(var(--nav-h) + 24px); transition: background .3s; }


/* graduation picture: a little closer, with a label above and below */
.grad { position: relative; }
.grad-top, .grad figcaption { display: block; font-family: "KC Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.grad-top { margin-bottom: 8px; }
.grad figcaption { margin-top: 8px; text-align: right; }
