/* Pinned studio notes: white paper, cool gray ink panels, small cobalt pins.
   The number of columns follows available space, with no horizontal scrolling. */
.principles-section { scroll-margin-top: 92px; }
.principles-flow-viewport {
  width: 100%;
  min-width: 0;
  border-radius: 28px;
  background: linear-gradient(110deg,#f0f1f3,#f7f7f8 50%,#f0f1f2);
}
.principles-flow {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  padding: 54px 32px 94px;
  background-image: repeating-linear-gradient(to bottom,transparent 0,transparent 31px,#35405805 31px,#35405805 32px);
}
.principles-flow-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
.principles-flow[data-line-ready] .principles-flow-line { opacity: 1; }
.principles-flow-route {
  fill: none;
  stroke: #8d9bb3;
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.principles-flow-list {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  align-items: stretch;
  gap: 54px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.principles-flow-step {
  min-width: 0;
  position: relative;
  z-index: 1;
  transform: translateY(var(--note-y,0px)) rotate(var(--note-angle,0deg));
  transform-origin: 50% 20px;
}
.principles-flow-step:nth-child(1) { --note-angle: -2.5deg; --note-y: 14px; }
.principles-flow-step:nth-child(2) { --note-angle: 1.8deg; --note-y: 38px; }
.principles-flow-step:nth-child(3) { --note-angle: -1.1deg; --note-y: 0px; }
.principles-flow-step:nth-child(4) { --note-angle: 2deg; --note-y: 30px; }
.principles-flow-step:nth-child(5) { --note-angle: -1.6deg; --note-y: 10px; }
.principles-flow-bubble {
  position: relative;
  height: 100%;
  padding: 52px 10px 10px;
  border: 1px solid #fff;
  border-radius: 19px;
  background: linear-gradient(135deg,#fff,#fbfbfc);
  box-shadow: 0 2px 3px #18213405,0 10px 17px -7px #1821341d,0 24px 32px -17px #18213424;
}
.principles-flow-paper {
  height: 100%;
  padding: 21px 19px 25px;
  border-radius: 10px;
  border: 1px solid #e5e8ed;
  background: linear-gradient(145deg,#eef0f4,#f3f4f6);
  box-shadow: inset 0 1px 0 #ffffffc9;
}
.principles-flow-step:nth-child(3) .principles-flow-paper { background: linear-gradient(145deg,#edf0f6,#f1f3f7); }
.principles-flow-paper .principles-flow-kicker { margin: 0 0 18px; color: #3f5689; line-height: 1; }
.principles-flow-number { font-family: var(--font-family-body); font-size: 25px; font-weight: 400; letter-spacing: -.055em; }
.principles-flow-paper h3 {
  margin: 0 0 14px;
  color: #141922;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.principles-flow-paper > p:not(.principles-flow-kicker) {
  margin: 0;
  color: #59616e;
  font-size: 16px;
  line-height: 1.45;
}
.principles-flow-pin {
  position: absolute;
  z-index: 2;
  top: -9px;
  left: calc(50% - 14px);
  width: 28px;
  height: 35px;
  transform: rotate(-10deg);
  filter: drop-shadow(4px 8px 4px #2034a932);
}
.principles-flow-pin::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -1px;
  width: 30px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(165deg,#758cff 4%,#284cff 45%,#1531a8 100%);
  box-shadow: inset 0 1px 1px #d0daffbd,0 2px 1px #132b9552;
}
.principles-flow-pin i {
  position: absolute;
  top: 9px;
  left: 7px;
  width: 16px;
  height: 19px;
  border-radius: 3px 3px 7px 7px;
  background: linear-gradient(90deg,#284bcf,#6981f6 30%,#2e4ecb 70%,#1b3495);
}
.principles-flow-pin::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  width: 26px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(145deg,#8ca0ff 0%,#5070f4 45%,#2d4dc8 100%);
  border-bottom: 3px solid #2643ae;
  box-shadow: inset 0 1px 1px #d3dcffc9,0 2px 1px #1a339338;
}

/* Three, two or one column preserves readable notes and the numbered route. */
@media (min-width:1000px) and (max-width:1399.98px) {
  .principles-flow-list { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 100px 48px; }
  .principles-flow-step { grid-column: span 2; }
  .principles-flow-step:nth-child(4) { grid-column: 4 / span 2; grid-row: 2; }
  .principles-flow-step:nth-child(5) { grid-column: 2 / span 2; grid-row: 2; }
}
@media (min-width:640px) and (max-width:999.98px) {
  .principles-flow-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 100px 44px; }
  .principles-flow-step:nth-child(3) { grid-column: 2; grid-row: 2; }
  .principles-flow-step:nth-child(4) { grid-column: 1; grid-row: 2; }
  .principles-flow-step:nth-child(5) { grid-column: 1; grid-row: 3; }
}
@media (max-width:999.98px) {
  .principles-flow { padding: 44px 28px 70px; }
  .principles-flow-paper { padding: 22px; }
  .principles-flow-paper h3 { font-size: 26px; }
  .principles-flow-paper > p:not(.principles-flow-kicker) { font-size: 16px; }
  .principles-flow-step:nth-child(n) { --note-angle: -1.2deg; --note-y: 10px; }
  .principles-flow-step:nth-child(even) { --note-angle: 1.2deg; --note-y: 22px; }
}
@media (max-width:639.98px) {
  .principles-flow { padding: 38px 24px 54px; }
  .principles-flow-list { grid-template-columns: minmax(0,1fr); gap: 76px; max-width: 360px; margin-inline: auto; }
  .principles-flow-step:nth-child(n) { --note-y: 0px; }
  .principles-flow-paper { padding: 22px 20px; }
}
@media (max-width:359px) {
  .principles-flow { padding-inline: 20px; }
  .principles-flow-paper { padding: 20px 15px; }
  .principles-flow-paper h3 { font-size: 24px; }
  .principles-flow-paper > p:not(.principles-flow-kicker) { font-size: 16px; }
}
