/*
Theme Name: Bighungry2x
Theme URI: https://bighungry2x.com
*/

/* =====================================================================
   Bighungry2x — design preview stylesheet
   Standalone: works with preview.html in any browser, no server needed.
   ===================================================================== */

/* TOKENS — every colour on the site lives here.
   Change --accent once and every hover, border and icon follows. */
html, body { overflow-x: hidden; max-width: 100%; }

:root {
  --bg:         #0d0d0f;
  --bg-raised:  #141417;
  --bg-top:     #0f0f12;
  --line:       #2a2a30;
  --line-soft:  #202024;
  --text:       #edecf0;
  --muted:      #8f8f9b;
  --muted-dim:  #61616c;
  --accent:     #e8a33d;

  --max: 1080px;
  --pad: clamp(20px, 5vw, 52px);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.05rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand { font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 400; }

.nav ul {
  display: flex; align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  margin: 0; padding: 0; list-style: none;
}
.nav a {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); transition: color 0.18s ease;
}
.nav a:hover { color: var(--accent); }
.nav .current-menu-item > a {
  color: var(--accent);
  position: relative;
}
.nav .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
}

/* =====================================================================
   INTRO — portrait left, text right
   ===================================================================== */
.intro {
  background: var(--bg-top);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(24px, 4vw, 48px) 0 clamp(22px, 3.5vw, 42px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.intro-photo { margin: 0; }

.intro-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.intro-text { padding-top: 4px; }

.intro-text h1 {
  margin: 0 0 22px;
  line-height: 1.1;
}
.intro-text h1 .thin {
  color: var(--muted);
  font-weight: 400;
}

.intro-text p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.06rem);
  max-width: 60ch;
}
.intro-text p:last-child { margin-bottom: 0; }
.intro-text strong { color: var(--text); font-weight: 600; }
.intro-text a { color: var(--accent); border-bottom: 1px solid transparent; }
.intro-text a:hover { border-bottom-color: var(--accent); }

/* =====================================================================
   LINK CARDS
   ===================================================================== */
.cards { padding: clamp(24px, 3.5vw, 44px) 0 clamp(30px, 5vw, 56px); }

.cards .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  min-width: 0;
  padding: clamp(12px, 1.7vw, 17px) clamp(14px, 1.9vw, 20px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--accent); background: #17171b; transform: translateY(-3px);
}
.card .card-icon {
  order: 2;
  font-size: 0.95rem;
  line-height: 1;
  flex: none;
  color: var(--muted-dim);
  transition: color 0.2s ease, transform 0.2s ease;
}
.card:hover .card-icon { color: var(--accent); transform: translateX(4px); }
.card .label {
  margin: 0;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  color: var(--text);
  transition: color 0.2s ease;
}
.card:hover .label { color: var(--text); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.social {
  padding: clamp(38px, 6vw, 58px) 0; text-align: center;
}
.social .icons {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 26px; margin: 0; padding: 0; list-style: none;
}
.social .icons a { display: block; color: var(--muted-dim); transition: color 0.18s ease; }
.social .icons a:hover { color: var(--accent); }
.social .icons i { font-size: 1.05rem; line-height: 1; }

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 34px; text-align: center;
}
.site-footer p {
  margin: 0; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted-dim);
}

/* =====================================================================
   CAREER PAGE — "How I Got Here" timeline
   ===================================================================== */
.page-head {
  background: var(--bg-top);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(56px, 10vw, 118px) 0 clamp(44px, 7vw, 78px);
}
.page-head h1 { margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.02em; }
.page-head .lede { max-width: 560px; margin: 0; color: var(--muted); }

.timeline { padding: clamp(48px, 8vw, 92px) 0 clamp(30px, 5vw, 56px); }

