/* ═══════════════════════════════════════════
       TOKENS
    ═══════════════════════════════════════════ */
    :root {
      --navy-dark:   #0D1B35;
      --navy-900:    #1A3260;
      --navy-800:    #22437E;
      --navy-700:    #3D6AB5;
      --navy-600:    #5A85C8;
      --navy-400:    #1A3260;
      --navy-200:    #3D5A8A;
      --navy-100:    #1A3260;
      --navy-50:     #EBF0F8;

      --orange-600:  #C94E00;
      --orange-500:  #E86A00;
      --orange-400:  #F77F00;
      --orange-100:  #FDE8CB;
      --orange-50:   #FEF4E7;

      --neutral-50:  #F5F6F8;
      --neutral-100: #E8EAEE;
      --neutral-200: #CBD5E1;
      --neutral-500: #64748B;
      --neutral-800: #1E293B;

      --c-bg:      #F0F4FA;
      --c-surface: #FFFFFF;
      --c-card:    #FFFFFF;
      --c-border:  #C8D8EE;
      --c-text:    #0D1B35;
      --c-muted:   #3D5A8A;
      --c-accent:  #E86A00;
      --c-accent2: #F77F00;

      --font-display: 'Playfair Display', Georgia, serif;
      --font-body:    'Outfit', sans-serif;
      --radius:       16px;
      --radius-sm:    10px;
      --shadow:       0 4px 24px rgba(26,50,96,.10);
      --shadow-lg:    0 12px 40px rgba(26,50,96,.16);
    }

    /* ═══════════════════════════════════════════
       BASE
    ═══════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* ═══════════════════════════════════════════
       SECTION
    ═══════════════════════════════════════════ */
    .resena {
      background: var(--c-bg);
      font-family: var(--font-body);
      color: var(--c-text);
      padding: 90px 20px 110px;
      position: relative;
      overflow: hidden;
    }

    /* subtle diagonal stripe pattern */
    .resena::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 60px,
        rgba(26,50,96,.03) 60px,
        rgba(26,50,96,.03) 61px
      );
      pointer-events: none;
    }

    /* orange glow top-right */
    .resena::after {
      content: '';
      position: absolute;
      top: -120px;
      right: -120px;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(232,106,0,.10) 0%, transparent 70%);
      pointer-events: none;
    }

    .resena__inner {
      max-width: 1020px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    /* ═══════════════════════════════════════════
       HEADER
    ═══════════════════════════════════════════ */
    .resena__head {
      text-align: center;
      margin-bottom: 64px;
    }

    .resena__pretag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--c-accent);
      margin-bottom: 20px;
    }

    .resena__pretag::before,
    .resena__pretag::after {
      content: '';
      display: block;
      width: 28px;
      height: 1.5px;
      background: var(--c-accent);
    }

    .resena__title {
      font-family: var(--font-display);
      font-size: clamp(30px, 5vw, 52px);
      font-weight: 700;
      line-height: 1.15;
      color: var(--c-text);
      margin-bottom: 14px;
    }

    .resena__title span {
      color: var(--c-accent);
      font-style: italic;
    }

    .resena__subtitle {
      font-size: 15px;
      color: var(--c-muted);
      font-weight: 300;
      letter-spacing: .02em;
    }

    /* ═══════════════════════════════════════════
       STATS BAR
    ═══════════════════════════════════════════ */
    .resena__stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 80px;
    }

    @media (max-width: 700px) {
      .resena__stats { grid-template-columns: repeat(2, 1fr); }
    }

    .stat-card {
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      border-radius: var(--radius-sm);
      padding: 22px 16px 18px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .stat-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--orange-600), var(--orange-400));
    }

    .stat-card--idex {
      border-color: var(--orange-500);
      background: linear-gradient(135deg, #EEF4FF 60%, rgba(232,106,0,.10));
    }

    .stat-card--idex .stat-card__n {
      font-size: 26px;
      letter-spacing: .06em;
    }

    .stat-card--idex::after {
      background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
      height: 4px;
    }

    .stat-card__n {
      font-family: var(--font-display);
      font-size: 32px;
      font-weight: 700;
      color: var(--c-accent);
      display: block;
      line-height: 1;
    }

    .stat-card__l {
      font-size: 12px;
      color: var(--c-muted);
      margin-top: 6px;
      line-height: 1.4;
      font-weight: 400;
    }

    /* ═══════════════════════════════════════════
       TIMELINE SPINE
    ═══════════════════════════════════════════ */
    .tl {
      position: relative;
    }

    .tl__spine {
      position: absolute;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom,
        transparent 0%,
        #94B0D8 5%,
        #94B0D8 95%,
        transparent 100%
      );
      transform: translateX(-50%);
    }

    /* ═══════════════════════════════════════════
       PHASE LABEL
    ═══════════════════════════════════════════ */
    .tl-phase {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 64px 0 40px;
      position: relative;
      z-index: 2;
    }

    .tl-phase__line {
      flex: 1;
      height: 1px;
      background: var(--c-border);
    }

    .tl-phase__pill {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .1em;
      text-transform: uppercase;
      padding: 7px 18px;
      border-radius: 20px;
      white-space: nowrap;
      border: 1px solid;
    }

    .pill--sal { background: #FEF4E7; color: #C94E00; border-color: rgba(200,80,0,.35); }
    .pill--enc { background: #EBF0F8; color: #1A3260; border-color: rgba(26,50,96,.35); }
    .pill--mod { background: #FEF4E7; color: #C94E00; border-color: rgba(200,80,0,.35); }
    .pill--exp { background: #EBF0F8; color: #1A3260; border-color: rgba(26,50,96,.35); }
    .pill--idex {
      background: linear-gradient(90deg, rgba(232,93,4,.2), rgba(247,127,0,.2));
      color: var(--orange-400);
      border-color: var(--orange-500);
      font-size: 11px;
      padding: 8px 22px;
      box-shadow: 0 0 12px rgba(232,106,0,.15);
    }

    /* ═══════════════════════════════════════════
       ROW (alternating left / right)
    ═══════════════════════════════════════════ */
    .tl-row {
      display: grid;
      grid-template-columns: 1fr 56px 1fr;
      align-items: start;
      margin-bottom: 36px;
      position: relative;
    }

    .tl-row:last-child { margin-bottom: 0; }

    /* left cell */
    .tl-row__left  { padding-right: 28px; }
    /* right cell */
    .tl-row__right { padding-left: 28px; }

    /* when card is on the left, right is empty; and vice versa */
    .tl-row__left.is-empty,
    .tl-row__right.is-empty { /* just empty space */ }

    /* ═══════════════════════════════════════════
       NODE (center dot)
    ═══════════════════════════════════════════ */
    .tl-node {
      display: flex;
      justify-content: center;
      padding-top: 12px;
      position: relative;
      z-index: 3;
    }

    .tl-dot {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: var(--c-bg);
      border: 2.5px solid #3D6AB5;
      transition: transform .3s, border-color .3s;
    }

    .tl-dot--key {
      width: 22px;
      height: 22px;
      background: var(--c-accent);
      border-color: var(--c-accent);
      box-shadow: 0 0 0 6px rgba(232,106,0,.18);
    }

    /* ═══════════════════════════════════════════
       YEAR BADGE
    ═══════════════════════════════════════════ */
    .tl-year {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .07em;
      color: var(--c-accent);
      border: 1px solid rgba(232,106,0,.45);
      background: #FEF4E7;
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 10px;
    }

    /* ═══════════════════════════════════════════
       CARD
    ═══════════════════════════════════════════ */
    .tl-card {
      background: var(--c-card);
      border: 1px solid var(--c-border);
      border-radius: var(--radius);
      overflow: hidden;
      transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
      box-shadow: var(--shadow);
    }

    .tl-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: #3D6AB5;
    }

    /* ── image zone ── */
    .tl-card__media {
      position: relative;
      width: 100%;
      height: 160px;
      overflow: hidden;
      background: #D8E6F5;
      }

    .tl-card__media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform .4s ease;
    }

    .tl-card:hover .tl-card__media img {
      transform: scale(1.04);
    }

    /* ── left accent strip ── */
    .tl-card__body {
      padding: 16px 18px 18px;
      border-left: 3px solid #E86A00;
    }

    .tl-row__right .tl-card__body {
      border-left: none;
      border-right: 3px solid #3D6AB5;
    }

    .tl-card__title {
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 700;
      color: var(--c-text);
      margin-bottom: 7px;
      line-height: 1.35;
    }

    .tl-card__text {
      font-size: 13px;
      color: var(--c-muted);
      line-height: 1.65;
      font-weight: 300;
    }

    .tl-card__norm {
      margin-top: 10px;
      font-size: 11px;
      color: var(--orange-400);
      opacity: .85;
      font-style: italic;
    }

    /* ═══════════════════════════════════════════
       CONNECTOR LINES (left/right side)
    ═══════════════════════════════════════════ */
    .tl-node::before {
      content: '';
      position: absolute;
      top: 19px;
      height: 1px;
      width: 28px;
      background: var(--c-border);
    }

    /* line goes left when card is on the right */
    .tl-row--card-right .tl-node::before {
      right: 100%;
      left: auto;
    }

    /* line goes right when card is on the left */
    .tl-row--card-left .tl-node::before {
      left: 100%;
      right: auto;
    }

    /* ═══════════════════════════════════════════
       REVEAL ANIMATION
    ═══════════════════════════════════════════ */
    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .6s ease, transform .6s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════════ */
    @media (max-width: 680px) {
      .tl__spine  { left: 18px; }
      .tl-node::before { display: none; }

      .tl-row {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto;
      }

      .tl-row__left.is-empty,
      .tl-row__right.is-empty { display: none; }

      .tl-row__left:not(.is-empty),
      .tl-row__right:not(.is-empty) {
        grid-column: 2 / 3;
        padding: 0;
      }

      .tl-node {
        grid-column: 1 / 2;
        grid-row: 1;
      }

      .tl-row__right .tl-card__body {
        border-right: none;
        border-left: 3px solid var(--navy-400);
      }

      .tl-phase { margin-left: 40px; }
    }
    /* ═══════════════════════════════════════════
       IDEX FEATURED CARD
    ═══════════════════════════════════════════ */
    .tl-card--featured {
      border-color: var(--orange-500);
      box-shadow: 0 4px 32px rgba(232,106,0,.12);
    }

    .tl-card--featured:hover {
      border-color: var(--orange-400);
      box-shadow: 0 12px 48px rgba(232,106,0,.2);
    }

    .tl-card--featured .tl-card__body {
      border-left-color: #E86A00;
    }

    .tl-card__badge-idex {
      position: absolute;
      top: 12px;
      right: 12px;
      background: var(--orange-500);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .12em;
      padding: 5px 12px;
      border-radius: 6px;
      font-family: var(--font-body);
    }

    .tl-card__programs {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid #D8E6F5;
    }

    .tl-card__programs-title {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--orange-400);
      margin-bottom: 10px;
    }

    .tl-card__programs-list {
      list-style: none;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5px 12px;
    }

    .tl-card__programs-list li {
      font-size: 12px;
      color: var(--navy-200);
      line-height: 1.4;
      padding-left: 14px;
      position: relative;
    }

    .tl-card__programs-list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 6px;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--orange-500);
    }

    .tl-dot--idex {
      width: 26px;
      height: 26px;
      background: var(--orange-500);
      border-color: var(--orange-400);
      box-shadow: 0 0 0 7px rgba(232,106,0,.15), 0 0 18px rgba(232,106,0,.25);
    }

    @media (max-width: 500px) {
      .tl-card__programs-list { grid-template-columns: 1fr; }
    }
