/* Cinematic brand opening and scroll-linked collaboration story. */
.personal-intro {
  border-top: 0;
  row-gap: 0;
  padding-block: 110px 100px;
  align-items: start;
}
.personal-intro h2 {
  font-size: clamp(35px, 4.3vw, 60px);
  letter-spacing: -2.7px;
}
.personal-intro .about-content {
  padding-top: 35px;
  max-width: 440px;
  font-size: 15px;
}
.personal-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.personal-tools span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce5d6;
  background: #f0f5eb;
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 10px;
  color: #52604b;
}
.personal-tools svg {
  width: 14px;
  height: 14px;
}
.collaboration-story {
  --story-progress: 0;
  --team-progress: 0;
  --private-opacity: 1;
  --team-opacity: 0;
  --cursors-opacity: 0;
  --switch-press: 1;
  background: linear-gradient(180deg, var(--paper), #e5f2e8 32%, #d3e9d8 68%, var(--paper));
  position: relative;
}
.story-enhanced .collaboration-story {
  height: 250svh;
}
.story-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: clip;
}
.story-inner {
  max-width: 1120px;
  padding-block: 40px;
}
.story-copy {
  text-align: center;
}
.story-copy .section-kicker {
  margin-bottom: 12px;
}
.story-copy h2 {
  display: grid;
  align-items: center;
  min-height: 82px;
  font-size: clamp(38px, 4.7vw, 65px);
  letter-spacing: -2.6px;
  line-height: 1.12;
}
.story-copy h2 span {
  grid-area: 1 / 1;
}
.story-title-private,
.story-description-private {
  opacity: var(--private-opacity);
}
.story-title-team,
.story-description-team {
  opacity: var(--team-opacity);
}
.story-descriptions {
  display: grid;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.story-descriptions p {
  grid-area: 1 / 1;
}
.story-scene {
  width: 100%;
  height: 320px;
  position: relative;
  margin-top: 5px;
}
.story-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #c7d7bf;
  stroke-width: 1.2;
  opacity: calc(.22 + var(--team-progress) * .65);
  stroke: #85b592;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--connection-draw, 1);
}
.story-switch {
  width: 360px;
  height: 86px;
  display: flex;
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--switch-press));
  border-radius: 99px;
  border: 1px solid #a4b99a;
  background: #e5eddf;
  box-shadow: 0 8px 24px #1c1c1c0d, inset 0 1px 0 #fafbf8;
  padding: 7px;
  z-index: 2;
}
.story-switch-thumb {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: calc(50% - 7px);
  border-radius: 99px;
  background: var(--mint);
  transform: translateX(calc(var(--team-progress) * 100%));
}
.story-switch button {
  border: 0;
  background: none;
  position: relative;
  z-index: 1;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 99px;
  font-size: 18px;
  color: var(--petrol);
}
.story-switch button svg {
  width: 20px;
  height: 20px;
}
.story-switch button:focus-visible {
  outline-offset: 1px;
}
.story-token {
  position: absolute;
  display: grid;
  grid-template-columns: 20px auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #d2dfc8;
  border-radius: 99px;
  padding: 13px 18px;
  background: var(--paper);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}
