/* =========================================================
   Timeline
   ========================================================= */

.timeline-lead{

    color: var(--muted-ink);
    margin: 10px 0px;
}

.t-item{
  position:relative; margin:22px 0; background:var(--panel);
  border:1px solid var(--line); border-radius:14px; padding:14px 20px; 
  transition: transform .2s ease, box-shadow .2s ease; will-change: transform;
}


.t-meta{color:var(--muted-ink); font-size:15px}
@media (hover:hover) and (pointer:fine){
  .timeline .t-item:hover{ transform: translateY(-4px); box-shadow:0 10px 24px rgba(15,23,42,.08); }
}
.timeline{
  --tl-axis-x: 14px;
  --tl-axis-w: 2px;
  --tl-dot: 10px;
  --tl-gutter: 24px;                 /* space between axis and cards */

  position: relative;
  padding-left: calc(var(--tl-axis-x) + var(--tl-gutter));
}
.timeline{
  transition: opacity .22s ease, transform .22s ease;

  opacity: 1;               /* was 0 */
  transform: translateY(0); /* make transform explicit */
  
  
}
/* use gap instead of margins */
.timeline{
  display: grid;
  row-gap: 10px;
   padding: 5px 0;     /* spacing ABOVE + BELOW rows */
}

/* Segmented control */
.segmented{
  display:inline-flex;
  gap:6px;
  padding:6px;
  margin: 8px 0px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  box-shadow: var(--shadow);
}

.seg-btn{
  appearance:none; border:0; background:transparent;
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  color:var(--muted-ink);
  cursor:pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.seg-btn:hover{ transform: translateY(-1px); }
.seg-btn.is-active{
  color:var(--ink);
  background: #1118270f;
}


.timeline.is-active{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .timeline{ transition:none; transform:none; }
  .seg-btn{ transition:none; }
}

/* dot centered on the axis, but placed into the gutter */
/* dot centered on the axis, aligned to the header center */
.t-item::before{
  content:"";
  position:absolute;

  /* X: axis is exactly `--tl-gutter` to the left of the card */
  left: calc(-1 * var(--tl-gutter));

  /* Y: place the dot at the header line, then center the dot on that point */
  top: calc(14px + 0.6em);

  transform: translate(-50%, -50%);
  width: var(--tl-dot);
  height: var(--tl-dot);
  background:#111827;
  border-radius:999px;
}

@media (min-width:1024px){
  /* only for NORMAL lists, never for accordion pills */
  .timeline .t-item ul:not(.t-bullets){
    list-style: disc;
    padding-left: 1.1rem;
    margin-top: 10px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 44px;
    row-gap: 8px;
  }

  .timeline .t-item ul:not(.t-bullets) > li{
    margin: 0;
    line-height: 1.5;
  }
}



/* Pane fade/slide */
.timeline.swap-out{ opacity:0; transform: translateY(10px); pointer-events:none; }
.timeline.swap-in { opacity:1; transform: translateY(0);  pointer-events:auto; }


/* Timeline swap animation */
.tl-shell{
  position:relative;
  margin-top:14px;
  overflow:hidden;          /* enables clean slide/fade without spill */
  border-radius:18px;       /* optional if you want the swap to feel contained */
   transition: height .22s ease; 
}

.tl-shell::before{
  content:"";
  position:absolute;
  left: var(--tl-axis-x);
  top: 4px;
  bottom: 4px;              /* only this effectively changes as height changes */
  width: var(--tl-axis-w);
  background: var(--line);
  border-radius: 999px;
  pointer-events:none;
}
/* per-card sequential reveal states */
.timeline .t-item{
   margin:0;              /* IMPORTANT: remove the margin:22px 0 */
  opacity: 1;
  transform: translateY(0);
}
.t-title{font-weight:800}
/* Make the title’s line-height explicit so 0.6em is truly “center-ish” */
.t-title{
  margin: 0;
  line-height: 1.2;
  font-size: 17px; 
}

/* Dot centered on axis (x) + centered on title line (y) */
.timeline .t-item{
  position: relative;
  --t-pad-top: 14px;            /* MUST match the card’s top padding */
  margin: 0;                    /* don’t use margins for spacing */
}

.timeline .t-item::before{
  content:"";
  position:absolute;

  /* center on axis: axis is -gutter from card edge */
  left: calc(-1 * var(--tl-gutter));

  /* center on title line: top padding + half line-height (1.2/2 = 0.6em) */
  top: calc(var(--t-pad-top) + 0.6em);

  transform: translate(-50%, -50%);
  width: var(--tl-dot);
  height: var(--tl-dot);
  background:#111827;
  border-radius:999px;
}

.timeline.is-revealing .t-item{
  opacity: 0;
  transform: translateY(10px);
}

/* make hidden panes not affect layout */
[data-timeline][hidden]{
  display:none !important;
}

/* Put the axis variables on the SHELL (or #timeline) so ::before can use them */
#timeline .tl-shell{
  --tl-axis-x: 14px;
  --tl-axis-w: 2px;
  --tl-dot: 10px;
  --tl-gutter: 24px;
  position: relative;
  overflow: hidden;
}