.tl {
  position: relative;
  margin: 0; padding: 0 0 0 clamp(120px, 18vw, 190px);
  list-style: none;
}
.tl::before {
  content: ""; position: absolute; top: 8px; bottom: 8px;
  left: clamp(78px, 12vw, 126px);
  width: 1px; background: var(--line);
}
.tl li { position: relative; padding: 0 0 clamp(34px, 5vw, 52px); }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ""; position: absolute;
  left: calc(clamp(78px, 12vw, 126px) - 4px);
  top: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); border: 1px solid var(--bg);
  transition: background 0.2s ease;
}
.tl li.is-current::before { background: var(--accent); }

.tl .when {
  position: absolute; left: 0; top: 2px; width: clamp(70px, 11vw, 112px);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-dim); text-align: right; line-height: 1.5;
}
.tl li.is-current .when { color: var(--accent); }
.tl .what { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em; }
.tl .where { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.tl .where a { color: var(--accent); }

.resume { padding: clamp(40px, 7vw, 76px) 0 clamp(60px, 9vw, 104px); }

.resume-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 24px) clamp(24px, 4vw, 38px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.22s ease, box-shadow 0.22s ease,
              background 0.22s ease, transform 0.22s ease;
}

.resume-icon {
  font-size: 1.15rem;
  color: var(--muted);
  transition: color 0.22s ease, transform 0.22s ease;
}

.resume-label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.22s ease;
}

@media (hover: hover) {
  .resume-card:hover {
    border-color: var(--accent);
    background: rgba(232, 163, 61, 0.07);
    box-shadow: 0 0 0 1px rgba(232, 163, 61, 0.35), 0 10px 30px -12px rgba(232, 163, 61, 0.6);
    transform: translateY(-2px);
  }
  .resume-card:hover .resume-icon { color: var(--accent); transform: translateY(2px); }
  .resume-card:hover .resume-label { color: var(--accent); }
}

.resume-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-outline {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* =====================================================================
   GAME DEV — experience list
   ===================================================================== */
.xp {
  margin-top: clamp(14px, 2.5vw, 28px);
  padding: clamp(22px, 3.5vw, 38px) 0 0;
  border-top: 1px solid var(--line);
}

.xp-title {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.xp-item, #team-university { scroll-margin-top: 130px; }

.xp-item {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(26px, 4vw, 44px) 0;
  border-top: 1px solid var(--line-soft);
}
.xp-item:first-child,
#team-playindies { border-top: 0; padding-top: 0; }
.xp-item:last-child { padding-bottom: clamp(13px, 2vw, 22px); }

.xp-when { padding-top: 4px; }

.xp-dates {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.5;
}
.xp-item.is-current .xp-dates { color: var(--accent); }

.xp-body h2 {
  margin: 0 0 2px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.xp-company {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.xp-note {
  margin: 0;
  color: var(--muted-dim);
  font-size: 0.93rem;
  font-style: italic;
}

.xp-sum {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 64ch;
}

.xp-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  max-width: 72ch;
}
.xp-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
.xp-list li:last-child { margin-bottom: 0; }
.xp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}
.xp-item.is-current .xp-list li::before { background: var(--accent); }

/* Notable mentions + education, side by side */
.xp-extra { padding: clamp(20px, 3vw, 36px) 0 0; }

.xp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vw, 46px);
}

.xp-block h3 {
  margin: 0 0 16px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}
.xp-block .xp-list { margin-top: 0; }

.xp-edu-school {
  margin: 8px 0 4px;
  font-weight: 600;
  font-size: 1rem;
}
.xp-edu-place {
  margin: 2px 0 6px;
  font-size: 0.9rem;
  color: var(--accent);
}
.xp-edu-note { margin: 0; color: var(--muted); font-size: 0.95rem; }

.panel-icon { font-size: 1.35rem; line-height: 1; color: var(--muted); flex: none; }

/* =====================================================================
   GAME DEV — employment timeline ("streak bars")
   Rows are flush, top-aligned; bars spring out of the year axis and are
   drawn with a soft optical bleed so they read like ink in a dark frame.
   ===================================================================== */