.story-token>svg {
  grid-row: 1;
  width: 16px;
  height: 16px;
  color: #677d5c;
}
.story-token span {
  grid-area: 1 / 2;
}
.token-private {
  opacity: var(--private-opacity);
}
.token-team {
  opacity: var(--team-opacity);
}
.token-notes {
  left: 7%;
  top: 45px;
  transform: rotate(-6deg);
}
.token-todo {
  right: 3%;
  top: 70px;
  transform: rotate(5deg);
}
.token-calendar {
  left: 42%;
  bottom: 18px;
  transform: rotate(-3deg);
}
.story-cursors {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--cursors-opacity);
}
.story-cursor {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--person-color);
  will-change: transform;
}
.story-cursor svg {
  display: block;
  width: 33px;
  height: 43px;
  fill: currentColor;
  stroke: none;
}
.story-cursor span {
  position: absolute;
  left: 24px;
  top: 34px;
  border: 1px solid #1c1c1c;
  color: var(--ink);
  background: var(--person-color);
  border-radius: 99px;
  padding: 2px 9px;
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
}
.story-cursor[data-person="red"] { --person-color: var(--red); }
.story-cursor[data-person="orange"] { --person-color: var(--orange); }
.story-cursor[data-person="yellow"] { --person-color: var(--yellow); }
.story-cursor[data-person="green"] { --person-color: var(--mint); }
.story-cursor[data-person="blue"] { --person-color: var(--blue); }
.story-cursor[data-person="purple"] { --person-color: var(--purple); }
.story-cursor[data-person="white"] { --person-color: var(--white); }
.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  padding-inline: 4px;
}
.story-footer p,
.story-skip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
.story-footer svg {
  width: 15px;
  height: 15px;
}
.story-skip {
  color: var(--petrol);
}
.story-skip:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.story-progress {
  background: #d6e1cd;
  width: 100%;
  height: 2px;
  margin-top: 15px;
  border-radius: 99px;
  overflow: hidden;
}
.story-progress span {
  display: block;
  background: #609e70;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--story-progress));
  transform-origin: left;
}
.team-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: start;
  gap: 100px;
  padding-bottom: 55px;
}
.team-intro>div:last-child {
  padding-top: 38px;
  max-width: 400px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.team-intro p+p {
  margin-top: 15px;
}
.team-product {
  padding-bottom: 95px;
}
.team-product .product-window {
  border-color: #bdcfb5;
  box-shadow: 0 30px 80px #1c1c1c12, 0 2px 4px #1c1c1c08;
}
.team-product .preview-under {
  color: var(--muted);
}
.cursor.mara svg {
  color: var(--red);
  stroke: none;
}
.cursor.jonas svg {
  color: var(--blue);
  stroke: none;
}
@media(max-width:1000px) {
  .personal-intro {
    column-gap: 50px;
  }
  .personal-intro .about-content {
    font-size: 13px;
  }
  .story-token {
    font-size: 10px;
    padding: 11px 14px;
  }
  .token-notes { left: 1%; }
  .token-todo { right: 0; }
  .story-copy h2 {
    font-size: 51px;
  }
  .team-intro {
    gap: 55px;
  }
}
@media(max-width:600px) {
  .personal-intro {
    padding-block: 60px;
  }
  .personal-intro h2 {
    font-size: 39px;
    letter-spacing: -1.9px;
  }
  .personal-intro .about-content {
    padding-top: 25px;
    font-size: 13px;
  }
  .personal-tools {
    gap: 6px;
    margin-top: 20px;
  }
  .personal-tools span {
    font-size: 9px;
    padding: 7px 10px;
    gap: 5px;
  }
  .personal-tools svg {
    width: 12px;
    height: 12px;
  }
  .story-enhanced .collaboration-story {
    height: 225svh;
  }
  .story-pin {
    min-height: 600px;
    height: 100svh;
  }
  .story-inner {
    padding-block: 30px;
  }
  .story-copy h2 {
    font-size: 35px;
    letter-spacing: -1.8px;
    min-height: 88px;
    text-wrap: balance;
  }
  .story-copy .section-kicker {
    font-size: 10px;
    margin-bottom: 11px;
  }
  .story-descriptions {
    font-size: 12px;
    margin-top: 8px;
  }
  .story-scene {
    height: 300px;
    margin-top: 8px;
  }
  .story-switch {
    width: min(288px, calc(100% - 8px));
    height: 72px;
    padding: 6px;
  }
  .story-switch-thumb {
    top: 6px;
    left: 6px;
    bottom: 6px;
    width: calc(50% - 6px);
  }
  .story-switch button {
    font-size: 16px;
    gap: 8px;
  }
  .story-switch button svg {
    width: 17px;
    height: 17px;
  }
  .story-token {
    font-size: 9px;
    padding: 8px 11px;
    gap: 5px;
    grid-template-columns: 15px auto;
    max-width: 70%;
  }
  .story-token>svg {
    width: 13px;
    height: 13px;
  }
  .token-notes {
    top: 23px;
    left: 2%;
  }
  .token-todo {
    top: auto;
    bottom: 18px;
    right: 0;
  }
  .token-calendar {
    left: 0;
    bottom: 66px;
  }
  .story-cursor svg {
    width: 26px;
    height: 34px;
  }
  .story-cursor span {
    font-size: 7px;
    top: 27px;
    left: 17px;
    padding: 2px 7px;
  }
  .story-footer {
    flex-direction: column;
    gap: 0;
    align-items: center;
    font-size: 9px;
    padding: 0;
  }
  .story-footer p,
  .story-skip {
    min-height: 32px;
    gap: 7px;
  }
  .story-footer svg {
    width: 12px;
    height: 12px;
  }
  .story-progress {
    margin-top: 13px;
  }
  .team-intro {
    display: block;
    padding-block: 65px 35px;
  }
  .team-intro h2 {
    font-size: 33px;
  }
  .team-intro>div:last-child {
    padding-top: 23px;
    font-size: 13px;
  }
  .team-product {
    padding-bottom: 60px;
  }
}
@media(max-height:650px) and (min-width:601px) {
  .story-copy h2 { min-height: 65px; font-size: 42px; }
  .story-scene { height: 260px; }
  .story-inner { padding-block: 24px; }
  .story-pin { min-height: 550px; }
}
@media(prefers-reduced-motion:reduce) {
  .story-enhanced .collaboration-story { height: auto; }
  .story-pin { position: relative; height: auto; min-height: 0; }
  .story-inner { padding-block: 70px; }
  .story-progress { display: none; }
  .story-cursor { will-change: auto; }
}
