/* ==========================================================================
   Jackline Jebet — portfolio
   ========================================================================== */

:root {
  --ink:          #0d0d0d;
  --paper:        #f5f0e8;
  --accent:       #b8860b;
  --accent-light: #d4a843;
  --accent-dim:   rgba(184, 134, 11, 0.08);
  --muted:        #6b6355;
  --muted-light:  #9a9082;
  --border:       #d8d0c0;
  --border-light: #e8e2d8;
  --card-bg:      #faf7f2;
  --card-hover:   #f2ede3;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono:  'DM Mono', 'Courier New', monospace;
  --font-sans:  'Outfit', system-ui, sans-serif;

  --wrap: 1660px;
  --measure: 78ch;          /* caps line length inside the wide wrap */
  --radius-sm: 2px;
  --radius: 4px;
  --shadow-sm: 0 2px 12px rgba(13,13,13,.06);
  --shadow: 0 6px 30px rgba(13,13,13,.10);
  --transition: .25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 20px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 26px;
  padding-right: 26px;
  position: relative;
  z-index: 1;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.lede { color: var(--muted); font-size: 18px; max-width: 68ch; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
  height: 70px;
  display: flex;
  align-items: center;   /* was 'left' — not a valid value, so it fell back to stretch */
  justify-content: space-between;
}
.brand {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .01em;
  text-decoration: none;
  /* not flex: a flex container drops whitespace between children,
     which would close the gap between "Jackline" and "Jebet" */
}
.brand em { color: var(--accent); font-style: italic; }

.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  display: block;
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--ink); background: var(--accent-dim); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--accent);
  margin-top: 5px;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink);
  width: 40px; height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
}

/* ---------- hero ---------- */

.hero { position: relative; padding: 58px 0 78px; overflow: hidden; }

.hero-chart {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 78%;
  max-width: 900px;
  opacity: .5;
  pointer-events: none;
}
.hero-chart path.series {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 3.4s cubic-bezier(.22,.61,.36,1) .35s forwards;
}
.hero-chart path.fill { fill: url(#fadeGrad); opacity: 0; animation: fadein 1.6s ease 2.1s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: .45; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 54px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(50px, 7.6vw, 88px);
  font-weight: 300;
  letter-spacing: -.015em;
  margin: 0 0 16px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }

.role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}

.hero .lede { font-size: 19px; margin: 0 0 28px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; }
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .08em;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  background: var(--card-bg);
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-solid:hover { background: var(--accent-light); border-color: var(--accent-light); box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* portrait */
.portrait-card { position: relative; }
.portrait {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-light);
  text-align: center;
  padding: 20px;
}
.badge {
  position: absolute;
  left: -14px;
  bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 66px;
}
.stat { background: var(--card-bg); padding: 30px 26px; transition: background var(--transition); }
.stat:hover { background: var(--card-hover); }
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--accent);
}
.stat span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section { padding-top: 80px; padding-bottom: 80px; }
.section + .section { border-top: 1px solid var(--border-light); }

.page-head { padding-top: 70px; padding-bottom: 10px; }
.page-head h1 {
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 300;
  letter-spacing: -.015em;
  margin-bottom: 18px;
}

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background var(--transition), box-shadow var(--transition);
}
.card:hover { background: var(--card-hover); box-shadow: var(--shadow-sm); }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0 0 12px; font-size: 15.5px; }
.card p:last-child { margin-bottom: 0; }

/* skills */
.skill-group { margin-bottom: 32px; }
.skill-group h3 { font-size: 21px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 300;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--muted);
}

/* projects */
.project {
  border-top: 1px solid var(--border);
  padding: 46px 0;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
}
.project:last-child { border-bottom: 1px solid var(--border); }
.project-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--muted-light);
  letter-spacing: .05em;
  line-height: 1.9;
}
.project-meta .stack { color: var(--accent); display: block; margin-top: 12px; }
.project h3 { font-size: 30px; letter-spacing: -.01em; margin-bottom: 16px; }
.project .question {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  max-width: var(--measure);
}
.project ul { margin: 0 0 20px; padding-left: 18px; color: var(--muted); font-size: 15.5px; max-width: var(--measure); }
.project ul li { margin-bottom: 9px; }
.result {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--muted);
  max-width: var(--measure);
}
.result b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl > li {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.tl > li:last-child { border-bottom: 1px solid var(--border); }
.tl .when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: .07em;
}
.tl .where {
  display: block;
  color: var(--muted-light);
  font-size: 11px;
  margin-top: 7px;
  letter-spacing: .05em;
}
.tl h3 { font-size: 25px; margin-bottom: 4px; }
.tl .org {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 14px;
}
.tl ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; max-width: var(--measure); }
.tl ul li { margin-bottom: 8px; }

