.pillar-explorer {
  --pillar-line: color-mix(in oklch, var(--on-surface) 20%, transparent);
  --pillar-muted: color-mix(in oklch, var(--on-surface) 68%, transparent);
  --pillar-space-sm: .75rem;
  --pillar-space-md: 1rem;
  --pillar-space-lg: 1.5rem;
  --pillar-space-xl: 2rem;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  background: var(--surface);
  color: var(--on-surface);
}

.pillar-explorer__inner {
  max-width: var(--section-shell-max, 100rem);
  margin-inline: auto;
}

.pillar-explorer__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--pillar-line);
}

.pillar-explorer__eyebrow,
.pillar-panel__name,
.pillar-explorer__story-top,
.pillar-explorer__image-label,
.pillar-panel__challenge > span,
.pillar-panel__direction > span {
  font-family: "Lexend", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pillar-explorer__eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -.25rem;
  color: var(--th-accent-ink, var(--primary));
}

.pillar-explorer__intro h2 {
  max-width: 13ch;
  margin: 0;
  font-family: "Lexend", sans-serif;
  font-size: clamp(2.45rem, 5.5vw, 5.5rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.045em;
}

.pillar-explorer__intro > .pillar-explorer__desktop-copy {
  max-width: 35rem;
  margin: 0;
  color: var(--pillar-muted);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.pillar-explorer__theme-bar { display: none; }

.pillar-explorer__stage {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(19rem, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: clamp(42.5rem, 48vw, 50rem);
  margin-top: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--pillar-line);
}

.pillar-explorer__figure {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 14fr) minmax(4rem, 1.5fr);
  margin: 0;
}

.pillar-explorer__photo {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--surface-card);
}

.pillar-explorer__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--on-surface) 12%, transparent);
}

.pillar-explorer__photo > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pillar-explorer__figure figcaption {
  z-index: 4;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  margin: var(--pillar-space-sm);
  padding: .3rem .45rem;
  background: rgba(21, 19, 16, .78);
  color: #f7f1ea;
  font-size: .74rem;
  line-height: 1.4;
  text-align: right;
}

.pillar-explorer__image-label {
  position: absolute;
  z-index: 2;
  top: 1.15rem;
  left: 1.15rem;
  padding: .45rem .6rem;
  background: rgba(21, 19, 16, .8);
  color: #f7f1ea;
  font-size: .6rem;
}

.pillar-hotspot {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7f1ea;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.pillar-hotspot--proces { left: 20.8%; top: 26.9%; }
.pillar-hotspot--automatisering { left: 60.1%; top: 25.4%; flex-direction: row-reverse; }
.pillar-hotspot--digitalisering { left: 92.9%; top: calc(19.4% + 50px); flex-direction: row-reverse; }
.pillar-hotspot--data-ai { left: 66.1%; top: 85%; }
.pillar-hotspot--mens { left: 54.7%; top: 53.8%; }

.pillar-hotspot--automatisering .pillar-hotspot__label,
.pillar-hotspot--digitalisering .pillar-hotspot__label {
  margin-right: -.35rem;
  margin-left: 0;
  padding-right: 1rem;
  padding-left: .75rem;
}

.pillar-hotspot--automatisering:hover .pillar-hotspot__label,
.pillar-hotspot--automatisering:focus-visible .pillar-hotspot__label,
.pillar-hotspot--automatisering[aria-pressed="true"] .pillar-hotspot__label,
.pillar-hotspot--digitalisering:hover .pillar-hotspot__label,
.pillar-hotspot--digitalisering:focus-visible .pillar-hotspot__label,
.pillar-hotspot--digitalisering[aria-pressed="true"] .pillar-hotspot__label {
  transform: translateX(-.25rem);
}

.pillar-hotspot__dot {
  position: relative;
  z-index: 1;
  width: clamp(2.7rem, 4.4vw, 4.1rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 241, 234, .68);
  border-radius: 50%;
  background: rgba(21, 19, 16, .84);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
}

.pillar-hotspot__dot > span {
  position: absolute;
  z-index: 2;
  top: -.5rem;
  left: -.35rem;
  padding: .16rem .27rem;
  border-radius: 999px;
  background: #f7f1ea;
  color: #151310;
  font: 700 .56rem/1 "Lexend", sans-serif;
}

.pillar-hotspot__dot > svg {
  width: 56%;
  height: 56%;
  display: block;
  pointer-events: none;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}

.pillar-hotspot__label {
  margin-left: -.35rem;
  padding: .7rem .75rem .7rem 1rem;
  background: rgba(21, 19, 16, .86);
  font: 700 clamp(.62rem, 1vw, .82rem)/1 "Lexend", sans-serif;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
}

.pillar-hotspot__label i {
  margin-left: .45rem;
  color: var(--primary);
  font-style: normal;
}

.pillar-hotspot:hover .pillar-hotspot__dot,
.pillar-hotspot:focus-visible .pillar-hotspot__dot,
.pillar-hotspot[aria-pressed="true"] .pillar-hotspot__dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #231a10;
  transform: scale(1.08);
}