.gx-head {
  padding: 0;
  border-top: 1px solid var(--line);
}

.gx-title {
  margin: 0;
  padding: 40px 0 40px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: left;
  color: var(--text);
}

.gx {
  display: grid;
  gap: 2px;
  padding-top: 0;
  padding-bottom: 0;
}

/* --- year scale: thin ticks + a single hairline, no heavy rule --- */
.gx-axis {
  display: grid;
  grid-template-columns: minmax(0, 178px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: 20px;
}

.gx-years {
  position: relative;
  height: 1px;
  background: transparent;
}
.gx-years span {
  position: absolute;
  top: -3px;
  transform: translateX(-50%);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-dim);
  white-space: nowrap;
}
.gx-years span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 1px;
  height: 7px;
  background: var(--line);
}

/* --- rows --- */
.gx-row {
  display: grid;
  grid-template-columns: minmax(0, 178px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.gx-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.gx-name {
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-dim);
  text-align: right;
  padding-right: 4px;
  transition: color 0.22s ease;
}

.gx-track {
  position: relative;
  height: 30px;
}

/* the bar: soft vertical gradient + a bright leading edge, no hard box */
.gx-bar {
  position: absolute;
  top: 7px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #33333a 0%, #232329 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.24s cubic-bezier(0.34, 1.4, 0.64, 1),
              background 0.24s ease,
              box-shadow 0.24s ease;
  transform-origin: left center;
}
.gx-bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.24s ease;
}

/* --- rows that are still running --- */
.gx-row.is-current .gx-bar {
  background: linear-gradient(180deg, #f2b757 0%, #d8922b 100%);
  box-shadow: 0 0 0 1px rgba(232, 163, 61, 0.28), 0 4px 18px -6px rgba(232, 163, 61, 0.55);
}
.gx-row.is-current .gx-bar::after {
  background: #ffe4ad;
  width: 4px;
}
.gx-row.is-current .gx-name { color: var(--accent); }

/* --- hover --- */
@media (hover: hover) {
  .gx-row:hover .gx-name { color: var(--text); }
  .gx-row:hover .gx-bar {
    transform: scaleY(1.35) scaleX(1.008);
    box-shadow: 0 0 0 1px rgba(232, 163, 61, 0.5), 0 6px 26px -6px rgba(232, 163, 61, 0.6);
    background: linear-gradient(180deg, #f2b757 0%, #d8922b 100%);
  }
  .gx-row:hover .gx-bar::after { background: #ffe4ad; }
  .gx-row:hover .gx-name { color: var(--accent); }
}

/* =====================================================================
   CREDITED GAMES & PROJECTS — card grid
   ===================================================================== */
.cg {
  margin-top: clamp(28px, 4.5vw, 52px);
  padding: 0 0 clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}

.cg-heading {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.cg-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg-card { min-width: 0; }

.cg-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cg-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #1a1a1f;
  overflow: hidden;
}

.cg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

/* stand-in for titles we have no art for yet */
.cg-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--muted-dim);
  background: linear-gradient(135deg, #191920 0%, #22222a 100%);
}

.cg-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
}

.cg-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.2s ease;
}

.cg-credit {
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-dim);
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .cg-link:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -14px rgba(232, 163, 61, 0.55);
  }
  .cg-link:hover .cg-img { transform: scale(1.06); }
  .cg-link:hover .cg-title { color: var(--accent); }
  .cg-link:hover .cg-credit { color: var(--text); }
}

.cg-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =====================================================================
   CONNECT PAGE
   ===================================================================== */
.connect-head {
  background: var(--bg-top);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(40px, 7vw, 82px) 0 clamp(30px, 5vw, 56px);
}

.connect-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.connect-lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.connect { padding: clamp(28px, 4.5vw, 54px) 0 clamp(30px, 4.5vw, 52px); }

