:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  
  /* Page base (inside iframe) */
  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  body {
    background-color: #ffffff;
    color: #000000;
  }
  
  /* Main layout */
  .experience-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 6vw;
  }
  
  .experience-content {
    width: 100%;
    max-width: 58rem;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 1.5rem;
    border: 0.15rem solid #ffcc00;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.6);
  }
  
  /* Header */
  .experience-header {
    margin-bottom: 2rem;
  }
  
  .experience-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin: 0 0 0.75rem 0;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: #ffcc00;
  }
  
  .experience-intro {
    margin: 0;
    font-size: clamp(1.02rem, 2.1vw, 1.15rem);
    line-height: 1.6;
    color: #f5f5f5;
  }
  
  /* Section titles */
  .experience-section {
    margin-top: 2.25rem;
  }
  
  .experience-section-title {
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin: 0 0 1.25rem 0;
    color: #ffcc00;
  }
  
  /* underline base (hidden until animated) */
  .experience-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    height: 0.16rem;
    width: 0;
    border-radius: 999rem;
    background: linear-gradient(90deg, #ffcc00, #ff8800);
    box-shadow: 0 0 0.8rem rgba(255, 204, 0, 0.7);
  }
  
  /* When title is in view: fade+glow + underline grows */
  .experience-section-title.in-view {
    animation: titleGlow 0.8s ease-out forwards;
  }
  
  .experience-section-title.in-view::after {
    animation: underlineGrow 0.9s ease-out forwards;
  }
  
  /* optional stagger: secondary starts a bit later */
  .section-title-secondary.in-view {
    animation-delay: 0.15s;
  }
  .section-title-secondary.in-view::after {
    animation-delay: 0.25s;
  }
  
  @keyframes titleGlow {
    from {
      opacity: 0;
      transform: translateY(0.3rem);
      text-shadow: none;
    }
    to {
      opacity: 1;
      transform: translateY(0);
      text-shadow: 0 0 0.8rem rgba(255, 204, 0, 0.7);
    }
  }
  
  @keyframes underlineGrow {
    from {
      width: 0;
    }
    to {
      width: 80%;
    }
  }
  
  /* Timeline items */
  .experience-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1.5rem;
    row-gap: 0.75rem;
    padding-bottom: 1.75rem;
  }
  
  .experience-item:last-of-type {
    padding-bottom: 0;
  }
  
  /* Left timeline visuals */
  .experience-item-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .experience-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: #ffcc00;
    box-shadow: 0 0 0.6rem rgba(255, 204, 0, 0.7);
  }
  
  .experience-line {
    flex: 1;
    width: 0.12rem;
    margin-top: 0.2rem;
    background: linear-gradient(
      to bottom,
      rgba(255, 204, 0, 0.8),
      rgba(255, 204, 0, 0)
    );
  }
  
  .experience-line-end {
    background: linear-gradient(
      to bottom,
      rgba(255, 204, 0, 0.8),
      rgba(255, 204, 0, 0.1)
    );
  }
  
  /* Right content */
  .experience-item-body {
    background: #050505;
    border-radius: 1.1rem;
    padding: 1.1rem 1.25rem 1.1rem 1.25rem;
    border: 0.08rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.9);
  }
  
  /* Header row inside each card */
  .experience-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Role headings (typed) */
  .experience-role {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04rem;
    color: white;
  }
  
  .role-typed {
    display: inline-block;
    min-height: 1em; /* keeps some space while typing */
    white-space: nowrap;
  }
  
  .experience-org {
    margin: 0.2rem 0 0 0;
    font-size: 0.9rem;
    color: #e0e0e0;
    opacity: 0.95;
  }
  
  .experience-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    font-size: 0.85rem;
  }
  
  .experience-period {
    font-weight: 600;
    color: #ffcc00;
  }
  
  .experience-tag {
    font-size: 0.8rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999rem;
    border: 0.06rem solid rgba(255, 255, 255, 0.35);
    color: #f5f5f5;
  }
  
  /* Bullet points */
  .experience-points {
    margin: 0.35rem 0 0 0;
    padding-left: 1.1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f1f1;
  }
  
  .experience-points li + li {
    margin-top: 0.2rem;
  }
  
  /* Outro text */
  .experience-outro p {
    margin: 0;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f5f5f5;
    opacity: 0.95;
  }
  
  /* ---------- RESPONSIVE ---------- */
  
  @media (max-width: 56rem) {
    .experience-container {
      padding: 3rem 5vw;
    }
  
    .experience-content {
      padding: 2rem 1.75rem;
    }
  
    .experience-item {
      grid-template-columns: auto minmax(0, 1fr);
    }
  
    .experience-item-header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .experience-meta {
      align-items: flex-start;
    }
  }
  
  @media (max-width: 40rem) {
    .experience-container {
      padding: 2.5rem 5vw;
    }
  
    .experience-content {
      padding: 1.75rem 1.25rem;
    }
  
    .experience-item {
      column-gap: 1rem;
    }
  
    .experience-item-body {
      padding: 1rem 1rem 1rem 1rem;
    }
  
    .experience-section-title {
      font-size: 1.1rem;
    }
  }