.pillar-hotspot:hover .pillar-hotspot__dot > svg,
.pillar-hotspot:focus-visible .pillar-hotspot__dot > svg,
.pillar-hotspot[aria-pressed="true"] .pillar-hotspot__dot > svg {
  transform: scale(1.06);
}

.pillar-hotspot:hover .pillar-hotspot__label,
.pillar-hotspot:focus-visible .pillar-hotspot__label,
.pillar-hotspot[aria-pressed="true"] .pillar-hotspot__label {
  background: #231a10;
  transform: translateX(.25rem);
}

.pillar-hotspot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: .35rem;
}

.pillar-explorer__rail {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--pillar-line);
}

.pillar-explorer__rail button {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  gap: .15rem;
  align-content: center;
  padding: .45rem .65rem;
  border: 0;
  border-right: 1px solid var(--pillar-line);
  background: transparent;
  color: var(--pillar-muted);
  font: 650 clamp(.72rem, .9vw, .88rem)/1.2 "Lexend", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.pillar-explorer__rail button:last-child { border-right: 0; }

.pillar-explorer__rail button span {
  color: var(--th-accent-ink, var(--primary));
  font-size: .55rem;
  letter-spacing: .08em;
}

.pillar-explorer__rail button:hover,
.pillar-explorer__rail button:focus-visible,
.pillar-explorer__rail button[aria-pressed="true"] {
  background: var(--surface-card);
  color: var(--on-surface);
}

.pillar-explorer__rail button:focus-visible {
  position: relative;
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.pillar-explorer__story {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  border-left: 1px solid var(--pillar-line);
  background: var(--surface-card);
}

.pillar-explorer__story-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: var(--pillar-space-sm);
  border-bottom: 1px solid var(--pillar-line);
  color: var(--pillar-muted);
}

.pillar-explorer__story-top span:first-child { color: var(--th-accent-ink, var(--primary)); }

.pillar-panel {
  flex: 1;
  padding-block: clamp(1.1rem, 1.6vw, 1.5rem);
  animation: pillar-panel-in .32s cubic-bezier(.16, 1, .3, 1) both;
}

.pillar-panel[hidden] { display: none; }

.pillar-panel__name {
  margin: 0 0 .6rem;
  color: var(--th-accent-ink, var(--primary));
}

.pillar-panel > h3 {
  max-width: 15ch;
  margin: 0 0 clamp(1.25rem, 2vw, 2rem);
  font-family: "Lexend", sans-serif;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.pillar-panel__challenge,
.pillar-panel__direction {
  padding-block: var(--pillar-space-md);
  border-top: 1px solid var(--pillar-line);
}

.pillar-panel__challenge > span,
.pillar-panel__direction > span {
  color: var(--pillar-muted);
}

.pillar-panel__direction > span { color: var(--th-accent-ink, var(--primary)); }

.pillar-panel h4 {
  margin: .55rem 0 .6rem;
  font-family: "Lexend", sans-serif;
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  line-height: 1.2;
}

.pillar-panel p:not(.pillar-panel__name) {
  max-width: 38ch;
  margin: 0;
  color: var(--pillar-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.pillar-explorer__link {
  min-height: 2.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: var(--pillar-space-md);
  border-top: 1px solid var(--pillar-line);
  color: var(--on-surface);
  font: 700 .95rem/1.3 "Lexend", sans-serif;
  text-decoration: none;
}

.pillar-explorer__link span {
  color: var(--th-accent-ink, var(--primary));
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}

.pillar-explorer__link:hover span { transform: translate(.2rem, -.2rem); }
.pillar-explorer__link:focus-visible { outline: 2px solid var(--primary); outline-offset: .4rem; }

@keyframes pillar-panel-in {
  from { opacity: 0; transform: translateY(.6rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 82rem) {
  .pillar-explorer__stage {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    aspect-ratio: auto;
  }
  .pillar-explorer__figure {
    grid-template-rows: auto auto;
  }
  .pillar-explorer__photo {
    aspect-ratio: 3 / 2;
  }
  .pillar-hotspot--proces { left: 20.8%; top: 26.9%; }
  .pillar-hotspot--automatisering { left: 60.1%; top: 25.4%; }
  .pillar-hotspot--digitalisering { left: 90%; top: calc(19.4% + 50px); }
  .pillar-hotspot--data-ai { left: 66.1%; top: 85%; }
  .pillar-hotspot--mens { left: 54.7%; top: 53.8%; }
  .pillar-explorer__rail button {
    min-height: 3.5rem;
    height: auto;
  }
  .pillar-explorer__story {
    border-top: 1px solid var(--pillar-line);
    border-left: 0;
  }
}

@media (max-width: 48rem), (max-width: 60rem) and (max-height: 30rem) {
  .pillar-explorer {
    padding-block: 3.5rem;
  }

  .pillar-explorer__intro { grid-template-columns: 1fr; }
  .pillar-explorer__intro h2 {
    max-width: none;
    font-size: clamp(1.1rem, 5.8vw, 2rem);
    line-height: 1.1;
    letter-spacing: -.035em;
    white-space: nowrap;
  }

  .pillar-explorer__desktop-copy { display: none; }

  .pillar-explorer__stage {
    margin-top: 1.5rem;
  }

  .pillar-explorer__figure {
    grid-template-rows: auto auto;
  }

  .pillar-explorer__photo {
    grid-row: 1;
    aspect-ratio: 3 / 2;
  }

  .pillar-explorer__photo > img {
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
  }

  .pillar-explorer__figure figcaption { display: none; }

  .pillar-explorer__theme-bar {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .55rem .75rem .65rem;
    background: rgba(21, 19, 16, .86);
    color: #f7f1ea;
    font-size: .875rem;
    line-height: 1.25;
  }

  .pillar-explorer__theme-count {
    flex: 0 0 auto;
    white-space: nowrap;
    color: var(--primary);
    font: 800 .8125rem/1 "Lexend", sans-serif;
    letter-spacing: .04em;
  }

  .pillar-explorer__theme-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .pillar-explorer__theme-text strong {
    font-family: "Lexend", sans-serif;
    font-weight: 700;
  }

  .pillar-explorer__theme-text span { color: rgba(247, 241, 234, .78); }

  .pillar-explorer__theme-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left center;
  }

  .pillar-explorer[data-rotating="true"] .pillar-explorer__theme-progress {
    animation: pillar-theme-progress 7s linear forwards;
  }

  .pillar-explorer__rail {
    display: none;
  }

  /* Op de telefoon geen iconen in de foto: de balk onderin noemt de pilaar. */
  .pillar-explorer__hotspots { display: none; }

  /* Teller en 'Uitgelicht' staan al in de balk; regel boven het verhaal weg. */
  .pillar-explorer__story-top { display: none; }

  .pillar-explorer__image-label { top: .65rem; left: .65rem; }
}

@media (max-width: 30rem) {
  .pillar-explorer__story { padding: 1.25rem; }
  .pillar-panel > h3 { font-size: 1.7rem; }
}

@keyframes pillar-theme-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-panel { animation: none; }
  .pillar-explorer__theme-progress { display: none; }
  .pillar-hotspot__dot,
  .pillar-hotspot__dot > svg,
  .pillar-hotspot__label,
  .pillar-explorer__link span { transition: none; }
}