.connect-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: clamp(10px, 1.4vw, 16px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* each button occupies half its previous width, centred in its column */
.connect-list > li { display: flex; justify-content: center; }

.connect-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: clamp(240px, 26vw, 320px);
  padding: clamp(12px, 1.7vw, 17px) clamp(14px, 1.9vw, 20px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.connect-icon {
  font-size: 1.05rem;
  color: var(--muted);
  flex: none;
  width: 22px;
  text-align: center;
  transition: color 0.2s ease;
}

.connect-label {
  flex: 1 1 auto;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.connect-arrow {
  font-size: 0.78rem;
  color: var(--muted-dim);
  flex: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .connect-link:hover {
    border-color: var(--accent);
    background: rgba(232, 163, 61, 0.06);
    transform: translateY(-2px);
  }
  .connect-link:hover .connect-icon,
  .connect-link:hover .connect-arrow { color: var(--accent); }
  .connect-link:hover .connect-arrow { transform: translateX(4px); }
}

.connect-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* the featured row spans both columns and centres its button */
.connect-featured {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: clamp(3px, 0.5vw, 6px);
}
.connect-featured .connect-link { width: clamp(240px, 26vw, 320px); }


/* =====================================================================
   CAREER TIMELINE — scrollable chart
   The chart is wider than a phone screen, so it scrolls sideways with the
   employer names pinned. The rail, fade and hint make that discoverable.
   ===================================================================== */
.gx-hint {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.gx-hint span { display: inline-block; }

.gx-scroller {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-raised);
}

/* keep the chart wider than the viewport so there is something to scroll */
.gx-scroller .gx { min-width: 760px; padding-right: 8px; }

/* visible scrollbar track — the strongest cue on desktop and Android */
.gx-scroller::-webkit-scrollbar { height: 6px; }
.gx-scroller::-webkit-scrollbar-track {
  background: var(--bg-raised);
  border-radius: 999px;
}
.gx-scroller::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

/* fade on the right edge hints that content continues */
/* a soft gradient at the scroller's edge. Drawn on the container rather than
   as an overlay so it never draws over the bars themselves. */
.gx-scroller {
  background-image: linear-gradient(90deg, var(--bg-top) 0%, transparent 24px);
  background-repeat: no-repeat;
  background-attachment: local;
}

.gx-scroller:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* pin the employer names while the chart moves */
@media (max-width: 900px) {
  .gx-scroller .gx-name {
    position: sticky;
    left: 0;
    background: var(--bg-top);
    padding-right: 10px;
    z-index: 2;
  }
  .gx-scroller .gx-spacer {
    position: sticky;
    left: 0;
    background: var(--bg-top);
    z-index: 2;
  }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .cards .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

@media (max-width: 760px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 36px);
  }
  .intro-photo img { max-width: 380px; }
}

@media (max-width: 1040px) {
  .cg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .cg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .gx-axis, .gx-row { grid-template-columns: minmax(0, 112px) minmax(0, 1fr); }
  .gx-name { font-size: 0.63rem; letter-spacing: 0.07em; }
  .gx-track { height: 26px; }
  .gx-bar { top: 6px; height: 14px; }
  .xp-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .xp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 0;
  }
  .nav { width: 100%; }
  .nav ul {
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .nav a { font-size: 0.7rem; letter-spacing: 0.09em; }
  .brand { white-space: normal; font-size: 0.88rem; }
  .page-head { text-align: left; }

  /* timeline collapses: dates above each entry, spine to the far left */
  .tl { padding-left: 28px; }
  .tl::before { left: 5px; }
  .tl li::before { left: 1px; top: 6px; }
  .tl .when {
    position: static; width: auto; text-align: left;
    display: block; margin-bottom: 6px;
  }
}

@media (max-width: 620px) {
  .cards .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect-list { grid-template-columns: 1fr; }
  .connect-link { width: 100%; }
  .connect-featured .connect-link { width: 100%; }

  .cg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .cards .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}