/* The vertical axis line */
#timeline .tl-shell::before{
  content:"";
  position:absolute;
  left: var(--tl-axis-x);
  top: 4px;
  bottom: 4px;
  width: var(--tl-axis-w);
  background: var(--line);
  border-radius: 999px;
  pointer-events:none;
  z-index: 0;
}

/* Make room for the axis + gutter on each timeline pane */
#timeline [data-timeline]{
  padding-left: calc(var(--tl-axis-x) + var(--tl-gutter));
  position: relative;
  z-index: 1; /* cards above the line */
}
.see-more-btn.is-disabled,
.see-more-btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none; /* belt + suspenders */
  filter: grayscale(0.2);
}

.see-more-btn.is-disabled:hover,
.see-more-btn:disabled:hover{
  transform: none;
  box-shadow: none;
}

/* More spacing between bullet points (timeline) */
.timeline .t-item ul{
  margin-top: 10px;          /* space above bullet list */
}




@media (min-width:1024px){
  .timeline .t-item ul{
    list-style: disc;
    padding-left: 1.1rem;
    margin-top: 10px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 44px;
    row-gap: 8px;
  }

  .timeline .t-item li{
    margin: 0;          /* grid handles spacing now */
    line-height: 1.5;
  }
}
/* =========================
   Accordion “pill bullets”
   (headline row -> click -> nested details)
   ========================= */

/* Parent list: no bullets, no left indent */
.t-bullets{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Spacing between each pill item */
.t-bullets > .bpt{
  margin: 0.45rem 0;
}

/* Clickable pill row */
.bpt__head{
  width: 100%;
  display: flex;
  align-items: center;              /* keep caret centered */
  justify-content: space-between;
  gap: 0.75rem;

  background: color-mix(in srgb, var(--pill) 22%, var(--panel));
  border: 1px solid var(--line);
  border-radius: 999px;

  padding: 0.55rem 0.85rem;
  cursor: pointer;
  text-align: left;

  transition: transform 140ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

@media (hover:hover) and (pointer:fine){
  .bpt__head:hover{
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
    box-shadow: 0 8px 18px rgba(15,23,42,0.06);
  }
}

.bpt__head:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: 2px;
}

/* Headline text */
.bpt__title{
  font-weight: 600;
  color: var(--ink);
}

/* Caret */
.bpt__caret{
  opacity: 0.75;
  transition: transform 160ms ease;
}

.bpt__head[aria-expanded="true"] .bpt__caret{
  transform: rotate(180deg);
}

/* Dropdown body */
.bpt__body{
  padding: 0.5rem 0.95rem 0.2rem 0.95rem;
}

/* Nested detail bullets: FORCE single column, one bullet per line */
.bpt__body ul{
  margin: 0.35rem 0 0.25rem 0;
  padding-left: 1.1rem;

  columns: 1 !important;
  column-count: 1 !important;
  column-width: auto !important;

  display: block !important;        /* override grid/flex list styles */
}

.bpt__body li{
  margin: 0.25rem 0;
  color: var(--ink);

  break-inside: avoid;
  width: 100%;
}
/* =========================================
   Accordion pill bullets: NO left dots ever
   ========================================= */

.timeline .t-item ul.t-bullets{
  list-style: none !important;
  margin: 10px 0 0 0;
  padding: 0 !important;
}

/* kill the actual marker dot */
.timeline .t-item ul.t-bullets > li{
  list-style: none !important;
}
.timeline .t-item ul.t-bullets > li::marker{
  content: "" !important;
}
/* Smooth accordion body */
.bpt__body{
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(-2px);

  transition:
    height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;

  padding: 0 0.95rem; /* base padding; we’ll add inner padding below */
}

/* Inner wrapper so padding doesn’t fight height animation */


/* Open state (height is controlled by JS) */
.bpt.is-open .bpt__body{
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .bpt__body{
    transition: none;
    transform: none;
  }
}
/* =========================================================
   HARD OVERRIDE: disable “loading reveal” on timeline panes
   (prevents appear → disappear → reveal on tab swap)
   ========================================================= */
#timeline .timeline.is-revealing .t-item{
  opacity: 1 !important;
  transform: none !important;
}
/* =========================
   EXPERIENCE TYPOGRAPHY
   ========================= */