/* contact */
.contact-list { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.contact-list li {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
}
.contact-list li:last-child { border-bottom: 1px solid var(--border); }
.contact-list .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-list a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 38px; }
.socials a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--muted);
  background: var(--card-bg);
  transition: all var(--transition);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

.foot {
  border-top: 1px solid var(--border);
  margin-top: 74px;
  padding: 28px 0 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-light);
  letter-spacing: .06em;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .section { padding-top: 62px; padding-bottom: 62px; }
  .page-head { padding-top: 54px; padding-bottom: 8px; }
  .cols-2 { gap: 34px; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 8px 18px 18px;
    display: none;
    box-shadow: var(--shadow-sm);
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; font-size: 14px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .burger { display: block; }
  .burger:hover { background: var(--accent-dim); border-color: var(--accent); }

  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .portrait-card { max-width: 320px; }
  .badge { left: 14px; }
  .hero-chart { width: 130%; right: -20%; opacity: .3; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; gap: 22px; }
  .project { grid-template-columns: 1fr; gap: 18px; }
  .tl > li { grid-template-columns: 1fr; gap: 12px; }
  .stats { grid-template-columns: 1fr; }
  .stat b { font-size: 38px; }
}

/* ---------- small screens: tighten vertical rhythm ---------- */

@media (max-width: 640px) {
  body { font-size: 15.5px; line-height: 1.62; padding-top: 0; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-in { padding: 0 20px; height: 62px; }
  .nav-links { top: 62px; }

  /* the main offender: section padding was 80px top and bottom at every width */
  .section { padding-top: 40px; padding-bottom: 40px; }
  .page-head { padding-top: 30px; padding-bottom: 6px; }
  .hero { padding: 34px 0 44px; }

  .page-head h1 { font-size: 34px; margin-bottom: 12px; }
  .hero h1 { font-size: 46px; }
  .lede { font-size: 16.5px; }
  .hero .lede { font-size: 16.5px; margin-bottom: 22px; }

  .eyebrow { margin-bottom: 14px; font-size: 10px; gap: 9px; }
  .eyebrow::before { width: 18px; }

  .cols-2, .cols-3 { gap: 16px; }
  .card { padding: 20px; }
  .card h3 { font-size: 21px; }
  .card p { font-size: 15px; }

  .stats { margin-top: 34px; }
  .stat { padding: 22px 20px; }
  .stat b { font-size: 34px; }

  .project { padding: 28px 0; gap: 12px; }
  .project h3 { font-size: 24px; }
  .project-meta { line-height: 1.7; }
  .project .question { font-size: 18px; padding-left: 14px; margin-bottom: 14px; }
  .project ul { padding-left: 16px; font-size: 15px; margin-bottom: 16px; }
  .result { padding: 14px 16px; font-size: 14px; }

  .tl > li { padding: 22px 0; gap: 8px; }
  .tl h3 { font-size: 22px; }
  .tl .org { margin-bottom: 10px; }
  .tl ul { padding-left: 16px; font-size: 15px; }

  .contact-list li { padding: 16px 0; gap: 6px; }

  .tags { gap: 6px; margin-bottom: 26px; }
  .btns { gap: 9px; }
  .btn { padding: 12px 20px; }

  .socials { margin-top: 26px; gap: 8px; }
  .foot { margin-top: 44px; padding: 22px 0 34px; }

  .skill-group { margin-bottom: 24px; }
  .skill-group h3 { font-size: 19px; margin-bottom: 10px; }
}

@media (max-width: 400px) {
  .section { padding-top: 32px; padding-bottom: 32px; }
  .page-head { padding-top: 24px; padding-bottom: 4px; }
  .hero h1 { font-size: 40px; }
  .page-head h1 { font-size: 30px; }
  .btns { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero-chart path.series { stroke-dashoffset: 0; }
  .hero-chart path.fill { opacity: .45; }
  html { scroll-behavior: auto; }
}

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