:root {
  --ink: #18202a;
  --muted: #5c6673;
  --paper: #fff9ed;
  --surface: #ffffff;
  --surface-soft: #f7fbf7;
  --line: #d9e4df;
  --teal: #00a99a;
  --teal-dark: #006f68;
  --coral: #ef5b5b;
  --yellow: #f5c84b;
  --blue: #3f74d8;
  --green: #2fbf83;
  --violet: #7158d8;
  --shadow: rgba(24, 32, 42, .11);
}

* {
  box-sizing: border-box;
}

html {
  background: #dfe9e6;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

.page {
  width: min(1080px, 100%);
  min-height: 1920px;
  margin: 0 auto;
  padding: 50px 58px 54px;
  background:
    linear-gradient(90deg, rgba(24, 32, 42, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 32, 42, .035) 1px, transparent 1px),
    linear-gradient(145deg, #fffdf8 0%, var(--paper) 44%, #eef9f3 100%);
  background-size: 34px 34px, 34px 34px, auto;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(0, 111, 104, .18);
  pointer-events: none;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(0, 169, 154, .14), transparent 26%),
    linear-gradient(290deg, rgba(245, 200, 75, .18), transparent 30%);
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
}

header {
  display: grid;
  grid-template-columns: 1fr 278px;
  gap: 30px;
  align-items: start;
  margin-bottom: 18px;
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(0, 111, 104, .22);
  border-radius: 999px;
  background: rgba(0, 169, 154, .11);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  max-width: 660px;
  font-size: 54px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0;
}

.subtitle {
  margin: 16px 0 0;
  font-size: 21px;
  line-height: 1.38;
  color: var(--muted);
  max-width: 710px;
}

.profile-card {
  border: 1px solid rgba(24, 32, 42, .10);
  border-top: 7px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 42px var(--shadow);
  padding: 20px 20px 18px;
}

.profile-card h2 {
  margin: 0 0 10px;
  font-size: 23px;
  color: var(--teal-dark);
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0 16px;
}

.proof {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  border: 1px solid rgba(24, 32, 42, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 24px rgba(24, 32, 42, .07);
  padding: 13px 10px 10px;
}

.proof::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
}

.proof strong {
  display: block;
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
  margin-bottom: 8px;
}

.proof span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.22;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.profile-card .proof-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 15px 0 0;
}

.profile-card .proof {
  min-height: 55px;
  border-color: rgba(24, 32, 42, .08);
  box-shadow: none;
  padding: 8px 7px 7px 11px;
}

.profile-card .proof::before {
  width: 3px;
}

.profile-card .proof strong {
  font-size: 17px;
  margin-bottom: 5px;
}

.profile-card .proof span {
  font-size: 8.5px;
  line-height: 1.14;
  letter-spacing: .025em;
}

.thread {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid rgba(24, 32, 42, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 28px rgba(24, 32, 42, .06);
}

.thread strong {
  color: var(--teal-dark);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.thread p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.36;
  font-weight: 750;
}

.legend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 14px 0 20px;
}

.legend-item {
  min-height: 72px;
  border: 1px solid rgba(24, 32, 42, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
}

.mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 950;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(24, 32, 42, .15);
}

.mark.q {
  background: var(--blue);
  transform: rotate(45deg);
}

.mark.q span {
  transform: rotate(-45deg);
}

.mark.yes,
.mark.no {
  border-radius: 999px;
}

.mark.yes {
  background: var(--green);
}

.mark.no {
  background: var(--coral);
}

.mark.out {
  border-radius: 8px;
  background: var(--teal);
}

.mark.action-mark {
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
}

.legend-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 750;
}

.start,
.finish {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(63, 116, 216, .20), transparent 44%),
    #18202a;
  color: #fff;
}

.start {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: 0 18px 34px rgba(24, 32, 42, .14);
}

.start strong {
  color: var(--yellow);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.start p {
  margin: 0;
  font-size: 18px;
  line-height: 1.36;
}

.tree {
  position: relative;
  padding-left: 44px;
  --tree-bar-top: 8px;
  --tree-bar-left: 12px;
  --tree-bar-width: 7px;
  --tree-progress-height: 0px;
  --tree-progress-y: var(--tree-bar-top);
}

.tree::before {
  content: "";
  position: absolute;
  top: var(--tree-bar-top);
  bottom: 10px;
  left: var(--tree-bar-left);
  width: var(--tree-bar-width);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(0, 169, 154, .24), rgba(63, 116, 216, .20), rgba(245, 200, 75, .28)),
    rgba(255, 255, 255, .72);
  box-shadow:
    inset 0 0 0 1px rgba(0, 111, 104, .22),
    0 0 0 4px rgba(255, 255, 255, .48);
}