.t-item{
  font-size: 15px;      /* slightly smaller overall */
  line-height: 1.45;
}

.timeline-lead{
  font-size: 14px;
  line-height: 1.45;
}

/* bullet headers */
.bpt__title{
  font-size: 14px;
  font-weight: 600;
}

/* expanded bullet content */
.bpt__body-inner{
  font-size: 13.5px;
  line-height: 1.5;
}

/* nested bullet list text */
.bpt__body-inner li{
  font-size: 13.5px;
}
@media (max-width: 900px){

  .t-item{ font-size: 14px; }

  .timeline-lead{ font-size: 13.5px; }

  .bpt__title{ font-size: 13.5px; }

  .bpt__body-inner,
  .bpt__body-inner li{
    font-size: 13px;
  }

}
/* =========================================================
   Timeline — responsive type scale (single source of truth)
   Paste at bottom of timeline.css
   ========================================================= */

/* 1) Type tokens for the timeline */
#timeline{
  --tl-fs-title: clamp(15.5px, 1.15vw + 11.5px, 17px);
  --tl-fs-meta:  clamp(12.5px, 0.75vw + 10.5px, 15px);
  --tl-fs-lead:  clamp(12.75px, 0.85vw + 10.75px, 14px);
  --tl-fs-pill:  clamp(12.5px, 0.85vw + 10.25px, 14px);
  --tl-fs-body:  clamp(12px, 0.75vw + 10.25px, 13.5px);

  --tl-lh-tight: 1.25;
  --tl-lh: 1.45;
  --tl-lh-body: 1.5;
}

/* 2) Apply tokens everywhere */
#timeline .t-item{
  font-size: var(--tl-fs-body);   /* base size inside cards */
  line-height: var(--tl-lh);
}

#timeline .t-title{
  font-size: var(--tl-fs-title);
  line-height: var(--tl-lh-tight);
}

#timeline .t-meta{
  font-size: var(--tl-fs-meta);
  line-height: var(--tl-lh);
}

#timeline .timeline-lead{
  font-size: var(--tl-fs-lead);
  line-height: var(--tl-lh);
}

/* pill headline row (button) */
#timeline .bpt__head{
  font-size: var(--tl-fs-pill);   /* makes the whole button scale */
  line-height: var(--tl-lh);
}

#timeline .bpt__title{
  font-size: inherit;             /* inherit from .bpt__head */
  line-height: inherit;
}

/* dropdown content (your HTML has no .bpt__body-inner, so target what exists) */
#timeline .bpt__body{
  font-size: var(--tl-fs-body);
  line-height: var(--tl-lh-body);
}

#timeline .bpt__body ul,
#timeline .bpt__body li{
  font-size: inherit;
  line-height: inherit;
}

/* 3) Small-screen density tweaks (optional but nice) */
@media (max-width: 520px){
  #timeline{
    --tl-lh: 1.42;
    --tl-lh-body: 1.45;
  }

  #timeline .t-item{ padding: 12px 16px; }
  #timeline .t-bullets > .bpt{ margin: 0.4rem 0; }
  #timeline .bpt__head{ padding: 0.5rem 0.75rem; }
  #timeline .bpt__body{ padding: 0.45rem 0.8rem 0.15rem 0.8rem; }
}
