/* Frame coordinates (CSS px). Every photograph: stem on x 369, bloom top y 48, vase foot y 493.
   Name, class line and indicator share the left edge x 26. Name: cap top 164.5, baseline 249,
   behind the stem and leaf. Indicator: x 26..514, y 515..518. */
.tc {
  position: relative;
  width: 540px;
  height: 540px;
  overflow: hidden;
  background: #e75307;
  color: #fff;
  font-family: "Host Grotesk Variable", sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.tc * { box-sizing: border-box; }

.tc-view {
  width: 100%;
  height: 100%;
  scrollbar-width: none;
  outline: none;
  cursor: grab;
}

.tc-view::-webkit-scrollbar { display: none; }
.tc-view[data-dragging] { cursor: grabbing; }
.tc-view:focus-visible { box-shadow: inset 0 0 0 3px #ffffffc0; }

.tc-row { display: flex; height: 100%; }

/* Each slide owns its photograph, name, class line and cut-out, and clips them at its own edges:
   the join between two slides is one straight cut, and every letter sits on its own colour. */
.tc-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: clip;
  contain: paint;
}

.tc-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 540px;
  height: 540px;
}

.tc-name {
  position: absolute;
  left: 26px;
  top: 150px;
  margin: 0;
  font-family: "Gloock", serif;
  font-size: 113px;
  font-weight: 400;
  line-height: 113px;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

/* the stem and leaf again, cut out, so the name passes behind them */
.tc-cut {
  position: absolute;
  left: 270px;
  top: 150px;
  display: block;
  width: 130px;
  height: 130px;
  pointer-events: none;
}

.tc-meta {
  position: absolute;
  left: 25px;
  top: 282px;
  display: flex;
  gap: 14px;
  margin: 0;
  font-size: 17px;
  font-weight: 560;
  line-height: 22px;
  letter-spacing: -0.005em;
}

.tc-meta span { opacity: 0.72; font-variant-numeric: tabular-nums; }

/* Five segments along the bottom, clear of the vase foot. The bright one is not a state swap:
   it rides on --carousel-progress, so it travels with the slides on every frame of a drag. */
.tc-dots {
  --gap: 6px;
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 12px;
  display: flex;
  gap: var(--gap);
  height: 24px;
}

.tc-dot {
  flex: 1;
  height: 24px;
  padding: 0;
  border: 0;
  outline: none;
  background: linear-gradient(#ffffff61, #ffffff61) center / 100% 3px no-repeat;
  cursor: pointer;
}

.tc-dot:focus-visible { background-image: linear-gradient(#ffffffb0, #ffffffb0); }

.tc-now {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc((100% - 4 * var(--gap)) / 5);
  height: 3px;
  margin-top: -1.5px;
  background: #fff;
  translate: calc(var(--carousel-progress, 0) * 4 * (100% + var(--gap))) 0;
  pointer-events: none;
}