.node {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  margin-bottom: 14px;
}

.node::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 35px;
  width: 37px;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal), var(--blue));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0, 111, 104, .24);
  align-self: start;
  margin-top: 4px;
  border: 5px solid rgba(255, 255, 255, .82);
  line-height: 1;
  text-align: center;
}

.step-number span {
  font-size: 29px;
  font-weight: 950;
  line-height: 1;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 42, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 30px var(--shadow);
  padding: 16px 18px 15px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(24, 32, 42, .14);
}

.panel h2 {
  margin: 0 0 10px;
  padding-left: 6px;
  font-size: 25px;
  line-height: 1.08;
  color: var(--ink);
}

.question {
  display: grid;
  grid-template-columns: 39px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
  padding: 9px 11px 9px 8px;
  border-radius: 8px;
  background: rgba(63, 116, 216, .08);
  color: var(--blue);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.question .diamond {
  width: 30px;
  height: 30px;
  background: var(--blue);
  transform: rotate(45deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(63, 116, 216, .20);
  line-height: 1;
  text-align: center;
}

.question .diamond span {
  transform: rotate(-45deg);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.branch {
  border: 1px solid rgba(24, 32, 42, .10);
  border-radius: 8px;
  padding: 10px 11px;
  min-height: 76px;
  background: #fffdf8;
}

.branch.yes {
  background: rgba(47, 191, 131, .08);
}

.branch.no {
  background: rgba(239, 91, 91, .08);
}

.branch strong {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  padding: 6px 9px;
  color: #fff;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.branch.yes strong {
  background: var(--green);
}

.branch.no strong {
  background: var(--coral);
}

.branch p {
  margin: 0;
  font-size: 15px;
  line-height: 1.32;
  color: var(--muted);
}

.panel > .action,
.panel > .output {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  align-items: start;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.32;
}

.panel > .output {
  background: rgba(0, 169, 154, .08);
}

.panel > .action {
  background: rgba(245, 200, 75, .16);
}

.panel > .action b,
.panel > .output b {
  color: var(--ink);
}

.tag {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 950;
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.tag.action-tag {
  background: var(--yellow);
  color: var(--ink);
}

.tag.output-tag {
  background: var(--teal);
}

.resistance .panel::before {
  background: linear-gradient(180deg, var(--coral), var(--violet));
}

.resistance-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.resistance-list span {
  border: 1px solid rgba(239, 91, 91, .22);
  border-radius: 999px;
  background: rgba(239, 91, 91, .08);
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.18;
  color: #8f2f34;
  font-weight: 750;
}

.finish {
  margin: 18px 0 0;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr 306px;
  gap: 20px;
  align-items: center;
  box-shadow: 0 18px 34px rgba(24, 32, 42, .14);
}

.finish h2 {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 25px;
}

.finish p {
  margin: 0;
  font-size: 17px;
  line-height: 1.38;
}

.arrival-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.keywords span {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1;
  color: #f7fbfa;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.signature {
  margin-top: 14px;
  border: 1px solid rgba(24, 32, 42, .10);
  border-left: 7px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 28px rgba(24, 32, 42, .06);
  padding: 15px 18px;
  font-size: 22px;
  line-height: 1.28;
  color: var(--ink);
  font-weight: 850;
}

.authorship-badge {
  position: fixed;
  right: max(18px, calc((100vw - 1080px) / 2 - 94px));
  bottom: 28px;
  z-index: 20;
}

.authorship-badge::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: rgba(0, 111, 104, .16);
  filter: blur(8px);
  opacity: .62;
  pointer-events: none;
  transform: scale(.9);
  transition: opacity .22s ease, transform .22s ease;
}

.authorship-badge summary {
  width: 76px;
  height: 76px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  border: 2px solid rgba(0, 111, 104, .36);
  border-radius: 999px;
  background:
    radial-gradient(circle at 72% 78%, rgba(47, 191, 131, .22), transparent 42%),
    linear-gradient(145deg, #183640 0%, var(--teal-dark) 54%, #254f92 100%);
  color: #fffdf8;
  box-shadow:
    0 16px 30px rgba(0, 111, 104, .24),
    0 6px 14px rgba(24, 32, 42, .14),
    inset 0 1px 2px rgba(255, 255, 255, .24),
    inset 0 -7px 12px rgba(24, 32, 42, .24);
  padding: 0;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  list-style: none;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease;
}

.authorship-badge summary::before {
  content: "";
  position: absolute;
  inset: -30% -60%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .36) 48%, transparent 58%);
  opacity: .58;
  transform: translateX(-52%) rotate(8deg);
  animation: badge-shine 3.8s ease-in-out infinite;
  pointer-events: none;
}

.authorship-badge summary span {
  position: relative;
  z-index: 1;
}

.authorship-badge summary::-webkit-details-marker {
  display: none;
}

.authorship-badge summary:hover,
.authorship-badge summary:focus-visible {
  transform: translateY(-3px) scale(1.05);
  filter: saturate(1.08) brightness(1.06);
  border-color: rgba(245, 200, 75, .58);
  box-shadow:
    0 20px 38px rgba(0, 111, 104, .31),
    0 8px 18px rgba(24, 32, 42, .16),
    inset 0 1px 2px rgba(255, 255, 255, .28),
    inset 0 -7px 12px rgba(24, 32, 42, .24);
}

.authorship-badge:hover::before,
.authorship-badge:focus-within::before,
.authorship-badge[open]::before {
  opacity: 1;
  transform: scale(1.04);
}

.authorship-badge summary:focus-visible {
  outline: 3px solid rgba(63, 116, 216, .30);
  outline-offset: 5px;
}

.authorship-icon {
  display: inline;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-shadow: 0 2px 7px rgba(24, 32, 42, .24);
}

.authorship-badge[open] summary {
  border-color: rgba(245, 200, 75, .66);
  box-shadow:
    0 20px 40px rgba(0, 111, 104, .32),
    0 8px 18px rgba(24, 32, 42, .18),
    inset 0 1px 2px rgba(255, 255, 255, .28),
    inset 0 -7px 12px rgba(24, 32, 42, .24);
}

.authorship-badge p {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(318px, calc(100vw - 36px));
  margin: 0;
  border: 1px solid rgba(24, 32, 42, .12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(24, 32, 42, .18);
  padding: 13px 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.36;
  font-weight: 750;
}

.contact {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}


html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.page {
  animation: page-breathe 24s ease-in-out infinite alternate;
}

.profile-card,
.proof,
.thread,
.legend-item,
.start,
.finish,
.signature {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.profile-card:hover,
.proof:hover,
.legend-item:hover,
.start:hover,
.finish:hover,
.signature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(24, 32, 42, .13);
}

.tree::after {
  content: "";
  position: absolute;
  top: var(--tree-bar-top);
  left: var(--tree-bar-left);
  width: var(--tree-bar-width);
  height: var(--tree-progress-height);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, var(--teal) 24%, var(--blue) 66%, var(--yellow) 100%);
  box-shadow: 0 0 18px rgba(0, 169, 154, .34);
  transition: height .16s linear;
}

.tree-cursor {
  position: absolute;
  top: var(--tree-progress-y);
  left: calc(var(--tree-bar-left) + (var(--tree-bar-width) / 2));
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 5px solid #fffdf8;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, #fff 0 12%, transparent 13%),
    linear-gradient(145deg, var(--yellow), var(--teal) 54%, var(--blue));
  box-shadow:
    0 0 0 4px rgba(0, 111, 104, .20),
    0 0 22px rgba(0, 169, 154, .28),
    0 12px 24px rgba(0, 111, 104, .32);
  transform: translate(-50%, -50%) scale(var(--tree-cursor-scale, 1));
  transition: top .2s cubic-bezier(.2, .8, .2, 1), transform .18s ease, box-shadow .18s ease;
  pointer-events: none;
}

.tree.is-magnetized .tree-cursor {
  --tree-cursor-scale: 1.24;
  box-shadow:
    0 0 0 7px rgba(245, 200, 75, .25),
    0 0 34px rgba(0, 169, 154, .58),
    0 15px 30px rgba(0, 111, 104, .38);
}

.tree.is-magnetized .tree-cursor::after {
  animation-duration: .72s;
}

.tree-cursor::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(0, 169, 154, .24);
  border-radius: inherit;
  animation: cursor-pulse 1.8s ease-in-out infinite;
}

.panel {
  transform-style: preserve-3d;
  will-change: transform;
}

.node.is-active .panel {
  border-color: rgba(0, 169, 154, .34);
  box-shadow: 0 22px 46px rgba(24, 32, 42, .17);
}

.node.is-active .step-number {
  animation: active-pulse 1.9s ease-in-out infinite;
}

.branch {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, border-color .2s ease, background .2s ease;
}

.branch::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .2s ease, transform .2s ease;
}

.branch.yes::after {
  background: var(--green);
}

.branch.no::after {
  background: var(--coral);
}

.branch:hover,
.branch:focus-visible,
.branch.is-selected {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(24, 32, 42, .10);
}

.branch:focus-visible {
  outline: 3px solid rgba(63, 116, 216, .28);
  outline-offset: 3px;
}

.branch.is-selected {
  border-color: rgba(24, 32, 42, .22);
}

.branch.is-selected::after {
  opacity: 1;
  transform: scale(1);
}

.panel.has-choice .branch:not(.is-selected) {
  opacity: .48;
  filter: saturate(.72);
}

.question .diamond,
.mark {
  animation: soft-rotate 5.5s ease-in-out infinite;
}

.legend-item:nth-child(2) .mark,
.legend-item:nth-child(4) .mark {
  animation-delay: .8s;
}

.legend-item:nth-child(3) .mark,
.legend-item:nth-child(5) .mark {
  animation-delay: 1.35s;
}

.resistance-list span,
.keywords span {
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.resistance-list span:hover,
.keywords span:hover {
  transform: translateY(-2px) scale(1.03);
}

.keywords span {
  animation: keyword-float 7s ease-in-out infinite;
}

.keywords span:nth-child(2n) {
  animation-delay: .9s;
}

.keywords span:nth-child(3n) {
  animation-delay: 1.6s;
}

.js-enabled .reveal-section,
.js-enabled .node {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .58s ease, transform .58s ease;
}

.js-enabled .reveal-section.is-visible,
.js-enabled .node.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .node:nth-child(2n) {
  transition-delay: .04s;
}

.js-enabled .node:nth-child(3n) {
  transition-delay: .08s;
}

@keyframes page-breathe {
  from {
    background-position: 0 0, 0 0, center;
  }
  to {
    background-position: 34px 18px, 18px 34px, center;
  }
}

@keyframes active-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 26px rgba(0, 111, 104, .24);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 18px 36px rgba(63, 116, 216, .32);
  }
}

@keyframes soft-rotate {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes keyword-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes cursor-pulse {
  0%, 100% {
    opacity: .38;
    transform: scale(.74);
  }
  50% {
    opacity: .08;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .js-enabled .reveal-section,
  .js-enabled .node {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .page {
    min-height: 0;
    padding: 32px 18px 34px;
  }

  .page::before {
    inset: 10px;
  }

  header,
  .thread,
  .start,
  .finish {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  .subtitle {
    font-size: 18px;
  }

  .proof-strip,
  .legend {
    grid-template-columns: repeat(2, 1fr);
  }

  .tree {
    padding-left: 0;
  }

  .tree::before,
  .tree::after,
  .tree-cursor,
  .node::before {
    display: none;
  }

  .node {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .step-number {
    width: 52px;
    height: 52px;
    border-width: 3px;
  }

  .step-number span {
    font-size: 22px;
  }

  .branches,
  .resistance-list {
    grid-template-columns: 1fr;
  }

  .keywords {
    justify-content: flex-start;
  }

  .contact {
    flex-direction: column;
    gap: 6px;
  }

  .authorship-badge {
    right: 16px;
    bottom: 18px;
  }

  .authorship-badge summary {
    width: 64px;
    height: 64px;
  }

  .authorship-badge p {
    right: -2px;
    width: min(300px, calc(100vw - 36px));
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  .page {
    width: 1080px;
    margin: 0;
    box-shadow: none;
  }

  .panel {
    break-inside: avoid;
  }
}

.linkedin-link {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.15em;
  color: inherit;
}

.linkedin-link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.linkedin-link {
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 4px;
  background: #0a66c2;
  color: #fff;
  vertical-align: -0.28em;
  box-shadow: 0 1px 4px rgba(10, 102, 194, .28);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.linkedin-link:hover,
.linkedin-link:focus-visible {
  background: #004182;
  box-shadow: 0 2px 8px rgba(10, 102, 194, .38);
  transform: translateY(-1px);
}

.linkedin-link:focus-visible {
  outline: 2px solid rgba(10, 102, 194, .35);
  outline-offset: 3px;
}
